/* FlapBot interface layer. Loaded after styles.css. */
.flapbot-shell {
  --ink: #eef4f3;
  --muted: #819196;
  --line: rgba(116, 151, 158, .22);
  --panel: #0d1317;
  --panel-2: #111a1f;
  --mint: #56d7d1;
  --mint-dim: #287d7a;
  --amber: #e7a83b;
  --red: #ef6a62;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #090d10;
  font-family: "Manrope", "Microsoft YaHei", Arial, sans-serif;
}

.flapbot-shell {
  overflow-x: hidden;
}

.flapbot-shell,
.flapbot-shell * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.flapbot-shell .grain {
  opacity: .035;
  mix-blend-mode: screen;
}

.flapbot-shell .topbar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 214px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 22px 16px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #0c1216;
  box-shadow: 14px 0 34px rgba(0, 0, 0, .24);
  backdrop-filter: none;
}

.flapbot-shell .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f4f8f7;
  text-decoration: none;
}

.flapbot-shell .brand-logo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(86, 215, 209, .55);
  background: #080c0f;
  box-shadow: 0 0 22px rgba(86, 215, 209, .16);
}

.flapbot-shell .brand > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.flapbot-shell .brand strong {
  font-size: 20px;
  line-height: 1;
}

.flapbot-shell .brand small {
  color: #72848a;
  font-size: 9px;
  line-height: 1.35;
}

.flapbot-shell .network {
  width: 100%;
  justify-content: flex-start;
  margin-top: 30px;
  padding: 10px 11px;
  color: #a4b2b5;
  border: 1px solid var(--line);
  background: #10181c;
  font: 10px var(--mono);
}

.flapbot-shell .live-dot,
.flapbot-shell .status-chip i {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(86, 215, 209, .7);
}

.flapbot-shell .network-id {
  margin-left: auto;
  color: #0c1719;
  border: 0;
  padding: 3px 6px;
  background: var(--mint);
  font-weight: 800;
}

.flapbot-shell .main-nav {
  width: 100%;
  display: grid;
  gap: 5px;
  margin: 24px 0 auto;
}

.flapbot-shell .main-nav a {
  position: relative;
  padding: 11px 12px 11px 16px;
  color: #7f9095;
  border-left: 3px solid transparent;
  background: transparent;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.flapbot-shell .main-nav a:hover {
  color: #e9f5f3;
  background: #111c21;
}

.flapbot-shell .main-nav a.active {
  color: #e9ffff;
  border-left-color: var(--mint);
  background: #132329;
}

.flapbot-shell .main-nav a.active::after {
  display: none;
}

.flapbot-shell .wallet-button {
  min-height: 42px;
  color: #eaf9f7;
  border: 1px solid rgba(86, 215, 209, .38);
  background: #143036;
  box-shadow: none;
}

.flapbot-shell .topbar > .wallet-button {
  width: 100%;
}

.flapbot-shell .wallet-button:hover {
  background: #1b4248;
}

.flapbot-shell .wallet-icon,
.flapbot-shell .mint,
.flapbot-shell .text-button,
.flapbot-shell .status-chip {
  color: var(--mint) !important;
}

.flapbot-shell main {
  margin-left: 214px;
}

.flapbot-shell .hero {
  min-height: 338px;
  padding: 58px 48px 34px;
  border-bottom: 1px solid var(--line);
  background: #0b1115;
}

.flapbot-shell .hero-backdrop {
  background: url("assets/flapbot-robot-core-v7.png") center / cover no-repeat;
  opacity: .86;
  filter: none;
}

.flapbot-shell .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(5, 9, 12, .2);
}

.flapbot-shell .hero-copy,
.flapbot-shell .hero-hud,
.flapbot-shell .market-glance {
  position: relative;
  z-index: 2;
}

.flapbot-shell .hero-hud {
  position: absolute;
  top: 17px;
  right: 46px;
  left: 48px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 9px;
  color: #799096;
  border-bottom: 1px solid rgba(86, 215, 209, .22);
  font: 8px var(--mono);
}

.flapbot-shell .hero-copy {
  width: min(610px, 58%);
}

.flapbot-shell .eyebrow {
  color: #73e1dc;
  font-size: 10px;
  font-family: var(--mono);
}

.flapbot-shell .pulse-ring {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(86, 215, 209, .11), 0 0 12px rgba(86, 215, 209, .7);
}

