/* ===========================
   CLEG Investor Panel — tokens
   =========================== */
:root {
  /* Backgrounds */
  --bg-deep: #07050b;
  --bg-panel: #120c1c;
  --bg-card: #1a1326;
  --bg-card-2: #221831;
  --bg-input: #0d0916;
  --bg-row: #1d1428;

  /* Borders / lines */
  --line: #2a2138;
  --line-2: #3a2e4d;

  /* Gold (metallic, used for frames & primary action) */
  --gold-1: #f8e6a6;
  --gold-2: #e8c46a;
  --gold-3: #d4a04c;
  --gold-4: #a87b2c;
  --gold-5: #6a4a18;
  --gold-line: #b88a3c;
  --gold-text: #f3d59a;
  --gold-text-dim: #b8965a;

  /* Purple (CLEG) */
  --purple-1: #e9c7ff;
  --purple-2: #c084fc;
  --purple-3: #a855f7;
  --purple-4: #7c3aed;
  --purple-5: #4c1d95;
  --purple-glow: rgba(168, 85, 247, 0.5);

  /* Other */
  --bnb: #f0b90b;
  --bnb-dark: #b8890b;
  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.15);
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.18);
  --red: #ef4444;

  /* Typography */
  --font-display: 'Marcellus SC', 'Trajan Pro', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Sizing */
  --radius: 10px;
  --radius-lg: 0px;
}

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

body {
  background: var(--bg-deep);
  color: #efe7d7;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 1100px 600px at 50% -120px, rgba(168, 85, 247, 0.10), transparent 70%),
    radial-gradient(ellipse 900px 500px at 0% 70%, rgba(168, 85, 247, 0.06), transparent 70%),
    radial-gradient(ellipse 900px 500px at 100% 80%, rgba(216, 160, 76, 0.05), transparent 70%);
}

/* Subtle stone-texture noise overlay — simplified for standalone compatibility */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  background:
    repeating-linear-gradient(45deg, rgba(216,160,76,0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(168,85,247,0.03) 0 1px, transparent 1px 3px);
}

/* ===========================
   Gold framed panel
   =========================== */
.gold-frame {
  position: relative;
  background:
    linear-gradient(180deg, #1a1224 0%, #14101e 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 150, 0.06),
    inset 0 1px 0 rgba(255, 220, 150, 0.08),
    0 18px 60px rgba(0,0,0,0.6);
}
.gold-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 138, 60, 0.22);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
  z-index: 1;
}
.gold-frame .corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
}
/* Asset's natural orientation is bottom-left: the L-bend sits at the
   bottom-left of the canvas. Anchor each corner so its bend aligns with
   the frame's outer corner, then mirror across the appropriate axis. */
.gold-frame .corner.bl { bottom: 0; left: 0; }
.gold-frame .corner.br { bottom: 0; right: 0; transform: scaleX(-1); }
.gold-frame .corner.tl { top: 0;    left: 0;  transform: scaleY(-1); }
.gold-frame .corner.tr { top: 0;    right: 0; transform: scale(-1, -1); }

/* Soft sub-card inside a gold-frame */
.sub-card {
  background: linear-gradient(180deg, #15101f 0%, #110c19 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.sub-card.gold {
  border-color: rgba(184, 138, 60, 0.35);
  background: linear-gradient(180deg, rgba(40, 28, 12, 0.25) 0%, #110c19 70%);
}
.sub-card.purple {
  border: 1.5px solid var(--purple-3);
  background:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.18), transparent 70%),
    linear-gradient(180deg, #1a1029 0%, #110a1e 100%);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.18) inset;
}

/* ===========================
   Typography helpers
   =========================== */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-text);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.6),
    0 0 18px rgba(216, 160, 76, 0.25);
}
.label {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold-text-dim);
  font-weight: 600;
}
.label-gold {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold-3);
  font-weight: 600;
}
.label-purple {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--purple-2);
  font-weight: 700;
}
.num-purple { color: var(--purple-2); font-weight: 600; }
.num-gold { color: var(--gold-2); font-weight: 600; }
.muted { color: #9a8da6; }
.dim   { color: #7a6f86; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  color: #d8cdb8;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-variant-numeric: tabular-nums;
}
.btn:hover { border-color: var(--gold-line); color: var(--gold-text); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold-text);
}
.btn-ghost:hover { background: rgba(184, 138, 60, 0.08); }

