/* REQUEST PAGE MANAGED CSS START */
/* extracted from request.html: site-appendix-footer-style */
.site-appendix-footer {
      margin: 28px auto 0;
      padding: 18px 16px 26px;
      text-align: center;
      font-size: 0.88rem;
      opacity: 0.78;
    }

    .site-appendix-footer a {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px dotted currentColor;
    }

    .site-appendix-footer a:hover,
    .site-appendix-footer a:focus-visible {
      opacity: 1;
      border-bottom-style: solid;
    }


/* extracted from request.html: cigo-market-pill-inline-css */
.cigo-market-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px 3px 5px;
      border-radius: 999px;
      border: 1px solid rgba(255, 226, 150, 0.50);
      background: rgba(0, 0, 0, 0.24);
      box-shadow: 0 0 12px rgba(214, 174, 94, 0.18);
    }

    .cigo-market-pill img {
      width: 18px;
      height: 18px;
      border-radius: 999px;
      display: block;
    }


/* extracted from request.html: request-topbar-horizontal-css */
/*
      Discount desk topbar hard lock.
      Desktop/tablet: brand left, nav right, same row.
      Phone: brand left, menu pill right, dropdown below.
    */

    @media (min-width: 861px) {
      .request-page .topbar .topbar-inner {
        width: min(1180px, calc(100% - 32px)) !important;
        max-width: 1180px !important;
        min-height: 74px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: grid !important;
        grid-template-columns: max-content minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 16px !important;
      }

      .request-page .topbar .brand {
        grid-column: 1 !important;
        justify-self: start !important;
        width: auto !important;
        max-width: 300px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        text-align: left !important;
        white-space: nowrap !important;
      }

      .request-page .topbar .brand img,
      .request-page .topbar .brand-icon {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
      }

      .request-page .topbar .brand span {
        display: block !important;
        min-width: 0 !important;
        max-width: 250px !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }

      .request-page .topbar .brand small {
        display: block !important;
        text-align: left !important;
      }

      .request-page .topbar .nav-toggle {
        display: none !important;
      }

      .request-page .topbar .nav {
        grid-column: 2 !important;
        justify-self: end !important;
        position: static !important;
        inset: auto !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        text-align: right !important;
      }

      .request-page .topbar .nav a,
      .request-page .topbar .nav .cigo-market-pill {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
      }
    }

    @media (min-width: 861px) and (max-width: 1120px) {
      .request-page .topbar .topbar-inner {
        gap: 10px !important;
      }

      .request-page .topbar .brand {
        max-width: 190px !important;
      }

      .request-page .topbar .brand small {
        display: none !important;
      }

      .request-page .topbar .nav {
        gap: 6px !important;
      }

      .request-page .topbar .nav a {
        min-height: 34px !important;
        padding: 7px 8px !important;
        font-size: 12px !important;
      }
    }

    @media (max-width: 860px) {
      .request-page .topbar {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: visible !important;
      }

      .request-page .topbar .topbar-inner {
        width: min(100%, calc(100% - 20px)) !important;
        max-width: calc(100% - 20px) !important;
        min-height: 58px !important;
        margin: 0 auto !important;
        padding: 8px 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;
      }

      .request-page .topbar .brand {
        justify-self: start !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        text-align: left !important;
        overflow: hidden !important;
        white-space: nowrap !important;
      }

      .request-page .topbar .brand img,
      .request-page .topbar .brand-icon {
        flex: 0 0 26px !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
      }

      .request-page .topbar .brand span {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        text-align: left !important;
      }

      .request-page .topbar .brand small {
        display: none !important;
      }

      .request-page .topbar .nav-toggle {
        justify-self: end !important;
        display: inline-flex !important;
        width: auto !important;
        min-width: 64px !important;
        max-width: 86px !important;
        min-height: 36px !important;
        padding: 8px 12px !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
      }

      .request-page .topbar .nav {
        display: none !important;
        position: fixed !important;
        top: 58px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        max-height: 72vh !important;
        margin: 0 !important;
        padding: 10px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border: 1px solid rgba(255,255,255,0.16) !important;
        border-radius: 18px !important;
        background: rgba(2,6,23,0.98) !important;
        box-shadow: 0 18px 45px rgba(0,0,0,0.45) !important;
      }

      .request-page .topbar .topbar-inner.nav-open .nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
      }

      .request-page .topbar .nav a,
      .request-page .topbar .nav .cigo-market-pill {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
      }
    }

    @media (max-width: 390px) {
      .request-page .topbar .topbar-inner.nav-open .nav {
        grid-template-columns: 1fr !important;
      }

      .request-page .topbar .brand img,
      .request-page .topbar .brand-icon {
        flex-basis: 23px !important;
        width: 23px !important;
        height: 23px !important;
        min-width: 23px !important;
        max-width: 23px !important;
      }

      .request-page .topbar .nav-toggle {
        min-width: 58px !important;
        max-width: 76px !important;
        padding: 7px 10px !important;
      }
    }


