/* /css/presale/presale.css
   ==========================================================================
   GFC – Presale Status Page
   --------------------------------------------------------------------------
   Scope:
   - /de/presale/
   - /en/presale/

   Dependencies:
   - /css/global.css
   - /css/main-website/nav.css
   - /css/main-website/footer.css
   - /css/modals.css

   Purpose:
   - Styles the current non-live Presale status page.
   - Supports the lifecycle, tokenomics, verification, contact and converter
     structures used by the current Presale HTML and JavaScript.
   ========================================================================== */


/* ==========================================================================
   1) PAGE TOKENS
   ========================================================================== */

.gfc-presale-page {
  --ps-bg: #020617;
  --ps-bg-soft: #07101f;

  --ps-surface: rgba(255, 255, 255, 0.055);
  --ps-surface-soft: rgba(255, 255, 255, 0.032);
  --ps-surface-hover: rgba(255, 255, 255, 0.075);

  --ps-border: rgba(255, 255, 255, 0.14);
  --ps-border-soft: rgba(255, 255, 255, 0.095);
  --ps-border-strong: rgba(92, 200, 255, 0.38);

  --ps-ink: #eaf2f7;
  --ps-muted: rgba(234, 242, 247, 0.72);
  --ps-muted-soft: rgba(234, 242, 247, 0.52);

  --ps-accent: #5cc8ff;
  --ps-accent-hover: #8bddff;
  --ps-accent-ink: #08202c;

  --ps-good: #22c55e;
  --ps-good-soft: rgba(34, 197, 94, 0.12);

  --ps-warn: #f59e0b;
  --ps-warn-soft: rgba(245, 158, 11, 0.11);

  --ps-danger: #ef4444;
  --ps-danger-soft: rgba(239, 68, 68, 0.11);

  --ps-radius-sm: 12px;
  --ps-radius: 14px;
  --ps-radius-lg: 20px;

  --ps-shadow:
    0 14px 42px rgba(0, 0, 0, 0.36);

  --ps-shadow-soft:
    0 10px 28px rgba(0, 0, 0, 0.24);

  /* Keep shared modals dark on this explicitly dark page. */
  --gfc-modal-header-bg:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.015)
    );
  --gfc-modal-footer-bg:
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.015)
    );
  --gfc-modal-scrollbar-thumb: rgba(92, 200, 255, 0.28);
  --gfc-modal-scrollbar-track: rgba(255, 255, 255, 0.035);
}


/* ==========================================================================
   2) PAGE BASE
   ========================================================================== */

.gfc-presale-page {
  min-width: 0;
  background:
    radial-gradient(
      circle at top center,
      rgba(92, 200, 255, 0.06),
      transparent 34rem
    ),
    var(--ps-bg);
  color: var(--ps-ink);
}

.gfc-presale-page main {
  min-width: 0;
  overflow: clip;
}

.gfc-presale-page strong {
  color: var(--ps-ink);
}

.gfc-presale-page .eyebrow {
  color: var(--ps-accent);
}

.gfc-presale-page .btn-ghost {
  border-color: var(--ps-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ps-ink);
}

.gfc-presale-page .btn-secondary {
  border-color: rgba(92, 200, 255, 0.55);
  background: rgba(92, 200, 255, 0.055);
  color: var(--ps-accent);
}

.gfc-presale-page .btn-small,
.gfc-presale-page .btn.small {
  min-block-size: 44px;
}

.gfc-presale-page main section[id] {
  scroll-margin-top: calc(var(--header-h) + 76px);
}

.gfc-presale-page .section {
  position: relative;
  min-width: 0;
  padding: clamp(54px, 7vw, 84px) 0;
}

.gfc-presale-page .section.alt {
  border-top: 1px solid rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  background:
    radial-gradient(
      circle at top right,
      rgba(92, 200, 255, 0.045),
      transparent 28rem
    ),
    rgba(255, 255, 255, 0.018);
}

.gfc-presale-page .section-title {
  max-width: 86ch;
  margin-bottom: 24px;
}

.gfc-presale-page .section-title .eyebrow {
  margin-bottom: 8px;
}

.gfc-presale-page .section-title h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--ps-ink);
}

.gfc-presale-page .section-title p {
  max-width: 78ch;
}

.gfc-presale-page .muted {
  color: var(--ps-muted);
}

.gfc-presale-page .small {
  font-size: 0.92rem;
}

