/* WDD 2026 – My Action. IDF palette (brand guidelines 2023), Noto Sans (bundled, OFL). Mobile-first. */
@font-face {
  font-family: "Noto Sans";
  font-weight: 400;
  src: url(/assets/fonts/NotoSans-Regular.ttf) format("truetype");
  font-display: swap
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 700;
  src: url(/assets/fonts/NotoSans-Bold.ttf) format("truetype");
  font-display: swap
}

@font-face {
  font-family: "Noto Sans";
  font-weight: 800;
  src: url(/assets/fonts/NotoSans-ExtraBold.ttf) format("truetype");
  font-display: swap
}

:root {
  --hb: #0A3F8A;
  --circle: #407EC9;
  --dark: #19173A;
  --bright: #116EE0;
  --teal: #007991;
  --turq: #1E9999;
  --terra: #C8592F;
  --purple: #563D82;
  --purple-text: #D8D8EF;
  --orange: #FF793E;
  --orange-text: #FFE3DC;
  --green: #1E9999;
  --green-text: #BEF4DF;
  --yellow: #FFBF31;
  --brown-text: #563A03;
  --bg: #fff;
  --bg2: #E7ECF2;
  --bg3: #DAE0EA;
  --ink: #19173A;
  --ink2: #4E598C;
  --line: #C9D3E2;
  --card: #fff;
  --focus: #C8592F;
  --sw: 0 1px 0 rgba(25, 23, 58, .06), 0 8px 24px -12px rgba(10, 63, 138, .25);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media (prefers-color-scheme:dark) {
  :root {
    --bg: #0F1230;
    --bg2: #19173A;
    --bg3: #232150;
    --ink: #EEF1F8;
    --ink2: #B7BDD8;
    --line: #34336A;
    --card: #19173A;
    --circle: #6FA0E0;
    --bright: #4D92F0
  }
}

* {
  box-sizing: inherit
}

html {
  scroll-padding-top: 70px
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5
}

a {
  color: var(--bright)
}

button {
  font: inherit;
  cursor: pointer
}

input,
select,
textarea {
  font: inherit
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

.h1 {
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .4em
}

.h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .4em
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .5em
}

p {
  margin: 0 0 1em
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px
}

.narrow {
  max-width: 760px
}

.muted {
  color: var(--ink2)
}

.small {
  font-size: .86rem
}

.lead {
  font-size: 1.1rem;
  color: var(--ink2);
  max-width: 58ch
}

.pre {
  white-space: pre-line
}

section {
  padding: 28px 0
}

/* top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(25, 23, 58, .04)
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding-top: 6px;
  padding-bottom: 6px
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0
}

.brand-idf-logo {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  transition: opacity .2s ease
}

.brand:hover .brand-idf-logo {
  opacity: .9
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
  display: inline-block;
  opacity: .8
}

.brand-text {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2
}

.brand small {
  font-weight: 400;
  color: var(--ink2)
}

.top nav {
  margin-left: auto;
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center
}

.top nav a {
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink2);
  padding: 7px 11px;
  border-radius: 8px;
  transition: all .15s ease
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
  margin-left: auto;
}

.top nav a:hover,
.top nav a[aria-current] {
  background: var(--bg2);
  color: var(--ink)
}

.mobile-nav {
  display: none;
}

@media (prefers-color-scheme:dark) {
  .brand-idf-logo {
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25)
  }
}

@media (max-width:640px) {
  .top .wrap {
    min-height: 64px;
    gap: 10px
  }

  .brand-idf-logo {
    height: 36px
  }

  .brand-text {
    font-size: .92rem
  }

  .brand-divider {
    height: 22px
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
    margin-left: auto;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background: var(--bg);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 30;
    overflow-y: auto;
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
  }

  .close-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
  }

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

  .mobile-nav-list li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--ink2);
    text-decoration: none;
  }

  .mobile-nav-list li a:hover {
    background: var(--bg2);
  }
}

@media (max-width:440px) {
  .brand-divider {
    display: none
  }

  .brand-text small {
    display: none
  }
}

/* chips & badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--ink2)
}

.chip.demo {
  background: #FBE6DC;
  color: #8A3A17
}

.chip.live {
  background: #D8F3EE;
  color: #0B5F55
}

.chip.src {
  background: var(--hb);
  color: #fff
}

@media (prefers-color-scheme:dark) {
  .chip.demo {
    background: #4A2412;
    color: #F6C7B0
  }

  .chip.live {
    background: #0E3F38;
    color: #A7E8DC
  }
}

/* hero */
.hero {
  padding: 44px 0 36px
}

.hero.blue {
  background: var(--hb);
  color: #fff
}

.hero.dark {
  background: var(--dark);
  color: #fff
}

.hero.blue .lead,
.hero.dark .lead {
  color: #D6E3F6
}

.hero .kicker {
  font-weight: 600;
  color: var(--circle);
  margin-bottom: 8px
}

.hero.blue .kicker,
.hero.dark .kicker {
  color: #BBD3F3
}

.counter {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  color: var(--hb);
  line-height: 1
}

.hero.blue .counter,
.hero.dark .counter {
  color: #fff
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center
}

@media (max-width:880px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }
}

