/* ==========================================================================
   Pamoja Landing v4 — AFCON 2027 responsive sports-agency landing
   Patterns: geometric agency blocks + football poster energy
   ========================================================================== */

.pl {
  --pl-ink: #0f172a;
  --pl-muted: #64748b;
  --pl-pitch: #0d5c3d;
  --pl-green: #0747a8;
  --pl-green-deep: #021a3a;
  --pl-coral: #ed5a28;
  --pl-coral-soft: #ffe4d9;
  --pl-mint: #b8e0d2;
  --pl-mint-deep: #2a9d8f;
  --pl-gold: #e9c46a;
  --pl-sand: #f7f8fa;
  --pl-white: #ffffff;
  --pl-line: #e2e8f0;
  --pl-radius: 18px;
  --pl-radius-sm: 12px;
  --pl-max: 1180px;

  position: relative;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--pl-sand);
  color: var(--pl-ink);
  font-family: var(--font, Inter, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.pl-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 10px 14px;
}
.pl-skip:focus {
  left: 12px;
  top: 12px;
}

/* Soft geometric blobs */
.pl-geom {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.pl-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.pl-blob-a {
  width: 420px;
  height: 420px;
  background: #bbf7d0;
  top: -120px;
  right: -80px;
}
.pl-blob-b {
  width: 360px;
  height: 360px;
  background: #fed7aa;
  bottom: 20%;
  left: -100px;
}
.pl-blob-c {
  width: 280px;
  height: 280px;
  background: #fde68a;
  bottom: -80px;
  right: 15%;
}

.pl-container {
  width: min(var(--pl-max), calc(100% - 40px));
  margin-inline: auto;
}

/* ── Nav ── */
.pl-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--pl-line);
}

.pl-nav-inner {
  width: min(var(--pl-max), calc(100% - 40px));
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pl-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pl-brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.pl-nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.pl-nav-links a {
  color: var(--pl-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.pl-nav-links a:hover {
  color: var(--pl-pitch);
}

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

.pl-nav-signin {
  display: none;
}

.pl-menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--pl-line);
  border-radius: 12px;
  background: #fff;
  color: var(--pl-ink);
  cursor: pointer;
}

/* Mobile drawer */
.pl-drawer {
  position: fixed;
  top: 72px;
  right: 0;
  z-index: 60;
  width: min(320px, 88vw);
  height: calc(100dvh - 72px);
  background: #fff;
  border-left: 1px solid var(--pl-line);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  padding: 24px 20px;
  transform: translateX(105%);
  transition: transform 0.22s ease;
}
.pl-drawer.is-open {
  transform: translateX(0);
}
.pl-drawer[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
.pl-drawer.is-open[hidden] {
  visibility: visible;
  pointer-events: auto;
}
.pl-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--pl-ink);
  font-weight: 600;
  font-size: 15px;
}
.pl-drawer a:hover {
  background: #f1f5f9;
}
.pl-drawer .pl-btn {
  margin-top: 16px;
  width: 100%;
}
.pl-drawer-backdrop {
  position: fixed;
  inset: 72px 0 0;
  z-index: 55;
  border: 0;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

/* Buttons */
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.pl-btn:hover {
  transform: translateY(-1px);
}
.pl-btn-lg {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 15px;
}
.pl-btn-primary {
  background: var(--pl-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}
.pl-btn-primary:hover {
  background: #05357d;
}
.pl-btn-ghost {
  background: #fff;
  color: var(--pl-pitch);
  border-color: var(--pl-line);
}
.pl-btn-ghost:hover {
  border-color: var(--pl-green);
  background: #f3f7fd;
}
.pl-btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.pl-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Hero ── */
.pl-hero {
  position: relative;
  z-index: 1;
  padding: 28px 0 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f7fd 45%, #fff7ed 100%);
}

.pl-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 36px;
}

.pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--pl-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pl-eyebrow-bar {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--pl-coral);
}

.pl-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--pl-ink);
}
.pl-hero-copy h1 em {
  font-style: normal;
  color: var(--pl-coral);
  background: linear-gradient(120deg, #ed5a28, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pl-hero-lead {
  margin: 18px 0 0;
  max-width: 40ch;
  color: var(--pl-muted);
  font-size: clamp(15px, 2.4vw, 17px);
  font-weight: 500;
  line-height: 1.6;
}

.pl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pl-hosts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--pl-muted);
  font-size: 12px;
  font-weight: 600;
}
.pl-hosts-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  color: var(--pl-pitch);
}
.pl-hosts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pl-hosts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pl-line);
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-hosts li strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  border-radius: 999px;
  background: #e8f0fb;
  color: var(--pl-pitch);
  font-size: 10px;
  font-weight: 800;
}

/* Geometric collage */
.pl-hero-collage {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.pl-geo-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(64px, 1fr));
  gap: 10px;
  min-height: 360px;
  aspect-ratio: 1 / 0.95;
}

.pl-geo-cell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 0;
}
.pl-geo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pl-geo-mint {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: var(--pl-mint);
}
.pl-geo-coral {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
  background: var(--pl-coral);
  color: #fff;
}
.pl-geo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
}
.pl-geo-text span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.pl-geo-text strong {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pl-geo-pitch {
  grid-column: 3 / 4;
  grid-row: 2 / 4;
  background: var(--pl-pitch);
}
.pl-geo-gold {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
  background: var(--pl-gold);
}
.pl-geo-shape {
  background:
    radial-gradient(circle at 30% 30%, #fff6 0 18%, transparent 19%),
    radial-gradient(circle at 70% 70%, #0d5c3d 0 22%, transparent 23%),
    var(--pl-gold);
}
.pl-geo-photo-wide {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
  background: #111;
}
.pl-geo-panel {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
  background: var(--pl-green-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 14px;
}
.pl-geo-panel p {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #7aa3d9;
}
.pl-geo-panel strong {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pl-geo-panel small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.pl-geo-teal {
  grid-column: 4 / 5;
  grid-row: 3 / 5;
  background: var(--pl-mint-deep);
}
.pl-geo-circle {
  display: none;
}

.pl-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d6fbc;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  margin-bottom: 4px;
}

/* Hero strip */
.pl-hero-strip {
  border-top: 1px solid var(--pl-line);
  background: #fff;
}
.pl-hero-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.pl-hero-strip-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--pl-line);
  color: var(--pl-pitch);
}
.pl-hero-strip-inner > div:nth-child(odd) {
  border-right: 1px solid var(--pl-line);
}
.pl-hero-strip-inner strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pl-ink);
  line-height: 1.1;
}
.pl-hero-strip-inner span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-muted);
}

/* Sections */
.pl-section {
  position: relative;
  z-index: 1;
  padding: 64px 0;
}
.pl-section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.pl-section-head-center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto  auto;
  margin-bottom: 36px;
}
.pl-section-label {
  margin: 0 0 8px;
  color: var(--pl-coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pl-section-head h2,
.pl-section-head-center h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pl-ink);
}
.pl-section-lead {
  margin: 0;
  color: var(--pl-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 48ch;
}
.pl-section-head-center .pl-section-lead {
  margin-inline: auto;
}

/* Portals */
.pl-portals {
  background: #fff;
}
.pl-portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.pl-portal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--pl-radius);
  border: 1px solid var(--pl-line);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pl-portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--pl-green) 35%, var(--pl-line));
}
.pl-portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pl-portal-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3f7fd;
  color: var(--pl-pitch);
}
.pl-portal-card.tone-coral .pl-portal-icon {
  background: var(--pl-coral-soft);
  color: var(--pl-coral);
}
.pl-portal-card.tone-gold .pl-portal-icon {
  background: #fef9c3;
  color: #a16207;
}
.pl-portal-card.tone-pitch .pl-portal-icon {
  background: #021a3a;
  color: #7aa3d9;
}
.pl-portal-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--pl-muted);
  letter-spacing: 0.06em;
}
.pl-portal-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--pl-coral);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pl-portal-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pl-portal-audience {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--pl-muted);
}
.pl-portal-desc {
  margin: 4px 0 8px;
  font-size: 14px;
  color: var(--pl-muted);
  line-height: 1.5;
}
.pl-portal-card ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pl-portal-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-portal-card li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pl-green);
}
.pl-portal-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--pl-pitch);
}

/* Gallery / pulse */
.pl-pulse {
  background: linear-gradient(180deg, #021a3a 0%, #0d5c3d 55%, #0b3d2e 100%);
  color: #fff;
  overflow: hidden;
}
.pl-pulse .pl-section-label {
  color: #7aa3d9;
}
.pl-pulse h2 {
  color: #fff;
}
.pl-pulse .pl-section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.pl-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 72vw);
  gap: 14px;
  overflow-x: auto;
  padding: 8px max(20px, calc((100% - var(--pl-max)) / 2 + 20px)) 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pl-gallery-card {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  background: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.pl-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.pl-gallery-card:hover img {
  transform: scale(1.04);
}
.pl-gallery-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(5, 46, 26, 0.92));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Story */
.pl-story {
  background: #fff;
}
.pl-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.pl-story-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 280px;
  background: #111;
}
.pl-story-media > img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.pl-story-float {
  display: none;
}
.pl-story-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  font-weight: 800;
}
.pl-story-badge span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 999px;
  background: #e8f0fb;
  color: var(--pl-pitch);
  font-size: 10px;
}
.pl-story-badge strong {
  color: var(--pl-coral);
  letter-spacing: 0.08em;
}
.pl-story-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.pl-story-copy > p {
  margin: 0 0 18px;
  color: var(--pl-muted);
  font-size: 15px;
  line-height: 1.6;
}
.pl-check-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pl-check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: var(--pl-ink);
}
.pl-check-list svg {
  flex-shrink: 0;
  color: var(--pl-green);
  margin-top: 1px;
}