.flapbot-shell .hero h1 {
  margin: 0;
  color: #f4f8f7;
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
}

.flapbot-shell .hero-command {
  margin: 14px 0 0;
  color: #d9e5e3;
  font-size: 19px;
  font-weight: 700;
}

.flapbot-shell .hero-description {
  max-width: 570px;
  margin: 10px 0 18px;
  color: #92a3a7;
  line-height: 1.65;
}

.flapbot-shell .official-social-cta {
  display: inline-grid;
  grid-template-columns: auto auto 28px;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin: 0 0 19px;
  padding: 0 8px 0 14px;
  color: #eafffd;
  border: 1px solid rgba(86, 215, 209, .48);
  background: #10252a;
  text-decoration: none;
}

.flapbot-shell .official-social-cta:hover {
  border-color: var(--mint);
  background: #17343a;
}

.flapbot-shell .official-social-cta-label {
  font-weight: 800;
}

.flapbot-shell .official-social-cta strong {
  color: var(--amber);
  font: 11px var(--mono);
}

.flapbot-shell .official-social-cta-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #071214;
  background: var(--mint);
  font-size: 15px;
  font-weight: 900;
}

.flapbot-shell .hero-stats {
  display: flex;
  gap: 0;
}

.flapbot-shell .hero-stats div {
  min-width: 124px;
  padding: 0 20px;
  border-left: 1px solid rgba(86, 215, 209, .2);
}

.flapbot-shell .hero-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.flapbot-shell .hero-stats span {
  color: #708287;
}

.flapbot-shell .hero-stats strong {
  color: #eaf5f3;
  font: 15px var(--mono);
}

.flapbot-shell .market-glance {
  position: absolute;
  right: 44px;
  bottom: 35px;
  width: 270px;
  padding: 15px 16px;
  border: 1px solid rgba(86, 215, 209, .28);
  background: rgba(8, 14, 18, .86);
  backdrop-filter: blur(8px);
}

.flapbot-shell .glance-head {
  color: #b8c9c8;
  border-bottom-color: var(--line);
}

.flapbot-shell .radar-scope {
  height: 84px;
  margin: 10px 0 2px;
}

.flapbot-shell .radar-line {
  color: #87989c;
}

.flapbot-shell .radar-line strong {
  color: #edf5f3;
}

.flapbot-shell .workspace {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  grid-template-areas:
    "filters trade"
    "feed trade";
  margin: 0;
  border: 0;
  background: #090d10;
}