.btn-gold {
  position: relative;
  border: 0;
  color: #2a1c08;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  background: url("../images/154dcd71-1110-4c23-a4a1-1cd9b75788f5.png") center / 100% 100% no-repeat;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4);
  box-shadow: 0 6px 20px rgba(216, 160, 76, 0.35);
  padding-left: 28px;
  padding-right: 28px;
}
.btn-gold:hover { filter: brightness(1.06); color: #2a1c08; }
.btn-gold:disabled {
  background: linear-gradient(180deg, #4a3a1c 0%, #322610 100%);
  color: #8a7548;
  border-color: #5a4520;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-purple {
  border: 1px solid var(--purple-3);
  background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
  color: white;
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 6px 20px rgba(124, 58, 237, 0.35);
}
.btn-purple:hover { filter: brightness(1.08); }

.btn-bonus {
  border: 1px solid var(--gold-3);
  color: var(--gold-2);
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: default;
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}

/* Row of action buttons (cancel + confirm) — space them apart */
.btn-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}
.btn-row .btn-bracket { flex: 1 1 0; }
.btn-max {
  background: url("../images/998d72b2-a1c9-456a-bf7f-2ee414924c1c.png") center / contain no-repeat;
  border: 0;
  width: 92px;
  height: 44px;
  font-size: 0;          /* hide text label, asset has it */
  color: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: filter 0.15s, transform 0.05s;
}
.btn-max:hover { filter: brightness(1.1); }
.btn-max:active { transform: translateY(1px); }
.btn-max:disabled {
  filter: grayscale(0.6) brightness(0.5);
  cursor: not-allowed;
}
.amount-input.large .btn-max {
  width: 110px;
  height: 50px;
}

/* Input row */
.amount-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 4px 4px 14px;
}
.amount-input input {
  flex: 1;
  background: transparent;
  border: 0;
  color: white;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-body);
  outline: none;
  font-variant-numeric: tabular-nums;
  text-align: center;
  min-width: 0;
}
.amount-input.disabled { opacity: 0.55; }
.amount-input.disabled input { cursor: not-allowed; }

.token-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--line-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: #efe7d7;
  white-space: nowrap;
}

