/* Good Conduct Certificate – Guinea national palette (red, yellow, green) */
:root {
  --gcc-flag-red: #ce1126;
  --gcc-flag-yellow: #fcd116;
  --gcc-flag-green: #009460;

  --gcc-primary: #007a4d;
  --gcc-primary-dark: #005c3a;
  --gcc-primary-light: #009460;
  --gcc-accent: #ce1126;
  --gcc-success: #0a6b47;

  --gcc-body-bg: #f4faf7;
  --gcc-card-bg: #ffffff;
  --gcc-border: #dce8e2;
  --gcc-text: #1a2e26;
  --gcc-text-muted: #5c6f66;
  --gcc-navbar-bg: linear-gradient(135deg, #004830 0%, #003322 100%);
  --gcc-footer-bg: #0c1814;
  --gcc-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --gcc-shadow-lg: 0 10px 40px -10px rgba(0, 60, 40, 0.18);
  --gcc-radius: 0.5rem;
  --gcc-radius-lg: 0.75rem;
  --gcc-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Bootstrap 5 — align components (badges, outlines) with theme */
  --bs-primary: #007a4d;
  --bs-primary-rgb: 0, 122, 77;
  --bs-link-color: #007a4d;
  --bs-link-hover-color: #005c3a;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--gcc-font-sans);
  background-color: var(--gcc-body-bg);
  color: var(--gcc-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar — tricolour accent bar (flag) over deep green */
.navbar-gcc {
  background:
    linear-gradient(90deg, var(--gcc-flag-red) 0%, var(--gcc-flag-yellow) 50%, var(--gcc-flag-green) 100%) 0 0 / 100% 3px no-repeat,
    var(--gcc-navbar-bg) !important;
  box-shadow: var(--gcc-shadow);
  padding: 0.5rem 0;
}

.navbar-gcc .navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff !important;
}

/* Dual brand marks: coat of arms + partner (header3 on xs; header2 + MJDH strip from md) */
.navbar-brand-gcc {
  flex-wrap: nowrap;
}

.navbar-brand-gcc-title {
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff !important;
  flex: 1 1 8rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* md–lg: MJDH beside header2 frees some meaning — tighten title slightly so row fits */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .navbar-brand-gcc-title {
    font-size: clamp(0.78rem, 1.65vw, 0.93rem);
  }
}

.app-header-brandmarks {
  gap: 0.4rem 0.55rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
}

/* Shared coat-of-arms medallion (navbar, home hero — readable on dark green) */
.app-emblem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 234, 0.96) 55%, rgba(235, 230, 218, 0.94) 100%);
  border: 1px solid rgba(252, 209, 22, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.app-emblem-badge-img {
  object-fit: contain;
  object-position: center;
}

.navbar-gcc .app-emblem-badge--header {
  width: 3rem;
  height: 3rem;
  padding: 0.35rem;
}

.navbar-gcc .app-emblem-badge--header .app-emblem-badge-img {
  width: 100%;
  height: 100%;
  max-width: 2.125rem;
  max-height: 2.125rem;
}

/* PNG-only marks (header2 / header3): no cream plate behind art */
.navbar-gcc .app-emblem-badge--bare-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* header3: keep file’s native aspect & colours; only max-size bounds (no stretch into square). */
.navbar-gcc .app-emblem-badge--header.app-emblem-badge--bare-nav .app-emblem-badge-img {
  width: auto;
  height: auto;
  max-width: 2.125rem;
  max-height: 2.125rem;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

/* header2 strip + MJDH (md+). Artwork: native colours; size via max-* only. */
.navbar-gcc .app-emblem-badge--mjdh {
  width: auto;
  height: 3.25rem;
  min-height: 3.25rem;
  padding: 0.2rem 0.42rem 0.2rem 0.35rem;
  gap: 0.3rem;
  border-radius: 0;
}

.navbar-gcc .app-emblem-badge-img--mjdh {
  display: block;
  width: auto;
  flex-shrink: 0;
  height: auto;
  max-height: 2.25rem;
  max-width: min(7.25rem, 24vw);
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.navbar-gcc .app-mjdh-text {
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .navbar-gcc .app-emblem-badge--mjdh {
    gap: 0.35rem;
    padding-inline-end: 0.5rem;
  }

  .navbar-gcc .app-emblem-badge-img--mjdh {
    max-height: 2.375rem;
    max-width: 7.75rem;
  }

  .navbar-gcc .app-mjdh-text {
    font-size: 0.9375rem;
    font-weight: 900;
  }
}

@media (min-width: 1200px) {
  .navbar-gcc .app-mjdh-text {
    font-size: 1.0625rem;
    font-weight: 900;
  }
}

/* Collapsed navbar (< lg): 3-column row — brand marks | centered title | trailing controls */
@media (max-width: 991.98px) {
  .navbar-gcc > .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.35rem;
    row-gap: 0;
    grid-template-rows: auto;
  }

  .navbar-gcc .navbar-brand.navbar-brand-gcc {
    display: contents;
  }

  .navbar-gcc .app-header-brandmarks {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .navbar-gcc .navbar-brand-gcc-title {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    align-self: center;
    flex: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-gcc .app-navbar-trailing {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .navbar-gcc .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (min-width: 992px) {
  .navbar-gcc.navbar {
    flex-wrap: nowrap;
  }

  .navbar-gcc > .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar-gcc .navbar-nav {
    flex-wrap: nowrap;
  }

  .navbar-gcc .navbar-brand.navbar-brand-gcc {
    display: flex;
  }

  .navbar-gcc .navbar-brand-gcc-title {
    text-align: inherit;
    justify-self: auto;
    width: auto;
  }

  .navbar-gcc .navbar-collapse {
    grid-column: unset;
    grid-row: unset;
  }
}

/* Mobile: compact marks + slightly smaller title */
@media (max-width: 767.98px) {
  .navbar-gcc .navbar-brand-gcc-title {
    font-size: clamp(0.68rem, 2.6vw, 0.8rem);
  }

  .app-header-brandmarks {
    gap: 0.2rem 0.3rem;
    flex-shrink: 0;
  }

  .navbar-gcc .app-emblem-badge--header {
    width: 2.125rem;
    height: 2.125rem;
    padding: 0.2rem;
    border-radius: 0.4rem;
  }

  .navbar-gcc .app-emblem-badge--header.app-emblem-badge--bare-nav {
    border-radius: 0 !important;
  }

  .navbar-gcc .app-emblem-badge--header .app-emblem-badge-img {
    max-width: 1.5rem;
    max-height: 1.5rem;
  }

  /* header3 mobile: no stretch — exact layout at reduced scale */
  .navbar-gcc .app-emblem-badge--header.app-emblem-badge--bare-nav .app-emblem-badge-img {
    width: auto;
    height: auto;
    max-width: 1.5rem;
    max-height: 1.5rem;
  }
}

.navbar-gcc .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--gcc-radius);
  transition: background 0.2s, color 0.2s;
}

.navbar-gcc .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-gcc .navbar-nav .nav-item + .nav-item .nav-link { margin-left: 0.1rem; }

.navbar-gcc .nav-link.dropdown-toggle::after { opacity: 0.8; }

/* Dropdowns – match navbar theme */
.dropdown-gcc.dropdown-menu-dark,
.navbar-gcc .dropdown-menu-dark {
  background: var(--gcc-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gcc-radius);
  padding: 0.35rem 0;
  margin-top: 0.25rem;
  box-shadow: var(--gcc-shadow-lg);
}

.navbar-gcc .dropdown-menu-dark .dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 1rem;
}

.navbar-gcc .dropdown-menu-dark .dropdown-item:hover,
.navbar-gcc .dropdown-menu-dark .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.navbar-gcc .dropdown-menu-dark .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-link-register { font-weight: 600 !important; }

.navbar-gcc .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.5rem;
}

.navbar-gcc .navbar-toggler-icon { filter: brightness(0) invert(1); }

/* rightheader.png: beside hamburger (< lg); after Language in nav (lg+) */
.navbar-gcc .app-navbar-rightheader-img {
  display: block;
  width: auto;
  height: auto;
  /* < lg: stay compact so brand + controls stay on one row */
  max-height: clamp(1.05rem, 2.6vw + 0.55rem, 1.5rem);
  max-width: clamp(1.6rem, 11vw + 0.35rem, 2.65rem);
  object-fit: contain;
  object-position: center;
}

@media (min-width: 992px) {
  .navbar-gcc .app-navbar-rightheader-img {
    max-height: 2.25rem;
    max-width: 5.5rem;
  }
}

/* Main content */
main {
  flex: 1;
  padding: 2rem 0 3rem;
}

/* Page titles */
.page-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gcc-border);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  margin-bottom: 0.25rem;
}