.landing-card-showcase {
  background: rgba(255, 255, 255, .09);
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  text-align: center;
  max-width: 340px;
  margin: 0 auto
}

.landing-card-showcase canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: var(--sw);
  transition: transform .2s ease
}

.landing-card-showcase:hover canvas {
  transform: scale(1.015)
}

.landing-card-showcase .caption-hint {
  font-size: .8rem;
  color: rgba(255, 255, 255, .85);
  margin-top: 10px;
  font-weight: 600
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--bright);
  min-height: 48px;
  line-height: 1.2
}

.btn:hover {
  filter: brightness(1.08)
}

.btn.big {
  font-size: 1.08rem;
  padding: 15px 26px
}

.btn.light {
  background: #fff;
  color: var(--hb)
}

.btn.soft {
  background: var(--bg2);
  color: var(--ink)
}

.btn.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor
}

.btn.terra {
  background: var(--terra)
}

.btn.sm {
  padding: 8px 14px;
  min-height: 40px;
  font-size: .9rem;
  border-radius: 9px
}

.btn.wa {
  background: #1B8755
}

.btn.li {
  background: #0A66C2
}

.btn.fb {
  background: #1877F2
}

.btn.x {
  background: #19173A
}

.btn.ig {
  background: #C8592F
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed
}

.btn.block {
  width: 100%
}

/* layout */
.grid {
  display: grid;
  gap: 16px
}

.c2 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr))
}

.c3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

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

.panel.flat {
  box-shadow: none
}

.panel .n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hb);
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-weight: 700
}

.flow span {
  background: var(--bg2);
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .9rem
}

.flow i {
  font-style: normal;
  color: var(--circle)
}

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

/* forms */
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px
}

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

.step h3 b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hb);
  color: #fff;
  font-size: .9rem
}

.field {
  margin-bottom: 12px
}

.field label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 4px
}

.field label small {
  font-weight: 400;
  color: var(--ink2)
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink)
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--bright);
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 126, 201, 0.18)
}

.field .err {
  color: #A52A1C;
  font-size: .84rem;
  margin-top: 4px
}

.partner-logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
  margin-bottom: 12px;
  transition: all .2s ease
}

.partner-logo-preview img {
  height: 40px;
  max-width: 130px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06)
}

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

.partner-logo-status {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--hb)
}

.partner-logo-info strong {
  font-size: .95rem;
  color: var(--ink)
}

.drop {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  background: var(--bg2);
  display: block
}

.drop:hover,
.drop:focus-within {
  border-color: var(--circle)
}

.drop input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.drop img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  border: 4px solid var(--circle)
}

.cropper {
  display: grid;
  gap: 8px;
  margin-top: 10px
}

.cropper label {
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center
}

.cropper input[type=range] {
  flex: 1;
  accent-color: var(--hb)
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.actions label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: var(--bg)
}

.actions label:has(input:checked) {
  border-color: var(--hb);
  background: var(--bg2);
  box-shadow: inset 0 0 0 1px var(--hb)
}

.actions input {
  margin-top: 4px;
  accent-color: var(--hb)
}

.actions span {
  font-weight: 600
}

.create {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 26px;
  align-items: start
}

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

.preview {
  position: sticky;
  top: 72px
}

.preview canvas,
.preview img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: var(--sw)
}

.preview.landscape canvas {
  max-width: 720px
}

.caption {
  width: 100%;
  min-height: 130px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical
}

.sharebar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.sharebar .btn {
  flex: 1 1 auto
}