/* Pills / tags */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.pill-popular         { background: #c0303c; color: white; }
.pill-popular-purple  { background: linear-gradient(180deg, #7a3ad9, #5b1fb8); color: #f7e8ff; box-shadow: 0 2px 8px rgba(124,58,237,0.45); }
.pill-suggested       { background: linear-gradient(180deg, #3ab560, #1f8a4a); color: #e9ffe9; box-shadow: 0 2px 8px rgba(34,197,94,0.4); }
.pill-best            { background: linear-gradient(180deg, #3a7adf, #1e54c4); color: #eaf2ff; box-shadow: 0 2px 8px rgba(59,130,246,0.4); }
.pill-premium         { background: linear-gradient(180deg, #d97726, #aa4a14); color: #fff1de; box-shadow: 0 2px 8px rgba(217,119,38,0.4); }
.pill-most            { background: linear-gradient(180deg, #7a3ad9, #4f1cb0); color: #f3e8ff; box-shadow: 0 2px 8px rgba(124,58,237,0.45); }
.pill { position: relative; }
.pill::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0;
}

.badge-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}
.badge-active    { background: var(--blue-bg); color: #93c5fd; border: 1px solid #3b82f6; }
.badge-claimable { background: var(--green-bg); color: #86efac; border: 1px solid #22c55e; }

/* ======================================================
   Tabs — long stone tablet with ornate gold frame on active
   ====================================================== */
.tab-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(216,160,76,0.06), transparent 70%),
    linear-gradient(180deg, #1a1326 0%, #0c0717 100%);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  margin: 36px 0 32px;
  padding: 0 36px;            /* room for the side-end ornaments at natural ratio */
  height: 96px;
  box-shadow:
    inset 0 1px 0 rgba(255,220,150,0.06),
    inset 0 -1px 0 rgba(255,220,150,0.06),
    0 6px 22px rgba(0,0,0,0.45);
  overflow: visible;
}

/* End-cap side ornaments (asset is the right-side version; left is mirrored).
   Asset is 76×477 — keep natural aspect ratio so the corners and the central
   diamond bolt stay properly proportioned, and align flush with the bar edges. */
.tab-bar-side {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: auto;
  aspect-ratio: 76 / 477;
  pointer-events: none;
  z-index: 3;
  background: url("../images/290e4b53-f9aa-4afa-82ab-a23f2dbc376a.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.55));
}
.tab-bar-side.left  { left: -6px;  transform: scaleX(-1); }
.tab-bar-side.right { right: -6px; }

/* Hairline gold pinstripe just inside the top/bottom edges */
.tab-bar::before,
.tab-bar::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,138,60,0.4), transparent);
  pointer-events: none;
}
.tab-bar::before { top: 6px; }
.tab-bar::after  { bottom: 6px; }

.tab {
  position: relative;
  flex: 1 1 0;
  min-width: 220px;
  text-align: center;
  cursor: pointer;
  padding: 24px 32px 12px;
  transition: filter 0.2s, color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 2;             /* text/ribbon sit above the sliding gold frame */
}
.tab:hover { filter: brightness(1.15); }

.tab .tab-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: #b3a190;
  letter-spacing: 0.02em;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 0.3s, text-shadow 0.3s;
}
.tab .tab-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  color: #847a6e;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.3s;
}

/* --- Active tab text --- */
.tab.active .tab-title {
  color: var(--gold-2);
  text-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 0 14px rgba(216,160,76,0.45);
}
.tab.active .tab-sub { color: #e8d2a2; }

/* --- Sliding ornate gold frame --- */
.tab-active-frame {
  position: absolute;
  background: url("../images/a82cb1a1-3ed8-42f2-8528-5fea62e9a349.png") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;             /* between divider (0) and tab content (2) */
  transition:
    left 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
  will-change: left, top, width, height;
  animation: frame-glow 3.4s ease-in-out infinite;
}

@keyframes frame-glow {
  0%, 100% {
    filter:
      drop-shadow(0 8px 22px rgba(216, 160, 76, 0.25))
      drop-shadow(0 0 14px rgba(216, 160, 76, 0.22));
  }
  50% {
    filter:
      drop-shadow(0 8px 28px rgba(216, 160, 76, 0.45))
      drop-shadow(0 0 26px rgba(216, 160, 76, 0.4));
  }
}

/* Vertical spear divider — sits below the frame, so the active frame visually
   covers the divider lines on either side of the current tab. */
.tab-divider {
  flex: 0 0 18px;
  background: url("../images/df53d9bf-e458-467c-9dc5-5045f8b9cec9.png") center / contain no-repeat;
  pointer-events: none;
  position: relative;
  z-index: 0;
  filter: drop-shadow(0 0 4px rgba(216, 160, 76, 0.3));
}

/* --- Compact in-tab badges --- */
.tab-ribbon {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 8px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: white;
  white-space: nowrap;
  z-index: 3;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  opacity: 0.9;
}
.tab-ribbon-red    { background: rgba(216, 54, 70, 0.62); }
.tab-ribbon-purple { background: rgba(124, 58, 237, 0.62); }

@media (max-width: 1100px) {
  .tab-bar { height: 88px; padding: 0 14px; }
  .tab { min-width: 0; padding-left: 18px; padding-right: 18px; }
  .tab .tab-title { font-size: 18px; }
  .tab .tab-sub   { font-size: 11px; }
  .tab-divider { flex-basis: 14px; }
}

/* Layout helpers */
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.full { width: 100%; }
.center { text-align: center; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin: 16px 0;
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(4, 2, 8, 0.78);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: fadein 0.18s ease;
}
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.investor-modal {
  position: relative;
  width: 100%;
  margin: auto;
  animation: pop 0.22s cubic-bezier(.2,.7,.2,1.2);
}
@keyframes pop { from { transform: translateY(10px) scale(0.97); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-medallion {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-line);
  background: rgba(20, 12, 30, 0.6);
  color: var(--gold-2);
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 3;
}
.modal-close:hover { background: rgba(216, 160, 76, 0.15); }

/* Tables */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.history-table th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--gold-text-dim);
  font-weight: 600;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.history-table td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  color: #d8cdb8;
  font-size: 13px;
}
.history-table tr:last-child td { border-bottom: 0; }

/* Stake plan rows */
.plan-row {
  display: grid;
  grid-template-columns: 36px 1fr 130px 90px 110px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-row);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s;
}
.plan-row:hover { border-color: var(--gold-line); }
.plan-row.locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
}
.plan-row.locked:hover { border-color: var(--line); }
.stake-locked-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 18px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gold-text);
  background: linear-gradient(180deg, rgba(216,160,76,.08), rgba(216,160,76,.02));
  border: 1px solid rgba(184,138,60,.30);
  border-radius: 8px;
}
.plan-row.selected {
  border-color: var(--purple-3);
  background: linear-gradient(90deg, rgba(168,85,247,0.10), rgba(168,85,247,0.03));
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.18) inset;
}
.radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.plan-row.selected .radio { border-color: var(--purple-2); }
.plan-row.selected .radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 8px var(--purple-2);
}