.page-header .lead {
  color: var(--gcc-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Hero section */
.hero-gcc {
  background: linear-gradient(135deg, #006341 0%, #007a4d 55%, #005238 100%);
  color: #fff;
  border-radius: var(--gcc-radius-lg);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--gcc-shadow-lg);
}

.hero-gcc h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-gcc .lead {
  opacity: 0.95;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Home page */
.home-page {
  --home-section-gap: 3rem;
}

/* Home hero: layered depth + glow (overrides flat .hero-gcc background) */
.hero-gcc.home-hero {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(252, 209, 22, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(206, 17, 38, 0.22) 0%, transparent 50%),
    linear-gradient(145deg, #003d28 0%, #005c3a 32%, #007a4d 58%, #009460 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 6px -1px rgba(0, 44, 29, 0.14),
    0 24px 48px -16px rgba(0, 35, 24, 0.5);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5.5vw, 3.5rem) clamp(1.5rem, 4vw, 2.85rem);
  margin-bottom: var(--home-section-gap);
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 85% 55% at 92% 8%, rgba(255, 255, 255, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.home-hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 72%);
  opacity: 0.85;
}

.home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.home-hero__glow--tl {
  width: min(55vw, 280px);
  height: min(55vw, 280px);
  top: -18%;
  right: -8%;
  background: rgba(252, 209, 22, 0.28);
}

.home-hero__glow--br {
  width: min(45vw, 220px);
  height: min(45vw, 220px);
  bottom: -22%;
  left: -6%;
  background: rgba(206, 17, 38, 0.28);
}

.home-hero .row {
  position: relative;
  z-index: 1;
}

.home-hero__eyebrow {
  margin-bottom: 1rem;
}

.home-hero__eyebrow-inner {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.home-hero__title {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* Override .hero-gcc h1 for home hero title sizing */
.hero-gcc.home-hero h1.home-hero__title {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  color: #fff;
}

.home-hero__lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
}

@media (min-width: 992px) {
  .home-hero__lead {
    margin-left: 0;
  }
}

.home-hero__actions {
  align-items: stretch;
}

@media (min-width: 576px) {
  .home-hero__actions {
    align-items: center;
  }
}

.home-hero__btn-primary {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-hero__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

.home-hero__btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.home-hero__btn-outline {
  border-width: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-hero__btn-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  transform: translateY(-1px);
}

.home-hero__btn-outline:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__btn-primary:hover,
  .home-hero__btn-outline:hover {
    transform: none;
  }

  .home-hero__visual .app-emblem-badge {
    animation: none !important;
  }
}

.home-hero__register-hint {
  color: rgba(255, 255, 255, 0.82);
}

.home-hero__register-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-hero__register-link:hover {
  color: #fff;
}

.home-hero__register-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

.home-hero__visual {
  width: 100%;
  max-width: 28rem;
  position: relative;
}

.home-hero__visual::before {
  content: "";
  position: absolute;
  inset: -12% -8% -8% -8%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.home-hero__visual .app-emblem-badge {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 13rem;
  height: 13rem;
  padding: 0.75rem;
  border-radius: 0.85rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 20px 48px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.24));
}

.home-hero__visual .app-emblem-badge-img {
  width: 100%;
  height: 100%;
  max-width: 10.75rem;
  max-height: 10.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__visual .app-emblem-badge {
    animation: home-hero-float 9s ease-in-out infinite;
  }
}

@keyframes home-hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.home-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.home-section-header .home-section-title {
  margin-bottom: 0.5rem;
}

.home-section-sub {
  color: var(--gcc-text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.home-hero__flag-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gcc-flag-red) 0%, var(--gcc-flag-yellow) 50%, var(--gcc-flag-green) 100%);
  z-index: 3;
  border-radius: var(--gcc-radius-lg) var(--gcc-radius-lg) 0 0;
}

.home-hero__visual-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  animation: home-hero-ring-spin 48s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes home-hero-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__visual-ring {
    animation: none;
  }
}

/* Trust highlights */
.home-trust {
  margin-bottom: var(--home-section-gap);
}

.home-trust__list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-trust__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.home-trust__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.home-trust__item:hover {
  border-color: rgba(0, 122, 77, 0.32);
  box-shadow: var(--gcc-shadow-lg);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .home-trust__item:hover {
    transform: none;
  }
}

.home-trust__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--gcc-radius);
  background: linear-gradient(145deg, rgba(0, 122, 77, 0.12), rgba(0, 92, 58, 0.08));
  color: var(--gcc-primary);
}