.gfc-presale-page .tiny-muted {
  color: var(--ps-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}



/* ==========================================================================
   3) HERO
   ========================================================================== */

.gfc-presale-page .presale-hero {
  position: relative;
  overflow: hidden;
  padding:
    clamp(42px, 7vw, 82px)
    0
    clamp(34px, 5vw, 56px);
  border-bottom: 1px solid var(--ps-border);
  background:
    radial-gradient(
      1100px 360px at 18% -10%,
      rgba(92, 200, 255, 0.14),
      transparent 60%
    ),
    radial-gradient(
      860px 280px at 82% 0%,
      rgba(245, 158, 11, 0.08),
      transparent 55%
    ),
    var(--ps-bg-soft);
}

.gfc-presale-page .presale-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );
  background-size: 28px 28px;
}

.gfc-presale-page .presale-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(92, 200, 255, 0.34),
      transparent
    );
}

.gfc-presale-page .presale-hero > .container {
  position: relative;
  z-index: 1;
}

.gfc-presale-page .presale-hero-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.14fr)
    minmax(300px, 0.86fr);
  grid-template-areas:
    "copy card"
    "support card";
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: 22px;
  align-items: start;
}

.gfc-presale-page .presale-hero-copy {
  grid-area: copy;
  min-width: 0;
}

.gfc-presale-page .presale-hero-support {
  grid-area: support;
  min-width: 0;
}

.gfc-presale-page .presale-hero-support .presale-note:first-child {
  margin-top: 0;
}

.gfc-presale-page .presale-updated {
  margin-top: 12px;
}

.gfc-presale-page .presale-hero h1 {
  max-width: 14ch;
  margin: 0 0 18px;
  color: var(--ps-ink);
  font-size: var(--h1-size);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.gfc-presale-page .presale-hero .lead {
  max-width: 84ch;
  color: var(--ps-ink);
}

.gfc-presale-page .presale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.gfc-presale-page .presale-hero-card {
  grid-area: card;
  min-width: 0;
  padding: clamp(18px, 2.6vw, 24px);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  background:
    radial-gradient(
      circle at top right,
      rgba(245, 158, 11, 0.12),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      var(--ps-surface),
      var(--ps-surface-soft)
    );
  box-shadow: var(--ps-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gfc-presale-page .presale-hero-card h2 {
  margin: 0 0 14px;
  color: var(--ps-ink);
  font-size:
    clamp(
      1.15rem,
      1.2vw + 0.9rem,
      1.45rem
    );
}

.gfc-presale-page .presale-hero-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}


/* ==========================================================================
   3B) PAGE NAVIGATION
   ========================================================================== */

.gfc-presale-page .presale-page-nav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--ps-border-soft);
  background: rgba(2, 6, 23, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.gfc-presale-page .presale-page-nav-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.gfc-presale-page .presale-page-nav-list li {
  flex: 0 0 auto;
}

.gfc-presale-page .presale-page-nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 9px 13px;
  border: 1px solid var(--ps-border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ps-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.gfc-presale-page .presale-page-nav-list a:hover,
.gfc-presale-page .presale-page-nav-list a:focus-visible {
  border-color: rgba(92, 200, 255, 0.5);
  background: rgba(92, 200, 255, 0.09);
  color: var(--ps-accent);
}

@media (min-width: 761px) {
  .gfc-presale-page .presale-page-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 900;
  }
}


/* ==========================================================================
   4) STATUS BADGES
   ========================================================================== */

.gfc-presale-page .presale-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.gfc-presale-page .presale-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      var(--ps-surface),
      var(--ps-surface-soft)
    );
  color: var(--ps-ink);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.gfc-presale-page .presale-badge.planned {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.075);
  color: #fde68a;
}

.gfc-presale-page .dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ps-accent);
  box-shadow:
    0 0 0 4px rgba(92, 200, 255, 0.1);
}

.gfc-presale-page .planned .dot {
  background: var(--ps-warn);
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.11);
}


/* ==========================================================================
   5) NOTES, WARNINGS AND RISK
   ========================================================================== */

