:root{
  --app-bg: #f7fafc;
  --app-surface: #ffffff;
  --app-ink: #0f172a;
  --app-muted: #64748b;
  --app-primary: #0f766e;
  --app-primary-dark: #115e59;
  --app-accent: #2563eb;
  --app-success: #16a34a;
  --app-border: #dbe5ef;
  --app-border-soft: #e8eef5;
  --app-ring: rgba(15, 118, 110, .18);
  --app-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --app-shadow-sm: 0 8px 22px rgba(15, 23, 42, .06);
}

.app-breadcrumb{
  margin: -4px 0 18px;
}

.app-breadcrumb .breadcrumb{
  align-items: center;
  color: var(--app-muted);
  font-size: .86rem;
  gap: 2px;
}

.app-breadcrumb .breadcrumb-item{
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.app-breadcrumb .breadcrumb-item + .breadcrumb-item::before{
  color: #94a3b8;
  content: "/";
  padding-right: .45rem;
}

.app-breadcrumb a{
  align-items: center;
  color: #475569;
  display: inline-flex;
  gap: 5px;
  text-decoration: none;
}

.app-breadcrumb a:hover{
  color: var(--app-primary);
}

.app-breadcrumb .active{
  color: #0f172a;
  font-weight: 700;
}

.app-breadcrumb i{
  font-size: .9rem;
}

.legal-document{
  color: var(--app-ink);
}

.legal-document-head{
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: var(--app-shadow-sm);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 24px;
}

.legal-kicker{
  color: var(--app-primary);
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.legal-document h1{
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.legal-document-head p{
  color: var(--app-muted);
  margin: 10px 0 0;
  max-width: 760px;
}

.legal-meta{
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
}

.legal-meta div{
  background: #ffffff;
  min-height: 82px;
  padding: 14px;
}

.legal-meta span{
  color: var(--app-muted);
  display: block;
  font-size: .78rem;
  margin-bottom: 5px;
}

.legal-meta strong{
  color: #0f172a;
  font-size: .95rem;
}

.legal-section-list{
  display: grid;
  gap: 12px;
}

.legal-section{
  background: #ffffff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 18px;
}

.legal-section-number{
  align-items: center;
  background: #dcfce7;
  border-radius: 8px;
  color: #14532d;
  display: flex;
  font-weight: 850;
  height: 42px;
  justify-content: center;
}

.legal-section h2{
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.legal-section p{
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.legal-full-document{
  background: #ffffff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  padding: clamp(20px, 4vw, 42px);
}

.legal-full-document h2{
  color: #0f766e;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 28px 0 10px;
}

.legal-full-document h2:first-child{
  margin-top: 0;
}

.legal-full-document p{
  color: #24342d;
  font-size: .98rem;
  line-height: 1.72;
  margin: 0 0 12px;
  text-align: left;
}

.legal-footer-links{
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.legal-footer-links a{
  color: #0f766e;
  text-decoration: none;
}

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

@media (max-width: 767.98px){
  .legal-document-head{
    display: block;
    padding: 18px;
  }

  .legal-document-head .btn{
    margin-top: 14px;
    width: 100%;
  }

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

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

@media print{
  .no-print,
  .app-breadcrumb,
  nav,
  footer{
    display: none !important;
  }

  .legal-document-head,
  .legal-meta,
  .legal-section{
    box-shadow: none !important;
  }
}

.commercial-rule-card{
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.commercial-rule-card span{
  color: #0f766e;
  display: block;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.commercial-rule-card h2{
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.commercial-rule-card p{
  color: #64748b;
  font-size: .9rem;
  line-height: 1.45;
  margin: 0;
}

.commercial-message-editor{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
}

.commercial-preview{
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 18px;
}

.commercial-preview h3{
  color: #0f766e;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.commercial-preview p{
  color: #1f2937;
  line-height: 1.55;
  margin-bottom: 10px;
}

.commercial-prize-recipient{
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 14px;
}

.commercial-prize-preview{
  background: #f0f6ee;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  height: 620px;
  width: 100%;
}

@media (max-width: 767.98px){
  .commercial-prize-preview{
    height: 520px;
  }
}

/* Public merchants: stronger merchant image prominence */
.public-merchant-ad-media{
  aspect-ratio: 16 / 12;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 55%, #ecfeff 100%);
}

.public-merchant-ad-media img{
  height: calc(100% - 12px);
  width: calc(100% - 12px);
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, .2));
}

.public-merchant-ad:hover .public-merchant-ad-media img{
  transform: scale(1.055);
}

.public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .04) 45%, rgba(15, 23, 42, .9) 100%);
}

.public-merchant-image-light .public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .08) 48%, rgba(15, 23, 42, .92) 100%);
}

.public-merchant-image-dark .public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .08) 48%, rgba(0, 0, 0, .9) 100%);
}

.public-merchant-type,
.public-merchant-impact-ribbon{
  backdrop-filter: blur(10px);
}

.public-merchant-media-copy{
  bottom: 16px;
  left: 16px;
  right: 16px;
}

@media (max-width: 767.98px){
  .public-merchant-ad-media{
    aspect-ratio: 16 / 13;
  }

  .public-merchant-ad-media img{
    height: calc(100% - 10px);
    width: calc(100% - 10px);
  }
}