/* Journey */
.pl-journey {
  background: var(--pl-sand);
}
.pl-journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.pl-journey-card {
  padding: 24px 22px;
  border-radius: var(--pl-radius);
  background: #fff;
  border: 1px solid var(--pl-line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.pl-journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--pl-pitch);
}
.pl-journey-top span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pl-coral);
}
.pl-journey-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pl-journey-card p {
  margin: 0;
  color: var(--pl-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* CTA */
.pl-cta {
  position: relative;
  z-index: 1;
  padding: 48px 0 64px;
  background:
    linear-gradient(135deg, #021a3a 0%, #0d5c3d 50%, #14532d 100%);
  color: #fff;
  overflow: hidden;
}
.pl-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.pl-cta-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  max-height: 280px;
  background: #111;
}
.pl-cta-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.pl-cta-geo {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, var(--pl-coral), var(--pl-gold));
  opacity: 0.9;
  transform: rotate(12deg);
}
.pl-cta-copy .pl-section-label {
  color: #7aa3d9;
}
.pl-cta-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.pl-cta-copy > p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  max-width: 42ch;
}
.pl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.pl-footer {
  position: relative;
  z-index: 1;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 28px;
}
.pl-footer-inner {
  display: grid;
  gap: 24px;
}
.pl-footer-brand img {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(1.05);
}
.pl-footer-brand p {
  margin: 0;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.55;
}
.pl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.pl-footer-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.pl-footer-links a:hover {
  color: #7aa3d9;
}
.pl-copyright {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══════════════ Breakpoints ═══════════════ */

@media (min-width: 640px) {
  .pl-hero-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .pl-hero-strip-inner > div {
    border-bottom: 0;
    border-right: 1px solid var(--pl-line);
    padding: 20px 16px;
  }
  .pl-hero-strip-inner > div:last-child {
    border-right: 0;
  }
  .pl-hero-strip-inner > div:nth-child(odd) {
    border-right: 1px solid var(--pl-line);
  }
  .pl-portal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pl-gallery {
    grid-auto-columns: minmax(260px, 32vw);
  }
  .pl-journey-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pl-cta-inner {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .pl-story-float {
    display: block;
    position: absolute;
    right: -8%;
    bottom: -8%;
    width: 42%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  }
  .pl-story-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 900px) {
  .pl-nav-links {
    display: flex;
  }
  .pl-nav-signin {
    display: inline-flex;
  }
  .pl-menu-btn {
    display: none;
  }
  .pl-drawer,
  .pl-drawer-backdrop {
    display: none !important;
  }

  .pl-hero {
    padding-top: 20px;
  }
  .pl-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    padding-bottom: 48px;
    min-height: min(640px, calc(100dvh - 180px));
  }
  .pl-geo-board {
    min-height: 440px;
  }
  .pl-section {
    padding: 88px 0;
  }
  .pl-section-head:not(.pl-section-head-center) {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 32px;
  }
  .pl-portal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pl-story-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .pl-story-media {
    min-height: 420px;
  }
  .pl-story-media > img {
    min-height: 420px;
  }
  .pl-gallery {
    grid-auto-columns: minmax(280px, 22vw);
  }
  .pl-footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .pl-copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .pl-container {
    width: min(var(--pl-max), calc(100% - 64px));
  }
  .pl-nav-inner {
    width: min(var(--pl-max), calc(100% - 64px));
  }
  .pl-hero-copy h1 {
    font-size: 4.25rem;
  }
  .pl-geo-board {
    gap: 12px;
    border-radius: 8px;
  }
  .pl-geo-cell {
    border-radius: 18px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .pl-btn,
  .pl-portal-card,
  .pl-gallery-card img,
  .pl-drawer {
    transition: none;
  }
  .pl-btn:hover,
  .pl-portal-card:hover {
    transform: none;
  }
}
/* ==========================================================================
   Pamoja Admin PWA — Techsavanna theme
   Clean light shell + brand blue CTAs (#0747a8)
   Flat grey canvas, white cards, soft-blue active nav, blue primary actions
   ========================================================================== */

:root {
  /* ── Techsavanna blue product system ── */
  --primary: #0747a8;
  --primary-30: #05357d;
  --primary-40: #e8f0fb;
  --primary-50: #3d6fbc;
  --primary-60: #7aa3d9;
  --primary-hover: #05357d;
  --primary-soft: #e8f0fb;
  --primary-soft-2: #f3f7fd;
  --active-edge: #0747a8;

  --secondary: #4b5563;
  --secondary-40: #374151;
  --secondary-50: #1f2937;

  /* Semantic success stays distinct from brand (status chips only) */
  --success: #0f766e;
  --success-40: #ccfbf1;
  --success-50: #0f766e;
  --success-60: #14b8a6;

  --danger: #ef4444;
  --danger-40: #fee2e2;
  --danger-soft: #fef2f2;

  --warning: #d97706;
  --warning-40: #fef3c7;
  --warning-50: #f59e0b;

  --info: #0ea5e9;
  --info-40: #e0f2fe;
  --info-soft: #f0f9ff;

  --white: #ffffff;
  --dark: #0f172a;
  --ink: #1f2937;
  --heading: #111827;
  --muted: #6b7280;
  --muted-40: #4b5563;
  --muted-50: #6b7280;
  --muted-60: #9ca3af;

  /* Clean light ERP canvas (no multi-colour wash) */
  --body-bg: #f5f6f8;
  --body-bg-alt: #fafbfc;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-alt: #fafbfc;

  --border: #e5e7eb;
  --border-40: #e5e7eb;
  --border-50: #e5e7eb;
  --border-60: #e8eaed;
  --border-70: #d1d5db;
  --border-80: #e5e7eb;
  --border-90: #f3f4f6;
  --divider: #eef0f3;

  --dark-body-bg: #09090b;
  --dark-card-bg: #111113;
  --dark-border: rgba(255, 255, 255, 0.12);
  --dark-body-color: #a1a1aa;
  --dark-btn-bg: #1a1a1c;

  --radius: 12px;
  --radius-sm: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
  --transition: all 0.15s ease;

  --nav-w: 248px;
  --top-h: 64px;
  /* Inter — clear UI face; product hierarchy stays bold & readable */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Preferred product scale (previous look) + light polish */
  --fs-2xs: 0.75rem; /* 12px — pills / meta */
  --fs-xs: 0.8125rem; /* 13px — hints, labels */
  --fs-sm: 0.875rem; /* 14px — nav, table body */
  --fs-base: 0.9375rem; /* 15px — default body */
  --fs-md: 1rem; /* 16px — brand / topbar */
  --fs-lg: 1.125rem; /* 18px — section / card titles */
  --fs-xl: 1.5rem; /* 24px — page titles */
  --fs-2xl: 1.75rem; /* 28px — KPI figures */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --portal-accent: var(--primary);
  --portal-accent-soft: var(--primary-soft);

  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--body-bg);
  line-height: 1.55;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

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

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--body-bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ========== Shell layout — clean light ERP ========== */
.app-shell {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  min-height: 100dvh;
  background: var(--body-bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: var(--nav-w);
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 40;
  transition: var(--transition);
}

.sidebar-brand {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-60);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .sidebar-logo {
  width: 48px;
  height: 56px;
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  flex-shrink: 0;
  padding: 4px 6px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 166, 81, 0.35);
  /* Dark plate so the white AFCON trophy mark remains legible */
  background: linear-gradient(160deg, #0b1220 0%, #111827 55%, #021a3a 100%);
}

.sidebar-brand-text {
  min-width: 0;
}

.sidebar-brand h1 {
  font-size: var(--fs-md);
  font-weight: var(--fw-extrabold);
  color: var(--heading);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.topbar-title {
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--heading);
  letter-spacing: -0.015em;
}

.nav-section,
.nav-section-label {
  padding: 18px 20px 6px;
  font-size: var(--fs-2xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-40);
  font-weight: var(--fw-bold);
}

.nav-section-label {
  margin-top: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted-40);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: background 0.12s ease, color 0.12s ease;
  border: 1px solid transparent;
  box-shadow: none;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  background: #f3f4f6;
  color: var(--heading);
}

/* Active nav: soft brand-blue pill, bold label */
.nav-link.active {
  background: var(--primary-soft);
  color: var(--success-50);
  box-shadow: none;
  font-weight: var(--fw-bold);
  border-color: transparent;
}

.portal-shell .nav-link.active {
  background: var(--primary-soft);
  color: var(--success-50);
  font-weight: var(--fw-bold);
  box-shadow: none;
}

.portal-shell-supplier .nav-link:hover {
  background: #f3f4f6;
  color: var(--heading);
}

.nav-link .nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.92;
}

.nav-link .nav-icon svg {
  display: block;
}

.nav-link .nav-label {
  min-width: 0;
  line-height: 1.3;
}

.nav-link .icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 15px;
  opacity: 0.95;
  flex-shrink: 0;
}

.sidebar-foot {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.sidebar-foot .user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-foot .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-50), var(--primary-30));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-foot .user-meta {
  font-size: var(--fs-xs);
  line-height: 1.4;
  min-width: 0;
}

.sidebar-foot .user-meta strong {
  display: block;
  color: var(--heading);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-foot .user-meta span {
  color: var(--muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
  background: transparent;
}

/* Top header — clean white ERP bar */
.topbar {
  min-height: var(--top-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--body-bg);
  border: 1px solid var(--border-60);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  min-width: min(320px, 36vw);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

.topbar-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--ink);
}

.topbar-search input::placeholder {
  color: var(--muted);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-60);
  background: var(--white);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted-40);
  transition: var(--transition);
  position: relative;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-40);
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid #fff;
}

.page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 24px 28px 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-body {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 8px;
}

/* ========== Primitives ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.35;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-gold,
.btn-warning {
  background: var(--warning);
  color: #2b2a3f;
}

.btn-gold:hover:not(:disabled),
.btn-warning:hover:not(:disabled) {
  filter: brightness(0.96);
}

.btn-ghost {
  background: var(--white);
  color: var(--secondary);
  border-color: var(--border-50);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-40);
}

.btn-ghost.light {
  background: transparent;
  color: var(--muted-40);
  border-color: var(--border-60);
}

.btn-danger {
  background: var(--danger-40);
  color: var(--danger);
  border-color: transparent;
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn-success {
  background: var(--success-40);
  color: var(--success-50);
}

.btn-sm {
  padding: 7px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: 7px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.card.elevated {
  box-shadow: var(--shadow);
}

.card.bordered {
  border-color: var(--border-60);
  box-shadow: none;
}

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

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.row.between {
  justify-content: space-between;
}

.page-header {
  margin-bottom: 22px;
}

.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.page-header .breadcrumb span.sep {
  opacity: 0.5;
}

.page-header .breadcrumb strong {
  color: var(--primary-30);
  font-weight: var(--fw-semibold);
}

/* Strong page titles — previous preferred weight, slightly tighter tracking */
.page-header h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--heading);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.page-header p {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-top: 6px;
  max-width: 64ch;
  line-height: 1.5;
}

/* Stat cards */
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card::after {
  content: '';
  position: absolute;
  right: -12px;
  top: -12px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-40);
  opacity: 0.9;
}

.stat-card .label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--muted-40);
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}

.stat-card .value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  margin-top: 6px;
  letter-spacing: -0.03em;
  color: var(--heading);
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-card .hint {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--muted);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.stat-card.tone-success::after {
  background: var(--success-40);
}
.stat-card.tone-warning::after {
  background: var(--warning-40);
}
.stat-card.tone-danger::after {
  background: var(--danger-40);
}
.stat-card.tone-info::after {
  background: var(--info-soft);
}

/* Badges — keep previous bold chips, slightly tighter padding */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  text-transform: capitalize;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.badge-pending,
.badge-pending_review,
.badge-pending_approval,
.badge-changes_requested,
.badge-uploaded,
.badge-hold,
.badge-under_review,
.badge-submitted,
.badge-requested,
.badge-processing {
  background: var(--warning-40);
  color: #c27803;
}

.badge-verified,
.badge-published,
.badge-confirmed,
.badge-settled,
.badge-approved,
.badge-accepted,
.badge-fulfilled,
.badge-ready,
.badge-paid,
.badge-completed {
  background: var(--success-40);
  color: var(--success-50);
}

.badge-suspended,
.badge-draft,
.badge-out_of_stock,
.badge-unpublished,
.badge-in_escrow,
.badge-fallback {
  background: #f1f5f9;
  color: var(--secondary);
}

.badge-blacklisted,
.badge-cancelled,
.badge-rejected,
.badge-failed,
.badge-refunded {
  background: var(--danger-40);
  color: var(--danger);
}

.badge-featured {
  background: var(--warning-40);
  color: #c27803;
}

.badge-info {
  background: var(--primary-40);
  color: var(--primary);
}

.badge-active {
  background: var(--success-40);
  color: var(--success-50);
}

.badge-inactive {
  background: #f1f5f9;
  color: var(--secondary);
}

/* Portal flash / mutation feedback */
.portal-flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.portal-flash-error {
  background: var(--danger-40, #fee2e2);
  color: var(--danger, #b91c1c);
  border-color: color-mix(in srgb, var(--danger, #b91c1c) 25%, transparent);
}
.portal-flash-success {
  background: var(--success-40, #e8f0fb);
  color: var(--success-50, #166534);
  border-color: color-mix(in srgb, var(--success-50, #166534) 25%, transparent);
}
.portal-flash-info {
  background: var(--primary-40, #dbeafe);
  color: var(--primary, #1d4ed8);
  border-color: color-mix(in srgb, var(--primary, #1d4ed8) 25%, transparent);
}
.portal-flash-dismiss {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.75;
}
.portal-flash-dismiss:hover {
  opacity: 1;
}

/* Help panels & empty states */
.help-panel {
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.55;
}

.help-panel-info {
  background: var(--primary-40);
  border: 1px solid #c5d9fc;
  color: var(--secondary-40);
}

.help-panel-warn {
  background: var(--warning-40);
  border: 1px solid #ffd9b0;
  color: #8a5a12;
}

.help-panel-success {
  background: var(--success-40);
  border: 1px solid #b8efd4;
  color: #0a6b45;
}

.help-panel-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: inherit;
}

.help-panel-body p:last-child {
  margin-bottom: 0;
}

.help-list,
.help-steps {
  margin: 0;
  padding-left: 18px;
}

.help-list li,
.help-steps li {
  margin-bottom: 6px;
}

.help-list li:last-child,
.help-steps li:last-child {
  margin-bottom: 0;
}

.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--primary-40);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.empty-state h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 6px;
}

.empty-state p {
  font-size: 13px;
  margin: 0 auto;
  max-width: 36ch;
  line-height: 1.5;
}

.empty-state-action {
  margin-top: 14px;
}

.section-heading {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--heading);
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  letter-spacing: -0.015em;
}

.section-label {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-40);
  margin-bottom: 6px;
}

.inline-note {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: 8px 10px;
  background: var(--body-bg);
  border-radius: 8px;
  color: var(--muted-40);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Compact stat pills (bookings, payouts, marketplace) */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border-60);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.stat-pill-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.stat-pill strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

/* Supplier onboarding wizard */
.wizard-progress-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--body-bg);
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-50));
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--body-bg);
  border: 1px solid var(--border-60);
  font-size: 12px;
  color: var(--muted-40);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.wizard-step:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.wizard-step.done {
  background: var(--success-40);
  border-color: #b8efd4;
  color: var(--success-50);
  font-weight: 600;
}

.wizard-step.current {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-40);
  font-weight: 600;
}

.wizard-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.wizard-step.done .wizard-step-num {
  background: rgba(0, 182, 155, 0.2);
}

.wizard-step.current .wizard-step-num {
  background: rgba(22, 163, 74, 0.15);
}

.wizard-step-label {
  white-space: nowrap;
}

/* Required docs checklist */
.doc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-90);
  font-size: 13px;
}

.doc-checklist li:last-child {
  border-bottom: none;
}

.doc-checklist li.done .doc-check-mark {
  color: var(--success-50);
  background: var(--success-40);
}

.doc-checklist li.missing .doc-check-mark {
  color: var(--muted);
  background: var(--body-bg);
}