.gfc-presale-page .presale-note,
.gfc-presale-page .presale-risk {
  min-width: 0;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  background:
    linear-gradient(
      180deg,
      var(--ps-surface),
      var(--ps-surface-soft)
    ),
    var(--ps-bg-soft);
  box-shadow: var(--ps-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gfc-presale-page .presale-note {
  max-width: 96ch;
  margin-top: 18px;
  padding: 14px 16px;
  border-color: rgba(245, 158, 11, 0.28);
  border-left: 3px solid rgba(245, 158, 11, 0.62);
  background:
    linear-gradient(
      180deg,
      rgba(245, 158, 11, 0.1),
      rgba(245, 158, 11, 0.045)
    ),
    var(--ps-bg-soft);
  color: var(--ps-ink);
  line-height: 1.6;
}


.gfc-presale-page .presale-risk {
  padding: clamp(20px, 3vw, 28px);
  border-color: rgba(239, 68, 68, 0.28);
  border-left: 3px solid rgba(239, 68, 68, 0.64);
  background:
    linear-gradient(
      180deg,
      rgba(239, 68, 68, 0.1),
      rgba(239, 68, 68, 0.045)
    ),
    var(--ps-bg-soft);
}

.gfc-presale-page .presale-risk h2 {
  margin-top: 0;
}

.gfc-presale-page .presale-risk p {
  max-width: 92ch;
}

.gfc-presale-page .presale-risk p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   6) GENERAL GRIDS AND CARDS
   ========================================================================== */

.gfc-presale-page .grid-2 {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(300px, 0.9fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.gfc-presale-page .card,
.gfc-presale-page .presale-status-card,
.gfc-presale-page .allocation-card {
  min-width: 0;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  background:
    linear-gradient(
      180deg,
      var(--ps-surface),
      var(--ps-surface-soft)
    ),
    var(--ps-bg-soft);
  box-shadow: var(--ps-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gfc-presale-page .card {
  padding: clamp(18px, 2.6vw, 24px);
}

.gfc-presale-page .card h2,
.gfc-presale-page .card h3 {
  margin-top: 0;
}

.gfc-presale-page .card h3 {
  margin-bottom: 10px;
  color: var(--ps-ink);
}

.gfc-presale-page .card.danger,
.gfc-presale-page .danger {
  border-color: rgba(239, 68, 68, 0.26);
  background:
    linear-gradient(
      180deg,
      rgba(239, 68, 68, 0.1),
      rgba(239, 68, 68, 0.045)
    ),
    var(--ps-bg-soft);
}

.gfc-presale-page .card-header {
  margin-bottom: 12px;
}

.gfc-presale-page .card-title {
  margin: 0;
  font-size: var(--h3);
}

.gfc-presale-page .card-body {
  display: grid;
  gap: 16px;
}

.gfc-presale-page .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* ==========================================================================
   7) CURRENT STATUS GRID
   ========================================================================== */

.gfc-presale-page .presale-status-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gfc-presale-page .presale-status-card {
  padding: 18px;
  border-color: rgba(92, 200, 255, 0.22);
  background:
    radial-gradient(
      circle at top left,
      rgba(92, 200, 255, 0.12),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      var(--ps-surface),
      var(--ps-surface-soft)
    );
}

.gfc-presale-page .presale-status-card strong {
  display: block;
  margin: 5px 0;
  color: var(--ps-ink);
  font-size:
    clamp(
      1.05rem,
      1.7vw,
      1.35rem
    );
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.gfc-presale-page .status-label {
  display: block;
  color: var(--ps-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ==========================================================================
   8) METRICS
   ========================================================================== */

.gfc-presale-page .presale-metrics {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.gfc-presale-page .presale-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--ps-border-soft);
  border-radius: var(--ps-radius);
  background: rgba(255, 255, 255, 0.035);
}

.gfc-presale-page .presale-metrics dt {
  margin: 0 0 6px;
  color: var(--ps-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gfc-presale-page .presale-metrics dd {
  margin: 0;
  color: var(--ps-ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.22;
  overflow-wrap: anywhere;
}


/* ==========================================================================
   9) LIFECYCLE AND TOKENOMICS GRIDS
   ========================================================================== */

.gfc-presale-page .allocation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.gfc-presale-page .allocation-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.gfc-presale-page .allocation-card:hover {
  border-color: rgba(92, 200, 255, 0.28);
  background:
    linear-gradient(
      180deg,
      var(--ps-surface-hover),
      var(--ps-surface-soft)
    ),
    var(--ps-bg-soft);
  transform: translateY(-2px);
  box-shadow:
    var(--ps-shadow),
    0 0 24px rgba(92, 200, 255, 0.05);
}

.gfc-presale-page .allocation-card.is-current {
  border-color: rgba(245, 158, 11, 0.36);
  background:
    radial-gradient(
      circle at top left,
      rgba(245, 158, 11, 0.13),
      transparent 46%
    ),
    linear-gradient(
      180deg,
      rgba(245, 158, 11, 0.08),
      rgba(245, 158, 11, 0.035)
    ),
    var(--ps-bg-soft);
}

.gfc-presale-page .allocation-percent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 34px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(92, 200, 255, 0.28);
  border-radius: 999px;
  background: rgba(92, 200, 255, 0.09);
  color: var(--ps-accent);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.gfc-presale-page .allocation-card.is-current
.allocation-percent {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.gfc-presale-page .allocation-card h3 {
  margin: 0;
  color: var(--ps-ink);
  font-size: 1rem;
  line-height: 1.22;
}

.gfc-presale-page .allocation-card p {
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}


/* ==========================================================================
   10) STEPS AND LISTS
   ========================================================================== */

.gfc-presale-page .presale-steps {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fit,
      minmax(min(100%, 220px), 1fr)
    );
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: presale-step;
  list-style: none;
}

.gfc-presale-page .card .presale-steps {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.gfc-presale-page .presale-steps li {
  position: relative;
  min-width: 0;
  padding: 52px 18px 18px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  background:
    linear-gradient(
      180deg,
      var(--ps-surface),
      var(--ps-surface-soft)
    ),
    var(--ps-bg-soft);
  box-shadow: var(--ps-shadow);
  color: var(--ps-muted);
  line-height: 1.58;
}

.gfc-presale-page .card .presale-steps li {
  padding: 46px 16px 16px;
  border-radius: var(--ps-radius);
  box-shadow: var(--ps-shadow-soft);
}

.gfc-presale-page .presale-steps li::before {
  counter-increment: presale-step;
  content: counter(presale-step);
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(92, 200, 255, 0.28);
  border-radius: 999px;
  background: rgba(92, 200, 255, 0.09);
  color: var(--ps-accent);
  font-size: 0.9rem;
  font-weight: 900;
}

.gfc-presale-page .card .presale-steps li::before {
  top: 13px;
  left: 16px;
}

.gfc-presale-page .presale-steps strong,
.gfc-presale-page .presale-list strong {
  color: var(--ps-ink);
}

.gfc-presale-page .presale-list {
  margin: 0;
  padding-left: 1.15rem;
}

.gfc-presale-page .presale-list li {
  margin: 8px 0;
  color: var(--ps-muted);
  line-height: 1.55;
}

.gfc-presale-page .presale-list li::marker {
  color: var(--ps-accent);
}


/* ==========================================================================
   11) CONVERTER SHELL
   ========================================================================== */

.gfc-presale-page .gfc-converter {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  background:
    radial-gradient(
      circle at top right,
      rgba(92, 200, 255, 0.1),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      var(--ps-surface),
      var(--ps-surface-soft)
    ),
    var(--ps-bg-soft);
  box-shadow: var(--ps-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gfc-presale-page .gfc-converter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(92, 200, 255, 0.42),
      transparent
    );
}

.gfc-presale-page .gfc-converter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gfc-presale-page .gfc-converter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  min-width: 0;
}

.gfc-presale-page .gfc-converter-source,
.gfc-presale-page .gfc-converter-updated {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ps-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.gfc-presale-page .gfc-converter-source a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  max-width: 22ch;
  overflow: hidden;
  color: var(--ps-accent);
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-underline-offset: 0.18em;
}

.gfc-presale-page .gfc-converter-source a:hover {
  text-decoration: underline;
}

.gfc-presale-page .gfc-converter-source a:focus-visible {
  border-radius: 6px;
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.gfc-presale-page .gfc-converter-source
a[aria-disabled="true"] {
  color: var(--ps-muted);
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.gfc-presale-page .gfc-rate-cache-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.09);
  color: #fde68a;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gfc-presale-page .gfc-rate-cache-label[hidden] {
  display: none;
}

.gfc-presale-page .gfc-converter-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--ps-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.gfc-presale-page .gfc-rate-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ps-warn);
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.12);
}

.gfc-presale-page .gfc-converter.is-loading
.gfc-rate-dot {
  background: var(--ps-accent);
  box-shadow:
    0 0 0 4px rgba(92, 200, 255, 0.12);
  animation:
    gfc-presale-rate-pulse 1.1s ease-in-out infinite;
}

.gfc-presale-page .gfc-converter.is-current
.gfc-rate-dot {
  background: var(--ps-good);
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.12);
}

.gfc-presale-page .gfc-converter.is-stale
.gfc-rate-dot {
  background: var(--ps-warn);
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.12);
}

.gfc-presale-page .gfc-converter.is-unavailable
.gfc-rate-dot {
  background: var(--ps-danger);
  box-shadow:
    0 0 0 4px rgba(239, 68, 68, 0.12);
}

.gfc-presale-page .gfc-converter-updated time {
  color: var(--ps-ink);
  font-weight: 800;
}

.gfc-presale-page .gfc-converter-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 0.88fr)
    minmax(0, 1.12fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.gfc-presale-page .gfc-converter-input-card,
.gfc-presale-page .gfc-converter-results-card {
  height: 100%;
}


/* ==========================================================================
   12) CONVERTER INPUT
   ========================================================================== */

.gfc-presale-page .gfc-converter-field {
  min-width: 0;
}

.gfc-presale-page .gfc-converter-amount-wrap {
  position: relative;
  min-width: 0;
}

.gfc-presale-page .gfc-converter-amount-wrap input {
  padding-right: 78px;
}

.gfc-presale-page .gfc-converter-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  max-width: 64px;
  overflow: hidden;
  color: var(--ps-accent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
}

.gfc-presale-page
[data-gfc-converter-input-status] {
  min-height: 1.25em;
  margin: 6px 0 0;
}

.gfc-presale-page
[data-gfc-converter-input-status]:empty {
  margin-top: 0;
  min-height: 0;
}

.gfc-presale-page
[data-gfc-source-amount][aria-invalid="true"] {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.18);
}

.gfc-presale-page
[data-gfc-converter-input-status]:not(:empty) {
  color: #fca5a5;
}

.gfc-presale-page .gfc-converter-reference {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(92, 200, 255, 0.22);
  border-radius: var(--ps-radius);
  background:
    radial-gradient(
      circle at top left,
      rgba(92, 200, 255, 0.1),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.035);
}

.gfc-presale-page .gfc-converter-reference span {
  color: var(--ps-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gfc-presale-page .gfc-converter-reference strong {
  color: var(--ps-ink);
  font-size:
    clamp(
      1.15rem,
      1.8vw,
      1.5rem
    );
  line-height: 1.2;
}


/* ==========================================================================
   13) CONVERTER RESULTS
   ========================================================================== */

.gfc-presale-page .gfc-converter-results {
  display: grid;
  gap: 10px;
  margin: 0;
}

.gfc-presale-page .gfc-converter-result {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(150px, auto);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ps-radius);
  background: rgba(255, 255, 255, 0.03);
}

.gfc-presale-page .gfc-converter-result.is-primary {
  border-color: rgba(92, 200, 255, 0.46);
  background:
    radial-gradient(
      circle at top left,
      rgba(92, 200, 255, 0.16),
      transparent 46%
    ),
    linear-gradient(
      180deg,
      rgba(92, 200, 255, 0.08),
      rgba(92, 200, 255, 0.035)
    );
  box-shadow:
    0 0 0 1px rgba(92, 200, 255, 0.05),
    0 0 28px rgba(92, 200, 255, 0.11);
}

.gfc-presale-page .gfc-converter-result dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.gfc-presale-page .gfc-currency-code {
  color: var(--ps-ink);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.gfc-presale-page .gfc-currency-name {
  color: var(--ps-muted);
  font-size: 0.78rem;
}

.gfc-presale-page .gfc-converter-result dd {
  min-width: 0;
  margin: 0;
  text-align: right;
}

.gfc-presale-page .gfc-converter-result strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ps-ink);
  font-size:
    clamp(
      1rem,
      1.7vw,
      1.28rem
    );
  line-height: 1.2;
}

.gfc-presale-page .gfc-converter-result.is-primary
strong {
  color: var(--ps-accent);
  font-size:
    clamp(
      1.4rem,
      2.3vw,
      1.9rem
    );
  font-weight: 950;
  letter-spacing: -0.02em;
}

.gfc-presale-page
.gfc-converter-result.is-unavailable {
  opacity: 0.56;
}

.gfc-presale-page .gfc-converter-disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-left: 3px solid rgba(245, 158, 11, 0.62);
  border-radius: var(--ps-radius);
  background:
    linear-gradient(
      180deg,
      rgba(245, 158, 11, 0.09),
      rgba(245, 158, 11, 0.04)
    ),
    var(--ps-bg-soft);
  color: var(--ps-muted);
  line-height: 1.6;
}

.gfc-presale-page .gfc-converter-disclaimer strong {
  color: var(--ps-ink);
}

.gfc-presale-page .gfc-converter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.gfc-presale-page .gfc-presale-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--ps-radius);
  background: rgba(245, 158, 11, 0.075);
  color: #fde68a;
  font-size: 0.86rem;
  line-height: 1.3;
}