.home-trust__icon--accent {
  background: linear-gradient(145deg, rgba(206, 17, 38, 0.1), rgba(206, 17, 38, 0.06));
  color: var(--gcc-accent);
}

.home-trust__icon--green {
  background: linear-gradient(145deg, rgba(0, 148, 96, 0.14), rgba(0, 122, 77, 0.1));
  color: var(--gcc-primary-dark);
}

.home-trust__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  line-height: 1.3;
}

.home-trust__desc {
  font-size: 0.85rem;
  color: var(--gcc-text-muted);
  line-height: 1.5;
}

.home-steps {
  margin-bottom: var(--home-section-gap);
  padding: 1.75rem 1.5rem;
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow);
}

.home-steps__list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .home-steps__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.home-step {
  display: flex;
  gap: 0.85rem 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: #eef6f1;
  border-radius: var(--gcc-radius);
  border: 1px solid var(--gcc-border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.home-step__icon {
  display: none;
}

@media (min-width: 768px) {
  .home-step__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.1rem;
    border-radius: var(--gcc-radius);
    background: rgba(255, 255, 255, 0.75);
    color: var(--gcc-primary);
    border: 1px solid rgba(0, 122, 77, 0.15);
  }
}

.home-step:hover {
  border-color: rgba(0, 122, 77, 0.35);
  box-shadow: 0 4px 16px rgba(0, 92, 58, 0.1);
}

.home-step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, var(--gcc-accent), var(--gcc-primary));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 92, 58, 0.28);
}

.home-step__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--gcc-text);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.home-step__desc {
  font-size: 0.86rem;
  color: var(--gcc-text-muted);
  line-height: 1.55;
}