.flapbot-shell .filter-panel {
  grid-area: filters;
  display: grid;
  grid-template-columns: 150px minmax(210px, 1.5fr) repeat(2, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #0d1418;
}

.flapbot-shell .panel-heading {
  align-self: center;
  padding: 0;
}

.flapbot-shell .search {
  align-self: center;
  height: 40px;
  border-color: var(--line);
  background: #0a1013;
}

.flapbot-shell .filter-block {
  min-width: 0;
  padding: 0;
  border: 0;
}

.flapbot-shell .filter-block p {
  margin: 0 0 6px;
  color: #7f9195;
}

.flapbot-shell .filter-block:nth-of-type(n+4),
.flapbot-shell .filter-note {
  grid-column: span 2;
}

.flapbot-shell .source-toggle,
.flapbot-shell .segmented,
.flapbot-shell .filter-note {
  border-color: var(--line);
  background: #10191d;
}

.flapbot-shell .source-toggle.selected,
.flapbot-shell .segmented button.selected {
  color: #e6ffff;
  border-color: rgba(86, 215, 209, .4);
  background: #153038;
}

.flapbot-shell .filter-note {
  margin: 0;
  padding: 8px 10px;
  align-self: end;
}

.flapbot-shell .feed-panel {
  grid-area: feed;
  min-width: 0;
  padding: 20px 0 12px;
  background: #0a1013;
}

.flapbot-shell .feed-header {
  padding: 0 22px 17px;
}

.flapbot-shell .feed-header h2 {
  color: #edf5f3;
}

.flapbot-shell .table-labels {
  color: #66787c;
  border-color: var(--line);
  background: #0d1519;
}

.flapbot-shell .token-row {
  border-bottom-color: rgba(116, 151, 158, .12);
}

.flapbot-shell .token-row:hover,
.flapbot-shell .token-row.selected {
  background: #101d21;
  box-shadow: inset 3px 0 0 var(--mint);
}

.flapbot-shell .token-icon {
  border-radius: 3px;
  color: #061011;
}

.flapbot-shell .verified-badge {
  color: #8be9e3;
  border-color: rgba(86, 215, 209, .34);
  background: #11272c;
}

.flapbot-shell .icon-button,
.flapbot-shell .sort-button,
.flapbot-shell .quick-amounts button {
  color: #9bacaf;
  border-color: var(--line);
  background: #0f181c;
}

.flapbot-shell .icon-button:hover,
.flapbot-shell .sort-button:hover,
.flapbot-shell .quick-amounts button:hover {
  color: var(--mint);
  border-color: rgba(86, 215, 209, .42);
}

.flapbot-shell .trade-panel {
  grid-area: trade;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 22px 20px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #0c1317;
}

.flapbot-shell .chart-wrap {
  border: 1px solid rgba(86, 215, 209, .12);
  background: #081014;
}

.flapbot-shell .token-metrics,
.flapbot-shell .trade-tabs {
  border-color: var(--line);
}

.flapbot-shell .amount-box {
  border-color: rgba(86, 215, 209, .24);
  background: #0f1a1e;
}

.flapbot-shell .primary-trade {
  color: #071315;
  background: var(--mint);
}

.flapbot-shell .primary-trade:hover {
  background: #79e5e0;
}

.flapbot-shell .primary-trade:disabled {
  color: #718186;
  background: #263237;
}

.flapbot-shell .activity-strip {
  width: auto;
  max-width: none;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: #0c1317;
}

.flapbot-shell .token-detail-main {
  width: calc(100% - 214px);
  max-width: 1360px;
  margin: 0 0 0 214px;
  padding-right: 24px;
  padding-left: 24px;
}

.flapbot-shell .detail-grid-trade {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
}

.flapbot-shell .detail-sidebar,
.flapbot-shell .detail-toolbox,
.flapbot-shell .detail-search,
.flapbot-shell .side-trade-shell {
  min-width: 0;
  max-width: 100%;
}

.flapbot-shell .detail-header,
.flapbot-shell .detail-panel-heading {
  border-color: var(--line);
}

.flapbot-shell .flap-panel,
.flapbot-shell .detail-card,
.flapbot-shell .actor-card,
.flapbot-shell .rpc-config {
  border-color: var(--line);
  background: #0c1418;
}

.flapbot-shell .detail-token-icon {
  color: #071315;
  border-color: rgba(86, 215, 209, .45);
  background: var(--mint);
}

.flapbot-shell .flap-frame-shell {
  background: #080f12;
}

.flapbot-shell .quick-trade-trigger,
.flapbot-shell .quick-trade-dock {
  color: #071315;
  border-color: transparent;
  background: var(--mint);
}

.flapbot-shell .quick-trade-panel {
  border-color: rgba(86, 215, 209, .35);
  background: #0b1317;
}

@media (max-width: 1180px) {
  .flapbot-shell .topbar {
    position: sticky;
    inset: 0 0 auto;
    width: auto;
    height: 68px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flapbot-shell .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .flapbot-shell .network {
    width: auto;
    margin: 0;
  }

  .flapbot-shell .main-nav {
    width: auto;
    display: flex;
    gap: 4px;
    margin: 0;
  }

  .flapbot-shell .main-nav a {
    padding: 10px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .flapbot-shell .main-nav a.active {
    border-bottom-color: var(--mint);
  }

  .flapbot-shell .topbar > .wallet-button {
    width: auto;
    padding: 0 13px;
  }

  .flapbot-shell main,
  .flapbot-shell .activity-strip {
    margin-left: 0;
  }

  .flapbot-shell .token-detail-main {
    width: min(100% - 40px, 1360px);
    margin: 0 auto;
    padding-right: 0;
    padding-left: 0;
  }

  .flapbot-shell .workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "filters"
      "feed"
      "trade";
  }

  .flapbot-shell .trade-panel {
    position: static;
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .flapbot-shell .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .flapbot-shell .network,
  .flapbot-shell .main-nav {
    display: none;
  }

  .flapbot-shell .brand small {
    display: none;
  }

  .flapbot-shell .hero {
    min-height: 510px;
    padding: 56px 20px 28px;
  }

  .flapbot-shell .hero-backdrop {
    background-position: 68% center;
    opacity: .62;
  }

  .flapbot-shell .hero::after {
    background: rgba(5, 9, 12, .48);
  }

  .flapbot-shell .hero-hud {
    right: 20px;
    left: 20px;
  }

  .flapbot-shell .hero-copy {
    width: 100%;
  }

  .flapbot-shell .hero h1 {
    font-size: 40px;
  }

  .flapbot-shell .hero-command {
    font-size: 17px;
  }

  .flapbot-shell .market-glance {
    display: none;
  }

  .flapbot-shell .filter-panel {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }

  .flapbot-shell .panel-heading,
  .flapbot-shell .search,
  .flapbot-shell .filter-note {
    grid-column: 1 / -1;
  }

  .flapbot-shell .filter-panel .filter-block {
    display: block;
    grid-column: auto;
  }

  .flapbot-shell .table-labels {
    display: none;
  }

  .flapbot-shell .token-row {
    grid-template-columns: minmax(150px, 1fr) .8fr .8fr 28px;
    padding: 0 14px;
  }

  .flapbot-shell .token-row > :nth-child(3),
  .flapbot-shell .token-row > :nth-child(5) {
    display: none;
  }

  .flapbot-shell .activity-strip {
    grid-template-columns: 1fr 1fr;
  }

  .flapbot-shell .token-detail-main {
    width: min(100% - 28px, 700px);
  }
}

@media (max-width: 520px) {
  .flapbot-shell .brand strong {
    font-size: 17px;
  }

  .flapbot-shell .topbar > .wallet-button span:last-child {
    display: none;
  }

  .flapbot-shell .hero-hud span:nth-child(2) {
    display: none;
  }

  .flapbot-shell .hero h1 {
    font-size: 34px;
  }

  .flapbot-shell .official-social-cta {
    grid-template-columns: 1fr 28px;
    width: min(100%, 340px);
  }

  .flapbot-shell .official-social-cta strong {
    grid-column: 1;
    grid-row: 2;
    padding-bottom: 7px;
  }

  .flapbot-shell .official-social-cta-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .flapbot-shell .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .flapbot-shell .hero-stats div {
    min-width: 0;
    padding: 0 10px;
  }

  .flapbot-shell .filter-panel {
    grid-template-columns: 1fr;
  }

  .flapbot-shell .filter-panel > * {
    grid-column: 1 / -1;
  }
}

/* Purple identity supplied with the final FlapBot logo. */
.flapbot-shell {
  --mint: #b66cff;
  --mint-dim: #7040a1;
  --amber: #efb34d;
}
.flapbot-shell .brand-logo { border-color: rgba(182,108,255,.68); box-shadow: 0 0 24px rgba(182,108,255,.24); }
.flapbot-shell .live-dot,.flapbot-shell .status-chip i { box-shadow: 0 0 11px rgba(182,108,255,.78); }
.flapbot-shell .main-nav a.active { background:#21152d; }
.flapbot-shell .wallet-button { border-color:rgba(182,108,255,.45); background:#28183a; }
.flapbot-shell .wallet-button:hover { background:#382050; }
.flapbot-shell .hero-backdrop { filter:hue-rotate(96deg) saturate(1.18); }
.flapbot-shell .hero-hud { border-bottom-color:rgba(182,108,255,.28); }
.flapbot-shell .eyebrow { color:#d2a7ff; }
.flapbot-shell .pulse-ring { box-shadow:0 0 0 5px rgba(182,108,255,.12),0 0 13px rgba(182,108,255,.8); }
.flapbot-shell .official-social-cta { border-color:rgba(182,108,255,.55); background:#261735; }
.flapbot-shell .official-social-cta:hover { background:#342047; }
.flapbot-shell .hero-stats div { border-left-color:rgba(182,108,255,.24); }
.flapbot-shell .market-glance { border-color:rgba(182,108,255,.34); }
.flapbot-shell .source-toggle.selected,.flapbot-shell .segmented button.selected { border-color:rgba(182,108,255,.46); background:#271a34; }
.flapbot-shell .token-row:hover,.flapbot-shell .token-row.selected { background:#191320; }
.flapbot-shell .verified-badge { color:#dab7ff; border-color:rgba(182,108,255,.4); background:#24172f; }
.flapbot-shell .amount-box { border-color:rgba(182,108,255,.3); }
.flapbot-shell .quick-trade-panel { border-color:rgba(182,108,255,.4); }