.doc-check-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.doc-checklist.compact li {
  padding: 6px 0;
}

/* Onboarding review summary */
.review-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 8px;
}

.review-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-90);
}

.review-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Verification review cards */
.review-card {
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow);
}

.verify-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.verify-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--body-bg);
  border: 1px solid var(--border-60);
  font-size: 12px;
  color: var(--muted-40);
}

.verify-step.done {
  background: var(--success-40);
  border-color: #b8efd4;
  color: var(--success-50);
  font-weight: 600;
}

.verify-step.current {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-40);
  font-weight: 600;
}

.verify-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
}

.verify-step.done .verify-step-num {
  background: rgba(0, 182, 155, 0.2);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-90);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-90);
  font-size: 13px;
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list li span {
  color: var(--muted);
  font-size: 12px;
}

.review-detail {
  padding-top: 4px;
  border-top: 1px solid var(--border-90);
}

/* Multi-portal shell — brand blue active */
.portal-shell .nav-link.active {
  background: var(--primary-soft);
  color: var(--success-50);
  font-weight: var(--fw-bold);
}

/* Supplier + Government share the product type scale */
.portal-shell-supplier,
.portal-shell-government {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.portal-shell-supplier .page-header h2,
.portal-shell-government .page-header h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
}

.portal-shell-supplier .stat-card .value,
.portal-shell-government .stat-card .value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  font-variant-numeric: tabular-nums;
}
.priority-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.priority-chip {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--body-bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.priority-chip strong {
  font-size: 13px;
}
.priority-chip span {
  font-size: 11px;
  color: var(--muted);
}
.priority-chip.tone-success {
  background: var(--success-40);
}
.priority-chip.tone-warning {
  background: var(--warning-40);
}
.priority-chip.tone-info {
  background: var(--primary-40);
}
.funnel-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  margin-top: 16px;
  padding-top: 8px;
}
.funnel-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.funnel-bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, #05357d, #021a3a);
  border-radius: 6px 6px 2px 2px;
  min-height: 8px;
}
.badge-strategic,
.badge-official,
.badge-preferred,
.badge-registered,
.badge-active,
.badge-ended {
  background: var(--primary-40);
  color: var(--primary);
}
.land-portals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Portal feature navigator */
.nav-group {
  margin: 4px 0 8px;
}
.nav-group-toggle {
  width: calc(100% - 20px);
  margin: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.nav-group-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
}
.nav-group-count {
  opacity: 0.7;
  font-size: 10px;
}
.nav-link-sub {
  margin-left: 8px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  align-items: flex-start !important;
}
.nav-feat-id {
  min-width: 18px;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.7;
  margin-top: 2px;
}
.nav-feat-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.feat-workspace .feat-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feat-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--body-bg);
  color: var(--muted-40);
  border: 1px solid var(--border-60);
}
.feat-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-90);
}
.feat-search {
  border: 1px solid var(--border-50);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 200px;
  font: inherit;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--body-bg);
  border: 1px solid var(--border-60);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.cal-cell.busy {
  background: var(--warning-40);
  border-color: #ffd9b0;
}
.cal-cell small {
  font-size: 9px;
  font-weight: 700;
  color: var(--warning);
}
.badge-protected {
  background: var(--success-40);
  color: var(--success-50);
}
.badge-healthy,
.badge-matched,
.badge-operational,
.badge-completed {
  background: var(--success-40);
  color: var(--success-50);
}
.badge-degraded,
.badge-timing_lag,
.badge-investigating,
.badge-mitigating,
.badge-delayed,
.badge-in_progress {
  background: var(--warning-40);
  color: #9a5b00;
}
.badge-critical,
.badge-halted {
  background: var(--danger-40);
  color: var(--danger);
}
.badge-shed_first,
.badge-escalated,
.badge-open,
.badge-default_deny {
  background: var(--warning-40);
  color: #c27803;
}
@media (max-width: 900px) {
  .land-portals {
    grid-template-columns: 1fr;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

/* NSE-style list card — white surface + light header */
.table-panel {
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-panel-header {
  background: #ffffff;
  color: var(--heading);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.table-panel-header h3,
.table-panel-header .table-panel-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--heading);
  letter-spacing: -0.015em;
}

.table-panel-header .table-panel-sub {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--muted);
  margin-top: 2px;
}

.table-panel .table-wrap {
  box-shadow: none;
  border-radius: 0;
}

.table-panel table.data th {
  background: #f8fafc;
  color: var(--muted);
}

/* Search + pagination for data tables */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbfc;
}

.table-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 420px;
}

.table-search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.table-search input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 9px 36px 9px 36px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.table-search input::placeholder {
  color: #94a3b8;
}

.table-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.table-search-clear {
  position: absolute;
  right: 8px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.table-search-clear:hover {
  background: #cbd5e1;
}

.table-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.table-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fafbfc;
  font-size: 13px;
  color: #475569;
}

.table-pagination-meta strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.table-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.table-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12.5px;
}

.table-page-size select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--ink);
}

.table-page-indicator {
  font-size: 12.5px;
  color: #64748b;
  min-width: 88px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.table-page-indicator strong {
  color: #0f172a;
}

/* Toolbar outside table-panel (plain table-wrap pages) */
.table-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-card .table-wrap {
  box-shadow: none;
  border-radius: 0;
}

/* Tables — previous readable weight, clearer headers */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

table.data th {
  text-align: left;
  padding: 13px 16px;
  background: var(--body-bg-alt);
  color: var(--muted-40);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: var(--fw-bold);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-90);
  vertical-align: middle;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

table.data td strong {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background: #f8fafc;
}

/* Status pills — ONLINE / OFFLINE Material style */
.status-pill,
.status-pill-online,
.status-pill-offline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill-online {
  background: #e8faf0;
  color: #0d9f6e;
}

.status-pill-offline {
  background: #f1f5f9;
  color: #64748b;
}

.status-pill-paid,
.status-pill-completed {
  background: #e8faf0;
  color: #0d9f6e;
}

.status-pill-pending,
.status-pill-issued,
.status-pill-processing,
.status-pill-requested {
  background: #fff7ed;
  color: #c27803;
}

.status-pill-failed,
.status-pill-overdue,
.status-pill-void {
  background: #fde8e8;
  color: #c0392b;
}

.status-pill-mpesa {
  background: #e8f8ef;
  color: #0d7a4f;
}

.status-pill-card {
  background: #eef2ff;
  color: #4338ca;
}

.status-pill-bank {
  background: #f0f9ff;
  color: #0369a1;
}

/* Chart cards — framed dashboard panels (standard analytics look) */
.chart-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.chart-card-lg {
  min-height: 380px;
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}

.chart-card-header strong {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.chart-card-header span {
  font-size: 12px;
  color: var(--muted);
}

.chart-kpi-inline {
  display: flex;
  gap: 20px;
  text-align: right;
}

.chart-kpi-inline .muted {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-kpi-inline strong {
  font-size: 16px;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}

.chart-kpi-inline .text-success {
  color: #05357d;
}

.bar-chart {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.bar-chart-standard {
  gap: 10px;
}

.bar-chart-frame {
  flex: 1;
  min-height: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
}

.bar-chart-svg {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
}

.bar-chart-plot-bg {
  fill: #ffffff;
}

.bar-chart-grid {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.bar-chart-axis {
  stroke: #cbd5e1;
  stroke-width: 1.25;
}

.bar-chart-y-label {
  font-size: 11px;
  fill: #64748b;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.bar-chart-x-label {
  font-size: 11px;
  fill: #64748b;
  font-family: inherit;
}

.bar-chart-x-label.is-hover {
  fill: #0f172a;
  font-weight: 600;
}

.bar-rect {
  transition: opacity 0.12s ease, fill 0.12s ease;
}

.bar-group.active .bar-rect {
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}

.bar-chart-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  justify-content: center;
  font-size: 12.5px;
  color: #475569;
  padding: 2px 0 0;
}

.bar-chart-legend-row .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -2px;
}

/* Always-visible value strip under chart */
.bar-chart-value-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  color: #334155;
  min-height: 42px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bar-chart-value-footer.is-hover {
  background: #eff6ff;
  border-color: #bbf7d0;
}

.bar-chart-period-label {
  font-weight: 700;
  color: #0f172a;
  min-width: 72px;
}

.bar-chart-value-pair {
  font-variant-numeric: tabular-nums;
  color: #475569;
}

.bar-chart-value-pair strong {
  color: #0f172a;
  font-weight: 600;
  margin-right: 4px;
}

.bar-chart-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  min-height: 220px;
}

/* Legacy CSS bars (analytics fallbacks) */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding-top: 8px;
  flex: 1;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #60a5fa 0%, var(--primary) 100%);
  min-height: 0;
  transition: height 0.35s ease;
}

.chart-bar.tone-accent {
  background: linear-gradient(180deg, #7aa3d9 0%, var(--primary) 100%);
}

.chart-bar.tone-success {
  background: linear-gradient(180deg, #3d6fbc 0%, var(--success-50) 100%);
}

.chart-bar-label {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chart-bar-value {
  font-size: 10px;
  font-weight: 600;
  color: var(--heading);
}

.h-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h-bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 140px) 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.h-bar-track {
  height: 14px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.h-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #3b82f6;
  min-width: 2px;
  transition: width 0.25s ease;
}

/* Stat cards — NSE KPI tiles */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

.stat-card .value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.period-toggle {
  display: inline-flex;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--border-60);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}

.period-toggle button {
  border: none;
  background: transparent;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.period-toggle button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
}

.period-toggle button:hover:not(.active) {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 900px) {
  .quick-link-grid {
    grid-template-columns: 1fr;
  }
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-60);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: inherit;
}

.quick-link-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.quick-link-card strong {
  font-size: 13px;
  color: var(--heading);
}

.quick-link-card span {
  font-size: 12px;
  color: var(--muted);
}

.avatar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-cell .avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-50), var(--primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  font-size: 13px;
}

.detail-grid .label,
.detail-field .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.detail-field-value {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--heading);
  line-height: 1.4;
  word-break: break-word;
}

.detail-field.span-2 {
  grid-column: 1 / -1;
}

.detail-section {
  border: 1px solid var(--border-60);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-60);
}

.detail-section-head h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--heading);
}

.detail-section-body {
  padding: 14px;
}

.money-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-60);
  border-radius: 10px;
  overflow: hidden;
}

.money-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-90);
  background: #fff;
}

.money-breakdown-row:last-child {
  border-bottom: none;
}

.money-breakdown-row.tone-muted {
  color: var(--muted-40);
}

.money-breakdown-row.tone-danger strong {
  color: var(--danger);
}

.money-breakdown-row.tone-success {
  background: #f0fdf6;
}

.money-breakdown-row.tone-success strong {
  color: #059669;
  font-size: 15px;
}

.money-breakdown-row.tone-strong strong {
  color: var(--heading);
  font-size: 15px;
}

.detail-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-timeline li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  position: relative;
  padding-bottom: 14px;
}

.detail-timeline li:last-child {
  padding-bottom: 0;
}

.detail-timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.detail-timeline li.done:not(:last-child)::before {
  background: #7aa3d9;
}

.detail-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  margin-top: 2px;
  z-index: 1;
}

.detail-timeline li.done .detail-timeline-dot {
  border-color: #05357d;
  background: #05357d;
  box-shadow: 0 0 0 3px #e8f0fb;
}

.detail-timeline li.current .detail-timeline-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.detail-timeline-content strong {
  font-size: 13px;
  color: var(--heading);
}

.detail-timeline-detail {
  font-size: 12.5px;
  color: var(--muted-40);
  margin-top: 2px;
}

.detail-timeline-at {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.detail-note {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-note.tone-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bbf7d0;
}

.detail-note.tone-warn {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.detail-note.tone-success {
  background: #f3f7fd;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Clickable data rows open detail sheets */
table.data tbody tr.row-clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}

table.data tbody tr.row-clickable:hover {
  background: #f1f5f9;
}

table.data tbody tr.row-clickable:hover td {
  color: var(--heading);
}

.modal.modal-sheet.modal-lg {
  width: min(760px, calc(100vw - 32px));
  max-height: min(94dvh, 900px);
}

.modal.modal-sheet.modal-xl {
  width: min(960px, calc(100vw - 32px));
  max-height: min(94dvh, 920px);
}

.modal.modal-sheet.modal-xxl {
  width: min(1120px, calc(100vw - 24px));
  max-height: min(96dvh, 960px);
}

/* Listing / product editor — sectioned form inside large modal */
.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted-40);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.form-tab:hover {
  border-color: var(--primary);
  color: var(--heading);
}

.form-tab.active {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--success-50);
}

.form-section-title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-40);
  margin: 4px 0 10px;
}

.form-completeness {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--body-bg-alt);
  margin-bottom: 14px;
}

.form-completeness-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.form-completeness-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-30));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.form-completeness strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
  min-width: 3.5rem;
  text-align: right;
}

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

.form-type-card {
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  transition: var(--transition);
}