/* Info banner */
.info-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold-text-dim);
  font-size: 13px;
  padding: 14px;
  text-align: center;
}

/* Expandable accordion */
.accordion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s;
}
.accordion:hover { border-color: var(--gold-line); }
.accordion .body { flex: 1; }

.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: rgba(20, 12, 30, 0.6);
  color: var(--gold-text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wallet-pill:hover,
.wallet-pill[aria-expanded="true"] {
  border-color: var(--gold-2);
  background: rgba(216, 160, 76, 0.08);
}
.wallet-chevron {
  display: inline-flex;
  transition: transform 0.18s ease;
}
.wallet-chevron.open { transform: rotate(180deg); }
.wallet-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at top, rgba(168,85,247,0.14), transparent 70%),
    linear-gradient(180deg, rgba(26,18,36,0.98), rgba(12,7,23,0.98));
  box-shadow: 0 18px 42px rgba(0,0,0,0.58), inset 0 1px 0 rgba(255,220,150,0.08);
  z-index: 30;
  text-align: left;
}
.wallet-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  background: #1a1224;
  border-left: 1px solid var(--gold-line);
  border-top: 1px solid var(--gold-line);
  transform: rotate(45deg);
}
.wallet-menu-label {
  color: var(--gold-text-dim);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wallet-menu-address {
  color: #efe7d7;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 9, 22, 0.7);
}
.wallet-menu-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #bcb1c4;
  font-size: 12px;
  margin: 12px 0;
}
.wallet-menu-row strong {
  color: var(--gold-text);
  font-weight: 700;
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.wallet-menu-row strong.warn {
  color: #fca5a5;
}
.wallet-menu-note,
.wallet-menu-error {
  color: #bcb1c4;
  font-size: 12px;
  line-height: 1.45;
}
.wallet-menu-error {
  color: var(--gold-text);
  padding: 8px 0 10px;
}
.wallet-menu-action {
  width: 100%;
  border: 1px solid var(--line-2);
  background: rgba(20, 12, 30, 0.65);
  color: #efe7d7;
  border-radius: 8px;
  padding: 9px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.wallet-menu-action:hover {
  border-color: var(--gold-line);
  color: var(--gold-text);
}
.wallet-menu-action.primary {
  border-color: var(--gold-line);
  color: var(--gold-text);
  background: linear-gradient(180deg, rgba(216,160,76,0.14), rgba(216,160,76,0.04));
}
.wallet-menu-action.danger {
  color: #fca5a5;
  border-color: rgba(239,68,68,0.35);
}

/* Hero (asset placeholder area) */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  margin-inline: auto;
}

/* Tab notch (asterisk-style ornament) */
.tab-ornament {
  position: absolute;
  width: 18px; height: 18px;
  color: var(--gold-3);
  opacity: 0.6;
}
.tab-ornament.l { top: 50%; left: -8px;  transform: translateY(-50%); }
.tab-ornament.r { top: 50%; right: -8px; transform: translateY(-50%); }

/* helper for icon-in-text */
.svg-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Glow halo behind hero art */
.hero-glow {
  position: absolute;
  inset: 8% 8%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}

/* Tier crest sizes */
.crest {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}

/* Page padding */
.page {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px 60px;
}

/* Page intro */
.page-intro {
  text-align: center;
  margin: 24px 0 8px;
}
.page-intro h1 {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #f5d999 0%, #c98a36 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 24px rgba(216, 160, 76, 0.2);
}
.page-intro p {
  color: #b8a896;
  margin: 0 auto;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
}

/* Liquidity Snapshot row */
.snapshot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.1fr;
  gap: 0;
  align-items: stretch;
}
.snapshot-stats > div {
  padding: 18px 20px;
}
.snapshot-stats > div + div { border-left: 1px solid var(--line); }