.gfc-presale-page .gfc-presale-availability strong {
  color: #fde68a;
}

.gfc-presale-page .gfc-presale-availability-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ps-warn);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.11);
}


/* ==========================================================================
   14) CONVERTER STATES
   ========================================================================== */

.gfc-presale-page .gfc-converter.is-loading
[data-gfc-refresh-rates] {
  opacity: 0.68;
  pointer-events: none;
}

.gfc-presale-page .gfc-converter
[data-gfc-source-currency]
option:disabled {
  color: rgba(234, 242, 247, 0.38);
}

.gfc-presale-page .gfc-converter.is-unavailable
[data-gfc-source-currency],
.gfc-presale-page .gfc-converter.is-unavailable
[data-gfc-source-amount] {
  opacity: 1;
}

.gfc-presale-page .gfc-converter.is-unavailable
[data-gfc-source-currency] {
  border-color: rgba(245, 158, 11, 0.2);
}

.gfc-presale-page .gfc-converter.is-stale {
  border-color: rgba(245, 158, 11, 0.24);
}

.gfc-presale-page .gfc-converter.is-current {
  border-color: rgba(34, 197, 94, 0.2);
}

.gfc-presale-page .gfc-converter.is-unavailable {
  border-color: rgba(239, 68, 68, 0.22);
}