.form-type-card:hover {
  border-color: var(--primary);
}

.form-type-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.form-type-card strong {
  display: block;
  font-size: 14px;
  color: var(--heading);
  margin-bottom: 4px;
}

.form-type-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.inline-alloc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.inline-alloc-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
}

@media (max-width: 720px) {
  .form-type-cards {
    grid-template-columns: 1fr;
  }
  .inline-alloc-row {
    grid-template-columns: 1fr;
  }
}

.hint-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.field .req {
  color: var(--danger);
  margin-left: 2px;
}

.thread-pane {
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--body-bg);
  border-radius: 10px;
  border: 1px solid var(--border-60);
}

.thread-bubble {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  background: #fff;
  border: 1px solid var(--border-60);
}

.thread-bubble.from-supplier {
  background: var(--primary-soft);
  border-color: transparent;
  align-self: flex-end;
  max-width: 92%;
}

.thread-bubble.from-ops {
  background: #fff;
  max-width: 92%;
}

.thread-bubble.from-system {
  background: #f8fafc;
  color: var(--muted-40);
  font-size: 12.5px;
  max-width: 100%;
}

.thread-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--heading);
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border-50);
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  outline: none;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
}

/* Callouts / alerts */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
}

.callout.info {
  background: var(--primary-40);
  border: 1px solid #c5d9fc;
  color: var(--secondary-40);
}

.callout.warn {
  background: var(--warning-40);
  border: 1px solid #ffd9b0;
  color: #8a5a12;
}

.callout.success {
  background: var(--success-40);
  border: 1px solid #b8efd4;
  color: #0a6b45;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty .emoji {
  font-size: 36px;
  margin-bottom: 8px;
}

/* Progress */
.progress-track {
  height: 8px;
  background: var(--border-60);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--info));
  border-radius: var(--radius-pill);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-50);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  color: var(--muted-40);
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22);
}

/* Ad preview */
.ad-preview {
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  box-shadow: var(--shadow-sm);
}

.ad-preview .cta {
  background: #fff;
  color: var(--heading);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 25, 32, 0.45);
  display: grid;
  place-items: end center;
  z-index: 100;
  padding: 0;
  backdrop-filter: blur(2px);
}

.modal {
  background: #fff;
  width: min(560px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 28px;
  animation: slideUp 0.22s ease;
  box-shadow: var(--shadow);
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border-50);
  border-radius: 4px;
  margin: 0 auto 14px;
}

/* Professional confirm / prompt dialogs (replace window.prompt / confirm) */
.app-dialog-backdrop {
  place-items: center;
  padding: 24px 16px;
  z-index: 200;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: dialogBackdropIn 0.18s ease;
}

@keyframes dialogBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90dvh, 580px);
  border-radius: 18px;
  padding: 0 0 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.2),
    0 8px 16px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: dialogPanelIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-dialog-accent {
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--primary-50) 55%,
    var(--primary-60)
  );
}

.app-dialog-danger .app-dialog-accent {
  background: linear-gradient(90deg, #c0392b, var(--danger), #ff8a7a);
}

.app-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.app-dialog-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.app-dialog-title-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 2px;
}

.app-dialog-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--heading);
  line-height: 1.3;
}

.app-dialog-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-dialog-danger .app-dialog-eyebrow {
  color: var(--danger);
}

/* Soft icon badges */
.app-dialog-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--portal-accent, var(--primary));
  background: var(--portal-accent-soft, var(--primary-soft));
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.08);
}

.app-dialog-icon-confirm {
  color: var(--primary);
  background: var(--primary-soft);
}

.app-dialog-icon-prompt {
  color: var(--portal-accent, var(--primary));
  background: var(--portal-accent-soft, var(--primary-soft));
}

.app-dialog-icon-danger {
  color: var(--danger);
  background: var(--danger-soft);
  box-shadow: inset 0 0 0 1px rgba(231, 76, 60, 0.1);
}

.app-dialog-x {
  flex-shrink: 0;
  min-width: 34px;
  height: 34px;
  border-radius: 10px !important;
  color: var(--muted) !important;
  border-color: transparent !important;
  background: transparent !important;
}

.app-dialog-x:hover:not(:disabled) {
  background: var(--body-bg-alt) !important;
  color: var(--heading) !important;
  border-color: transparent !important;
}

.app-dialog-message {
  margin: 14px 20px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-40);
}

.app-dialog-body {
  margin-top: 4px;
}

.app-dialog-body .app-dialog-message {
  margin-bottom: 0;
}

.app-dialog .field,
.app-dialog-field {
  margin: 14px 20px 0;
}

.app-dialog .field label,
.app-dialog-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.01em;
}

.app-dialog .field input,
.app-dialog .field select,
.app-dialog .field textarea,
.app-dialog-field input,
.app-dialog-field select,
.app-dialog-field textarea {
  border-radius: 10px;
  padding: 11px 14px;
  border-color: var(--border-60);
  background: var(--body-bg-alt);
  font-size: 14.5px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.app-dialog .field input:hover,
.app-dialog .field select:hover,
.app-dialog .field textarea:hover,
.app-dialog-field input:hover,
.app-dialog-field select:hover,
.app-dialog-field textarea:hover {
  border-color: var(--border-70);
  background: var(--white);
}

.app-dialog .field input:focus,
.app-dialog .field select:focus,
.app-dialog .field textarea:focus,
.app-dialog-field input:focus,
.app-dialog-field select:focus,
.app-dialog-field textarea:focus {
  background: var(--white);
  border-color: var(--portal-accent, var(--primary));
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.app-dialog-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 20px 0;
  margin-top: 6px;
  border-top: 1px solid transparent;
}

.app-dialog-footer::before {
  content: '';
  flex-basis: 100%;
  height: 0;
  margin: -10px 0 6px;
  border-top: 1px solid var(--divider);
  order: -1;
}

.app-dialog-footer .btn {
  min-width: 108px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 18px;
}

.app-dialog-footer .btn-primary {
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22);
  background: var(--primary);
}

.app-dialog-footer .btn-primary:hover:not(:disabled) {
  filter: brightness(0.95);
}

.app-dialog-footer .btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(231, 76, 60, 0.28);
}

.app-dialog-footer .btn-danger:hover:not(:disabled) {
  filter: brightness(0.95);
  background: var(--danger);
  color: #fff;
}

/* Form / content modals — flex shell: header + scroll body + fixed footer */
.modal.modal-sheet {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: min(92dvh, 780px);
  overflow: hidden;
  padding: 0;
}

.modal.modal-sheet .app-dialog-header {
  flex-shrink: 0;
  padding: 16px 22px 14px;
  border-bottom: 1px solid var(--divider);
  background: #fff;
}

.modal.modal-sheet .app-dialog-header h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.modal.modal-sheet .app-dialog-title-row {
  flex: 1;
  min-width: 0;
}

.app-dialog-header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.app-dialog-header-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 22px 20px;
  -webkit-overflow-scrolling: touch;
}

.modal-body .field {
  margin-top: 12px;
}

.modal-body .field:first-child {
  margin-top: 0;
}

.modal-body .field label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--muted-40);
}

.modal-body .field input,
.modal-body .field select,
.modal-body .field textarea {
  border-radius: 10px;
  padding: 11px 14px;
  border-color: var(--border-60);
  background: var(--body-bg-alt);
  font-size: 14.5px;
}

.modal-body .field input:hover,
.modal-body .field select:hover,
.modal-body .field textarea:hover {
  border-color: var(--border-70);
  background: var(--white);
}

.modal-body .field input:focus,
.modal-body .field select:focus,
.modal-body .field textarea:focus {
  background: var(--white);
  border-color: var(--portal-accent, var(--primary));
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.modal-body > .stack {
  gap: 4px;
}

.modal-body > .stack > p {
  margin: 0 0 8px !important;
  color: var(--muted-40) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Fixed footer — never scrolls with body */
.modal-sheet .app-dialog-footer,
.modal-sheet .modal-footer-fixed {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 14px 22px 16px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
  z-index: 3;
}

.modal-sheet .app-dialog-footer::before {
  display: none;
}

.modal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.modal-footer-actions .btn {
  min-height: 40px;
  min-width: auto;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
}

.modal-footer-actions .btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--heading);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.modal-footer-actions .btn-ghost:hover:not(:disabled) {
  border-color: var(--primary-60);
  background: var(--primary-soft);
  color: var(--primary);
}

.modal-footer-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.modal-footer-primary .btn {
  min-height: 42px;
  min-width: 112px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

.modal-footer-primary .btn-primary {
  box-shadow: 0 4px 16px rgba(7, 71, 168, 0.28);
}

/* Record dialog body helpers */
.record-dialog-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .record-dialog-hero {
    grid-template-columns: 1fr;
  }
}

.record-hero-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.record-hero-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.record-hero-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--heading);
  line-height: 1.2;
}

.record-hero-card .hint {
  font-size: 11px;
  color: var(--muted);
}

.record-hero-card.tone-fee {
  background: #fff7ed;
  border-color: #fed7aa;
}

.record-hero-card.tone-fee .value {
  color: #c2410c;
}

.record-hero-card.tone-net {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.record-hero-card.tone-net .value {
  color: #047857;
}

.record-dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 800px) {
  .record-dialog-grid {
    grid-template-columns: 1fr;
  }
}

.record-side-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--body-bg-alt);
  position: sticky;
  top: 0;
}

.record-side-card h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-40);
}

.record-side-card .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid var(--divider);
}

.record-side-card .meta-row:last-of-type {
  border-bottom: none;
}

.record-side-card .meta-row span:last-child {
  font-weight: 600;
  text-align: right;
  color: var(--heading);
  max-width: 62%;
  word-break: break-word;
}

.record-side-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 640px) {
  .app-dialog-backdrop {
    place-items: end center;
    padding: 0;
  }
  .app-dialog,
  .modal.modal-sheet {
    width: 100% !important;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: min(94dvh, 900px);
    animation: slideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-sheet .app-dialog-footer,
  .modal-sheet .modal-footer-fixed {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-footer-actions,
  .modal-footer-primary {
    width: 100%;
    margin-left: 0;
  }
  .modal-footer-actions .btn,
  .modal-footer-primary .btn {
    flex: 1;
    justify-content: center;
  }
  .app-dialog-footer {
    flex-direction: column-reverse;
  }
  .app-dialog-footer .btn {
    width: 100%;
  }
}

/* ========== Supplier module setup wizard (first visit) ========== */
.module-guide-backdrop {
  place-items: center;
  padding: 16px;
  z-index: 120;
}

.module-guide-modal {
  width: min(640px, 100%);
  max-height: min(90dvh, 720px);
  border-radius: 16px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: guidePop 0.2s ease;
}

@keyframes guidePop {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0.5;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.module-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.module-guide-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.module-guide-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--portal-accent-soft, var(--primary-soft));
  color: var(--portal-accent, var(--primary));
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.module-guide-badge.muted {
  background: var(--body-bg);
  color: var(--muted);
}

.module-guide-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--heading);
}

.module-guide-purpose {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 48ch;
}

.module-guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.module-guide-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-60);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-40);
  cursor: pointer;
  transition: var(--transition);
}

.module-guide-step:hover {
  border-color: var(--portal-accent, var(--primary));
  color: var(--portal-accent, var(--primary));
}

.module-guide-step.current {
  border-color: var(--portal-accent, var(--primary));
  background: var(--portal-accent-soft, var(--primary-soft));
  color: var(--portal-accent, var(--primary));
}

.module-guide-step.done {
  border-color: var(--success);
  color: var(--success-50);
}

.module-guide-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  background: var(--body-bg);
}

.module-guide-step.current .module-guide-step-num {
  background: var(--portal-accent, var(--primary));
  color: #fff;
}

.module-guide-step.done .module-guide-step-num {
  background: var(--success-40);
  color: var(--success-50);
}

.module-guide-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 2px 8px;
}

.module-guide-body h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.module-guide-nav-map {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--body-bg);
  border: 1px solid var(--border-60);
}

.module-guide-all-modules {
  margin-top: 16px;
}

.module-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.module-guide-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-60);
}

.module-guide-footer-left {
  flex: 1;
  min-width: 140px;
}

.module-guide-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-60);
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-accent, var(--primary));
  cursor: pointer;
  transition: var(--transition);
}

.module-guide-fab:hover {
  border-color: var(--portal-accent, var(--primary));
  background: var(--portal-accent-soft, var(--primary-soft));
}

.module-guide-fab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(255, 178, 100, 0.35);
}

@media (max-width: 800px) {
  .module-guide-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    align-self: end;
  }
  .module-guide-backdrop {
    place-items: end center;
    padding: 0;
  }
  .module-guide-fab span:not(.module-guide-fab-dot) {
    /* keep label on mobile for discoverability */
  }
}

/* Persona / list buttons */
.persona {
  border: 1px solid var(--border-60);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  background: #fff;
  width: 100%;
  margin-bottom: 10px;
  box-shadow: none;
}