/* LP position grid */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}
.lp-stats > div { padding: 22px 12px; }
.lp-stats > div + div { border-left: 1px solid var(--line); }
.lp-stats .stat-label {
  font-size: 12px;
  color: #b3a190;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.lp-stats .stat-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: white;
}

/* Position estimate grid (in calculator) */
.estimate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.estimate-grid > div { padding: 18px 12px; }
.estimate-grid > div + div { border-left: 1px solid var(--line); }
.estimate-grid .v { font-size: 22px; font-weight: 700; color: var(--purple-2); margin-top: 8px; }
.estimate-grid .l { font-size: 12px; color: #b3a190; line-height: 1.3; }

/* Activity blocks */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.activity-card {
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-card .top { display: flex; gap: 8px; align-items: center; color: #b3a190; font-size: 12px; }
.activity-card .v { font-size: 20px; font-weight: 700; color: var(--purple-2); }

/* Footer trust icons row */
.trust-line {
  display: flex; gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--gold-text-dim);
  font-size: 13px;
  padding-top: 12px;
}

/* Animations */
@keyframes spin-slow { from { transform: rotate(0) } to { transform: rotate(360deg) } }
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(168,85,247,0.5)); }
  50%      { filter: drop-shadow(0 0 16px rgba(168,85,247,0.85)); }
}
.cleg-spin { animation: spin-slow 24s linear infinite; transform-origin: center; }
.cleg-glow { animation: glow-pulse 2.6s ease-in-out infinite; }

/* ===========================
   Keep only the corner-asset frames sharp.
   Re-allow soft roundness on everything else.
   =========================== */
.gold-frame,
.deposit-summary,
.stake-summary,
.summary-title-tab { border-radius: 0 !important; }

/* ===========================
   Stake CLEG banner — overlaps modal top edge
   =========================== */
.stake-cleg-banner {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: -90px 0 8px;
  pointer-events: none;
}
.stake-cleg-banner img {
  width: 70%;
  max-width: 576px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.6));
  pointer-events: auto;
}

/* When the modal is in banner mode, kill the top padding so banner sits at the edge */
.gold-frame.banner-mode {
  padding-top: 0 !important;
}

/* ===========================
   Modal title with sword wings
   =========================== */
.title-wings {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 4px;
}
.title-wings .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #f8e6a6 0%, #e3bb55 45%, #b78930 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 18px rgba(216,160,76,0.25);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===========================
   Bracketed button (corners)
   Used for CONFIRM STAKE / CANCEL in stake modal
   =========================== */