.link-gcc {
  color: var(--gcc-primary);
}

.link-gcc:hover {
  color: var(--gcc-primary-dark);
}

.home-quick-links {
  margin-bottom: var(--home-section-gap);
}

/* Track application band */
.home-track-band {
  margin-bottom: var(--home-section-gap);
}

.home-track-band__inner {
  padding: clamp(1.5rem, 3.5vw, 2rem) clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--gcc-radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 122, 77, 0.08) 0%, rgba(255, 255, 255, 0.95) 42%, rgba(252, 209, 22, 0.1) 100%);
  border: 1px solid var(--gcc-border);
  box-shadow: var(--gcc-shadow);
  border-left: 4px solid var(--gcc-primary);
}

.home-track-band__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  letter-spacing: -0.02em;
}

.home-track-band__lead {
  color: var(--gcc-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 40rem;
}

.home-track-band__btn {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* Bottom CTA band */
.home-cta-band {
  margin-bottom: var(--home-section-gap);
}

.home-cta-band__inner {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: var(--gcc-radius-lg);
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(252, 209, 22, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(206, 17, 38, 0.18) 0%, transparent 50%),
    linear-gradient(145deg, #003d28 0%, #005c3a 40%, #007a4d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--gcc-shadow-lg);
  color: #fff;
}

.home-cta-band__title {
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.home-cta-band__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 36rem;
}

.home-cta-band .btn-outline-light {
  border-width: 2px;
}

.home-help__lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--gcc-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  border-left: 4px solid var(--gcc-accent);
}

.home-mini-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--gcc-radius);
  background: rgba(206, 17, 38, 0.08);
  color: var(--gcc-accent);
  margin-right: 0.25rem;
}

.home-mini-card .home-mini-card__label {
  flex: 1;
}

.home-mini-card:hover {
  border-color: var(--gcc-accent);
  box-shadow: var(--gcc-shadow-lg);
  color: inherit;
  transform: translateY(-2px);
}

.home-mini-card__label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gcc-primary-dark);
}

.home-mini-card__arrow {
  font-size: 1.25rem;
  color: var(--gcc-accent);
  font-weight: 600;
}

/* Cards */
.card-gcc {
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow);
  overflow: hidden;
}

.card-gcc .card-header {
  background: #eef6f1;
  border-bottom: 1px solid var(--gcc-border);
  font-weight: 600;
  color: var(--gcc-primary-dark);
  padding: 1rem 1.25rem;
}

.card-gcc .card-body {
  padding: 1.5rem 1.25rem;
}

.requirements-fees-table thead th {
  background: rgba(0, 122, 77, 0.08);
  color: var(--gcc-text);
  font-weight: 600;
  white-space: nowrap;
}

.requirements-fees-table tbody td {
  vertical-align: middle;
}

/* Form cards (centered auth/apply forms) */
.form-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow-lg);
  padding: 1.75rem;
}

/* Register: split intro + form */
.register-page .form-card.register-form-card {
  max-width: none;
  margin: 0;
}

.register-intro {
  background: linear-gradient(165deg, #eef6f1 0%, #ffffff 48%, #e2efe8 100%);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow);
  padding: 1.75rem 1.5rem;
  border-left: 4px solid var(--gcc-accent);
}

.register-intro__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gcc-accent);
  margin-bottom: 0.65rem;
}

.register-intro__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  line-height: 1.25;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.register-intro__lead {
  color: var(--gcc-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.register-intro__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--gcc-text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.register-intro__list li + li {
  margin-top: 0.65rem;
}

.register-form-card__header {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--gcc-border);
}

.register-form-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.register-form-card__lead {
  font-size: 0.95rem;
  line-height: 1.5;
}

.register-form-card__form .form-label .text-danger {
  font-weight: 700;
}

.register-password-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.register-password-group .register-password-toggle {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gcc-primary-dark);
  border-color: var(--gcc-border);
  white-space: nowrap;
}

.register-password-group .register-password-toggle:hover {
  background: #eef6f1;
  border-color: var(--gcc-accent);
  color: var(--gcc-primary);
}

@media (max-width: 991.98px) {
  .register-intro {
    border-left-width: 3px;
  }
}

.form-card .form-label {
  font-weight: 600;
  color: var(--gcc-text);
  margin-bottom: 0.35rem;
}

.form-card .form-control,
.form-card .form-select {
  border-radius: var(--gcc-radius);
  border-color: var(--gcc-border);
  padding: 0.5rem 0.75rem;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--gcc-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 77, 0.18);
}

/* Buttons */
.btn-gcc-primary {
  background: var(--gcc-primary);
  border-color: var(--gcc-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--gcc-radius);
  transition: background 0.2s, border-color 0.2s, transform 0.05s;
}

.btn-gcc-primary:hover {
  background: var(--gcc-primary-dark);
  border-color: var(--gcc-primary-dark);
  color: #fff;
}