.persona:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
  transform: translateY(-1px);
}

.persona .title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--heading);
}

.persona .sub {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
}

/* Login — split card */
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(22, 163, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 202, 227, 0.1), transparent 50%),
    var(--body-bg);
}

.login-card {
  width: min(960px, 100%);
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.login-hero {
  background: linear-gradient(155deg, #0b5fd0 0%, var(--primary) 48%, #00cae3 140%);
  color: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -60px;
  right: -40px;
}

.login-hero::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: 40px;
  left: -30px;
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-hero h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.login-hero p {
  opacity: 0.9;
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 36ch;
  line-height: 1.55;
}

.login-body {
  padding: 32px 28px;
  background: var(--white);
}

.mobile-nav-btn {
  display: none;
  border: 1px solid var(--border-60);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--secondary);
}

.drawer-backdrop {
  display: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--primary-40);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Welcome banner (dashboard) */
.welcome-banner {
  background: linear-gradient(120deg, var(--primary) 0%, #138bfd 55%, #00cae3 120%);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  right: -30px;
  top: -40px;
}

.welcome-banner h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.welcome-banner p {
  opacity: 0.9;
  font-size: 13.5px;
  max-width: 48ch;
}

.welcome-banner .banner-actions {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Responsive */
@media (min-width: 720px) {
  .modal-backdrop {
    place-items: center;
    padding: 24px;
  }
  .modal {
    border-radius: 14px;
    max-height: 85dvh;
  }
  .modal-handle {
    display: none;
  }
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar-search {
    min-width: 180px;
  }
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-card {
    grid-template-columns: 1fr;
  }
  .login-hero {
    min-height: auto;
    padding: 28px 24px;
  }
}

@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(300px, 88vw);
    transform: translateX(-105%);
    box-shadow: var(--shadow);
    border-right: none;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .drawer-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(19, 25, 32, 0.4);
    z-index: 35;
  }
  .mobile-nav-btn {
    display: inline-flex;
  }
  .topbar-search {
    display: none;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 16px 14px 40px;
  }
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   AFCON 2027 landing experience
   Small Apps inspired hero + official Pamoja tournament identity
   ========================================================================== */
:root {
  --afcon-ink: #07120e;
  --afcon-ink-soft: #0d2119;
  --afcon-pitch: #153c2c;
  --afcon-pitch-bright: #205a3d;
  --afcon-orange: #ed5a28;
  --afcon-orange-hot: #ff7441;
  --afcon-gold: #d9af56;
  --afcon-sand: #f4efe6;
  --afcon-sand-light: #fbf8f2;
  --afcon-line: #dfd7ca;
}

.afl {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--afcon-sand-light);
  color: var(--afcon-ink);
  font-family: var(--font);
}

.afl a {
  text-decoration: none;
}

.afl-container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.afl-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: var(--afcon-ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.afl-skip:focus {
  transform: translateY(0);
}

.afl-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.afl-nav-inner {
  width: min(1240px, calc(100% - 64px));
  height: 92px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}

.afl-brand {
  width: 206px;
  display: inline-flex;
  align-items: center;
}

.afl-brand img {
  display: block;
  width: 100%;
  height: 63px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.afl-nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.afl-nav-links a {
  position: relative;
  padding: 34px 0 31px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.afl-nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--afcon-orange);
  transition: transform 0.2s ease;
}

.afl-nav-links a:hover,
.afl-nav-links a:focus-visible {
  color: #fff;
}

.afl-nav-links a:hover::after,
.afl-nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.afl-nav-cta {
  justify-self: end;
}

.afl-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.afl-btn:hover {
  transform: translateY(-2px);
}

.afl-btn-light {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(8px);
}

.afl-btn-light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--afcon-ink);
}

.afl-btn-primary {
  background: var(--afcon-orange);
  color: #fff;
  box-shadow: 0 14px 30px rgba(237, 90, 40, 0.25);
}

.afl-btn-primary:hover {
  background: var(--afcon-orange-hot);
  box-shadow: 0 18px 38px rgba(237, 90, 40, 0.34);
}

.afl-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(7, 18, 14, 0.99) 4%, rgba(9, 29, 21, 0.98) 48%, rgba(15, 59, 38, 0.92) 100%),
    var(--afcon-ink);
  color: #fff;
}

.afl-hero::before {
  content: '';
  position: absolute;
  inset: auto -5% -172px;
  height: 270px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--afcon-sand-light);
  z-index: 4;
}

.afl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.65) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 55%, #000 100%);
  pointer-events: none;
}

.afl-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.afl-hero-glow-one {
  top: 90px;
  right: 4%;
  width: 490px;
  height: 490px;
  background: radial-gradient(circle, rgba(237, 90, 40, 0.17), transparent 66%);
}

.afl-hero-glow-two {
  bottom: 55px;
  left: 28%;
  width: 340px;
  height: 260px;
  background: radial-gradient(circle, rgba(217, 175, 86, 0.1), transparent 67%);
}

.afl-hero-lines {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.018),
    0 0 0 180px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

.afl-hero-grid {
  position: relative;
  z-index: 6;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 52px;
  padding-top: 92px;
  padding-bottom: 100px;
}

.afl-hero-copy {
  padding-bottom: 24px;
}

.afl-eyebrow,
.afl-section-label {
  margin: 0;
  color: var(--afcon-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.afl-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #f2d7a3;
}

.afl-eyebrow span {
  width: 26px;
  height: 2px;
  background: var(--afcon-orange);
}

.afl-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.25rem, 5.7vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.afl-hero h1 em {
  color: var(--afcon-orange);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.afl-hero-lead {
  max-width: 55ch;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.afl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.afl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.afl-text-link span {
  color: var(--afcon-orange);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.afl-text-link:hover span {
  transform: translate(3px, 3px);
}

.afl-hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
}

.afl-avatar-stack {
  display: flex;
  padding-left: 8px;
}

.afl-avatar-stack span {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border: 2px solid var(--afcon-ink-soft);
  border-radius: 50%;
  background: var(--afcon-sand);
  color: var(--afcon-ink);
  font-size: 10px;
  font-weight: 900;
}

.afl-avatar-stack span:nth-child(2) {
  background: #ddaa4c;
}

.afl-avatar-stack span:nth-child(3) {
  background: #e86a3a;
}

.afl-avatar-stack span:nth-child(4) {
  background: #2f7551;
  color: #fff;
}

.afl-hero-trust p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.afl-hero-trust strong,
.afl-hero-trust span {
  display: block;
}

.afl-hero-trust strong {
  color: #fff;
  font-weight: 800;
}

.afl-hero-trust span {
  color: rgba(255, 255, 255, 0.5);
}

.afl-hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.afl-visual-orbit {
  position: absolute;
  width: 490px;
  height: 490px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: afl-orbit 24s linear infinite;
}

.afl-visual-orbit::before,
.afl-visual-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.afl-visual-orbit::before {
  top: 32px;
  right: 62px;
  width: 12px;
  height: 12px;
  background: var(--afcon-orange);
  box-shadow: 0 0 26px rgba(237, 90, 40, 0.8);
}

.afl-visual-orbit::after {
  bottom: 58px;
  left: 26px;
  width: 8px;
  height: 8px;
  background: var(--afcon-gold);
}

@keyframes afl-orbit {
  to {
    transform: rotate(360deg);
  }
}

.afl-logo-stage {
  position: relative;
  z-index: 2;
  width: min(570px, 100%);
  padding: 28px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50% 50% 46% 54% / 42% 38% 62% 58%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 45px 90px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.afl-logo-stage p {
  margin: 0 0 -6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.afl-logo-stage img {
  width: 100%;
  height: 390px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.28));
}

.afl-host-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(7, 18, 14, 0.78);
  color: #fff;
  padding: 10px 13px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.afl-host-card svg {
  color: var(--afcon-orange);
}

.afl-host-card-top {
  top: 72px;
  right: -12px;
}

.afl-host-card-bottom {
  bottom: 60px;
  left: -12px;
}

.afl-access-wrap {
  position: relative;
  z-index: 10;
  margin-top: -102px;
  padding-bottom: 106px;
}

.afl-access-card {
  display: grid;
  grid-template-columns: 0.65fr 2.35fr;
  align-items: stretch;
  border: 1px solid rgba(7, 18, 14, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(13, 33, 25, 0.15);
}

.afl-access-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--afcon-line);
  padding: 30px;
}

.afl-access-intro h2 {
  margin: 9px 0 0;
  color: var(--afcon-ink);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.afl-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afl-portal-card {
  position: relative;
  min-height: 128px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px 26px;
  color: var(--afcon-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.afl-portal-card:nth-child(odd) {
  border-right: 1px solid var(--afcon-line);
}

.afl-portal-card:nth-child(-n + 2) {
  border-bottom: 1px solid var(--afcon-line);
}

.afl-portal-card:hover {
  background: var(--afcon-ink-soft);
  color: #fff;
}

.afl-portal-number {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(7, 18, 14, 0.16);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.afl-portal-card:hover .afl-portal-number {
  color: rgba(255, 255, 255, 0.22);
}

.afl-portal-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5eee3;
  color: var(--afcon-orange);
  transition: background 0.2s ease;
}

.afl-portal-card:hover .afl-portal-icon {
  background: rgba(237, 90, 40, 0.16);
}

.afl-portal-content {
  display: block;
}

.afl-portal-content strong,
.afl-portal-content small {
  display: block;
}

.afl-portal-content strong {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 800;
}

.afl-portal-content small {
  max-width: 34ch;
  color: #6f746f;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}

.afl-portal-card:hover .afl-portal-content small {
  color: rgba(255, 255, 255, 0.58);
}

.afl-portal-arrow {
  color: var(--afcon-orange);
  transition: transform 0.2s ease;
}

.afl-portal-card:hover .afl-portal-arrow {
  transform: translateX(4px);
}

.afl-ecosystem {
  padding: 10px 0 120px;
  background: var(--afcon-sand-light);
}

.afl-ecosystem-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 90px;
}

.afl-ecosystem-copy h2,
.afl-section-heading h2,
.afl-cta h2 {
  margin: 14px 0 0;
  color: var(--afcon-ink);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.afl-ecosystem-copy > p:not(.afl-section-label) {
  margin: 24px 0 0;
  color: #626963;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

.afl-check-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.afl-check-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #303b34;
  font-size: 13px;
  font-weight: 700;
}

.afl-check-list svg {
  flex: 0 0 auto;
  color: var(--afcon-orange);
}

.afl-dark-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  border-bottom: 1px solid var(--afcon-ink);
  padding-bottom: 7px;
  color: var(--afcon-ink);
  font-size: 13px;
  font-weight: 800;
}

.afl-dark-link svg {
  color: var(--afcon-orange);
  transition: transform 0.2s ease;
}

.afl-dark-link:hover svg {
  transform: translateX(4px);
}

.afl-command-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--afcon-ink-soft);
  color: #fff;
  box-shadow: 0 32px 80px rgba(13, 33, 25, 0.2);
}

.afl-command-head,
.afl-command-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afl-command-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
}

.afl-command-head div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afl-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5bd08b;
  box-shadow: 0 0 0 4px rgba(91, 208, 139, 0.12);
}

.afl-command-head > span {
  color: var(--afcon-orange);
}

.afl-command-pitch {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(43, 111, 75, 0.56), transparent 68%);
  background-size: 40px 40px, 40px 40px, auto;
}

.afl-command-pitch::before,
.afl-command-pitch::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.afl-command-pitch::before {
  inset: 10% 20%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.afl-command-pitch::after {
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.afl-pitch-ring {
  position: relative;
  z-index: 2;
  width: 218px;
  height: 218px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(217, 175, 86, 0.42);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(255, 255, 255, 0.015),
    0 0 70px rgba(237, 90, 40, 0.08);
}

.afl-pitch-core {
  width: 132px;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(7, 18, 14, 0.8);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.24);
}

.afl-pitch-core svg {
  margin-bottom: 6px;
  color: var(--afcon-gold);
}

.afl-pitch-core strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.afl-pitch-core span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.afl-node {
  position: absolute;
  z-index: 3;
  min-width: 116px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(7, 18, 14, 0.9);
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 800;
}

.afl-node svg {
  color: var(--afcon-orange);
}

.afl-node-1 {
  top: 60px;
  left: 42px;
}

.afl-node-2 {
  top: 60px;
  right: 42px;
}

.afl-node-3 {
  right: 42px;
  bottom: 60px;
}

.afl-node-4 {
  bottom: 60px;
  left: 42px;
}

.afl-command-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0;
  text-transform: none;
}

.afl-journey {
  padding: 110px 0 120px;
  background: var(--afcon-sand);
}

.afl-section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.5fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}

.afl-section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.65rem);
}