.btn-bracket {
  position: relative;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 15px;
  background: linear-gradient(180deg, #2a1d12 0%, #1a1108 100%);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  color: var(--gold-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 360px;
  min-width: 200px;
  transition: 0.15s;
}
.btn-bracket:hover { background: linear-gradient(180deg, #3a2818 0%, #2a1810 100%); }
.btn-bracket.primary {
  background-color: transparent !important;
  background-image: url("../images/154dcd71-1110-4c23-a4a1-1cd9b75788f5.png") !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  color: #2a1c08;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 18px rgba(216, 160, 76, 0.35));
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.4);
}
.btn-bracket.primary:hover {
  background: transparent;
  background-image: url("../images/154dcd71-1110-4c23-a4a1-1cd9b75788f5.png") !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  filter: drop-shadow(0 6px 22px rgba(216, 160, 76, 0.5)) brightness(1.06);
}
.btn-bracket.primary.disabled {
  background: linear-gradient(180deg, #2a1d12 0%, #1a1108 100%);
  color: #6e5a30;
  border-color: #6a4a18;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  text-shadow: none;
}
.btn-bracket.primary .bracket { display: none; }   /* asset already has shaped corners */
.btn-bracket .bracket {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  color: var(--gold-3);
}
.btn-bracket .bracket.tl { top: -1px; left: -1px; }
.btn-bracket .bracket.tr { top: -1px; right: -1px; transform: scaleX(-1); }
.btn-bracket .bracket.bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.btn-bracket .bracket.br { bottom: -1px; right: -1px; transform: scale(-1,-1); }

/* ===========================
   STAKE CLEG hero button — uses real game asset
   =========================== */
.stake-cleg-asset-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  transition: filter 0.15s, transform 0.05s;
  filter: drop-shadow(0 8px 24px rgba(216, 160, 76, 0.35));
}
.stake-cleg-asset-btn img {
  width: 520px;
  max-width: 90vw;
  height: auto;
  display: block;
}
.stake-cleg-asset-btn:hover { filter: drop-shadow(0 10px 30px rgba(216, 160, 76, 0.55)) brightness(1.05); }
.stake-cleg-asset-btn:active { transform: translateY(1px); }

/* (legacy CSS banner kept in file but unused — left for back-compat) */
.stake-cleg-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 70px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 22px;
  color: #2a1c08;
  background:
    linear-gradient(180deg, #fbedb0 0%, #e8c870 30%, #cf9d3a 60%, #9b6c20 100%);
  border: 0;
  cursor: pointer;
  min-width: 480px;
  clip-path: polygon(
    14px 0, calc(100% - 14px) 0,
    100% 14px, 100% calc(100% - 14px),
    calc(100% - 14px) 100%, 14px 100%,
    0 calc(100% - 14px), 0 14px
  );
  text-shadow: 0 1px 0 rgba(255,240,200,0.4);
  box-shadow:
    inset 0 2px 0 rgba(255, 240, 200, 0.75),
    inset 0 -3px 0 rgba(80, 50, 10, 0.45),
    inset 0 0 0 1px rgba(255, 240, 200, 0.35);
  transition: filter 0.15s;
}
.stake-cleg-cta:hover { filter: brightness(1.06); }
/* Outer dark frame surrounding the banner */
.stake-cleg-shell {
  position: relative;
  display: inline-block;
  padding: 6px 40px;
}
.stake-cleg-shell::before,
.stake-cleg-shell::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background:
    linear-gradient(135deg, #fbedb0 0%, #e8c870 40%, #b78930 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 10px rgba(216,160,76,0.85));
  z-index: 2;
}
.stake-cleg-shell::before { left: 4px; }
.stake-cleg-shell::after  { right: 4px; }
.stake-cleg-shell .inner-frame {
  position: absolute; inset: 6px 40px;
  border: 1px solid rgba(184, 138, 60, 0.5);
  pointer-events: none;
  clip-path: polygon(
    14px 0, calc(100% - 14px) 0,
    100% 14px, 100% calc(100% - 14px),
    calc(100% - 14px) 100%, 14px 100%,
    0 calc(100% - 14px), 0 14px
  );
}

/* ===========================
   Amount input — large centered number variant
   =========================== */
.amount-input.center input {
  text-align: center;
  font-size: 28px;
}
.amount-input.large {
  padding: 8px;
  gap: 10px;
}
.amount-input.large input {
  font-size: 26px;
}
.amount-input.large .token-pill {
  padding: 10px 16px;
  background: linear-gradient(180deg, #1c1326 0%, #0d0916 100%);
  border: 1px solid rgba(184,138,60,0.45);
  border-radius: 8px;
}
.amount-input.large .btn-max {
  padding: 12px 22px;
  font-size: 13px;
}

/* ===========================
   Section label in modal (gold cap)
   =========================== */
.section-cap {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
}

/* ===========================
   Stake plan crest container
   =========================== */
.crest-frame {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ===========================
   STAKE SUMMARY chest container
   =========================== */
.stake-summary {
  position: relative;
  background: linear-gradient(180deg, #15101f 0%, #110c19 100%);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 20px 22px;
}
.stake-summary::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(184,138,60,0.22);
  border-radius: 6px;
  pointer-events: none;
}
.summary-title-tab {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #15101f 0%, #110c19 100%);
  padding: 4px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 14px;
  border: 1px solid var(--gold-line);
  border-radius: 5px;
}

/* ===========================
   Deposit summary purple framed box
   =========================== */
.deposit-summary {
  position: relative;
  margin: 24px 0 18px;
  border: 1.5px solid var(--purple-3);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at top, rgba(168,85,247,0.18), transparent 70%),
    linear-gradient(180deg, #1a1029 0%, #110a1e 100%);
  padding: 22px 24px 18px;
  box-shadow: 0 0 30px rgba(168,85,247,0.12) inset;
}
.deposit-summary .head {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  padding: 2px 16px;
  background: var(--bg-panel);
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-2);
  font-size: 13px;
  font-weight: 700;
}

/* ===========================
   Header layout — wallet pill right of title
   =========================== */
.page-header {
  position: relative;
  text-align: center;
  padding: 16px 0 4px;
}
.page-header .wallet-anchor {
  position: absolute;
  top: 36px;
  right: 0;
  z-index: 20;
}

/* ===========================
   In-Game Bonus pill on stake row — uses real game asset
   =========================== */
.in-game-bonus {
  display: inline-block;
  width: 110px;
  height: 38px;
  background: url("../images/1351db9e-db23-4a3d-b0bc-61617a2d1265.png") center / contain no-repeat;
  /* asset already has BONUS text */
  font-size: 0;
  color: transparent;
  border: 0;
}


/* Integrated with the home page chrome. */
.investor-panel-main {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 1100px 600px at 50% -120px, rgba(168, 85, 247, 0.10), transparent 70%),
    radial-gradient(ellipse 900px 500px at 0% 70%, rgba(168, 85, 247, 0.06), transparent 70%),
    radial-gradient(ellipse 900px 500px at 100% 80%, rgba(216, 160, 76, 0.05), transparent 70%);
}
.investor-panel-main #root {
  font-family: var(--font-body);
}
.site-navbar,
.site-mobile-menu,
.footer,
.icon-bar.fixed {
  font-family: 'Changa', sans-serif;
}

@media (max-width: 768px) {
  .investor-panel-main {
    padding-top: 96px;
  }

  .page {
    max-width: 100%;
    padding: 0 18px 44px;
  }

  .page-header {
    padding-top: 6px;
  }

  .page-header h1 {
    font-size: 42px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  .page-header .wallet-anchor {
    position: static !important;
    display: flex;
    justify-content: center;
    margin: 14px 0 0;
  }

  .wallet-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(280px, calc(100vw - 32px));
  }

  .wallet-menu::before {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .tab-bar {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    gap: 8px;
    padding: 10px;
    margin: 30px 0 28px;
    border: 1px solid var(--gold-line);
    overflow: visible;
  }

  .tab {
    min-height: 74px;
    padding: 16px 12px 12px;
    border: 1px solid rgba(184, 138, 60, 0.28);
    min-width: 0;
  }

  .tab.active {
    border-color: var(--gold-2);
    box-shadow: inset 0 0 24px rgba(216, 160, 76, 0.16);
  }

  .tab-ribbon {
    top: 8px;
  }

  .tab-bar-side,
  .tab-divider {
    display: none;
  }

  .tab-active-frame {
    display: block;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(216,160,76,0.14), rgba(216,160,76,0.03));
    border: 1.5px solid var(--gold-2);
    box-shadow:
      inset 0 0 0 1px rgba(255,220,150,0.10),
      inset 0 0 22px rgba(216,160,76,0.18),
      0 0 18px rgba(216,160,76,0.22);
    animation: none;
  }

  .gold-frame {
    padding: 24px 18px !important;
  }

  .gold-frame > div[style*="grid-template-columns"],
  .gold-frame div[style*="grid-template-columns:'1fr 1fr'"],
  .gold-frame div[style*="grid-template-columns: 1fr 1fr"],
  .gold-frame div[style*="gridTemplateColumns"] {
    grid-template-columns: 1fr !important;
  }

  .snapshot-stats,
  .lp-stats,
  .estimate-grid,
  .activity-grid {
    grid-template-columns: 1fr !important;
  }

  .snapshot-stats > div + div,
  .lp-stats > div + div,
  .estimate-grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .plan-row {
    grid-template-columns: 28px 1fr !important;
    gap: 10px;
  }

  .history-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .stake-cleg-asset-btn img {
    width: min(100%, 360px);
  }

  .title-wings {
    gap: 8px;
  }

  .title-wings .t {
    font-size: 24px;
    white-space: normal;
  }

  .modal-backdrop {
    place-items: start center;
    padding: 14px 10px;
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .investor-modal {
    max-width: calc(100vw - 20px) !important;
    margin: 0 auto;
    padding-bottom: 18px;
  }

  .investor-modal > .gold-frame {
    padding: 42px 14px 20px !important;
  }

  .investor-modal > .gold-frame.banner-mode {
    padding: 0 14px 20px !important;
  }

  .investor-modal .gold-frame::before {
    inset: 4px;
  }

  .modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 34px;
    height: 34px;
  }

  .modal-medallion {
    top: -24px;
  }

  .modal-medallion > div {
    width: 56px !important;
    height: 56px !important;
  }

  .modal-medallion img {
    width: 36px !important;
    height: 36px !important;
  }

  .stake-cleg-banner {
    margin: -24px 36px 12px 0;
  }

  .stake-cleg-banner img {
    width: min(66%, 300px);
    max-width: 300px;
  }

  .investor-modal .display {
    font-size: 25px !important;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .plan-row {
    grid-template-columns: 26px 1fr !important;
    gap: 10px 12px;
    padding: 12px;
    align-items: start;
  }

  .plan-row > div:nth-child(n+3) {
    grid-column: 2;
    text-align: left !important;
  }

  .plan-row > div:nth-child(3),
  .plan-row > div:nth-child(4),
  .plan-row > div:nth-child(5) {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .plan-row > div:nth-child(3) > div,
  .plan-row > div:nth-child(4) > div,
  .plan-row > div:nth-child(5) > div {
    margin-top: 0 !important;
  }

  .crest {
    width: 44px;
    height: 44px;
  }

  .in-game-bonus {
    width: 86px;
    height: 30px;
  }

  .amount-input,
  .amount-input.large,
  .amount-input.large.center {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
  }

  .amount-input .token-pill,
  .amount-input.large .token-pill {
    order: -1;
    grid-column: 1 / -1;
    justify-content: center;
    padding: 7px 10px;
  }

  .amount-input input,
  .amount-input.large input {
    font-size: 18px;
    text-align: left !important;
    padding-left: 6px !important;
  }

  .amount-input.large .btn-max,
  .btn-max {
    width: 82px;
    height: 40px;
  }

  .gold-frame button.sub-card.gold {
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  .gold-frame button.sub-card.gold > div {
    white-space: normal !important;
    min-width: 0;
  }

  .gold-frame button.sub-card.gold span[style*="width:42px"] {
    width: 36px !important;
    height: 36px !important;
  }

  .deposit-summary {
    padding: 24px 14px 16px;
  }

  .deposit-summary > div:not(.head),
  .stake-summary > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .deposit-summary > div:not(.head) > div {
    border-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  .deposit-summary > div:not(.head) > div + div {
    border-top: 1px solid rgba(168,85,247,0.35);
    padding-top: 12px;
  }

  .stake-summary {
    padding: 24px 14px 16px;
  }

  .stake-summary .hero-art {
    max-width: 150px !important;
    margin-bottom: 8px;
  }

  .estimate-grid > div,
  .activity-grid > div,
  .snapshot-stats > div,
  .lp-stats > div {
    padding: 14px 12px;
  }

  .btn-row {
    flex-direction: column;
    gap: 10px;
  }

  .btn-row .btn-bracket,
  .btn-bracket {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 14px 16px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-header h1 {
    font-size: 36px !important;
  }

  .tab .tab-title {
    font-size: 16px;
  }

  .tab .tab-sub {
    font-size: 10px;
  }

  .wallet-pill {
    max-width: 100%;
  }

  .modal-backdrop {
    padding: 8px 6px;
  }

  .investor-modal {
    max-width: calc(100vw - 12px) !important;
  }

  .investor-modal > .gold-frame,
  .investor-modal > .gold-frame.banner-mode {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .plan-row {
    padding: 10px;
  }

  .plan-row > div:nth-child(3),
  .plan-row > div:nth-child(4),
  .plan-row > div:nth-child(5) {
    gap: 6px;
  }

  .deposit-summary .head,
  .summary-title-tab {
    font-size: 11px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
}
