/* fomo profile page recreation */

@font-face {
  font-family: "Aeonik";
  src: url("../assets/fonts/Aeonik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("../assets/fonts/Aeonik-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #060510;
  --panel: #0c0b16;
  --panel-2: #100f1c;
  --card: #131220;
  --border: #1d1c2b;
  --border-soft: #16151f;
  --text: #f7f7f7;
  --text-dim: #9899a3;
  --text-faint: #55536a;
  --green: #21c95e;
  --green-soft: #1fbf5a;
  --red: #ff622e;
  --accent: #516af6;
  --pill: #1a1928;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Aeonik", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  height: 100%;
  overflow-y: hidden;
  overflow-x: auto;
}

.topbar, .layout, .tickerbar { min-width: 1400px; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.up { color: var(--green); }
.down { color: var(--red); }
.arr { font-size: 6px; font-weight: 400; vertical-align: 2px; margin-right: 1px; }
.tabular { font-variant-numeric: tabular-nums; }
.mc-lbl { color: var(--text-dim); font-weight: 400; }
.icon { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
}
.logo {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.searchbar {
  flex: 0 1 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text-faint);
}
.searchbar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.searchbar input::placeholder { color: var(--text-faint); }
.searchbar .kbd {
  background: var(--pill);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--text-dim);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.login-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 9px;
  background: var(--pill);
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
}
.signup-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 9px;
  background: #516af6;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  gap: 12px;
  padding: 12px;
  height: calc(100vh - 52px - 34px);
}

/* ---------- Left sidebar ---------- */
/* containers match live site: transparent bg, 1px rgba(203,208,235,0.1) border */
.sidebar {
  background: transparent;
  border: 1px solid rgba(203, 208, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* matches live site: 14px/500 tabs, gray #9899a3 inactive, white active,
   8px gaps with 1px x 16px dividers, no padding on the buttons themselves */
.side-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #12111a;               /* matches live site: only the top strip */
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--border-soft);
}
.side-tabs .tab {
  padding: 0;
  color: rgb(152, 153, 163);
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.side-tabs .tab.active { color: #f7f7f7; }
.side-tabs .vdiv { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.04); flex-shrink: 0; }
.side-tabs .collapse { margin-left: auto; color: var(--text-faint); font-size: 15px; padding: 0; }
.sub-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px 6px;
  font-size: 12px;
  overflow: hidden;
}
.sub-tabs .tab {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--text-dim);
  white-space: nowrap;
}
.sub-tabs .tab.active { background: var(--pill); color: var(--text); }

.token-list { flex: 1; overflow-y: auto; padding: 2px 6px 8px; scrollbar-width: none; }
.token-list::-webkit-scrollbar { display: none; }
.token-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 9px;
  cursor: pointer;
}
.token-row:hover { background: var(--panel-2); }
.token-row img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.token-row .info { flex: 1; min-width: 0; line-height: 1.4; }
.token-row .name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #f7f7f7;
}
.token-row .price { color: #9899a3; font-size: 12px; font-weight: 500; }
.token-row .right { text-align: right; line-height: 1.4; flex-shrink: 0; }
.token-row .mc { font-size: 14px; font-weight: 500; }
.token-row .mc .mc-val { color: #f7f7f7; }
.token-row .chg { font-size: 12px; font-weight: 500; }

/* ---------- Center column ---------- */
.center { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }

.profile-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 16px 0;
}
.banner {
  height: 110px;
  border-radius: 10px;
  background: #12111a;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 8px 0;
}
.avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  margin-top: -44px;   /* avatar overlaps the banner bottom-left */
}
/* fomo default avatar: brand-green disc + fomo-eyes overlay (as on the live site) */
.avatar-default {
  background: #45fe82;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar-default img { width: 62%; height: auto; }
.avatar-xs {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
}
.chain-badge {
  color: var(--text-faint);
  font-size: 10px;
  background: var(--pill);
  border-radius: 4px;
  padding: 1px 4px;
  vertical-align: middle;
}
.loss { color: #ff622e; }
.profile-id { flex: 1; min-width: 0; }
.profile-id .display-name {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 7px;
}
/* fomo chip pattern: small round translucent badge, no border */
.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: rgba(203, 208, 235, 0.1);
  color: #f7f7f7;
  flex-shrink: 0;
}
.x-link svg { width: 15px; height: 15px; }
.x-link:hover { opacity: 0.8; }
.profile-id .handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 4px;
}
.badge {
  background: var(--pill);
  color: var(--text-dim);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10.5px;
}
.profile-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: 26px;
}
.stat { text-align: center; line-height: 1.4; min-width: 58px; }
.stat .num { font-weight: 700; font-size: 15px; }
.stat .lbl { color: var(--text-dim); font-size: 12px; }
.stat-div { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.follow-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 30px;
  font-size: 14px;
}
.profile-meta {
  display: flex;
  gap: 18px;
  color: var(--text-dim);
  font-size: 12px;
  padding: 14px 8px 0;
}
.profile-meta span { display: flex; align-items: center; gap: 5px; }