.hint {
  font-size: .82rem;
  color: var(--ink2);
  margin-top: 8px
}

.next {
  background: var(--hb);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  margin-top: 18px
}

.next .h2 {
  color: #fff
}

.next .meta {
  color: #BBD3F3;
  font-weight: 600
}

.next .btn.light {
  margin-top: 8px
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 50;
  max-width: 90vw;
  text-align: center
}

.toast.show {
  opacity: 1
}

/* dashboards */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px
}

.kpi b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--hb)
}

.kpi span {
  font-size: .8rem;
  color: var(--ink2);
  font-weight: 600
}

.kpi em {
  display: block;
  font-style: normal;
  font-size: .74rem;
  font-weight: 700;
  margin-top: 3px;
  color: #0B5F55
}

@media (prefers-color-scheme:dark) {
  .kpi b {
    color: #9CC3F5
  }

  .kpi em {
    color: #A7E8DC
  }
}

.funnel {
  display: grid;
  gap: 8px
}

.frow {
  display: grid;
  grid-template-columns: 170px 1fr 76px 60px;
  gap: 10px;
  align-items: center;
  font-size: .9rem
}

@media (max-width:640px) {
  .frow {
    grid-template-columns: 110px 1fr 66px 50px;
    font-size: .8rem
  }
}

.frow .bar {
  height: 24px;
  border-radius: 6px;
  background: var(--bg2);
  overflow: hidden
}

.frow .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hb), var(--circle))
}

.frow .v {
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums
}

.frow .r {
  text-align: right;
  color: var(--ink2);
  font-size: .8rem
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem
}

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

th {
  font-weight: 700;
  color: var(--ink2);
  font-size: .8rem
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums
}

tr.total td {
  font-weight: 800;
  border-top: 2px solid var(--hb)
}

.tablewrap {
  overflow-x: auto
}

.breakdown {
  display: grid;
  gap: 6px
}

.brow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: .88rem
}

.brow .b {
  height: 8px;
  border-radius: 4px;
  background: var(--bg2);
  grid-column: 1/-1;
  overflow: hidden
}

.brow .b i {
  display: block;
  height: 100%;
  background: var(--circle)
}

.chain {
  display: flex;
  flex-direction: column;
  align-items: center
}

.chain .node {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 9px 14px;
  text-align: center;
  min-width: 230px
}

.chain .node b {
  display: block
}

.chain .node small {
  color: var(--ink2)
}

.chain .arrow {
  height: 24px;
  width: 2px;
  background: var(--circle);
  position: relative
}

.chain .arrow:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -5px;
  border: 6px solid transparent;
  border-top-color: var(--circle)
}

.livelist {
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px
}

.livelist table {
  font-size: .84rem
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap
}

.tabs button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700
}

.tabs button[aria-selected=true] {
  background: var(--hb);
  color: #fff;
  border-color: var(--hb)
}

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

.progress {
  height: 8px;
  background: var(--bg2);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0
}

.progress i {
  display: block;
  height: 100%;
  background: var(--turq);
  transition: width .3s
}

.done {
  text-align: center
}

.done .tick {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--turq);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  margin: 0 auto 16px;
  font-weight: 800
}

.checks {
  display: inline-grid;
  gap: 6px;
  text-align: left;
  margin: 0 auto 16px
}

.checks div:before {
  content: "✓";
  color: var(--turq);
  font-weight: 800;
  margin-right: 8px
}

.pathway {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px
}

.pathway .panel {
  border-top: 5px solid var(--circle)
}

.pathway .a {
  border-top-color: var(--teal)
}

.pathway .b {
  border-top-color: var(--terra)
}

.pathway .c {
  border-top-color: var(--purple)
}

.map {
  width: 100%;
  height: auto;
  background: var(--bg2);
  border-radius: 14px
}

.map circle {
  fill: var(--circle);
  fill-opacity: .65;
  stroke: #fff;
  stroke-width: 1
}

.map circle:hover,
.map circle:focus {
  fill: var(--terra);
  fill-opacity: .9;
  outline: none
}

.map text {
  font-size: 9px;
  fill: var(--ink2)
}

code {
  background: var(--bg2);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .86em;
  word-break: break-all
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important
  }
}

/* ==========================================================================
   Footer & Small-size "Powered by" Lockup
   ========================================================================== */