/* ==========================================================================
   15) FORMS
   ========================================================================== */

.gfc-presale-page .form label {
  display: block;
  margin: 0 0 7px;
  color: var(--ps-ink);
  font-weight: 800;
}

.gfc-presale-page .form-optional {
  color: var(--ps-muted);
  font-size: 0.86em;
  font-weight: 650;
}

.gfc-presale-page .form input,
.gfc-presale-page .form select,
.gfc-presale-page .form textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ps-ink);
  font: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.gfc-presale-page .form textarea {
  min-height: 140px;
  resize: vertical;
}

.gfc-presale-page .form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--ps-accent) 50%
    ),
    linear-gradient(
      135deg,
      var(--ps-accent) 50%,
      transparent 50%
    );
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.gfc-presale-page .form select option {
  background: var(--ps-bg-soft);
  color: var(--ps-ink);
}

.gfc-presale-page .form select option:disabled {
  color: rgba(234, 242, 247, 0.42);
}

.gfc-presale-page .form input::placeholder,
.gfc-presale-page .form textarea::placeholder {
  color: rgba(234, 242, 247, 0.46);
}

.gfc-presale-page .form input:hover,
.gfc-presale-page .form select:hover,
.gfc-presale-page .form textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.gfc-presale-page .form input:focus,
.gfc-presale-page .form select:focus,
.gfc-presale-page .form textarea:focus {
  outline: none;
  border-color: var(--ps-border-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 3px rgba(92, 200, 255, 0.16);
}

.gfc-presale-page .form input:disabled,
.gfc-presale-page .form select:disabled,
.gfc-presale-page .form textarea:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.gfc-presale-page .input-error,
.gfc-presale-page
.form [aria-invalid="true"] {
  border-color:
    rgba(239, 68, 68, 0.7) !important;
  box-shadow:
    0 0 0 3px
    rgba(239, 68, 68, 0.18) !important;
}

.gfc-presale-page [data-form-status] {
  min-height: 1.35em;
  margin: 0;
}

.gfc-presale-page
[data-form-status][data-status="error"] {
  color: #fca5a5;
}

.gfc-presale-page
[data-form-status][data-status="success"] {
  color: #86efac;
}

.gfc-presale-page
[data-form-status][data-status="info"] {
  color: var(--ps-accent);
}


/* ==========================================================================
   16) BUTTON STATES
   ========================================================================== */

.gfc-presale-page .btn.disabled,
.gfc-presale-page .btn[disabled],
.gfc-presale-page .btn[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}


/* ==========================================================================
   17) ACCESSIBILITY AND INTERACTION
   ========================================================================== */

.gfc-presale-page a,
.gfc-presale-page button,
.gfc-presale-page input,
.gfc-presale-page select,
.gfc-presale-page textarea {
  -webkit-tap-highlight-color: transparent;
}

.gfc-presale-page button:focus-visible,
.gfc-presale-page input:focus-visible,
.gfc-presale-page select:focus-visible,
.gfc-presale-page textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.gfc-presale-page
[data-gfc-presale-state="planned"]
.allocation-card.is-current {
  border-color: rgba(245, 158, 11, 0.38);
}


/* ==========================================================================
   17B) EXPLICIT DARK MODALS ON PRESALE
   ========================================================================== */

.gfc-presale-page .modal-dialog,
.gfc-presale-page [data-modal-dialog] {
  background:
    radial-gradient(
      700px 240px at 100% 0%,
      rgba(92, 200, 255, 0.065),
      transparent 72%
    ),
    linear-gradient(
      180deg,
      var(--md-surface),
      var(--md-surface-2)
    ),
    var(--md-bg);
  color: var(--md-ink);
  box-shadow: var(--md-shadow);
}

.gfc-presale-page .modal-close {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.025)
    );
  color: var(--md-ink);
}