.afl-section-heading > p {
  margin: 0 0 4px;
  color: #6e746f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

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

.afl-journey-card {
  position: relative;
  min-height: 265px;
  border-top: 3px solid var(--afcon-orange);
  background: #fff;
  padding: 29px;
  box-shadow: 0 16px 44px rgba(13, 33, 25, 0.07);
}

.afl-journey-card:nth-child(2) {
  border-color: var(--afcon-gold);
}

.afl-journey-card:nth-child(3) {
  border-color: var(--afcon-pitch-bright);
}

.afl-journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--afcon-orange);
}

.afl-journey-top > span {
  color: #a39d93;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.afl-journey-card h3 {
  margin: 47px 0 10px;
  color: var(--afcon-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.afl-journey-card p {
  margin: 0;
  color: #717771;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.afl-journey-connector {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -31px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 5px solid var(--afcon-sand);
  border-radius: 50%;
  background: var(--afcon-ink-soft);
  color: #fff;
}

.afl-cta {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(237, 90, 40, 0.16), transparent 35%),
    linear-gradient(110deg, var(--afcon-ink) 0%, var(--afcon-ink-soft) 62%, #153d2d 100%);
  color: #fff;
}

.afl-cta::after {
  content: '2027';
  position: absolute;
  top: 50%;
  right: -36px;
  transform: translateY(-52%);
  color: rgba(255, 255, 255, 0.028);
  font-size: 15rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.afl-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.afl-cta-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 175, 86, 0.4);
  border-radius: 50%;
  color: var(--afcon-gold);
}

.afl-cta h2 {
  max-width: 700px;
  margin-top: 9px;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.afl-cta p:not(.afl-section-label) {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.afl-cta-button {
  white-space: nowrap;
}

.afl-footer {
  padding: 52px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #050c09;
  color: rgba(255, 255, 255, 0.5);
}

.afl-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
}

.afl-footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.afl-footer-brand img {
  width: 148px;
  height: 68px;
  object-fit: contain;
}

.afl-footer-brand p {
  max-width: 38ch;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.afl-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.afl-footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.afl-footer-links a:hover {
  color: var(--afcon-orange);
}

.afl-copyright {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  font-size: 10px;
}

@media (max-width: 1050px) {
  .afl-nav-inner {
    grid-template-columns: 1fr auto;
  }

  .afl-nav-links {
    display: none;
  }

  .afl-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(410px, 1.05fr);
    gap: 22px;
  }

  .afl-hero h1 {
    font-size: clamp(3rem, 6vw, 4.25rem);
  }

  .afl-logo-stage img {
    height: 340px;
  }

  .afl-visual-orbit {
    width: 420px;
    height: 420px;
  }

  .afl-access-card {
    grid-template-columns: 1fr;
  }

  .afl-access-intro {
    border-right: 0;
    border-bottom: 1px solid var(--afcon-line);
    padding: 24px 28px;
  }

  .afl-access-intro h2 {
    font-size: 1.45rem;
  }

  .afl-ecosystem-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(450px, 1.2fr);
    gap: 48px;
  }
}

@media (max-width: 820px) {
  .afl-container,
  .afl-nav-inner {
    width: min(100% - 36px, 680px);
  }

  .afl-nav-inner {
    height: 80px;
  }

  .afl-brand {
    width: 168px;
  }

  .afl-brand img {
    height: 54px;
  }

  .afl-nav-cta {
    min-height: 42px;
    padding: 9px 13px;
  }

  .afl-hero {
    min-height: auto;
  }

  .afl-hero::before {
    bottom: -205px;
  }

  .afl-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 140px;
    padding-bottom: 150px;
  }

  .afl-hero-copy {
    max-width: 620px;
    padding: 0;
  }

  .afl-hero h1 {
    font-size: clamp(3.25rem, 11vw, 5.3rem);
  }

  .afl-hero-lead {
    max-width: 50ch;
  }

  .afl-hero-visual {
    min-height: 420px;
  }

  .afl-logo-stage {
    max-width: 540px;
  }

  .afl-logo-stage img {
    height: 350px;
  }

  .afl-access-wrap {
    margin-top: -92px;
    padding-bottom: 82px;
  }

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

  .afl-portal-card:nth-child(odd) {
    border-right: 0;
  }

  .afl-portal-card:nth-child(-n + 3) {
    border-bottom: 1px solid var(--afcon-line);
  }

  .afl-ecosystem {
    padding-bottom: 90px;
  }

  .afl-ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .afl-ecosystem-copy {
    max-width: 620px;
  }

  .afl-section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .afl-journey-card {
    min-height: 220px;
  }

  .afl-journey-connector {
    top: auto;
    right: 50%;
    bottom: -31px;
    transform: translateX(50%) rotate(90deg);
  }

  .afl-cta-inner {
    grid-template-columns: auto 1fr;
  }

  .afl-cta-button {
    grid-column: 2;
    justify-self: start;
  }

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

  .afl-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .afl-container,
  .afl-nav-inner {
    width: calc(100% - 28px);
  }

  .afl-nav-inner {
    gap: 12px;
  }

  .afl-brand {
    width: 136px;
  }

  .afl-brand img {
    height: 46px;
  }

  .afl-nav-cta {
    min-height: 39px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .afl-nav-cta svg {
    display: none;
  }

  .afl-hero-grid {
    padding-top: 122px;
    padding-bottom: 138px;
  }

  .afl-eyebrow {
    font-size: 9px;
    letter-spacing: 0.11em;
  }

  .afl-hero h1 {
    font-size: clamp(2.9rem, 14.7vw, 4.5rem);
  }

  .afl-hero-lead {
    font-size: 14px;
  }

  .afl-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .afl-hero-trust {
    margin-top: 34px;
  }

  .afl-hero-visual {
    min-height: 310px;
  }

  .afl-logo-stage {
    padding: 16px 8px 10px;
  }

  .afl-logo-stage img {
    height: 260px;
  }

  .afl-visual-orbit {
    width: 310px;
    height: 310px;
  }

  .afl-host-card {
    display: none;
  }

  .afl-access-intro,
  .afl-portal-card {
    padding-inline: 20px;
  }

  .afl-portal-card {
    min-height: 145px;
  }

  .afl-portal-arrow {
    display: none;
  }

  .afl-ecosystem-copy h2,
  .afl-section-heading h2,
  .afl-cta h2 {
    font-size: 2.45rem;
  }

  .afl-command-pitch {
    min-height: 360px;
  }

  .afl-node {
    min-width: 96px;
    padding: 8px 9px;
    font-size: 8px;
  }

  .afl-node-1 {
    top: 40px;
    left: 14px;
  }

  .afl-node-2 {
    top: 40px;
    right: 14px;
  }

  .afl-node-3 {
    right: 14px;
    bottom: 40px;
  }

  .afl-node-4 {
    bottom: 40px;
    left: 14px;
  }

  .afl-pitch-ring {
    width: 180px;
    height: 180px;
  }

  .afl-command-foot {
    gap: 10px;
    font-size: 8px;
  }

  .afl-journey {
    padding: 82px 0 90px;
  }

  .afl-cta {
    padding: 74px 0;
  }

  .afl-cta-inner {
    grid-template-columns: 1fr;
  }

  .afl-cta-mark {
    width: 68px;
    height: 68px;
  }

  .afl-cta-button {
    grid-column: auto;
  }

  .afl-footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .afl-visual-orbit {
    animation: none;
  }

  .afl *,
  .afl *::before,
  .afl *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   AFCON landing v3 — Green product shell + tournament energy
   Product shell: green · Accent: CAF orange · Canvas: cool light
   ========================================================================== */
:root {
  --afcon-ink: #0b1220;
  --afcon-ink-soft: #0f1b33;
  --afcon-pitch: #0d5c3d;
  --afcon-pitch-bright: #0747a8;
  --afcon-orange: #ed5a28;
  --afcon-orange-hot: #ff7441;
  --afcon-gold: #d9af56;
  --afcon-sand: #f3f6fb;
  --afcon-sand-light: #f7f9fc;
  --afcon-line: #e2e8f0;
  --afl-blue: #0d5c3d;
  --afl-blue-soft: #e8f0fb;
  --afl-blue-mid: #05357d;
  --afl-navy: #021a3a;
}

.afl {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--afcon-sand-light);
  color: var(--afcon-ink);
  font-family: var(--font);
}

.afl-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.afl-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(5, 46, 26, 0.55), transparent);
  color: #fff;
}

.afl-nav-inner {
  width: min(1180px, calc(100% - 48px));
  height: 80px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.afl-brand {
  width: 190px;
  display: inline-flex;
  align-items: center;
}

.afl-brand img {
  display: block;
  width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.afl-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.afl-nav-links a {
  position: relative;
  padding: 28px 0 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.afl-nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--afl-blue-mid);
  transition: transform 0.2s ease;
}

.afl-nav-links a:hover,
.afl-nav-links a:focus-visible {
  color: #fff;
}

.afl-nav-links a:hover::after,
.afl-nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.afl-nav-cta {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(13, 92, 61, 0.35);
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.afl-nav-cta:hover {
  transform: translateY(-1px);
  border-color: #fff;
  background: #fff;
  color: var(--afl-navy);
}

.afl-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.afl-btn:hover {
  transform: translateY(-1px);
}

.afl-btn-primary {
  background: var(--afl-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 92, 61, 0.35);
}

.afl-btn-primary:hover {
  background: #0b3d2e;
  box-shadow: 0 16px 34px rgba(13, 92, 61, 0.42);
}

/* ── Hero ── */
.afl-hero {
  position: relative;
  min-height: min(880px, 100dvh);
  overflow: hidden;
  display: block;
  color: #fff;
  background:
    linear-gradient(
      105deg,
      rgba(5, 46, 26, 0.96) 0%,
      rgba(13, 92, 61, 0.78) 42%,
      rgba(5, 46, 26, 0.45) 68%,
      rgba(5, 46, 26, 0.25) 100%
    ),
    url('/afcon-stadium-hero.webp') center 35% / cover no-repeat;
}

.afl-hero::before,
.afl-hero::after {
  display: none;
}

.afl-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 46, 26, 0.35) 0%, transparent 40%, rgba(5, 46, 26, 0.75) 100%);
  pointer-events: none;
}

.afl-hero-inner {
  position: relative;
  z-index: 3;
  min-height: min(880px, 100dvh);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 40px;
  padding: 120px 0 140px;
}

.afl-hero-copy {
  max-width: 640px;
  padding: 0;
}

.afl-eyebrow,
.afl-section-label {
  margin: 0;
  color: #7aa3d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.afl-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #bbf7d0;
}

.afl-eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--afcon-orange);
  border-radius: 2px;
}

.afl-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.afl-hero h1 em {
  color: var(--afcon-orange-hot);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-style: italic;
}

.afl-hero-lead {
  max-width: 52ch;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.7;
}

.afl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.afl-hero-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.afl-hero-link::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.afl-hero-link:hover::after {
  transform: scaleX(0.5);
}

.afl-hero-hosts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.afl-hero-hosts > svg {
  color: var(--afcon-gold);
}

.afl-hero-hosts > span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 800;
  color: #7aa3d9;
}

.afl-hero-hosts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afl-hero-hosts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 10px 5px 6px;
  font-size: 11px;
  font-weight: 600;
}

.afl-hero-hosts li strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  border-radius: 999px;
  background: rgba(13, 92, 61, 0.65);
  font-size: 10px;
  font-weight: 800;
}

.afl-hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(5, 46, 26, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.afl-hero-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.afl-hero-panel-head small {
  margin-left: auto;
  color: #7aa3d9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.afl-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d6fbc;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.afl-hero-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.afl-hero-panel-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: rgba(5, 46, 26, 0.65);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.afl-hero-panel-grid svg {
  color: #7aa3d9;
  margin-bottom: 2px;
}

.afl-hero-panel-grid strong {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.afl-hero-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.afl-hero-panel-foot svg {
  color: var(--afcon-gold);
}

.afl-hero-stats {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  min-height: 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.7fr)) minmax(220px, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 46, 26, 0.72);
  backdrop-filter: blur(16px);
}

.afl-hero-stats > div,
.afl-hero-stats > p {
  min-height: 96px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 22px;
}

.afl-hero-stats > div {
  gap: 12px;
}

.afl-hero-stats strong {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.afl-hero-stats span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.afl-hero-stats > p {
  justify-content: center;
  gap: 8px;
  border-right: 0;
  margin: 0;
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.afl-hero-stats > p svg {
  color: var(--afcon-gold);
}

/* ── Portals ── */
.afl-portals {
  position: relative;
  padding: 96px 0 110px;
  background:
    radial-gradient(circle at 100% 0%, rgba(13, 92, 61, 0.08), transparent 28%),
    var(--afcon-sand-light);
}

.afl-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}

.afl-section-heading h2,
.afl-story-copy h2,
.afl-journey-heading h2,
.afl-cta h2 {
  margin: 12px 0 0;
  color: var(--afcon-ink);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.afl-section-heading > p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.afl-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.afl-portal-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--afcon-line) !important;
  border-radius: 16px;
  background: #fff;
  padding: 28px 28px 24px;
  color: var(--afcon-ink);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.afl-portal-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--afl-blue) 35%, var(--afcon-line)) !important;
  background: #fff;
  color: var(--afcon-ink);
  box-shadow: 0 22px 48px rgba(13, 92, 61, 0.12);
}