.btn-gcc-outline {
  border: 2px solid var(--gcc-primary);
  color: var(--gcc-primary);
  font-weight: 600;
  background: transparent;
  border-radius: var(--gcc-radius);
  padding: 0.5rem 1.25rem;
  transition: background 0.2s, color 0.2s;
}

.btn-gcc-outline:hover {
  background: var(--gcc-primary);
  color: #fff;
}

/* Feature / quick link cards on home */
.feature-card {
  height: 100%;
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  border-color: var(--gcc-accent);
  box-shadow: var(--gcc-shadow-lg);
  color: inherit;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--gcc-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.feature-card .feature-link {
  font-weight: 600;
  color: var(--gcc-accent);
  font-size: 0.9rem;
}

.feature-card:hover .feature-link { color: var(--gcc-primary); }

.feature-card--with-icon {
  padding-top: 1.35rem;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card--with-icon:hover {
  transform: translateY(-3px);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: var(--gcc-radius);
  background: linear-gradient(145deg, rgba(206, 17, 38, 0.1), rgba(0, 122, 77, 0.12));
  color: var(--gcc-primary);
}

.feature-card--with-icon:hover .feature-card__icon {
  background: linear-gradient(145deg, rgba(206, 17, 38, 0.16), rgba(0, 92, 58, 0.14));
  color: var(--gcc-primary-dark);
}

/* Alerts */
.alert-gcc {
  border-radius: var(--gcc-radius);
  border-left: 4px solid;
}

/* List groups */
.list-group-gcc .list-group-item {
  border-color: var(--gcc-border);
  padding: 0.75rem 1rem;
}

/* Wizard / steps (apply flow) */
.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.wizard-steps .badge {
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  color: #fff;
  background: rgba(0, 92, 58, 0.55);
  border: none;
}

.wizard-steps .badge.bg-secondary {
  background: rgba(0, 92, 58, 0.4) !important;
  color: #fff !important;
}

.wizard-steps .badge.bg-primary {
  background: var(--gcc-flag-red) !important;
  color: #fff !important;
}

/* Footer */
.footer-gcc {
  background:
    linear-gradient(180deg, rgba(0, 58, 36, 0.35) 0%, transparent 12rem),
    var(--gcc-footer-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.25rem 0 2rem;
  margin-top: auto;
}

/* Footer top: three siblings, centered — PNG sits toward Quick links (not links pulled into brand). */
@media (min-width: 768px) {
  .footer-gcc__cell-brand .footer-gcc__column-brand {
    justify-content: flex-end;
    align-items: flex-end;
  }

  /* Breathing room between footer.png and Quick links (md+) */
  .footer-gcc__cell-brand {
    padding-right: 1rem !important;
  }

  .footer-gcc__cell-quick {
    padding-left: 1rem !important;
  }
}

.footer-gcc__column-brand {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}

.footer-gcc__column-brand-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 12.32rem);
  max-height: clamp(6.72rem, 23.52vw, 12.32rem);
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center top;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 576px) {
  .footer-gcc__column-brand-img {
    max-width: min(100%, 14.56rem);
    max-height: clamp(7.84rem, 20.16vw, 14.56rem);
  }
}

@media (min-width: 768px) {
  .footer-gcc__column-brand-img {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    max-height: clamp(8.4rem, 17.92vw, 15.68rem);
  }
}

@media (min-width: 992px) {
  .footer-gcc__column-brand-img {
    max-height: min(16.8rem, 39.2vh);
  }
}

.footer-gcc a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-gcc a:hover { color: #fff; }

.footer-gcc .footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Override Bootstrap btn-primary when using our theme */
.btn-primary {
  background-color: var(--gcc-primary);
  border-color: var(--gcc-primary);
}

.btn-primary:hover {
  background-color: var(--gcc-primary-dark);
  border-color: var(--gcc-primary-dark);
}

/* Breadcrumb / back link */
.back-link {
  font-size: 0.9rem;
  color: var(--gcc-text-muted);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
}

.back-link:hover { color: var(--gcc-primary); }

/* MVC validation summary: hide wrapper when there are no errors (avoids empty red alert box) */
.alert.validation-summary-valid {
  display: none !important;
}

/* Inner content pages (service info, how-to, contact, legal) */
.content-page {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero-gcc.hero-gcc--inner {
  padding: clamp(1.75rem, 4vw, 2.35rem) clamp(1.35rem, 3.5vw, 2rem);
  margin-bottom: 2rem;
}

.hero-gcc.hero-gcc--inner h1 {
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
}

.hero-gcc.hero-gcc--inner .lead {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 42rem;
}

.content-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.5rem;
}

.content-quick-card .content-quick-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.content-quick-card {
  background: linear-gradient(155deg, #003928 0%, #005c3a 45%, #007a4d 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow-lg);
  color: #fff;
  padding: 1.5rem 1.35rem;
}

.content-quick-card .btn-light {
  font-weight: 600;
  border: none;
  color: var(--gcc-primary-dark);
}

.content-quick-card .btn-light:hover {
  background: #e8f5ee;
  color: var(--gcc-primary-dark);
}

.content-quick-card .btn-outline-light {
  font-weight: 600;
  border-width: 2px;
  color: #fff;
}

.content-quick-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.content-info-tile {
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow);
  padding: 1.35rem 1.25rem;
  height: 100%;
  border-left: 4px solid var(--gcc-accent);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-info-tile:hover {
  box-shadow: var(--gcc-shadow-lg);
  border-color: rgba(0, 122, 77, 0.35);
}

.content-info-tile__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gcc-accent);
  margin-bottom: 0.5rem;
}

.content-info-tile__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.content-info-tile p {
  color: var(--gcc-text);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.content-related {
  border-top: 1px solid var(--gcc-border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.content-related__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gcc-text-muted);
  margin-bottom: 0.75rem;
}

.content-related .list-inline-item:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  color: var(--gcc-text-muted);
}

/* How-to steps */
.content-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  border-bottom: none;
}