.gfc-presale-page .modal .btn-secondary {
  border-color: rgba(92, 200, 255, 0.4);
  background: rgba(92, 200, 255, 0.055);
  color: var(--md-accent);
}

.gfc-presale-page .modal-body code,
.gfc-presale-page .modal-body pre {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
}


/* ==========================================================================
   18) ANIMATIONS
   ========================================================================== */

@keyframes gfc-presale-rate-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ==========================================================================
   19) RESPONSIVE — LARGE TABLETS
   ========================================================================== */

@media (max-width: 1100px) {
  .gfc-presale-page .presale-status-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .gfc-presale-page .allocation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==========================================================================
   20) RESPONSIVE — TABLETS
   ========================================================================== */

@media (max-width: 980px) {
  .gfc-presale-page .presale-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "card"
      "support";
  }

  .gfc-presale-page .grid-2 {
    grid-template-columns: 1fr;
  }

  .gfc-presale-page .presale-hero-card {
    max-width: 760px;
  }

  .gfc-presale-page .presale-metrics {
    grid-template-columns: 1fr;
  }

  .gfc-presale-page .gfc-converter-grid {
    grid-template-columns: 1fr;
  }

  .gfc-presale-page .gfc-converter-toolbar {
    align-items: flex-start;
  }
}


@media (min-width: 375px) and (max-width: 980px) {
  .gfc-presale-page .presale-hero-card .presale-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================================================
   21) RESPONSIVE — SMALL TABLETS
   ========================================================================== */