.afl-portal-card.is-featured {
  border-color: color-mix(in srgb, var(--afl-blue) 45%, var(--afcon-line)) !important;
  background:
    linear-gradient(165deg, #ffffff 0%, var(--afl-blue-soft) 140%);
  box-shadow: 0 14px 36px rgba(13, 92, 61, 0.1);
}

.afl-portal-card.is-featured::before {
  content: 'Ops control plane';
  position: absolute;
  top: 16px;
  right: 18px;
  border-radius: 999px;
  background: var(--afl-blue);
  color: #fff;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.afl-portal-supplier,
.afl-portal-partner,
.afl-portal-government,
.afl-portal-admin {
  background: #fff;
  color: var(--afcon-ink);
}

.afl-portal-supplier:hover,
.afl-portal-partner:hover,
.afl-portal-government:hover,
.afl-portal-admin:hover {
  background: #fff;
  color: var(--afcon-ink);
}

.afl-portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.afl-portal-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--afl-blue-soft);
  color: var(--afl-blue);
}

.afl-portal-number {
  position: static;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.afl-portal-card.is-featured .afl-portal-number {
  opacity: 0;
}

.afl-portal-eyebrow,
.afl-portal-card > p {
  margin: 0 0 8px;
  color: var(--afl-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.afl-portal-card h3 {
  margin: 0;
  color: inherit;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.afl-portal-audience {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.afl-portal-description {
  display: block;
  max-width: 48ch;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.afl-portal-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.afl-portal-card li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.afl-portal-card li svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--afl-blue);
}

.afl-portal-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--afcon-line);
  padding-top: 16px;
  color: var(--afl-blue);
  font-size: 13px;
  font-weight: 700;
}

.afl-portal-action svg {
  color: var(--afl-blue);
  transition: transform 0.2s ease;
}

.afl-portal-card:hover .afl-portal-action svg {
  transform: translateX(4px);
}

/* ── Story ── */
.afl-story {
  width: min(1180px, calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--afl-navy) 0%, #0b3d2e 55%, var(--afl-blue) 120%);
  box-shadow: 0 28px 70px rgba(5, 46, 26, 0.22);
}

.afl-story-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.afl-story-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 40%, rgba(5, 46, 26, 0.55) 100%),
    linear-gradient(180deg, transparent 45%, rgba(5, 46, 26, 0.55) 100%);
  pointer-events: none;
}

.afl-story-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 55% center;
  transition: transform 0.8s ease;
}

.afl-story:hover .afl-story-media img {
  transform: scale(1.03);
}

.afl-story-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 46, 26, 0.72);
  padding: 10px 12px;
  color: #fff;
  backdrop-filter: blur(12px);
}

.afl-story-badge span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #bbf7d0;
  font-size: 9px;
  font-weight: 800;
}

.afl-story-badge strong {
  margin-left: 4px;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.afl-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(32px, 5vw, 64px);
  color: #fff;
}

.afl-story-copy .afl-section-label {
  color: #7aa3d9;
}

.afl-story-copy h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
}

.afl-story-copy > p:not(.afl-section-label) {
  max-width: 48ch;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.afl-story-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.afl-story-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.afl-story-list svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #7aa3d9;
}

.afl-dark-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.afl-dark-link svg {
  color: #7aa3d9;
  transition: transform 0.2s ease;
}

.afl-dark-link:hover svg {
  transform: translateX(4px);
}

.afl-story-copy .afl-dark-link {
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ── Journey ── */
.afl-journey {
  padding: 96px 0 110px;
  background:
    radial-gradient(circle at 0% 100%, rgba(13, 92, 61, 0.08), transparent 32%),
    #eef3fb;
}

.afl-journey-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.afl-journey-heading .afl-section-label {
  color: var(--afl-blue);
}

.afl-journey-heading h2 {
  color: var(--afcon-ink);
}

.afl-journey-heading > p:not(.afl-section-label) {
  max-width: 58ch;
  margin: 16px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

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

.afl-journey-card {
  min-height: 260px;
  border: 1px solid var(--afcon-line);
  border-top: 3px solid var(--afl-blue);
  border-radius: 14px;
  background: #fff;
  padding: 26px 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.afl-journey-card:nth-child(2) {
  border-top-color: var(--afl-blue-mid);
}

.afl-journey-card:nth-child(3) {
  border-top-color: var(--afcon-orange);
}

.afl-journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--afl-blue);
}

.afl-journey-top > span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.afl-journey-card h3 {
  margin: 48px 0 10px;
  color: var(--afcon-ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.afl-journey-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

/* ── CTA + footer ── */
.afl-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle at 90% 30%, rgba(47, 120, 216, 0.18), transparent 30%),
    linear-gradient(115deg, var(--afl-navy) 0%, #0b3d2e 50%, var(--afl-blue) 120%);
  color: #fff;
}

.afl-cta::after {
  content: '2027';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-52%);
  color: rgba(255, 255, 255, 0.04);
  font-size: 12rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
}

.afl-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.afl-cta-inner > img {
  width: 160px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.afl-cta .afl-section-label {
  color: #7aa3d9;
}

.afl-cta h2 {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.afl-cta p:not(.afl-section-label) {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.afl-cta .afl-btn-primary {
  background: #fff;
  color: var(--afl-navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.afl-cta .afl-btn-primary:hover {
  background: var(--afl-blue-soft);
  color: var(--afl-blue);
}

.afl-footer {
  padding: 48px 0 28px;
  border-top: 0;
  background: #050b18;
  color: rgba(255, 255, 255, 0.5);
}

.afl-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.afl-footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.afl-footer-brand img {
  width: 132px;
  height: 60px;
  object-fit: contain;
}

.afl-footer-brand p {
  max-width: 42ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.afl-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.afl-footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.afl-footer-links a:hover {
  color: #7aa3d9;
}

.afl-copyright {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .afl-nav-inner {
    grid-template-columns: 1fr auto;
  }

  .afl-nav-links {
    display: none;
  }

  .afl-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 120px 0 130px;
  }

  .afl-hero-panel {
    max-width: 420px;
  }

  .afl-hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .afl-hero-stats > p {
    display: none;
  }

  .afl-section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .afl-story {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1180px);
  }

  .afl-story-media {
    min-height: 360px;
  }

  .afl-cta-inner {
    grid-template-columns: 120px 1fr;
  }

  .afl-cta-inner > .afl-btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .afl-container,
  .afl-nav-inner {
    width: calc(100% - 28px);
  }

  .afl-nav-inner {
    height: 72px;
  }

  .afl-brand {
    width: 140px;
  }

  .afl-brand img {
    height: 46px;
  }

  .afl-hero {
    min-height: auto;
  }

  .afl-hero-inner {
    padding: 108px 0 120px;
  }

  .afl-hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .afl-hero-lead {
    font-size: 14px;
  }

  .afl-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .afl-hero-panel {
    max-width: none;
  }

  .afl-hero-stats {
    position: relative;
    grid-template-columns: 1fr 1fr 1fr;
    border: 0;
  }

  .afl-hero-stats > div {
    min-height: 84px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 12px;
  }

  .afl-hero-stats strong {
    font-size: 1.35rem;
  }

  .afl-hero-stats span {
    font-size: 9px;
  }

  .afl-portals {
    padding: 72px 0 80px;
  }

  .afl-portal-grid,
  .afl-journey-grid {
    grid-template-columns: 1fr;
  }

  .afl-portal-card {
    min-height: 0;
  }

  .afl-portal-card ul {
    grid-template-columns: 1fr;
  }

  .afl-portal-card.is-featured::before {
    top: 14px;
    right: 14px;
  }

  .afl-story {
    width: 100%;
    border-radius: 0;
    margin-bottom: 0;
  }

  .afl-story-copy {
    padding: 48px 22px 56px;
  }

  .afl-journey {
    padding: 72px 0 80px;
  }

  .afl-journey-card {
    min-height: 0;
  }

  .afl-journey-card h3 {
    margin-top: 28px;
  }

  .afl-cta {
    padding: 56px 0;
  }

  .afl-cta-inner {
    grid-template-columns: 1fr;
  }

  .afl-cta-inner > img {
    width: 140px;
    height: 90px;
  }

  .afl-cta-inner > .afl-btn {
    grid-column: auto;
  }

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

  .afl-footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .afl-portal-card,
  .afl-btn,
  .afl-nav-cta,
  .afl-story-media img {
    transition: none !important;
  }
}

/* AFCON credential portal */
.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 10% 5%, rgba(47, 120, 216, 0.18), transparent 28%),
    radial-gradient(circle at 88% 92%, rgba(13, 92, 61, 0.28), transparent 34%),
    #050b18;
  font-family: var(--font);
}

.auth-shell {
  width: min(1160px, 100%);
  min-height: min(730px, calc(100dvh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.35);
}

.auth-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 42px 48px 38px;
  background:
    radial-gradient(circle at 82% 28%, rgba(47, 120, 216, 0.2), transparent 32%),
    linear-gradient(145deg, #021a3a 2%, #0b3d2e 58%, #0d5c3d 115%);
  color: #fff;
}

.auth-hero::before {
  content: '2027';
  position: absolute;
  right: -28px;
  bottom: 72px;
  color: rgba(255, 255, 255, 0.025);
  font-size: 10rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.auth-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.7) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: linear-gradient(110deg, transparent 4%, #000 100%);
}

.auth-hero-orbit {
  position: absolute;
  top: -190px;
  right: -230px;
  width: 590px;
  height: 590px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 82px rgba(255, 255, 255, 0.016),
    0 0 0 164px rgba(255, 255, 255, 0.01);
}

.auth-hero > *:not(.auth-hero-grid, .auth-hero-orbit) {
  position: relative;
  z-index: 2;
}

.auth-brand {
  width: 194px;
  display: inline-flex;
}

.auth-brand-logo {
  width: 194px;
  height: 96px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.26));
}

.auth-hero-copy {
  max-width: 510px;
  margin-top: auto;
  margin-bottom: auto;
  padding: 58px 0 42px;
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #f0cd8e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--afcon-orange);
}

.auth-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 4.6vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.auth-hero h1 span {
  display: block;
  color: var(--afcon-orange);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.auth-lead {
  max-width: 50ch;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.auth-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 32px;
}

.auth-role-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.auth-role-list b {
  color: var(--afcon-orange);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.auth-hero-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  line-height: 1.45;
}

.auth-hero-foot svg {
  flex: 0 0 auto;
  color: var(--afcon-gold);
}

.auth-hero-foot strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.auth-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 58px;
  background:
    linear-gradient(rgba(7, 18, 14, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 18, 14, 0.025) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px, 32px 32px, auto;
}

.auth-back {
  position: absolute;
  top: 31px;
  right: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6d746f;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.auth-back:hover {
  color: var(--afcon-orange);
}

.auth-form-heading {
  margin-bottom: 30px;
}

.auth-form-heading > p {
  margin: 0 0 8px;
  color: var(--afcon-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-form-heading h2 {
  margin: 0;
  color: var(--afcon-ink);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.auth-form-heading > span {
  display: block;
  margin-top: 10px;
  color: #737a75;
  font-size: 12px;
  font-weight: 500;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label,
.auth-label-row span {
  color: #27352d;
  font-size: 11px;
  font-weight: 800;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label-row span {
  color: #979d98;
  font-size: 9px;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap > svg {
  position: absolute;
  left: 15px;
  z-index: 2;
  color: #9da39e;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  height: 50px;
  border: 1px solid #dfe3df;
  border-radius: 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 47px 0 45px;
  color: var(--afcon-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap input::placeholder {
  color: #a9afaa;
  font-weight: 500;
}

.auth-input-wrap input:focus {
  border-color: var(--afcon-orange);
  box-shadow: 0 0 0 3px rgba(237, 90, 40, 0.11);
}

.auth-input-wrap:focus-within > svg {
  color: var(--afcon-orange);
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8a918c;
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: #f6f3ee;
  color: var(--afcon-ink);
}

.auth-submit {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  background: var(--afcon-orange);
  padding: 0 18px 0 20px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(237, 90, 40, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--afcon-orange-hot);
  box-shadow: 0 18px 34px rgba(237, 90, 40, 0.3);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-error {
  border: 1px solid #f2c4bb;
  border-left: 3px solid #c7442c;
  border-radius: 4px;
  background: #fff4f1;
  padding: 11px 13px;
  color: #9e321f;
  font-size: 11px;
  font-weight: 700;
}

.auth-demo {
  margin-top: 24px;
  border-top: 1px solid #e5e5e1;
  padding-top: 18px;
}

.auth-hints-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #747b76;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.auth-hints-toggle > span {
  display: grid;
  gap: 2px;
  font-size: 10px;
}

.auth-hints-toggle b {
  color: #25332b;
  font-size: 11px;
}

.auth-hints-toggle svg {
  color: var(--afcon-orange);
  transition: transform 0.2s ease;
}

.auth-hints-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.auth-hints-panel {
  max-height: 242px;
  overflow-y: auto;
  margin-top: 14px;
  border: 1px solid #e2e3de;
  border-radius: 5px;
  background: rgba(250, 248, 244, 0.96);
  padding: 7px;
}

.auth-hints-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-hint-row {
  width: 100%;
  min-height: 53px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  padding: 8px 10px;
  color: var(--afcon-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.auth-hint-row:hover {
  transform: translateX(2px);
  border-color: rgba(237, 90, 40, 0.35);
}

.auth-account-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6eee3;
  color: var(--afcon-orange);
  font-size: 10px;
  font-weight: 900;
}

.auth-hint-label {
  min-width: 0;
  display: block;
}

.auth-hint-label strong,
.auth-hint-label small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-hint-label strong {
  margin-bottom: 2px;
  color: #27352d;
  font-size: 10px;
  font-weight: 800;
}

.auth-hint-label small {
  color: #8c938e;
  font-size: 9px;
  font-weight: 500;
}

.auth-hint-row > svg {
  color: #a2a8a3;
}

.auth-support {
  margin: 24px 0 0;
  color: #9a9f9b;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-page {
    align-items: start;
    padding: 18px;
  }

  .auth-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 570px;
    padding: 34px 38px 30px;
  }

  .auth-hero-copy {
    max-width: 600px;
    padding: 52px 0 44px;
  }

  .auth-role-list {
    max-width: 520px;
  }

  .auth-form-panel {
    min-height: 680px;
    padding: 78px min(10vw, 72px) 46px;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 0;
    background: #fff;
  }

  .auth-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-hero {
    min-height: 560px;
    padding: 27px 22px 25px;
  }

  .auth-brand,
  .auth-brand-logo {
    width: 152px;
  }

  .auth-brand-logo {
    height: 76px;
  }

  .auth-hero-copy {
    padding: 42px 0 34px;
  }

  .auth-hero h1 {
    font-size: clamp(2.9rem, 14vw, 4rem);
  }

  .auth-lead {
    font-size: 12px;
  }

  .auth-role-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .auth-role-list span {
    min-height: 36px;
    padding-block: 7px;
  }

  .auth-form-panel {
    min-height: 680px;
    justify-content: flex-start;
    padding: 78px 22px 38px;
  }

  .auth-back {
    top: 28px;
    right: 22px;
  }

  .auth-form-heading h2 {
    font-size: 2.1rem;
  }
}

/* ========== Emoji icon picker (labelled catalogue icons) ========== */
.emoji-picker {
  gap: 10px;
}

.emoji-picker-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-60);
  background: rgba(248, 250, 252, 0.95);
}

.emoji-picker-selected-glyph {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #fff;
  border: 1px solid var(--border-60);
  flex-shrink: 0;
  line-height: 1;
}

.emoji-picker-selected-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.emoji-picker-selected-meta strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--heading);
}

.emoji-picker-grid {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-60);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emoji-picker-section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.emoji-picker-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 6px;
}

.emoji-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-60);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: var(--ink);
  min-height: 44px;
}

.emoji-picker-option:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.emoji-picker-option.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.18);
}

.emoji-picker-option-glyph {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.emoji-picker-option-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
}

.modal .emoji-picker-grid {
  /* keep modal body usable on short viewports */
  max-height: min(280px, 38vh);
}

/* ==========================================================================
   ERPNext-style DocType form (Organisation profile & future record screens)
   Dense sections, child tables, sticky form header, record sidebar
   ========================================================================== */

.doc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1280px;
}

.doc-form-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.doc-form-header-main {
  min-width: 0;
  flex: 1;
}

.doc-form-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  word-break: break-word;
}