.content-step:first-of-type {
  border-radius: var(--gcc-radius-lg) var(--gcc-radius-lg) 0 0;
}

.content-step:last-of-type {
  border-bottom: 1px solid var(--gcc-border);
  border-radius: 0 0 var(--gcc-radius-lg) var(--gcc-radius-lg);
}

.content-step:only-of-type {
  border-radius: var(--gcc-radius-lg);
}

.content-step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, #a60d1f, var(--gcc-primary));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 92, 58, 0.25);
}

.content-step__text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--gcc-text);
  padding-top: 0.2rem;
}

.content-step__text a {
  font-weight: 600;
}

/* Contact */
.contact-card-main {
  border-radius: var(--gcc-radius-lg);
  border: 1px solid var(--gcc-border);
  box-shadow: var(--gcc-shadow-lg);
  overflow: hidden;
  background: var(--gcc-card-bg);
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--gcc-border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gcc-radius);
  background: linear-gradient(145deg, rgba(206, 17, 38, 0.1), rgba(0, 122, 77, 0.12));
  color: var(--gcc-primary);
  font-size: 1rem;
  font-weight: 800;
}

.contact-row__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gcc-text-muted);
  margin-bottom: 0.2rem;
}

.contact-row__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gcc-primary-dark);
  margin-bottom: 0;
}

.contact-row__value a {
  text-decoration: none;
}

.contact-row__value a:hover {
  text-decoration: underline;
}

/* Legal / DanaSeal TOC */
.legal-toc {
  scroll-margin-top: 1rem;
}

.legal-toc__link {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--gcc-text);
  border-bottom: 1px solid transparent;
}

.legal-toc__link:hover {
  color: var(--gcc-primary);
  border-bottom-color: rgba(0, 122, 77, 0.35);
}

.legal-section {
  scroll-margin-top: 5.5rem;
}

.legal-section-card {
  border-left: 4px solid var(--gcc-accent);
}

.cross-links-bar {
  background: #eef6f1;
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
}

.cross-links-bar a {
  font-weight: 600;
}

@media (min-width: 992px) {
  .legal-toc--sticky {
    position: sticky;
    top: 1rem;
  }
}

/* Utility */
.text-gcc-primary { color: var(--gcc-primary) !important; }
.bg-gcc-light { background-color: #e2efe8; }

/* Full-screen submit processing overlay (Continue to payment, etc.) */
.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 24, 18, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10500;
  display: none;
  align-items: center;
  justify-content: center;
}

.processing-box {
  padding: 1.75rem 2rem;
  background: rgba(10, 22, 16, 0.95);
  border-radius: var(--gcc-radius-lg);
  text-align: center;
  min-width: 260px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Apply — Payment (step 5) */
.apply-payment-page {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.apply-payment-page .page-header {
  margin-bottom: 1.5rem;
}

.apply-payment-page .payment-page-intro {
  color: var(--gcc-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 42rem;
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.payment-total-hero {
  border-radius: var(--gcc-radius-lg);
  background: linear-gradient(135deg, #004830 0%, #007a4d 48%, #009460 100%);
  color: #fff;
  padding: 1.5rem 1.5rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--gcc-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.payment-total-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(252, 209, 22, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.payment-total-hero__inner {
  position: relative;
  z-index: 1;
}

.payment-total-hero__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 0.35rem;
}

.payment-total-hero__amount {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.payment-total-hero__amount .payment-total-hero__curr {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  opacity: 0.88;
  margin-right: 0.35rem;
  vertical-align: 0.15em;
}

.payment-total-hero__ref {
  font-size: 0.9rem;
  opacity: 0.92;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.payment-total-hero__ref strong {
  font-weight: 700;
}

.payment-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gcc-text-muted);
  margin-bottom: 0.75rem;
}

.payment-kv {
  display: grid;
  gap: 0;
}

.payment-kv__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gcc-border);
}

.payment-kv__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-kv__label {
  font-size: 0.82rem;
  color: var(--gcc-text-muted);
  flex: 0 1 42%;
  min-width: 7rem;
}

.payment-kv__value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--gcc-text);
  text-align: right;
  flex: 1 1 12rem;
  word-break: break-word;
}

.payment-channel-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
}

.payment-cta-panel {
  background: linear-gradient(180deg, #eef6f1 0%, #ffffff 40%);
  border: 1px solid var(--gcc-border);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow);
  padding: 1.35rem 1.35rem 1.25rem;
  margin-top: 1.25rem;
}

.payment-cta-panel .btn-lg {
  width: 100%;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.payment-cta-panel .form-text,
.payment-cta-panel + .payment-footnote {
  margin-top: 1rem;
}

.payment-footnote {
  font-size: 0.875rem;
  color: var(--gcc-text-muted);
  line-height: 1.5;
  padding-left: 1.85rem;
  position: relative;
}

.payment-footnote::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gcc-primary);
  opacity: 0.75;
}