footer,
.site-footer {
  padding: 28px 0 36px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  margin-top: 48px;
  color: var(--ink);
  font-size: 0.85rem;
}

@media (prefers-color-scheme: dark) {

  footer,
  .site-footer {
    background: #0B0E26;
    border-top-color: #232150;
  }
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

.footer-meta {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink2);
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.footer-links a {
  color: var(--bright);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-tags {
  color: var(--ink2);
  font-weight: 600;
}

.footer-powered-compact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.powered-text {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink2);
  opacity: 0.9;
}

.powered-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.powered-brand-lockup:hover {
  box-shadow: 0 2px 8px rgba(10, 63, 138, 0.12);
  transform: translateY(-1px);
}

.powered-logo-img {
  width: auto;
  object-fit: contain;
  display: block;
}

.powered-logo-img.pragmatiq-sm {
  height: 20px;
}

.powered-logo-img.clinally-sm {
  height: 16px;
}

.powered-amp {
  font-size: 0.72rem;
  font-weight: 700;
  color: #718096;
  line-height: 1;
}

@media (max-width: 720px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Social share icon buttons */
.btn.wc {
  background: #07C160;
  color: #fff;
}

.btn.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.social-icon-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* WeChat QR Modal */
.wechat-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 20, 35, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.wechat-modal-card {
  background: var(--card, #ffffff);
  color: var(--ink);
  border-radius: 18px;
  max-width: 430px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.wechat-modal-header {
  background: #07C160;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
}

.wechat-modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wechat-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0.85;
}

.wechat-modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.wechat-modal-body {
  padding: 20px 22px;
  text-align: center;
}

.wechat-qr-container {
  background: #f8fafc;
  border: 2px dashed #07C160;
  border-radius: 14px;
  padding: 14px;
  display: inline-block;
  margin: 10px auto;
}

.wechat-qr-canvas {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.wechat-steps {
  text-align: left;
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--bg2, #f1f5f9);
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink);
}

.wechat-steps ol {
  margin: 4px 0 0 18px;
  padding: 0;
}

.wechat-micromessenger-alert {
  background: #E8F8F0;
  border: 1px solid #A8E8C7;
  color: #076E36;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: left;
}

/* Admin Dashboard & Management UI */
.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.admin-user-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-tab-btn:hover {
  color: var(--hb);
  background: var(--bg2);
}

.admin-tab-btn.active {
  color: #fff;
  background: var(--hb);
}

.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.admin-search-input {
  max-width: 320px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.88rem;
}

.msg-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .15s ease;
}

.msg-card:hover {
  border-color: var(--hb);
}

.msg-content {
  flex: 1 1 auto;
}

.msg-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.msg-meta {
  font-size: 0.78rem;
  color: var(--ink2);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg2);
  color: var(--ink);
}

/* ==========================================================================
   Impact Page: Mission-Control World Map & User Plotting
   ========================================================================== */
.impact-map-container {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #111d33 0%, #090e1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  margin-top: 20px;
}

.map-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.map-filters {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-filter-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.map-filter-btn[aria-selected="true"] {
  background: var(--hb, #0066cc);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-cards {
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
}

.dot-shares {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.dot-all {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.dot-edu {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.map-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #111e36 0%, #091121 75%, #060b16 100%);
}

.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.world-map-svg.is-panning {
  cursor: grabbing;
}

/* Accurate Country Borders & Interactive Choropleth Shading */
.world-countries path,
.world-countries g {
  fill: #16233b;
  stroke: #334e7b;
  stroke-width: 0.65px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.18s ease, stroke 0.18s ease, stroke-width 0.18s ease;
}

.world-countries g path {
  fill: inherit;
  stroke: inherit;
  stroke-width: inherit;
  vector-effect: non-scaling-stroke;
}

/* Active countries with recorded WDD actions */
.world-countries .country-shape.has-activity {
  fill: #1d355e;
  stroke: #4c74b5;
}

.world-countries .country-shape.heat-1 {
  fill: #1b3661;
}

.world-countries .country-shape.heat-2 {
  fill: #1e4278;
}

.world-countries .country-shape.heat-3 {
  fill: #215194;
}

.world-countries .country-shape.heat-4 {
  fill: #2563eb;
  stroke: #7dd3fc;
}

.world-map-svg.mode-cards .world-countries .country-shape.has-activity {
  fill: rgba(0, 210, 255, 0.18);
  stroke: rgba(0, 210, 255, 0.55);
}

.world-map-svg.mode-shares .world-countries .country-shape.has-activity {
  fill: rgba(16, 185, 129, 0.2);
  stroke: rgba(16, 185, 129, 0.55);
}

.world-map-svg.mode-education .world-countries .country-shape.has-activity {
  fill: rgba(168, 85, 247, 0.22);
  stroke: rgba(168, 85, 247, 0.55);
}

/* Country border hover & selected states */
.world-countries .country-shape:hover {
  fill: #2b4c82 !important;
  stroke: #7dd3fc !important;
  stroke-width: 1.15px;
}

.world-countries .country-shape.is-selected {
  fill: #295296 !important;
  stroke: #38bdf8 !important;
  stroke-width: 1.4px;
}

/* Map Zoom & Pan Controls */
.map-zoom-controls {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 15;
}

.map-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.map-zoom-btn:hover {
  background: rgba(30, 58, 138, 0.92);
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.map-interaction-hint {
  position: absolute;
  bottom: 16px;
  left: 64px;
  font-size: 0.73rem;
  color: rgba(203, 213, 225, 0.78);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 12;
}

/* Cursor Hover Tooltip for Country Borders */
.map-hover-tooltip {
  position: absolute;
  min-width: 175px;
  max-width: 240px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 10px;
  padding: 8px 11px;
  color: #f8fafc;
  font-size: 0.76rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 25;
  transition: opacity 0.12s ease;
}

.map-hover-tooltip.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-hover-tooltip .tt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.map-hover-tooltip .tt-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.map-hover-tooltip .tt-badge.active {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.map-hover-tooltip .tt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 8px;
  color: #cbd5e1;
  font-size: 0.73rem;
}

.map-hover-tooltip .tt-grid b {
  color: #fff;
  font-family: var(--mono);
}

.map-hover-tooltip .tt-sub {
  color: #94a3b8;
  font-size: 0.71rem;
}

/* User Plotted Markers */
.map-pin-group {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.map-pin-group:hover,
.map-pin-group:focus {
  outline: none;
  transform: scale(1.35);
}

.map-pulse {
  animation: mapPulseAnim 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center;
  pointer-events: none;
}

@keyframes mapPulseAnim {
  0% {
    r: var(--base-r, 6px);
    opacity: 0.8;
    stroke-width: 2px;
  }

  60% {
    opacity: 0.4;
  }

  100% {
    r: calc(var(--base-r, 6px) * 2.8);
    opacity: 0;
    stroke-width: 0.5px;
  }
}

.pulse-cards {
  stroke: #00d2ff;
  fill: rgba(0, 210, 255, 0.15);
}

.pulse-shares {
  stroke: #10b981;
  fill: rgba(16, 185, 129, 0.15);
}

.pulse-all {
  stroke: #f59e0b;
  fill: rgba(245, 158, 11, 0.15);
}

.pulse-edu {
  stroke: #a855f7;
  fill: rgba(168, 85, 247, 0.15);
}

.map-node-core {
  stroke-width: 1.5px;
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
  transition: r 0.2s, fill 0.2s;
}

.node-cards {
  fill: #00d2ff;
}

.node-shares {
  fill: #10b981;
}

.node-all {
  fill: #f59e0b;
}

.node-edu {
  fill: #a855f7;
}

/* Interactive Hover Card Tooltip */
.map-detail-card {
  position: absolute;
  top: 70px;
  right: 20px;
  width: 320px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  z-index: 20;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-detail-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.map-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.map-stat-tile {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.map-stat-tile .num {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--mono);
}

.map-stat-tile .lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.map-channels-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.map-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.map-channel-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.map-channel-badge.wa {
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}

.map-channel-badge.wc {
  background: rgba(7, 193, 96, 0.2);
  color: #34d399;
}

.map-channel-badge.li {
  background: rgba(10, 102, 194, 0.2);
  color: #60a5fa;
}

.map-channel-badge.fb {
  background: rgba(24, 119, 242, 0.2);
  color: #93c5fd;
}

.map-channel-badge.x {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

/* Real-Time Live Activity Stream Ticker */
.live-stream-bar {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.live-stream-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.live-stream-marquee {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.live-stream-marquee::-webkit-scrollbar {
  display: none;
}

.stream-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}