.doc-form-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.doc-form-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.doc-form-meta-row code {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--body-bg);
  border: 1px solid var(--border);
}

.doc-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.doc-form-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

@media (max-width: 1024px) {
  .doc-form-body {
    grid-template-columns: 1fr;
  }
}

.doc-form-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.doc-form-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 76px;
}

@media (max-width: 1024px) {
  .doc-form-aside {
    position: static;
  }
}

/* Collapsible form section (like ERPNext section breaks) */
.doc-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.doc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: var(--body-bg-alt);
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--heading);
}

.doc-section.open .doc-section-head {
  border-bottom-color: var(--border);
}

.doc-section-head:hover {
  background: #eef1f5;
}

.doc-section-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.doc-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.doc-section-index.done {
  background: var(--success-40);
  color: var(--success);
}

.doc-section-index.warn {
  background: var(--warning-40);
  color: var(--warning);
}

.doc-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.doc-section-blurb {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.doc-section-chevron {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.doc-section-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-section-body[hidden] {
  display: none;
}

/* Dense field grid */
.doc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.doc-field-grid .field.span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .doc-field-grid {
    grid-template-columns: 1fr;
  }
  .doc-field-grid .field.span-2 {
    grid-column: auto;
  }
}

.doc-form .field label {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-40);
  margin-bottom: 4px;
}

.doc-form .field label .req {
  color: var(--danger);
  font-weight: 700;
}

.doc-form .field input,
.doc-form .field select,
.doc-form .field textarea {
  font-size: 13px;
  min-height: 36px;
  padding: 6px 10px;
}

.doc-form .field-hint {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
}

/* Child table (ERPNext grid) */
.child-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: auto;
}

.child-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.child-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--body-bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-40);
  white-space: nowrap;
}

.child-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}

.child-table tr:last-child td {
  border-bottom: none;
}

.child-table input,
.child-table select {
  width: 100%;
  min-width: 0;
  font-size: 12.5px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.child-table .row-actions {
  white-space: nowrap;
  width: 1%;
}

.child-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--body-bg-alt);
  border-top: 1px solid var(--border);
  font-size: 12px;
}

/* Sidebar cards denser */
.doc-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-side-card h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-40);
}

.doc-side-kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 12px;
}

.doc-side-kv dt {
  color: var(--muted);
  margin: 0;
}

.doc-side-kv dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--heading);
  max-width: 160px;
  word-break: break-word;
}

.doc-completeness {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-completeness-bar {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.doc-completeness-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-30));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.doc-checklist-dense {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-checklist-dense li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.doc-checklist-dense .mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.doc-checklist-dense li.ok .mark {
  background: var(--success-40);
  color: var(--success);
}

.doc-checklist-dense li.bad .mark {
  background: var(--warning-40);
  color: var(--warning);
}

.doc-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 280px;
  overflow: auto;
}

.doc-activity li {
  position: relative;
  padding: 0 0 12px 16px;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}

.doc-activity li:last-child {
  padding-bottom: 0;
}

.doc-activity li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--card);
}

.doc-activity-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}

.doc-activity-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.doc-connections {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-connection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--body-bg-alt);
  border: 1px solid var(--border);
}

.doc-connection strong {
  font-variant-numeric: tabular-nums;
}

.doc-banner {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.45;
}

.doc-banner.warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.doc-banner.error {
  background: var(--danger-soft);
  border-color: #fecaca;
  color: #991b1b;
}

.doc-banner.ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.doc-banner.info {
  background: var(--info-soft);
  border-color: #bae6fd;
  color: #0c4a6e;
}

.doc-banner strong {
  display: block;
  margin-bottom: 4px;
}

.doc-banner ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.doc-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  word-break: break-all;
}

.doc-table-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.doc-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   ERPNext-style List View — filters, selection bar, sortable headers
   ========================================================================== */

.list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

@media (max-width: 900px) {
  .list-view-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.list-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 76px;
}

.list-stat .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.list-stat .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.list-stat .hint {
  font-size: 11px;
  color: var(--muted);
}

.list-stat.clickable {
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font: inherit;
  width: 100%;
}

.list-stat.clickable:hover,
.list-stat.clickable.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(7, 71, 168, 0.1);
}

.list-stat.tone-success .value { color: var(--success); }
.list-stat.tone-warning .value { color: var(--warning); }
.list-stat.tone-danger .value { color: var(--danger); }
.list-stat.tone-info .value { color: var(--info); }

.list-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.list-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--body-bg-alt);
}

.list-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
}

.list-panel-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  align-items: flex-end;
}

.list-filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
}

.list-filter label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-40);
}

.list-filter select,
.list-filter input {
  font-size: 12.5px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.list-filter-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.list-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}

.list-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-40);
  cursor: pointer;
}

.list-status-tab:hover {
  background: var(--body-bg);
}

.list-status-tab.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}

.list-status-tab .count {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.list-status-tab.active .count {
  background: rgba(7, 71, 168, 0.12);
}

.list-selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: var(--primary-soft);
  border-bottom: 1px solid #c5d8f0;
  font-size: 13px;
}

.list-selection-bar strong {
  font-variant-numeric: tabular-nums;
}

.list-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Sortable column headers */
th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  color: var(--primary);
}

th.sortable .sort-ind {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.45;
}

th.sortable.sorted .sort-ind {
  opacity: 1;
  color: var(--primary);
}

.list-table-wrap {
  overflow: auto;
  max-height: min(62vh, 720px);
}

.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.list-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--body-bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-40);
  white-space: nowrap;
}

.list-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}

.list-table tbody tr:hover {
  background: #f8fafc;
}

.list-table tbody tr.selected {
  background: var(--primary-soft-2);
}

.list-table tbody tr.row-clickable {
  cursor: pointer;
}

.list-table .cell-primary {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--primary);
}

.list-table .cell-muted {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.list-table .cell-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.list-table .cell-check {
  width: 36px;
  text-align: center;
}

.list-table .cell-actions {
  width: 1%;
  white-space: nowrap;
}

.list-footer-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--body-bg-alt);
  font-size: 12px;
}

.list-footer-totals strong {
  font-variant-numeric: tabular-nums;
}

.list-aging {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--body-bg);
  color: var(--muted-40);
}

.list-aging.hot {
  background: #fee2e2;
  color: #b91c1c;
}

.list-aging.warn {
  background: #fef3c7;
  color: #b45309;
}

.list-aging.ok {
  background: #d1fae5;
  color: #047857;
}

.list-id-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.list-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.list-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 720px) {
  .list-detail-layout {
    grid-template-columns: 1fr;
  }
}

.list-detail-side h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-40);
}

.list-detail-side .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--divider);
}

.list-detail-side .meta-row span:last-child {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

/* ==========================================================================
   Portal page footer (all portals) + stronger sidebar foot
   ========================================================================== */

.portal-page-footer {
  flex-shrink: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.portal-page-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 28px 16px;
}

.portal-page-footer-left {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.portal-page-footer-sep {
  margin: 0 0.45em;
  opacity: 0.55;
}

.portal-page-footer-powered {
  font-size: 12.5px;
  color: var(--muted-40);
  font-weight: 500;
}

.portal-page-footer-powered strong {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Sidebar foot upgrade */
.sidebar-foot {
  margin-top: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc 0%, #f0f3f7 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-foot-portal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px 2px;
}

.sidebar-foot-portal-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.sidebar-foot-portal-tag {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.sidebar-foot .user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
}

.sidebar-foot .user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-foot .user-role-pill {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-soft);
  color: var(--primary);
}

.sidebar-foot-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-foot-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 36px;
  font-weight: 600;
}

.sidebar-signout {
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--heading) !important;
}

.sidebar-signout:hover {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: var(--danger-soft) !important;
}

/* Stronger modal footer buttons (portal-wide) */
.modal-sheet .modal-footer-fixed {
  min-height: 64px;
  padding: 14px 22px 16px !important;
  background: #fff !important;
  border-top: 1px solid var(--border) !important;
  box-shadow:
    0 -10px 28px rgba(15, 23, 42, 0.06),
    0 -1px 0 rgba(15, 23, 42, 0.04) !important;
}

.modal-footer-actions .btn,
.modal-footer-primary .btn {
  min-height: 42px !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}

.modal-footer-actions .btn-ghost {
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.modal-footer-actions .btn-ghost:hover:not(:disabled) {
  border-color: var(--primary) !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.modal-footer-primary .btn-primary {
  min-width: 120px !important;
  background: var(--primary) !important;
  box-shadow: 0 4px 16px rgba(7, 71, 168, 0.32) !important;
}

@media (max-width: 720px) {
  .portal-page-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 14px;
  }
}

/* ==========================================================================
   Government Attestation Desk v2 (PR-1)
   ========================================================================== */
.gov-desk-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.gov-desk-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gov-desk-kpi:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.gov-desk-kpi.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.gov-desk-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.gov-desk-kpi strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
  line-height: 1.1;
}

.gov-desk-kpi.active strong {
  color: var(--primary);
}

.gov-row-ineligible td {
  background: color-mix(in srgb, var(--warning-40) 45%, transparent);
}

.gov-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.gov-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-50));
  transition: width 0.2s ease;
}

.gov-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.gov-ack-progress {
  font-size: 12px;
  color: var(--muted);
}

.gov-ack-progress strong {
  color: var(--heading);
}