@media (max-width: 760px) {
  .gfc-presale-page .presale-page-nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    background:
      linear-gradient(
        90deg,
        rgba(2, 6, 23, 0),
        rgba(2, 6, 23, 0.96)
      );
  }

  .gfc-presale-page .allocation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gfc-presale-page .presale-hero-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gfc-presale-page .presale-hero-card-actions .btn {
    width: 100%;
  }

  .gfc-presale-page .presale-actions,
  .gfc-presale-page .card-actions,
  .gfc-presale-page .gfc-converter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gfc-presale-page .presale-actions .btn,
  .gfc-presale-page .card-actions .btn,
  .gfc-presale-page .gfc-converter-actions .btn,
  .gfc-presale-page .gfc-converter-actions .gfc-presale-availability {
    width: 100%;
  }

  .gfc-presale-page .gfc-converter-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gfc-presale-page .gfc-converter-meta {
    justify-content: flex-start;
  }

  .gfc-presale-page .gfc-converter-source,
  .gfc-presale-page .gfc-converter-updated {
    justify-content: flex-start;
    text-align: left;
  }

  .gfc-presale-page [data-gfc-refresh-rates] {
    width: 100%;
    min-width: 0;
  }
}


/* ==========================================================================
   22) RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 640px) {
  .gfc-presale-page main section[id] {
    scroll-margin-top: calc(var(--header-h) + 18px);
  }

  .gfc-presale-page .section {
    padding: 48px 0;
  }

  .gfc-presale-page .presale-hero {
    padding-top: 36px;
  }

  .gfc-presale-page .presale-badge {
    white-space: normal;
  }

  .gfc-presale-page .presale-status-grid,
  .gfc-presale-page .allocation-grid,
  .gfc-presale-page .presale-steps {
    grid-template-columns: 1fr;
  }

  .gfc-presale-page .gfc-converter {
    padding: 16px;
    border-radius: 16px;
  }

  .gfc-presale-page .gfc-converter-result {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .gfc-presale-page .gfc-converter-result dd {
    text-align: left;
  }

  .gfc-presale-page .gfc-converter-source a {
    max-width: min(60vw, 22ch);
  }

  .gfc-presale-page .card,
  .gfc-presale-page .presale-hero-card,
  .gfc-presale-page .presale-risk,
  .gfc-presale-page .presale-status-card,
  .gfc-presale-page .allocation-card,
  .gfc-presale-page .presale-steps li {
    border-radius: 16px;
  }
}


/* ==========================================================================
   23) RESPONSIVE — NARROW MOBILE
   ========================================================================== */