.request-action-card {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.request-action-card .eyebrow {
  margin-bottom: 12px;
}

.request-action-row {
  align-items: center;
  gap: 10px;
}

.request-action-row .token-note {
  flex: 1 0 100%;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .request-action-card {
    padding: 14px;
  }

  .request-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .request-action-row .btn {
    width: 100%;
  }
}
/* REQUEST PAGE MANAGED CSS END */

/* REQUEST CIGO DETAILS MOVE START */
.cigo-details-inline {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.cigo-details-inline .side-card-head {
  margin-bottom: 12px;
}

.cigo-details-inline .side-card-copy {
  margin: 6px 0 0;
}

.cigo-details-inline .token-meta-box {
  margin-top: 0;
}
/* REQUEST CIGO DETAILS MOVE END */

/* REQUEST CIGO POOL BOX MOVE START */
.cigo-details-inline #cigoPoolBox {
  margin-top: 12px;
}
/* REQUEST CIGO POOL BOX MOVE END */

/* REQUEST COMPACT WARNING CARD START */
.request-compact-warning-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 200, 120, 0.24);
  border-radius: 18px;
  background: rgba(255, 190, 90, 0.055);
  box-shadow: 0 14px 38px rgba(0,0,0,0.18);
}

.request-compact-warning-card p {
  margin: 0;
}

.request-compact-warning-card p + p {
  margin-top: 10px;
}

.request-compact-warning-card a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* REQUEST COMPACT WARNING CARD END */

/* REQUEST SCROLL STABILITY PATCH START */
/*
  Reduces visible layout jumping while wallet/API/ticker content finishes loading.
  This does not hide the page and does not change trade logic.
*/

.request-page .wallet-summary,
.request-page #pricingPolicyNote,
.request-page #walletLimitNote,
.request-page #cigoLiquidityDeskCard,
.request-page #cigoPoolBox,
.request-page .request-panel,
.request-page .ticker-shell {
  overflow-anchor: none;
}

.request-page .wallet-summary {
  min-height: 118px;
}

.request-page #pricingPolicyNote,
.request-page #walletLimitNote,
.request-page #cigoLiquidityDeskCard {
  min-height: 48px;
}

.request-page #cigoPoolBox {
  min-height: 158px;
}

.request-page .request-panel {
  min-height: 118px;
}

.request-page .ticker-shell {
  min-height: 190px;
}

.request-page .ticker-frame {
  display: block;
  width: 100%;
  min-height: 170px;
}

.request-page .wallet-value,
.request-page .stat-value,
.request-page .token-meta-row strong,
.request-page .token-meta-row a {
  font-variant-numeric: tabular-nums;
}

.request-page img {
  max-width: 100%;
  height: auto;
}
/* REQUEST SCROLL STABILITY PATCH END */

/* CIGO_DISCOUNT_DESK_BACKGROUND_V1 */
body.request-page {
  position: relative;
  isolation: isolate;
  background: #080b0f;
}

body.request-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 11, 15, 0.72) 0%, rgba(8, 11, 15, 0.84) 52%, rgba(8, 11, 15, 0.95) 100%),
    radial-gradient(circle at 50% 20%, rgba(8, 11, 15, 0.08), rgba(8, 11, 15, 0.62) 78%),
    url("/shared/assets/cigo-background.png?v=20260728-bg1") center top / cover no-repeat;
}