.chart-card {
  background: transparent;
  border: 1px solid rgba(203, 208, 235, 0.1);
  border-radius: 8px;
  padding: 16px;
}
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; }
.chart-value { font-size: 26px; font-weight: 500; }
.chart-sub { margin-top: 3px; font-size: 12px; }
.chart-sub .dim { color: var(--text-dim); margin-left: 4px; }
.range-tabs { display: flex; gap: 2px; background: var(--pill); border-radius: 8px; padding: 3px; }
.range-tabs button {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.range-tabs button.active { background: var(--card); color: var(--text); }
.chart-area { height: 150px; margin-top: 10px; }
.chart-area svg { width: 100%; height: 100%; }

.mid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.mid-left { display: flex; flex-direction: column; gap: 12px; }
.swaps-panel { height: 100%; }

.panel {
  background: transparent;
  border: 1px solid rgba(203, 208, 235, 0.1);
  border-radius: 8px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* filled header strip like the live site; body stays transparent */
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  padding: 10px 14px;
  background: #12111a;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid var(--border-soft);
}
.panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 14px;
}
.panel-head .title { font-weight: 500; }
.panel-head .sub-tab { color: var(--text-faint); font-size: 12px; }
.panel-head .sub-tab.active-sub { color: var(--text-dim); }
.panel-head .spacer { flex: 1; }
.toggle {
  display: flex;
  background: var(--pill);
  border-radius: 8px;
  padding: 2px;
  font-size: 11px;
}
.toggle button { padding: 3px 12px; border-radius: 6px; color: var(--text-dim); }
.toggle button.active { background: #2a2938; color: var(--text); }
.sort-lbl { color: var(--text-faint); font-size: 11.5px; }
.col-head {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 11px;
  padding: 8px 0 4px;
}
.empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
  min-height: 90px;
}
.cash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.cash-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
}
.cash-row .lbl { color: var(--text-dim); font-size: 11.5px; }
.cash-row .val { font-weight: 500; font-size: 14px; }

/* ---------- Right column ---------- */
.rightcol { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }

.send-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px;
}
.send-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 12px;
}
.send-to { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); }
.send-to img { width: 20px; height: 20px; border-radius: 50%; }
.amount-box {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.amount-box .big {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-faint);
  background: none;
  border: none;
  outline: none;
  width: 50%;
}
.amount-box .hint { color: var(--text-faint); font-size: 12px; }
.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 10px;
  font-size: 12.5px;
}
.asset-row .left { display: flex; align-items: center; gap: 9px; }
.asset-row .caret { color: var(--text-faint); font-size: 10px; }
.note-box {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 12px;
}
.note-box textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  resize: none;
  color: var(--text);
  font-size: 12.5px;
  height: 34px;
}
.note-box textarea::placeholder { color: var(--text-faint); }
.note-box .count { text-align: right; color: var(--text-faint); font-size: 10.5px; }
.send-btn {
  width: 100%;
  background: var(--pill);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 12px;
  font-weight: 500;
  font-size: 13px;
}

.positions-card {
  background: transparent;
  border: 1px solid rgba(203, 208, 235, 0.1);
  border-radius: 8px;
  padding: 14px;
  flex: 1;
}
.positions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.positions-head .title { font-weight: 500; }
.positions-head .count { color: var(--text-dim); font-size: 12px; margin-left: 5px; }
.pos-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-radius: 9px;
  cursor: pointer;
}
.pos-row:hover { background: var(--panel-2); }
.pos-row img { width: 32px; height: 32px; border-radius: 50%; }
.pos-row .info { flex: 1; line-height: 1.4; }
.pos-row .sym { font-weight: 500; font-size: 12.5px; }
.pos-row .qty { color: var(--text-dim); font-size: 11.5px; }
.pos-row .right { text-align: right; line-height: 1.4; }
.pos-row .val { font-weight: 500; font-size: 12.5px; }
.pos-row .chg { font-size: 11.5px; }

/* ---------- Bottom ticker ---------- */
.tickerbar {
  height: 34px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 22px;
  font-size: 11.5px;
  color: var(--text-dim);
  overflow: hidden;
  white-space: nowrap;
}
.tick { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tick img { width: 16px; height: 16px; border-radius: 50%; }
.tickerbar .links {
  margin-left: auto;
  display: flex;
  gap: 14px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.stable-dot { color: var(--green); }

/* scrollbars */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #201f2e; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