@media (max-width: 390px) {
  .gfc-presale-page .presale-hero-card,
  .gfc-presale-page .card,
  .gfc-presale-page .presale-risk {
    padding: 16px;
  }

  .gfc-presale-page .gfc-converter {
    padding: 14px;
  }

  .gfc-presale-page .gfc-converter-result {
    padding: 12px;
  }

  .gfc-presale-page .gfc-converter-unit {
    right: 12px;
  }

  .gfc-presale-page
  .gfc-converter-amount-wrap input {
    padding-right: 70px;
  }
}



/* ==========================================================================
   23A) VERY NARROW MOBILE — COMPACT HERO METRICS
   --------------------------------------------------------------------------
   Keep the established page/container gutters unchanged. On widths below
   375px, render the eight hero metrics as compact label/value rows instead
   of tall stacked cards to reduce unnecessary vertical travel.
   ========================================================================== */

@media (max-width: 374px) {
  .gfc-presale-page .presale-hero-card .presale-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gfc-presale-page .presale-hero-card .presale-metrics div {
    display: grid;
    grid-template-columns: minmax(76px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 10px;
    padding: 10px 11px;
  }

  .gfc-presale-page .presale-hero-card .presale-metrics dt {
    margin: 2px 0 0;
    font-size: 0.69rem;
  }

  .gfc-presale-page .presale-hero-card .presale-metrics dd {
    font-size: 0.92rem;
    text-align: right;
  }
}

/* ==========================================================================
   24) REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gfc-presale-page *,
  .gfc-presale-page *::before,
  .gfc-presale-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ==========================================================================
   25) PRINT
   ========================================================================== */

@media print {
  .gfc-presale-page {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .gfc-presale-page .presale-hero,
  .gfc-presale-page .section,
  .gfc-presale-page .section.alt,
  .gfc-presale-page .card,
  .gfc-presale-page .presale-note,
  .gfc-presale-page .presale-risk,
  .gfc-presale-page .presale-hero-card,
  .gfc-presale-page .presale-status-card,
  .gfc-presale-page .allocation-card,
  .gfc-presale-page .presale-steps li,
  .gfc-presale-page .gfc-converter,
  .gfc-presale-page .gfc-converter-result,
  .gfc-presale-page .gfc-converter-reference,
  .gfc-presale-page .gfc-converter-disclaimer {
    border: 1px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .gfc-presale-page *,
  .gfc-presale-page *::before,
  .gfc-presale-page *::after {
    color: #000000 !important;
    text-shadow: none !important;
  }

  .gfc-presale-page .presale-actions,
  .gfc-presale-page .card-actions,
  .gfc-presale-page .gfc-converter-actions,
  .gfc-presale-page .presale-page-nav,
  .gfc-presale-page [data-gfc-refresh-rates],
  .site-header,
  .site-footer,
  .modal,
  [data-modal-backdrop] {
    display: none !important;
  }

  .gfc-presale-page a {
    color: #000000 !important;
    text-decoration: underline !important;
  }

  .gfc-presale-page .section,
  .gfc-presale-page .presale-hero {
    padding: 24px 0 !important;
  }

  .gfc-presale-page .card,
  .gfc-presale-page .allocation-card,
  .gfc-presale-page .presale-status-card,
  .gfc-presale-page .presale-steps li {
    break-inside: avoid;
  }
}