.payment-nav-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gcc-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.payment-nav-footer .text-muted {
  opacity: 0.6;
}

.payment-state-card {
  border-radius: var(--gcc-radius-lg);
  border: 1px solid var(--gcc-border);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  background: var(--gcc-card-bg);
  box-shadow: var(--gcc-shadow);
}

.payment-state-card--success {
  border-left: 4px solid var(--gcc-success);
  background: linear-gradient(180deg, #f0faf5 0%, #ffffff 55%);
}

.payment-state-card--info {
  border-left: 4px solid #0d6efd;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 55%);
}

.payment-state-card--muted {
  border-left: 4px solid var(--gcc-text-muted);
}

.payment-state-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  margin-bottom: 0.35rem;
}

.payment-state-card dl.payment-kvcompact {
  margin-bottom: 0;
}

.payment-kvcompact .payment-kv__row {
  padding: 0.45rem 0;
}

.payment-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paystep;
}

.payment-steps li {
  position: relative;
  padding-left: 2.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--gcc-text);
}

.payment-steps li:last-child {
  margin-bottom: 0;
}

.payment-steps li::before {
  counter-increment: paystep;
  content: counter(paystep);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gcc-accent), var(--gcc-primary));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 92, 58, 0.22);
}

.payment-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .payment-split-col--accent {
    background: rgba(238, 246, 241, 0.72);
  }

  .payment-split-col:first-child {
    border-right: 1px solid var(--gcc-border);
  }
}

@media (max-width: 767.98px) {
  .payment-split-col:first-child {
    border-bottom: 1px solid var(--gcc-border);
  }

  .payment-split-col--accent {
    background: rgba(238, 246, 241, 0.45);
  }
}

@media (max-width: 575.98px) {
  .payment-total-hero {
    padding: 1.25rem 1.15rem;
  }

  .payment-kv__value {
    text-align: left;
    flex-basis: 100%;
  }
}

/* Site-wide assistant chat */
.gcc-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  font-family: var(--gcc-font-sans);
}

.gcc-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, var(--gcc-primary) 0%, var(--gcc-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 60, 40, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gcc-chat__launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 60, 40, 0.32);
}

.gcc-chat__launcher-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.gcc-chat__launcher-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gcc-chat__launcher-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.gcc-chat--open .gcc-chat__launcher {
  display: none;
}

.gcc-chat__panel {
  width: min(22rem, calc(100vw - 2rem));
  height: min(32rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--gcc-card-bg);
  border: 1px solid var(--gcc-border);
  box-shadow: var(--gcc-shadow-lg);
}

.gcc-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background:
    linear-gradient(90deg, var(--gcc-flag-red) 0%, var(--gcc-flag-yellow) 50%, var(--gcc-flag-green) 100%) 0 0 / 100% 3px no-repeat,
    linear-gradient(135deg, #004830 0%, #003322 100%);
  color: #fff;
}

.gcc-chat__agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.gcc-chat__avatar {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gcc-chat__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.gcc-chat__avatar-status {
  position: absolute;
  right: 0.1rem;
  bottom: 0.1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid #003322;
}

.gcc-chat__agent-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.gcc-chat__agent-role {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  opacity: 0.88;
}

.gcc-chat__close {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gcc-chat__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gcc-chat__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fcf9 0%, #f4faf7 100%);
}

.gcc-chat__message {
  display: flex;
  margin-bottom: 0.85rem;
  align-items: flex-end;
  gap: 0.5rem;
}

.gcc-chat__message--user {
  justify-content: flex-end;
}

.gcc-chat__message--assistant {
  justify-content: flex-start;
}

.gcc-chat__message-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gcc-border);
  background: #fff;
  box-shadow: var(--gcc-shadow);
}

.gcc-chat__message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.gcc-chat__bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  box-shadow: var(--gcc-shadow);
}

.gcc-chat__message--user .gcc-chat__bubble {
  background: var(--gcc-primary);
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

.gcc-chat__message--assistant .gcc-chat__bubble {
  background: #fff;
  color: var(--gcc-text);
  border: 1px solid var(--gcc-border);
  border-bottom-left-radius: 0.35rem;
}

.gcc-chat__bubble-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gcc-primary-dark);
  margin-bottom: 0.25rem;
}