main :where(
  p,
  .commitment-lead,
  .directory-hero-copy,
  .public-merchant-ad-body p,
  .public-certificate-summary p,
  .public-certificate-note,
  .merchant-public-link-copy p,
  .merchant-upload-copy,
  .modal-description,
  .login-showcase-copy > p,
  .login-featured-content p
){
  text-align: left;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Comercial public merchants directory */
.directory-hero{
  background:
    linear-gradient(120deg, rgba(8, 47, 73, .96) 0%, rgba(15, 76, 67, .96) 48%, rgba(30, 41, 59, .98) 100%);
  border: 0;
  color: #ffffff;
  padding: 42px;
}

.directory-hero::before{
  background: #f59e0b;
  width: 5px;
}

.directory-eyebrow{
  color: #a7f3d0;
  font-size: .76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.directory-title{
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  max-width: 760px;
}

.directory-hero-copy{
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
  max-width: 620px;
}

.directory-hero-stats > div{
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
}

.directory-hero-stats span,
.directory-hero-stats small{
  color: rgba(255, 255, 255, .74);
}

.directory-hero-stats strong{
  color: #ffffff;
}

.directory-hero-cta{
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(2, 6, 23, .22);
}

.directory-filter-panel{
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.directory-filter-panel .form-label{
  color: #334155;
  font-size: .78rem;
  font-weight: 800;
}

.directory-filter-panel .form-select,
.directory-filter-panel .btn{
  border-radius: 8px;
  min-height: 44px;
}

.directory-filter-heading span{
  color: #0f766e;
  text-transform: uppercase;
}

.directory-filter-heading i{
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.directory-section-heading{
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.directory-section-heading span{
  color: #0f766e;
  text-transform: uppercase;
}

.public-merchant-ad{
  border-color: #dbe5ef;
  box-shadow: 0 18px 54px rgba(15, 23, 42, .11);
}

.public-merchant-ad:hover{
  border-color: rgba(14, 116, 144, .38);
}

.public-merchant-ad-media{
  aspect-ratio: 16 / 11;
  background: #f8fafc;
}

.public-merchant-ad-media img{
  height: calc(100% - 44px);
  width: calc(100% - 44px);
}

.public-merchant-type{
  color: #0f172a;
  font-size: .72rem;
  text-transform: uppercase;
}

.public-merchant-impact-ribbon{
  background: #f59e0b;
  color: #111827;
}

.public-merchant-media-copy h2{
  font-size: 1.42rem;
}

.public-merchant-ad-body{
  gap: 14px;
}

.public-merchant-proofline span{
  background: #ffffff;
  border-color: #dbeafe;
}

.public-impact-panel,
.public-impact-panel-button{
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.public-impact-panel strong{
  color: #065f46;
}

.public-impact-panel-button em{
  color: #0e7490;
  text-decoration: none;
}

.public-merchant-more-btn,
.public-center-detail-btn{
  background: #0f766e;
  border-color: #0f766e;
}

.public-merchant-more-btn:hover,
.public-merchant-more-btn:focus,
.public-center-detail-btn:hover,
.public-center-detail-btn:focus{
  background: #0e7490;
  border-color: #0e7490;
}

.public-social-link{
  background: #f8fafc;
}

.directory-group-card{
  background: #ffffff;
  border-color: #dbe5ef;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}

.directory-group-card h2{
  color: #0f172a;
}

.directory-progress span{
  background: linear-gradient(90deg, #0f766e, #0e7490 62%, #f59e0b);
}

.public-certificate-modal .modal-header{
  background: #0f172a;
  color: #ffffff;
}

.public-certificate-modal .modal-header .text-muted,
.public-certificate-modal .modal-title{
  color: #ffffff !important;
}

.public-certificate-summary{
  background: #f8fafc;
}

.public-certificate-open{
  border-color: #0f766e;
  color: #0f766e;
}

.public-certificate-open:hover,
.public-certificate-open:focus{
  background: #0f766e;
  color: #ffffff;
}

@media (max-width: 767.98px){
  .directory-hero{
    padding: 24px;
  }

  .directory-filter-panel{
    margin-top: 0;
  }

  .public-merchant-ad-media{
    aspect-ratio: 16 / 12;
  }

  .public-merchant-media-copy h2{
    font-size: 1.22rem;
  }
}

/* Public environmental commitment campaign page */
/* =========================================================================
   Public environmental commitment page — "sello ambiental" design system
   A certificate/seal aesthetic: warm paper, deep forest structure, aged
   brass ceremonial accents, and one *living* accent color extracted live
   from each merchant's own photo (see inline script in commitment.php).
   ========================================================================= */

.public-campaign-main{
  padding: 0;
  overflow: hidden;
}

.public-commitment-body{
  /* Living accent — overwritten at runtime from the merchant's photo.
     Values below are the fallback shown before/without extraction. */
  --merchant-deep: #14372f;
  --merchant-deep-rgb: 20,55,47;
  --merchant-accent: #4f8f6a;
  --merchant-accent-rgb: 79,143,106;
  --merchant-accent-ink: #ffffff;
  --merchant-line: #2f6a4d;
  --merchant-line-rgb: 47,106,77;

  /* Fixed structural tokens */
  --ce-ink: #12201a;
  --ce-ink-soft: #4a564e;
  --ce-paper: #f6f5ee;
  --ce-paper-2: #edece0;
  --ce-forest: #0e2b23;
  --ce-forest-2: #123a30;
  --ce-brass: #a9832e;
  --ce-brass-rgb: 169,131,46;
  --ce-brass-soft: #ede3c8;
  --ce-line: #ddd9c8;

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  background: var(--ce-paper);
  color: var(--ce-ink);
  font-family: var(--font-body);
}

.public-commitment-body h1,
.public-commitment-body h2{
  font-family: var(--font-display);
}

.commitment-shell{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.commitment-kicker{
  display: block;
  color: var(--ce-ink-soft);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.commitment-platform-access{
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 43, 35, 0.18);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(14, 23, 20, 0.16);
  color: var(--ce-forest);
  display: inline-flex;
  gap: 8px;
  left: 18px;
  padding: 8px 13px 8px 9px;
  position: fixed;
  text-decoration: none;
  top: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  z-index: 20;
}

.commitment-platform-access:hover{
  border-color: rgba(14, 43, 35, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 22px 58px rgba(14, 23, 20, 0.22);
}

.commitment-platform-access img{
  display: block;
  height: 34px;
  object-fit: contain;
  width: 34px;
}

.commitment-platform-access span{
  font-size: 0.86rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   Trust bar — a thin ceremonial strip above the hero. Real information
   (this is an authenticated seal, not decoration), not a slogan banner.
   --------------------------------------------------------------------- */
.ce-trust-bar{
  background: var(--ce-forest);
  color: #d9e6de;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.ce-trust-bar-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  text-align: center;
}

.ce-trust-item{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.ce-trust-item i{
  color: var(--ce-brass-soft);
}

.ce-trust-item-muted{
  color: #a9bcb2;
  font-weight: 400;
}

/* ---------------------------------------------------------------------
   Hero — the photo is shown as an honest, legible portrait in its own
   frame (never text-over-photo), so contrast never depends on guessing
   the image's tones. The living accent still saturates the whole hero
   through the frame ring, seal, glow and button.
   --------------------------------------------------------------------- */
.commitment-hero{
  position: relative;
  background: var(--ce-paper);
  padding-bottom: 6px;
  overflow: hidden;
}

.commitment-hero::before{
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(60% 60% at 78% 20%, rgba(var(--merchant-accent-rgb), 0.16), transparent 70%),
              radial-gradient(45% 45% at 10% 0%, rgba(var(--ce-brass-rgb), 0.10), transparent 70%);
  pointer-events: none;
  transition: background .5s ease;
}

.commitment-hero-content{
  position: relative;
  z-index: 1;
  padding: 26px 0 64px;
}

.commitment-brand{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ce-forest);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 9px 15px;
  border: 1px solid var(--ce-line);
  border-radius: 999px;
  background: #fff;
}

.commitment-hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
  margin-top: 38px;
}

.commitment-seal{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ce-forest);
  background: var(--ce-brass-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.commitment-seal i{
  color: var(--ce-brass);
}

.commitment-hero h1{
  color: var(--ce-ink);
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(2.05rem, 4.4vw, 4.15rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
}

.commitment-title{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.commitment-title-icon{
  width: clamp(34px, 4vw, 48px);
  height: clamp(34px, 4vw, 48px);
  border-radius: 999px;
  color: var(--merchant-accent-ink);
  background: var(--merchant-accent);
  display: grid;
  place-items: center;
  font-size: clamp(1rem, 2vw, 1.45rem);
  box-shadow: 0 12px 24px rgba(var(--merchant-accent-rgb), 0.24);
}

.commitment-title-copy{
  display: grid;
  gap: 8px;
}

.commitment-title-name,
.commitment-title-phrase{
  display: block;
}

.commitment-title-phrase{
  max-width: 620px;
  color: var(--ce-ink-soft);
  font-size: clamp(1.3rem, 2.8vw, 2.35rem);
  line-height: 1.16;
  font-weight: 500;
}

.commitment-hero h1::after{
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--merchant-accent);
  transition: background-color .5s ease;
}

.commitment-gated-content[hidden]{
  display: none;
}

.commitment-lead{
  max-width: 620px;
  color: var(--ce-ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  margin: 0;
}

.commitment-hero-actions,
.commitment-not-found-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.commitment-primary-btn,
.commitment-secondary-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, transform .18s ease, border-color .2s ease;
}

.commitment-primary-btn{
  color: var(--merchant-accent-ink);
  background: var(--merchant-accent);
  box-shadow: 0 14px 28px rgba(var(--merchant-accent-rgb), 0.28);
}

.commitment-primary-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  color: var(--merchant-accent-ink);
}

.commitment-secondary-btn{
  color: var(--ce-forest);
  border-color: var(--ce-line);
  background: #fff;
}

.commitment-secondary-btn:hover{
  color: var(--ce-forest);
  border-color: var(--ce-forest);
  transform: translateY(-1px);
}

/* Portrait card — the merchant's real photo, shown plainly */
.commitment-portrait{
  position: relative;
}

.commitment-portrait-badge{
  position: absolute;
  top: -14px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ce-forest);
  color: #eef3ee;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 22px rgba(14, 23, 20, 0.24);
}

.commitment-portrait-badge i{
  color: var(--ce-brass-soft);
}

.commitment-portrait-frame{
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 8px var(--merchant-accent),
    0 30px 60px rgba(14, 23, 20, 0.22);
  transition: box-shadow .5s ease;
}

.commitment-portrait-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.commitment-portrait-info{
  margin-top: 22px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: 14px;
}

.commitment-portrait-info strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.commitment-portrait-info span{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ce-ink-soft);
  font-size: 0.92rem;
  margin-top: 6px;
}

.commitment-portrait-info i{
  color: var(--merchant-line);
  transition: color .5s ease;
}

/* ---------------------------------------------------------------------
   Metrics — a ledger of stamped tickets, not generic stat cards.
   --------------------------------------------------------------------- */
.commitment-panel-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

.commitment-metric{
  position: relative;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--ce-line);
  border-left: none;
}

.commitment-metric:first-child{
  border-left: 1px solid var(--ce-line);
  border-radius: 14px 0 0 14px;
}

.commitment-metric:last-child{
  border-radius: 0 14px 14px 0;
}

.commitment-metric:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 0;
  border-right: 1px dashed var(--ce-line);
}

.commitment-metric span{
  display: block;
  color: var(--ce-ink-soft);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.commitment-metric-featured{
  background: var(--ce-forest);
  color: #fff;
  border-color: var(--ce-forest);
}

.commitment-metric-featured span{
  color: #b9ccc0;
}

.commitment-metric strong{
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1;
  font-weight: 600;
}

.commitment-metric small{
  display: block;
  margin-top: 8px;
  color: var(--ce-ink-soft);
  font-size: 0.86rem;
}

.commitment-metric-featured small{
  color: #cfe0d6;
}

/* ---------------------------------------------------------------------
   Story + progress
   --------------------------------------------------------------------- */
.commitment-story-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  padding: 84px 0 46px;
}

.commitment-story h2,
.commitment-choice h2,
.commitment-share h2,
.commitment-contact h2,
.commitment-section-head h2,
.commitment-not-found h1{
  margin: 10px 0 18px;
  color: var(--ce-ink);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.commitment-story p,
.commitment-choice p,
.commitment-contact p,
.commitment-progress-card p{
  color: var(--ce-ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.commitment-proof-list{
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.commitment-proof-list div{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: 12px;
}

.commitment-proof-list i{
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--merchant-line);
  border-radius: 50%;
  flex: 0 0 32px;
  font-size: 0.9rem;
  transition: background-color .5s ease;
}

.commitment-proof-list span{
  color: var(--ce-ink-soft);
}

.commitment-proof-list strong{
  color: var(--ce-ink);
  font-family: var(--font-mono);
  font-weight: 600;
}

.commitment-progress-card{
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(14, 43, 35, 0.08);
  align-self: start;
  text-align: center;
}

.commitment-progress-head{
  text-align: left;
}

.commitment-progress-head strong{
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.commitment-progress-ring{
  width: 176px;
  height: 176px;
  margin: 26px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--merchant-accent) var(--commitment-progress), var(--ce-paper-2) 0);
  position: relative;
  transition: background .5s ease;
}

.commitment-progress-ring::before{
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px dashed rgba(var(--ce-brass-rgb), 0.5);
}

.commitment-progress-ring::after{
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
}

.commitment-progress-ring span{
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
}

.commitment-next-progress{
  text-align: left;
}

.commitment-next-progress div{
  display: flex;
  justify-content: space-between;
  color: var(--ce-ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.commitment-next-progress em{
  display: block;
  height: 8px;
  margin-top: 8px;
  background: var(--ce-paper-2);
  border-radius: 999px;
  overflow: hidden;
}

.commitment-next-progress i{
  display: block;
  height: 100%;
  background: var(--merchant-line);
  transition: background-color .5s ease;
}

/* ---------------------------------------------------------------------
   Choice / persuasion strip
   --------------------------------------------------------------------- */
.commitment-choice{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: center;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: 16px;
}

.commitment-choice-card{
  padding: 24px;
  border-radius: 14px;
  background: var(--ce-paper);
  border: 1px solid var(--ce-line);
}

.commitment-choice-card i{
  font-size: 1.9rem;
  color: var(--merchant-line);
  transition: color .5s ease;
}

.commitment-choice-card strong,
.commitment-choice-card span{
  display: block;
}

.commitment-choice-card strong{
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 600;
}

.commitment-choice-card span{
  color: var(--ce-ink-soft);
}

/* ---------------------------------------------------------------------
   Certificates — medallion badges, the page's signature element
   --------------------------------------------------------------------- */
.commitment-certificates,
.commitment-share,
.commitment-contact{
  margin-top: 30px;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--ce-line);
  border-radius: 16px;
}

.commitment-certificate-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.commitment-certificate-grid article{
  position: relative;
  display: flex;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid var(--ce-line);
  border-radius: 14px;
  background: var(--ce-paper);
}

.commitment-certificate-grid article::before{
  content: "";
  flex: 0 0 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 45%), var(--merchant-accent);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--ce-brass-soft);
  transition: background-color .5s ease;
}

.commitment-medallion-body{
  flex: 1;
  min-width: 0;
}

.commitment-certificate-grid span,
.commitment-certificate-grid em{
  display: block;
  color: var(--ce-ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.commitment-certificate-grid strong{
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  word-break: break-word;
}

.commitment-certificate-grid p{
  color: var(--ce-ink-soft);
  margin: 10px 0;
  font-size: 0.92rem;
}

.commitment-certificate-grid a{
  color: var(--merchant-line);
  font-weight: 700;
  text-decoration: none;
  transition: color .5s ease;
}

/* ---------------------------------------------------------------------
   Share + contact
   --------------------------------------------------------------------- */
.commitment-share{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.commitment-share-actions,
.commitment-socials{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.commitment-share-actions a,
.commitment-share-actions button,
.commitment-socials a{
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ce-line);
  background: #fff;
  color: var(--ce-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: border-color .2s ease, color .2s ease, transform .18s ease;
}

.commitment-share-actions button{
  cursor: pointer;
}

.commitment-share-actions a:hover,
.commitment-share-actions button:hover,
.commitment-socials a:hover{
  border-color: var(--merchant-line);
  color: var(--merchant-line);
  transform: translateY(-1px);
}

.commitment-socials{
  margin-top: 12px;
}

.commitment-socials a{
  width: 44px;
  padding: 0;
}

.commitment-contact{
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 34px;
  margin-bottom: 48px;
}

.commitment-lead-form{
  display: grid;
  gap: 14px;
}

.commitment-lead-form label{
  display: grid;
  gap: 7px;
  color: var(--ce-ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.commitment-lead-form input,
.commitment-lead-form textarea{
  width: 100%;
  border: 1px solid var(--ce-line);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ce-ink);
  background: var(--ce-paper);
  font: inherit;
  transition: border-color .2s ease, outline-color .2s ease;
}

.commitment-lead-form input:focus,
.commitment-lead-form textarea:focus{
  outline: 3px solid rgba(var(--merchant-line-rgb), 0.16);
  border-color: var(--merchant-line);
}

.commitment-lead-form button{
  border: 0;
  width: fit-content;
  cursor: pointer;
}

.commitment-form-alert{
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
}

.commitment-form-success{
  background: #e4f2e1;
  color: #1d5d43;
}

.commitment-form-error{
  background: var(--ce-brass-soft);
  color: #7a4e08;
}

/* ---------------------------------------------------------------------
   Footer + not-found
   --------------------------------------------------------------------- */
.commitment-footer{
  background: var(--ce-forest);
  color: #d9e6de;
  padding: 26px 0;
}

.commitment-footer .commitment-shell{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.92rem;
}

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

.commitment-footer a{
  color: var(--ce-brass-soft);
  font-weight: 700;
  text-decoration: none;
}

.commitment-footer a.commitment-footer-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  color: #153225;
  background: var(--ce-brass-soft);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

.commitment-footer a.commitment-footer-cta:hover{
  color: #0f241b;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.commitment-not-found{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 32px 32px;
  background: var(--ce-forest);
}

.commitment-not-found-card{
  width: min(760px, 100%);
  padding: 44px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}

.commitment-not-found-icon{
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ce-forest);
  font-size: 1.9rem;
}

.commitment-not-found-card > span{
  color: var(--ce-ink-soft);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.commitment-not-found-card p{
  color: var(--ce-ink-soft);
  font-size: 1.02rem;
}

.commitment-not-found-actions{
  justify-content: center;
}

.commitment-not-found .commitment-secondary-btn{
  color: var(--ce-ink);
  border-color: var(--ce-line);
  background: #fff;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 980px){
  .commitment-hero-grid{
    grid-template-columns: 1fr;
  }

  .commitment-portrait{
    max-width: 420px;
  }

  .commitment-story-grid,
  .commitment-choice,
  .commitment-contact{
    grid-template-columns: 1fr;
  }

  .commitment-panel-row{
    grid-template-columns: repeat(2, 1fr);
  }

  .commitment-metric:nth-child(2){
    border-radius: 0 14px 0 0;
  }

  .commitment-metric:nth-child(3){
    border-left: 1px solid var(--ce-line);
    border-radius: 0 0 0 14px;
  }

  .commitment-metric:nth-child(2n)::after{
    display: none;
  }

  .commitment-share{
    align-items: flex-start;
    flex-direction: column;
  }

  .commitment-share-actions,
  .commitment-socials{
    justify-content: flex-start;
  }

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

@media (max-width: 640px){
  .commitment-shell{
    width: min(100% - 24px, 1120px);
  }

  .ce-trust-bar-inner{
    gap: 10px;
    font-size: 0.7rem;
  }

  .ce-trust-item-muted{
    display: none;
  }

  .commitment-hero h1{
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .commitment-title{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .commitment-title-icon{
    width: 38px;
    height: 38px;
  }

  .commitment-hero-actions,
  .commitment-not-found-actions{
    flex-direction: column;
  }

  .commitment-primary-btn,
  .commitment-secondary-btn{
    width: 100%;
  }

  .commitment-panel-row{
    grid-template-columns: 1fr;
  }

  .commitment-metric,
  .commitment-metric:first-child,
  .commitment-metric:last-child,
  .commitment-metric:nth-child(2),
  .commitment-metric:nth-child(3){
    border-radius: 14px;
    border-left: 1px solid var(--ce-line);
  }

  .commitment-metric::after{
    display: none;
  }

  .commitment-story-grid{
    padding: 56px 0 32px;
  }

  .commitment-choice,
  .commitment-certificates,
  .commitment-share,
  .commitment-contact{
    padding: 26px;
  }

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

.merchant-public-link-panel{
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid #cfe3d3;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbf0 0%, #ffffff 70%);
}

.merchant-public-link-kicker{
  color: #20724f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.merchant-public-link-copy h2{
  margin: 4px 0 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0;
  color: #17211f;
}

.merchant-public-link-copy p{
  margin: 0;
  color: #5c6b66;
}

.merchant-public-link-actions{
  display: grid;
  gap: 10px;
}

.login-showcase{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 22px;
  align-items: center;
  min-height: calc(100vh - 180px);
}

.login-showcase-copy{
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 46px;
  color: var(--app-ink);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, .96) 0%, rgba(255, 255, 255, .98) 54%, rgba(239, 246, 255, .96) 100%);
  border: 1px solid var(--app-border-soft);
  box-shadow: var(--app-shadow-sm);
}

.login-showcase-copy::before{
  content: "";
  position: absolute;
  right: -72px;
  bottom: -78px;
  width: 330px;
  height: 330px;
  background: url("../../img_logo/logo.png") center/contain no-repeat;
  opacity: .075;
  pointer-events: none;
}

.login-brand-mark{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: var(--app-ink);
  font-weight: 850;
}

.login-kicker{
  position: relative;
  z-index: 1;
  display: block;
  color: var(--app-primary);
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.login-showcase-copy h1{
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 10px 0 14px;
  color: var(--app-ink);
  font-size: 2.55rem;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.login-showcase-copy > p{
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-bottom: 22px;
  color: #526174;
  font-size: 1.02rem;
  line-height: 1.58;
}

.login-proof-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 26px;
}

.login-proof-grid div{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.login-proof-grid i{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--app-primary);
}

.login-proof-grid div:nth-child(2) i{
  background: var(--app-accent);
}

.login-proof-grid div:nth-child(3) i{
  background: #b45309;
}

.login-proof-grid span{
  color: #334155;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
}

.login-featured-label{
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  color: #14532d;
  display: inline-flex;
  line-height: 1.15;
  max-width: 100%;
  padding: 6px 9px;
  position: relative;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .055em;
}

.login-featured-merchant{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  max-width: 620px;
  padding: 14px;
  border-radius: 8px;
  color: var(--app-ink);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--app-border-soft);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform-origin: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.login-featured-merchant:hover{
  color: var(--app-ink);
  border-color: rgba(15, 118, 110, .28);
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
}

.login-featured-merchant:hover .login-featured-media img{
  transform: scale(1.045);
}

.login-featured-merchant:hover .login-featured-content em{
  color: var(--app-primary-dark);
}

.login-featured-image-light{
  color: var(--app-ink);
  background: rgba(255, 255, 255, .96);
}

.login-featured-image-light:hover{
  color: var(--app-ink);
}

.login-featured-image-light .login-featured-label{
  color: #14532d;
}

.login-featured-image-light .login-featured-content em{
  color: var(--app-primary);
}

.login-featured-image-dark{
  color: #f8fafc;
  background: rgba(13, 31, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .42);
}

.login-featured-image-dark:hover{
  color: #f8fafc;
}

.login-featured-image-dark .login-featured-label,
.login-featured-image-dark .login-featured-location,
.login-featured-image-dark .login-featured-content p,
.login-featured-image-dark .login-featured-content small,
.login-featured-image-dark .login-featured-metrics span{
  color: rgba(248, 250, 252, 0.9);
}

.login-featured-image-dark .login-featured-content h2,
.login-featured-image-dark .login-featured-metrics strong{
  color: #ffffff;
}

.login-featured-image-dark .login-featured-label,
.login-featured-image-dark .login-featured-content em{
  color: #bbf7d0;
}

.login-featured-image-dark .login-featured-label{
  background: linear-gradient(135deg, rgba(187, 247, 208, 0.18) 0%, rgba(34, 197, 94, 0.2) 100%);
  border-color: rgba(187, 247, 208, 0.26);
  box-shadow: none;
  color: #eafff1;
}

.login-featured-image-dark .login-featured-metrics div{
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.login-featured-image-mixed .login-featured-label{
  color: #14532d;
}

.login-featured-image-mixed{
  color: #10251f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .97) 0%, rgba(244, 250, 247, .96) 100%);
}

.login-featured-image-mixed .login-featured-content h2,
.login-featured-image-light .login-featured-content h2,
.login-featured-image-mixed .login-featured-metrics strong,
.login-featured-image-light .login-featured-metrics strong{
  color: #10251f;
}

.login-featured-media{
  align-self: start;
  width: 82px;
  min-height: 82px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .86), rgba(240, 249, 255, .74));
  border: 1px solid rgba(15, 118, 110, .14);
  display: grid;
  place-items: center;
}

.login-featured-media img{
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  transition: transform .22s ease;
}

.login-featured-content{
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-featured-content h2{
  color: inherit;
  margin: 6px 0 5px;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.login-featured-location{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #537066;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-featured-content p{
  color: #4d5e58;
  line-height: 1.42;
  margin: 0 0 8px;
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.login-featured-metrics{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.login-featured-metrics div{
  min-width: 104px;
  padding: 7px 9px;
  border: 1px solid #dfe7dc;
  border-radius: 8px;
  background: #f6fbf3;
}

.login-featured-metrics strong,
.login-featured-metrics span{
  display: block;
}

.login-featured-metrics strong{
  font-size: 1rem;
  line-height: 1;
  font-weight: 900;
}

.login-featured-metrics span{
  color: #5c6b66;
  font-size: 0.74rem;
  font-weight: 800;
}

.login-featured-content small{
  color: #64748b;
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.login-featured-content em{
  color: var(--app-primary);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
}

.login-directory-link{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--app-ink);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.login-directory-link:hover,
.login-directory-link:focus{
  color: var(--app-primary);
  border-color: rgba(15, 118, 110, .35);
}

.login-panel-wrap{
  display: grid;
  align-items: center;
}

.login-panel{
  padding: 34px;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--app-shadow);
}

.login-panel-head{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.login-panel-icon{
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--app-primary);
  font-size: 1.35rem;
  flex: 0 0 48px;
}

.login-panel-head span{
  color: var(--app-primary);
  display: block;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-panel h2{
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.login-panel p{
  margin: 3px 0 0;
  color: var(--app-muted);
  line-height: 1.35;
}

.login-form{
  display: grid;
  gap: 16px;
}

.login-form label{
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

.login-input-field{
  position: relative;
  display: block;
}

.login-input-field > i{
  position: absolute;
  top: 50%;
  left: 13px;
  color: #64748b;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-form input{
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 13px 12px 40px;
  color: var(--app-ink);
  background: #f8fafc;
  font: inherit;
}

.login-form input:focus{
  outline: 3px solid var(--app-ring);
  border-color: var(--app-primary);
  background: #fff;
}

.login-password-field input{
  padding-right: 48px;
}

.login-form .login-password-toggle{
  position: absolute;
  top: 50%;
  right: 6px;
  width: 38px;
  min-height: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  color: #475569;
  background: transparent;
  display: grid;
  place-items: center;
}

.login-form .login-password-toggle:hover,
.login-form .login-password-toggle:focus{
  color: var(--app-ink);
  background: #e2e8f0;
  outline: none;
}

.login-form button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--app-primary);
  font-weight: 900;
  transition: background-color .18s ease, transform .18s ease;
}

.login-form button:hover,
.login-form button:focus{
  background: var(--app-primary-dark);
  transform: translateY(-1px);
}

.login-panel-links{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.login-panel-links a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--app-primary);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px){
  .merchant-public-link-panel{
    grid-template-columns: 1fr;
  }

  .login-showcase{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-showcase-copy{
    order: 2;
    padding: 32px;
  }

  .login-panel-wrap{
    align-items: stretch;
    order: 1;
  }
}

@media (max-width: 640px){
  .login-showcase{
    gap: 18px;
  }

  .login-showcase-copy{
    padding: 22px;
  }

  .login-showcase-copy h1{
    font-size: 1.85rem;
    line-height: 1.08;
  }

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

  .login-featured-merchant{
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .login-featured-media{
    width: 58px;
    min-height: 58px;
    aspect-ratio: 1;
  }

  .login-featured-label{
    font-size: 0.62rem;
    padding: 6px 8px;
  }

  .login-featured-content p{
    display: none;
  }

  .login-featured-metrics div{
    min-width: 0;
    flex: 1 1 120px;
  }

  .login-panel{
    padding: 24px;
  }

  .login-panel-head{
    align-items: flex-start;
  }

  .login-panel-links{
    flex-direction: column;
    gap: 10px;
  }
}

html{
  background: var(--app-bg);
  overflow-x: hidden;
}

body{
  min-height: 100vh;
  color: var(--app-ink);
  background:
    linear-gradient(180deg, rgba(236, 253, 245, .72) 0%, rgba(248, 250, 252, .96) 310px),
    var(--app-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a{
  color: var(--app-primary);
}

a:hover{
  color: var(--app-primary-dark);
}

main.container{
  padding-top: 32px !important;
  padding-bottom: 28px !important;
}

.app-nav{
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(219, 229, 239, .92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 12px 30px rgba(15, 23, 42, .05);
  backdrop-filter: blur(12px);
}

.app-nav .container{
  min-width: 0;
}

.app-nav .navbar-brand{
  color: var(--app-ink) !important;
  min-width: 0;
}

.app-nav .nav-link{
  color: #475569 !important;
  border-radius: 8px;
  font-weight: 500;
  padding-inline: .75rem !important;
}

.app-nav .nav-link:hover,
.app-nav .nav-link:focus{
  color: var(--app-primary) !important;
  background: rgba(15, 118, 110, .08);
}

.app-nav .btn-light{
  color: #fff;
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.app-nav .navbar-toggler{
  border-color: rgba(15, 23, 42, .18);
}

.app-nav .navbar-toggler:focus{
  box-shadow: 0 0 0 .2rem var(--app-ring);
}

.app-nav .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f172a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.brand-dot{
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--app-primary), var(--app-accent));
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
  display: inline-block;
}

.icon-badge{
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--app-primary);
  border: 1px solid #bbf7d0;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.card{
  color: var(--app-ink);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--app-border-soft) !important;
  border-radius: 8px;
  box-shadow: var(--app-shadow-sm) !important;
}

.card:hover{
  box-shadow: var(--app-shadow) !important;
}

.card-body{
  position: relative;
}

.text-muted{
  color: var(--app-muted) !important;
}

h1, h2, h3, h4, h5, h6,
.display-6{
  color: var(--app-ink);
  letter-spacing: 0;
}

.bg-light{
  background: #f8fafc !important;
  border: 1px solid var(--app-border-soft);
}

.border-success{
  border-color: var(--app-success) !important;
}

.btn{
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none !important;
}

.btn-primary{
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--app-primary);
  --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--app-primary-dark);
  --bs-btn-hover-border-color: var(--app-primary-dark);
  --bs-btn-active-bg: #134e4a;
  --bs-btn-active-border-color: #134e4a;
}

.btn-success{
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--app-success);
  --bs-btn-border-color: var(--app-success);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #15803d;
  --bs-btn-hover-border-color: #15803d;
}

.btn-outline-secondary{
  --bs-btn-color: #334155;
  --bs-btn-border-color: #cbd5e1;
  --bs-btn-hover-color: var(--app-ink);
  --bs-btn-hover-bg: #f1f5f9;
  --bs-btn-hover-border-color: #94a3b8;
}

.btn-outline-success{
  --bs-btn-color: var(--app-primary);
  --bs-btn-border-color: rgba(15, 118, 110, .45);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--app-primary);
  --bs-btn-hover-border-color: var(--app-primary);
}

.form-label{
  color: #334155;
  font-weight: 600;
}

.form-control,
.form-select{
  color: var(--app-ink);
  background-color: #fff;
  border-color: #cbd5e1;
  border-radius: 8px;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus{
  border-color: var(--app-primary);
  box-shadow: 0 0 0 .25rem var(--app-ring) !important;
}

.form-text{
  color: var(--app-muted);
}

.dropdown-menu{
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: var(--app-shadow);
}

.dropdown-item:hover,
.dropdown-item:focus{
  color: var(--app-primary);
  background: #ecfdf5;
}

.alert{
  border-radius: 8px;
  border-width: 1px;
  box-shadow: var(--app-shadow-sm);
}

.badge{
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0;
}

.text-bg-dark{
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

.text-bg-primary,
.bg-primary{
  background-color: var(--app-accent) !important;
}

.text-bg-success,
.bg-success{
  background-color: var(--app-success) !important;
}

.text-bg-light{
  color: #334155 !important;
  background-color: #f8fafc !important;
  border-color: var(--app-border-soft) !important;
}

.text-bg-success-subtle{
  color: #166534 !important;
  background-color: #dcfce7 !important;
}

.table{
  --bs-table-bg: transparent;
  --bs-table-color: var(--app-ink);
  --bs-table-hover-bg: #f8fafc;
  margin-bottom: 0;
}

.table thead th{
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid var(--app-border);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td,
.table th{
  border-top-color: var(--app-border-soft);
  vertical-align: middle;
}

.table tbody tr:last-child td{
  border-bottom-color: transparent;
}

.table-responsive{
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.qr-box{
  width: 240px;
  height: 240px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: var(--app-shadow-sm);
  display: grid;
  place-items: center;
}

.merchant-qr-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
  min-width: 280px;
}

.merchant-qr-actions .btn{
  white-space: nowrap;
}

.qr-grams-focus{
  background: #fff7ed;
  border: 2px solid #fb923c;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(249, 115, 22, .12);
  padding: 16px;
}

.qr-grams-focus .form-label{
  color: #7c2d12;
  font-weight: 800;
}

.qr-grams-badge{
  background: #9a3412;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.qr-grams-input{
  color: #111827;
  font-size: 1.45rem;
  font-weight: 800;
}

.qr-grams-focus .form-text{
  color: #7c2d12;
  font-weight: 600;
}

.qr-impact-calculator{
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px;
}

.qr-impact-rate{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.qr-impact-rate span{
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: 999px;
  color: #166534;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 9px;
}

.qr-impact-box{
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: 8px;
  min-height: 82px;
  padding: 12px;
}

.qr-impact-box span,
.qr-impact-box small{
  color: #64748b;
  display: block;
  font-size: .78rem;
  line-height: 1.35;
}

.qr-impact-box strong{
  color: #0f172a;
  display: block;
  font-size: 1.22rem;
  line-height: 1.25;
  margin-top: 4px;
}

.qr-impact-box-primary{
  background: #dcfce7;
  border-color: #86efac;
}

.qr-impact-box-primary strong{
  color: #14532d;
  font-size: 1.35rem;
}

.qr-impact-box-primary small{
  color: #166534;
  margin-top: 4px;
}

.dashboard-merchant-link a,
.dashboard-merchant-link > span{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 180px;
  color: inherit;
  text-decoration: none;
}

.dashboard-merchant-link img{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: var(--app-shadow-sm);
}

.dashboard-merchant-link a:hover span{
  color: var(--app-primary);
  text-decoration: underline;
}

.impersonation-bar{
  position: sticky;
  top: 58px;
  z-index: 1020;
  padding: .55rem 0;
  color: #111827;
  background: #fde68a;
  border-bottom: 1px solid #f59e0b;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .08);
}

@media (max-width: 767.98px){
  .merchant-qr-actions{
    justify-content: flex-start;
    min-width: 0;
  }
}

.scan-box{
  min-height: 320px;
  padding: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
}

.progress{
  background-color: #e2e8f0;
}

.progress-bar{
  background-color: var(--app-primary);
}

.app-footer{
  color: var(--app-muted);
  border-top: 1px solid var(--app-border-soft);
  padding-top: 14px;
}

.app-footer a{
  color: var(--app-primary);
  font-weight: 700;
  text-decoration: none;
}

.merchant-logo-frame{
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.merchant-logo-frame-upload{
  flex: 0 0 170px;
  max-width: 170px;
}

.merchant-logo-frame-sm{
  max-width: 150px;
}

.public-merchant-logo{
  flex: 0 0 76px;
  max-width: 76px;
}

.public-social-link{
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.directory-hero{
  background:
    linear-gradient(135deg, rgba(240, 253, 250, .96) 0%, rgba(255, 255, 255, .98) 52%, rgba(239, 246, 255, .96) 100%);
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .12);
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.directory-hero::before{
  background: rgba(15, 118, 110, .1);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 7px;
}

.directory-hero > .row{
  position: relative;
  z-index: 1;
}

.directory-eyebrow{
  color: var(--app-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.directory-title{
  color: var(--app-ink);
  font-size: 2.55rem;
  line-height: 1.08;
  font-weight: 900;
}

.directory-hero-copy{
  color: #334155;
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 680px;
}

.directory-hero-stats{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
}

.directory-hero-stats > div{
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  padding: 18px;
}

.directory-hero-stats span,
.directory-hero-stats small{
  color: var(--app-muted);
  display: block;
  font-size: .82rem;
}

.directory-hero-stats strong{
  color: #064e3b;
  display: block;
  font-size: 1.95rem;
  line-height: 1.1;
  margin-top: 6px;
}

.directory-hero-cta{
  font-weight: 800;
  min-height: 42px;
}

.directory-filter-panel{
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
  overflow: hidden;
  padding: 22px;
}

.directory-filter-heading{
  align-items: center;
  border-bottom: 1px solid var(--app-border-soft);
  display: flex;
  justify-content: space-between;
  margin: -2px 0 18px;
  padding-bottom: 14px;
}

.directory-filter-heading span,
.directory-filter-heading strong{
  display: block;
}

.directory-filter-heading span{
  color: var(--app-muted);
  font-size: .8rem;
  font-weight: 800;
}

.directory-filter-heading strong{
  color: var(--app-ink);
  font-size: 1.02rem;
  margin-top: 2px;
}

.directory-filter-heading i{
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #047857;
  display: inline-flex;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.directory-section-heading{
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 28px 0 16px;
}

.directory-section-heading span{
  color: var(--app-primary-dark);
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.directory-section-heading h2{
  color: var(--app-ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.directory-group-card{
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: var(--app-shadow-sm);
  overflow: hidden;
  padding: 20px;
}

.directory-group-card h2{
  font-size: .98rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.directory-group-list{
  display: grid;
  gap: 14px;
}

.directory-group-row{
  min-width: 0;
}

.directory-group-row-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.directory-group-row-head strong,
.directory-group-row-head span{
  display: block;
}

.directory-group-row-head strong{
  color: var(--app-ink);
  font-size: .94rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.directory-group-row-head span{
  color: var(--app-muted);
  font-size: .78rem;
  margin-top: 2px;
}

.directory-group-impact{
  flex: 0 0 auto;
  text-align: right;
}

.directory-progress{
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.directory-progress span{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--app-primary), var(--app-accent));
  border-radius: inherit;
}

.public-merchant-ad{
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.public-merchant-ad:hover{
  border-color: rgba(15, 118, 110, .26);
  box-shadow: 0 28px 76px rgba(15, 23, 42, .16);
  transform: translateY(-3px);
}

.public-merchant-ad-media{
  aspect-ratio: 16 / 13;
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 58%, #f8fafc 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.public-merchant-ad-media img{
  width: calc(100% - 34px);
  height: calc(100% - 34px);
  object-fit: contain;
  display: block;
  transition: transform .28s ease;
  filter: drop-shadow(0 16px 30px rgba(15, 23, 42, .16));
  position: relative;
  z-index: 1;
}

.public-merchant-ad:hover .public-merchant-ad-media img{
  transform: scale(1.035);
}

.public-merchant-ad-empty{
  color: var(--app-primary);
  display: grid;
  height: 100%;
  place-items: center;
  width: 100%;
}

.public-merchant-ad-empty i{
  font-size: 68px;
}

.public-merchant-ad-shade{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 23, 42, .03) 0%, rgba(15, 23, 42, .1) 42%, rgba(15, 23, 42, .84) 100%);
  pointer-events: none;
}

.public-merchant-image-light .public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(15, 23, 42, .12) 0%, rgba(15, 23, 42, .22) 44%, rgba(15, 23, 42, .88) 100%);
}

.public-merchant-image-dark .public-merchant-ad-media{
  background: linear-gradient(135deg, #13231f 0%, #1f4238 55%, #0f172a 100%);
}

.public-merchant-image-dark .public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .14) 42%, rgba(0, 0, 0, .82) 100%);
}

.public-merchant-type{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  color: #064e3b;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  font-size: .76rem;
  font-weight: 800;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 6px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-merchant-impact-ribbon{
  align-items: center;
  background: rgba(6, 78, 59, .92);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  gap: 6px;
  padding: 8px 10px;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
}

.public-merchant-impact-ribbon strong,
.public-merchant-impact-ribbon span{
  display: block;
  line-height: 1;
}

.public-merchant-impact-ribbon strong{
  font-size: 1.15rem;
  font-weight: 900;
}

.public-merchant-impact-ribbon span{
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-merchant-media-copy{
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .72);
}

.public-merchant-media-copy h2{
  color: #fff;
  font-size: 1.58rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .82);
}

.public-merchant-media-copy span{
  display: block;
  color: rgba(255, 255, 255, .96);
  font-size: .86rem;
  margin-top: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .74);
}

.public-merchant-ad-body{
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.public-merchant-proofline{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-merchant-proofline span{
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 800;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
}

.public-merchant-proofline i{
  color: #047857;
}

.public-merchant-ad-body p{
  color: var(--app-muted);
  font-size: .93rem;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.public-merchant-footer{
  align-items: flex-end;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: auto;
}

.public-impact-panel{
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  min-width: 142px;
  padding: 12px;
}

.public-impact-stack{
  display: grid;
  gap: 10px;
  min-width: 160px;
}

.public-impact-panel span,
.public-impact-panel small{
  color: var(--app-muted);
  display: block;
  font-size: .78rem;
}

.public-impact-panel strong{
  color: var(--app-primary-dark);
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.05;
}

.public-impact-panel-button{
  appearance: none;
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, .24);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  padding: 12px;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  width: 100%;
}

.public-impact-panel-button:hover,
.public-impact-panel-button:focus{
  background: #ccfbf1;
  border-color: rgba(15, 118, 110, .48);
  outline: none;
  transform: translateY(-1px);
}

.public-impact-panel-button em{
  color: var(--app-primary-dark);
  display: inline-flex;
  font-size: .76rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 7px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-available-panel{
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 10px 12px;
}

.public-available-panel span,
.public-available-panel strong{
  display: block;
}

.public-available-panel span{
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 700;
}

.public-available-panel strong{
  color: var(--app-ink);
  font-size: 1.12rem;
  line-height: 1.12;
  margin-top: 2px;
}

.public-center-detail-btn{
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  min-height: 34px;
  box-shadow: 0 10px 24px rgba(15, 118, 110, .16);
}

.public-center-count{
  align-items: center;
  color: var(--app-muted);
  display: inline-flex;
  font-size: .8rem;
  font-weight: 700;
  min-height: 34px;
}

.public-social-link{
  background: #fff;
  border-color: #dbe5ef;
  color: #334155;
}

.public-social-link:hover,
.public-social-link:focus{
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.public-certificate-list{
  border-top: 1px solid var(--app-border-soft);
  display: grid;
  gap: 6px;
  padding-top: 12px;
}

.public-certificate-list a{
  align-items: center;
  color: var(--app-primary-dark);
  display: inline-flex;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.public-certificate-list a:hover{
  text-decoration: underline;
}

.public-certificate-modal{
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .3);
}

.public-certificate-summary{
  align-items: center;
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px;
}

.public-certificate-summary span,
.public-certificate-summary strong{
  display: block;
}

.public-certificate-summary span{
  color: var(--app-muted);
  font-size: .82rem;
  font-weight: 800;
}

.public-certificate-summary strong{
  color: var(--app-primary-dark);
  font-size: 2rem;
  line-height: 1;
}

.public-certificate-summary p{
  color: #334155;
  font-size: .92rem;
  line-height: 1.45;
  margin: 0;
  max-width: 560px;
}

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

.public-certificate-card{
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.public-certificate-card-head{
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.public-certificate-card-head span,
.public-certificate-card-head strong{
  display: block;
}

.public-certificate-card-head span{
  color: var(--app-muted);
  font-size: .78rem;
  font-weight: 800;
}

.public-certificate-card-head strong{
  color: var(--app-ink);
  font-size: .96rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.public-certificate-card-head i{
  color: var(--app-success);
  flex: 0 0 auto;
  font-size: 1.45rem;
}

.public-certificate-dates{
  color: var(--app-muted);
  display: grid;
  font-size: .78rem;
  gap: 2px;
}

.public-certificate-preview-frame{
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  height: 380px;
  overflow: hidden;
}

.public-certificate-preview{
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.public-certificate-preview-fallback{
  align-items: center;
  color: var(--app-muted);
  display: grid;
  gap: 8px;
  height: 100%;
  justify-items: center;
  padding: 20px;
  text-align: center;
}

.public-certificate-preview-fallback i{
  color: #dc2626;
  font-size: 2rem;
}

.public-certificate-open{
  justify-self: start;
}

.public-certificate-note{
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  color: var(--app-ink);
  font-size: .9rem;
  line-height: 1.45;
  padding: 10px 12px;
}

.public-certificate-grouped{
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #14532d;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 700;
  justify-self: start;
  padding: 7px 10px;
}

.burn-certificate-log{
  color: var(--app-muted);
  font-size: .78rem;
}

.burn-certificate-form{
  display: grid;
  gap: 8px;
}

.burn-certificate-log summary{
  cursor: pointer;
  font-weight: 700;
}

.burn-certificate-log-list{
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.burn-certificate-log-item{
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px;
}

.burn-certificate-log-item span,
.burn-certificate-log-item strong{
  display: block;
}

.burn-certificate-log-item a{
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.burn-movement-audit{
  color: var(--app-muted);
  font-size: .78rem;
}

.burn-movement-audit summary{
  color: var(--app-primary-dark);
  cursor: pointer;
  font-weight: 800;
}

.burn-movement-audit-list{
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.burn-movement-audit-item{
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 8px;
}

.burn-movement-audit-item strong,
.burn-movement-audit-item span{
  display: block;
  line-height: 1.25;
}

.burn-movement-audit-item strong{
  color: var(--app-ink);
}

.burn-audit-modal,
.burn-url-log-modal{
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.burn-modal-pagination{
  border-top: 1px solid var(--app-border-soft);
  margin-top: 12px;
  padding-top: 12px;
}

.center-contributors-modal{
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.center-contributor-list{
  display: grid;
  gap: 10px;
}

.center-contributor-row{
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.center-contributor-row strong,
.center-contributor-row span{
  display: block;
}

.center-contributor-row strong{
  color: var(--app-ink);
  line-height: 1.2;
}

.center-contributor-row span{
  color: var(--app-muted);
  font-size: .82rem;
  margin-top: 3px;
}

.center-contributor-impact{
  flex: 0 0 auto;
  text-align: right;
}

.merchant-logo-frame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.merchant-logo-empty{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--app-muted);
  gap: 6px;
  background: #f8fafc;
}

.merchant-logo-empty i{
  font-size: 36px;
}

.ad-preview{
  background: #fff;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .16);
  isolation: isolate;
  overflow: hidden;
  position: sticky;
  top: 92px;
}

.ad-preview-media{
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 55%, #f8fafc 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.ad-preview-media img{
  width: calc(100% - 34px);
  height: calc(100% - 34px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(15, 23, 42, .16));
}

.ad-preview-ribbon{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  color: #064e3b;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.ad-preview-shade{
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 45%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .74));
  pointer-events: none;
}

.ad-preview-media-copy{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(15, 23, 42, .35);
}

.ad-preview-media-copy span{
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: .75rem;
  font-weight: 700;
}

.ad-preview-media-copy strong{
  display: block;
  font-size: 1.35rem;
  line-height: 1.12;
}

.ad-preview-empty{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--app-primary);
  font-size: 64px;
}

.ad-preview-body{
  padding: 24px;
}

.ad-preview-kicker{
  color: var(--app-primary-dark);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.ad-preview-body .h4{
  line-height: 1.15;
}

.ad-preview-body p{
  line-height: 1.55;
}

.ad-preview-more{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.ad-preview .public-social-link{
  border-color: #dbeafe;
  color: #1e40af;
  background: #eff6ff;
}

.ad-preview .public-social-link:hover,
.ad-preview .public-social-link:focus{
  color: #fff;
  background: var(--app-accent);
  border-color: var(--app-accent);
}

.ad-preview-modal{
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
  background: #fff;
}

.ad-preview-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background-color: rgba(255, 255, 255, .88);
  border-radius: 999px;
  padding: .75rem;
}

.ad-preview-modal-media{
  min-height: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 55%, #f8fafc 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ad-preview-modal-media img{
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(15, 23, 42, .18));
}

.ad-preview-modal-body{
  padding: 34px;
}

.modal-description{
  line-height: 1.65;
  white-space: pre-wrap;
}

.contact-panel{
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--app-border-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.contact-heading{
  color: var(--app-ink);
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #0f172a;
  background: #fff;
  border-color: #dbe5ef;
  font-weight: 700;
}

.contact-link i{
  font-size: 1.05rem;
}

.contact-link:hover,
.contact-link:focus{
  color: #fff;
  background: var(--app-primary);
  border-color: var(--app-primary);
}

.merchant-upload-panel{
  border: 2px dashed rgba(15, 118, 110, .34);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.merchant-upload-panel:hover,
.merchant-upload-panel:focus,
.merchant-upload-panel.is-dragover{
  border-color: var(--app-primary);
  background: #ecfdf5;
  box-shadow: 0 0 0 4px var(--app-ring);
  outline: 0;
}

.merchant-upload-copy{
  min-width: 0;
  flex: 1;
}

.merchant-upload-hint{
  display: inline-flex;
  align-items: center;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .875rem;
}

.merchant-public-switch{
  align-items: center;
  background: #cff4fc;
  border: 1px solid #9eeaf9;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(13, 202, 240, .16);
  display: flex;
  min-height: 64px;
  padding: 16px 18px 16px 72px;
}

.merchant-public-switch .form-check-input{
  border-color: #7dd3fc;
  cursor: pointer;
  height: 1.45rem;
  margin-left: -54px;
  width: 2.9rem;
}

.merchant-public-switch .form-check-input:checked{
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.merchant-public-switch .form-check-input:focus{
  border-color: #0dcaf0;
  box-shadow: 0 0 0 .2rem rgba(13, 202, 240, .25);
}

.merchant-public-switch .form-check-label{
  color: #055160;
  cursor: pointer;
  font-size: 1rem;
}

.kpi-dashboard{
  color: #172033;
}

.kpi-hero{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .88), rgba(239, 246, 255, .92)),
    #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.kpi-eyebrow{
  margin-bottom: 8px;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kpi-hero h1{
  margin: 0;
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: 0;
}

.kpi-hero p{
  max-width: 780px;
  margin: 8px 0 0;
  color: #526174;
  line-height: 1.55;
}

.kpi-hero-meta{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 230px;
}

.kpi-hero-meta span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, .8);
  color: #334155;
  font-size: .9rem;
  font-weight: 700;
}

.kpi-summary-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-card{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.kpi-icon{
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.35rem;
}

.kpi-card.accent-green .kpi-icon,
.kpi-card.accent-green .kpi-track span{ background: #0f766e; }
.kpi-card.accent-blue .kpi-icon,
.kpi-card.accent-blue .kpi-track span{ background: #2563eb; }
.kpi-card.accent-amber .kpi-icon,
.kpi-card.accent-amber .kpi-track span{ background: #b45309; }
.kpi-card.accent-rose .kpi-icon,
.kpi-card.accent-rose .kpi-track span{ background: #be123c; }

.kpi-value{
  color: #111827;
  font-size: 2rem;
  font-weight: 850;
  line-height: 1.05;
}

.kpi-label{
  margin-top: 6px;
  color: #64748b;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
}

.kpi-metric-strip{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #dbe5ef;
}

.kpi-metric-strip > div{
  min-height: 84px;
  padding: 14px;
  background: #fff;
}

.kpi-metric-strip span{
  display: block;
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
}

.kpi-metric-strip strong{
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 850;
}

.kpi-panel{
  padding: 20px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.kpi-panel-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.kpi-panel-head h2{
  margin: 0;
  color: #172033;
  font-size: 1.05rem;
  font-weight: 850;
}

.kpi-panel-head p{
  margin: 4px 0 0;
  color: #64748b;
  font-size: .9rem;
}

.kpi-daily-chart{
  display: grid;
  grid-template-columns: repeat(30, minmax(6px, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 270px;
  padding: 16px 8px 4px;
  border-bottom: 1px solid #e2e8f0;
}

.kpi-day{
  display: flex;
  align-items: end;
  min-height: 240px;
  border-radius: 6px 6px 0 0;
  background: #f1f5f9;
}

.kpi-day span{
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #16a34a, #0f766e);
  transition: filter .15s ease, transform .15s ease;
}

.kpi-day:hover span{
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.kpi-money-box{
  padding: 18px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
}

.kpi-money-box span,
.kpi-money-box small{
  display: block;
  color: #cbd5e1;
  font-weight: 700;
}

.kpi-money-box strong{
  display: block;
  margin: 8px 0;
  font-size: 1.7rem;
  font-weight: 850;
}

.kpi-stack-list,
.kpi-bars{
  display: grid;
  gap: 14px;
}

.kpi-bars.compact{
  gap: 12px;
}

.kpi-bar-label,
.kpi-stack-row > div:first-child{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.kpi-bar-label span,
.kpi-stack-row span{
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: .9rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-bar-label strong,
.kpi-stack-row strong{
  color: #0f172a;
  font-size: .88rem;
  white-space: nowrap;
}

.kpi-track{
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.kpi-track span{
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #2563eb);
}

.kpi-funnel{
  display: grid;
  gap: 12px;
}

.kpi-funnel-row{
  position: relative;
  min-height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f5f9;
}

.kpi-funnel-row div{
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 24px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 118, 110, .9), rgba(37, 99, 235, .78));
}

.kpi-funnel-row span,
.kpi-funnel-row strong{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: #0f172a;
  font-weight: 850;
}

.kpi-funnel-row strong{
  float: right;
}

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

.kpi-token-list > div,
.kpi-burn-box > div{
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.kpi-token-list span,
.kpi-burn-box span{
  display: block;
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
}

.kpi-token-list strong,
.kpi-burn-box strong{
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 850;
}

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

.kpi-table thead th{
  color: #475569;
  background: #f8fafc;
  font-size: .78rem;
  text-transform: uppercase;
}

.kpi-empty{
  width: 100%;
  padding: 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
  font-weight: 700;
}

.kpi-partner-summary{
  margin-top: 28px;
  padding: 26px;
  border: 1px solid #cfe8dc;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .96), rgba(15, 23, 42, .96)),
    #0f172a;
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.kpi-partner-head,
.kpi-partner-foot{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.kpi-partner-head{
  margin-bottom: 20px;
}

.kpi-partner-head span,
.kpi-partner-date span,
.kpi-partner-foot span{
  display: block;
  color: #b7f7d3;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kpi-partner-head h2{
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0;
}

.kpi-partner-date{
  min-width: 130px;
  text-align: right;
}

.kpi-partner-date strong,
.kpi-partner-foot strong{
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

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

.kpi-partner-grid article{
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
}

.kpi-partner-grid article span,
.kpi-partner-grid article strong,
.kpi-partner-grid article small{
  display: block;
  text-align: left;
}

.kpi-partner-grid article span{
  color: #c7f9df;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
}

.kpi-partner-grid article strong{
  margin: 8px 0 5px;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 950;
  line-height: 1;
}

.kpi-partner-grid article small{
  color: #dbeafe;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.3;
}

.kpi-partner-foot{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.kpi-trend-summary{
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.kpi-trend-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.kpi-trend-head span{
  display: block;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kpi-trend-head h2{
  margin: 4px 0 0;
  color: #172033;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0;
}

.kpi-trend-tabs{
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #f8fafc;
}

.kpi-trend-tabs a{
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #475569;
  font-size: .85rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.kpi-trend-tabs a.active{
  color: #fff;
  background: #0f766e;
}

.kpi-trend-controls{
  display: grid;
  justify-items: end;
  gap: 10px;
}

.kpi-trend-filters{
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.kpi-trend-filters label{
  display: grid;
  gap: 4px;
}

.kpi-trend-filters label span{
  color: #64748b;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kpi-trend-filters select{
  min-height: 36px;
  min-width: 104px;
  padding: 6px 30px 6px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  color: #172033;
  background-color: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
}

.kpi-trend-summary.is-loading{
  opacity: .58;
  pointer-events: none;
}

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

.kpi-trend-card{
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.kpi-trend-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.kpi-trend-card-head span{
  color: #334155;
  font-size: .88rem;
  font-weight: 850;
}

.kpi-trend-card-head strong{
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.kpi-trend-bars{
  position: relative;
  display: flex;
  align-items: end;
  gap: 4px;
  min-height: 150px;
  padding-top: 8px;
  border-bottom: 1px solid #dbe5ef;
}

.kpi-trend-line{
  position: absolute;
  inset: 8px 0 18px;
  z-index: 2;
  width: 100%;
  height: calc(100% - 26px);
  pointer-events: none;
  overflow: visible;
}

.kpi-trend-line polyline{
  fill: none;
  stroke: #0f172a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kpi-trend-line marker path,
.kpi-trend-line circle{
  fill: #0f172a;
}

.kpi-trend-bar{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  min-width: 0;
  flex: 1 1 0;
  height: 150px;
}

.kpi-trend-bar span{
  position: relative;
  display: block;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: #0f766e;
}

.kpi-trend-bar span b{
  position: absolute;
  left: 50%;
  top: 6px;
  max-width: calc(100% - 4px);
  padding: 2px 4px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, .42);
  font-size: .56rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.kpi-trend-bar em{
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #64748b;
  font-size: .62rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-green .kpi-trend-bar span{ background: linear-gradient(180deg, #22c55e, #0f766e); }
.trend-blue .kpi-trend-bar span{ background: linear-gradient(180deg, #60a5fa, #2563eb); }
.trend-amber .kpi-trend-bar span{ background: linear-gradient(180deg, #fbbf24, #b45309); }
.trend-teal .kpi-trend-bar span{ background: linear-gradient(180deg, #2dd4bf, #0f766e); }
.trend-rose .kpi-trend-bar span{ background: linear-gradient(180deg, #fb7185, #be123c); }

@media (max-width: 575.98px){
  .app-nav .container{
    flex-wrap: nowrap;
  }

  .app-nav .navbar-brand{
    max-width: calc(100% - 58px);
  }

  .app-nav .navbar-toggler{
    flex: 0 0 auto;
    margin-left: auto;
  }

  .app-nav .navbar-brand .badge{
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main.container{
    padding-top: 20px !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  main.container > .row{
    margin-left: 0;
    margin-right: 0;
  }

  main.container > .row > *{
    padding-left: 0;
    padding-right: 0;
  }

  .card-body.p-4{
    padding: 1.25rem !important;
  }

  .card-body > .mt-3.d-flex.justify-content-between{
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
  }

  .merchant-upload-panel{
    align-items: stretch;
    flex-direction: column;
  }

  .merchant-logo-frame-upload{
    max-width: 100%;
    width: 100%;
  }

  .directory-hero{
    padding: 20px;
  }

  .directory-title{
    font-size: 1.65rem;
  }

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

  .directory-filter-panel,
  .directory-group-card{
    padding: 16px;
  }

  .directory-group-row-head{
    flex-direction: column;
    gap: 6px;
  }

  .directory-group-impact{
    text-align: left;
  }

  .public-merchant-ad-media{
    aspect-ratio: 16 / 13;
  }

  .public-merchant-footer{
    align-items: flex-start;
    flex-direction: column;
  }

  .public-impact-stack{
    width: 100%;
  }

  .public-certificate-summary{
    align-items: flex-start;
    flex-direction: column;
  }

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

  .public-certificate-preview-frame{
    height: 320px;
  }

  .center-contributor-row{
    align-items: flex-start;
    flex-direction: column;
  }

  .center-contributor-impact{
    text-align: left;
  }

  .ad-preview{
    position: static;
  }

  .ad-preview-modal-body{
    padding: 24px;
  }

  .ad-preview-modal-media{
    aspect-ratio: 16 / 11;
  }

  .kpi-hero{
    padding: 20px;
  }

  .kpi-hero h1{
    font-size: 1.55rem;
  }

  .kpi-partner-summary{
    padding: 20px;
  }

  .kpi-partner-head,
  .kpi-partner-foot{
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-partner-date{
    text-align: left;
  }

  .kpi-trend-summary{
    padding: 18px;
  }

  .kpi-trend-head{
    align-items: stretch;
    flex-direction: column;
  }

  .kpi-trend-tabs{
    width: 100%;
  }

  .kpi-trend-tabs a{
    flex: 1;
  }

  .kpi-trend-controls,
  .kpi-trend-filters{
    width: 100%;
    justify-items: stretch;
  }

  .kpi-trend-filters label{
    flex: 1;
  }

  .kpi-trend-filters select{
    width: 100%;
  }
}

@media (max-width: 1199.98px){
  .kpi-summary-grid,
  .kpi-metric-strip{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-partner-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767.98px){
  .kpi-hero,
  .kpi-panel-head{
    align-items: stretch;
    flex-direction: column;
  }

  .kpi-hero-meta{
    min-width: 0;
  }

  .kpi-summary-grid,
  .kpi-metric-strip,
  .kpi-partner-grid{
    grid-template-columns: 1fr;
  }

  .kpi-card{
    min-height: 112px;
  }

  .kpi-daily-chart{
    gap: 4px;
    min-height: 210px;
    overflow-x: auto;
  }

  .kpi-day{
    min-width: 9px;
    min-height: 180px;
  }

  .kpi-token-list,
  .kpi-burn-box{
    grid-template-columns: 1fr;
  }

  .kpi-trend-bars{
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .kpi-trend-bar{
    min-width: 20px;
  }
}

/* Public merchants: stronger merchant image prominence - final overrides */
.public-merchant-ad-media{
  aspect-ratio: 16 / 12;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 55%, #ecfeff 100%);
}

.public-merchant-ad-media img{
  height: calc(100% - 12px);
  width: calc(100% - 12px);
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, .2));
}

.public-merchant-ad:hover .public-merchant-ad-media img{
  transform: scale(1.055);
}

.public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .04) 45%, rgba(15, 23, 42, .9) 100%);
}

.public-merchant-image-light .public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, .08) 48%, rgba(15, 23, 42, .92) 100%);
}

.public-merchant-image-dark .public-merchant-ad-shade{
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .08) 48%, rgba(0, 0, 0, .9) 100%);
}

.public-merchant-type,
.public-merchant-impact-ribbon{
  backdrop-filter: blur(10px);
}

.public-merchant-media-copy{
  bottom: 16px;
  left: 16px;
  right: 16px;
}

@media (max-width: 767.98px){
  .public-merchant-ad-media{
    aspect-ratio: 16 / 13;
  }

  .public-merchant-ad-media img{
    height: calc(100% - 10px);
    width: calc(100% - 10px);
  }
}