.gcc-chat__bubble-text {
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.gcc-chat__message--assistant .gcc-chat__link {
  color: var(--gcc-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gcc-chat__message--assistant .gcc-chat__link:hover {
  color: var(--gcc-primary-dark);
}

.gcc-chat__bubble-time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  opacity: 0.72;
}

.gcc-chat__typing {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0 1rem 0.35rem;
}

.gcc-chat__typing-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gcc-border);
  background: #fff;
}

.gcc-chat__typing-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.gcc-chat__typing-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.gcc-chat__typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gcc-border);
}

.gcc-chat__typing-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gcc-primary);
  opacity: 0.35;
  animation: gcc-chat-typing 1.2s infinite ease-in-out;
}

.gcc-chat__typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.gcc-chat__typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.gcc-chat__typing-label {
  font-size: 0.75rem;
  color: var(--gcc-text-muted);
}

@keyframes gcc-chat-typing {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.gcc-chat__composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.85rem;
  border-top: 1px solid var(--gcc-border);
  background: #fff;
}

.gcc-chat__input {
  flex: 1 1 auto;
  resize: none;
  border: 1px solid var(--gcc-border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  line-height: 1.4;
  min-height: 2.5rem;
  max-height: 7.5rem;
}

.gcc-chat__input:focus {
  outline: none;
  border-color: var(--gcc-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 77, 0.15);
}

.gcc-chat__send {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gcc-primary);
  color: #fff;
  cursor: pointer;
}

.gcc-chat__send:hover:not(:disabled) {
  background: var(--gcc-primary-dark);
}

.gcc-chat__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  .gcc-chat {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .gcc-chat__launcher-text {
    display: none;
  }

  .gcc-chat__launcher {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    justify-content: center;
  }

  .gcc-chat__launcher-avatar {
    width: 2.75rem;
    height: 2.75rem;
  }

  .gcc-chat__panel {
    width: calc(100vw - 1.5rem);
    height: min(34rem, calc(100vh - 5rem));
  }
}

/* Track — DanaSeal owner panel */
.track-danaseal {
  background: linear-gradient(135deg, rgba(0, 148, 96, 0.06) 0%, rgba(255, 255, 255, 1) 48%, rgba(206, 17, 38, 0.04) 100%);
  border: 1px solid rgba(0, 148, 96, 0.22);
  border-radius: var(--gcc-radius-lg);
  box-shadow: var(--gcc-shadow);
  overflow: hidden;
}

.track-danaseal__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.track-danaseal__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, var(--gcc-primary) 0%, #007a52 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 148, 96, 0.28);
}

.track-danaseal__intro {
  flex: 1 1 12rem;
  min-width: 0;
}

.track-danaseal__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gcc-primary);
  margin: 0 0 0.2rem;
}

.track-danaseal__lead {
  font-size: 0.875rem;
  color: var(--gcc-text-muted, #6c757d);
}

.track-danaseal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f5132;
  background: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.25);
}

.track-danaseal__body {
  padding: 1.25rem;
}

.track-danaseal__qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.track-danaseal__qr-frame {
  width: 100%;
  aspect-ratio: 1;
  padding: 1rem;
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-danaseal__qr-frame--inline {
  max-width: min(100%, 20rem);
  min-width: min(100%, 16rem);
  margin-inline: auto;
}

@media (min-width: 992px) {
  .track-danaseal__qr-frame--inline {
    max-width: 22rem;
    min-width: 18rem;
    margin-inline: 0;
  }
}

.track-danaseal__qr-frame--modal {
  max-width: min(88vw, 26rem);
  width: 100%;
  padding: 1.25rem;
}

.track-danaseal__qr-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.track-danaseal__expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.track-danaseal__meta dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gcc-text-muted, #6c757d);
  margin-bottom: 0.35rem;
}

.track-danaseal__meta dd {
  font-size: 0.925rem;
  margin-bottom: 0.65rem;
}

.track-danaseal__code {
  font-size: 0.85em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.04);
  color: var(--gcc-text);
  word-break: break-all;
}

.track-danaseal__hint {
  color: var(--gcc-text-muted, #6c757d);
  line-height: 1.5;
  padding-left: 0.85rem;
  border-left: 3px solid var(--gcc-primary);
}

.track-danaseal__pending {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--gcc-radius);
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.track-danaseal__pending-icon {
  flex-shrink: 0;
  color: #997404;
  margin-top: 0.1rem;
}

.track-danaseal__modal .modal-content {
  border-radius: var(--gcc-radius-lg);
  border: none;
  box-shadow: var(--gcc-shadow);
}

.track-danaseal__modal-dialog {
  max-width: min(94vw, 32rem);
}

@media (max-width: 767.98px) {
  .track-danaseal__badge {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .track-danaseal__qr-panel {
    margin-bottom: 0.25rem;
  }

  .track-danaseal__qr-frame--inline {
    max-width: min(100%, 18.5rem);
    min-width: min(100%, 15rem);
  }
}
