:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --text: #111318;
  --muted: #68707d;
  --line: #e8ebf0;
  --orange: #ff4f24;
  --orange-dark: #e74016;
  --orange-soft: #fff1ec;
  --green: #0caa65;
  --red: #e24747;
  --amber: #ffb347;
  --shadow: 0 18px 48px rgba(22, 29, 37, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 79, 36, 0.13), transparent 28%),
    radial-gradient(circle at 72% 10%, rgba(77, 188, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #fff 0%, var(--bg) 36%, #fff 100%);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 76px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 56px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo-slot {
  width: 118px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px dashed rgba(255, 79, 36, 0.45);
  border-radius: 6px;
  background: rgba(255, 79, 36, 0.04);
}

.logo-slot.has-image {
  border-color: transparent;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  flex: 1;
  color: #272b33;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav a {
  padding: 10px 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #111318;
  background: #fff;
}

.chip-button {
  min-width: auto;
  padding: 0 14px;
  font-weight: 700;
}

.chip-button.dark {
  color: #fff;
  border-color: #202530;
  background: #202530;
}

.chip-button.primary,
.primary-btn {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.primary-btn,
.secondary-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
}

.danger-btn {
  color: #fff;
  background: #242933;
}

.notice-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 24px;
  color: #111318;
  font-weight: 600;
}

.notice-strip button {
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
}

.page {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 36px;
  align-items: center;
  min-height: 550px;
  padding: 58px 0 34px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 590px);
  margin: 34px 0;
}

.stat {
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid #d9dde5;
  text-align: left;
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

@media (min-width: 901px) and (max-width: 1120px) {
  .stat-row {
    width: min(100%, 520px);
  }

  .stat {
    padding: 0 20px;
  }

  .stat strong {
    font-size: 26px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.google-btn {
  width: min(380px, 100%);
  height: 58px;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  background: #fff;
  font-size: 18px;
  font-weight: 800;
}

.round-action {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 30, 45, 0.08);
}

.phone-visual {
  position: relative;
  min-height: 510px;
}

.phone {
  position: absolute;
  right: 80px;
  top: 0;
  width: 254px;
  height: 510px;
  padding: 18px;
  border: 10px solid #101319;
  border-radius: 42px;
  color: #fff;
  background: #080a10;
  box-shadow: var(--shadow);
}

.phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 86px;
  height: 20px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #050506;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  color: #c8cbd2;
  font-size: 12px;
}

.phone-balance {
  margin: 26px 0 18px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.phone-grid span,
.phone-card {
  border-radius: 8px;
  background: #171b24;
}

.phone-grid span {
  height: 45px;
}

.phone-card {
  padding: 13px;
  margin-top: 10px;
}

.phone-card b {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.phone-card em {
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
}

.character-card {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 185px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.avatar-asset {
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    linear-gradient(#ffd7bd 0 42%, transparent 42%),
    radial-gradient(circle at 50% 36%, #111 0 5px, transparent 6px),
    linear-gradient(135deg, #ff7f4f, #ffe1a8);
}

.avatar-asset.has-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.section-title {
  margin: 0 0 18px;
  font-size: 26px;
}

.panel,
.table-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(18, 22, 31, 0.05);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}

.quick-item {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #2d3340;
  font-size: 13px;
  font-weight: 700;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 18px;
}

.table-panel {
  overflow: hidden;
  margin-bottom: 28px;
  width: 100%;
}

.market-tabs {
  display: flex;
  gap: 24px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--line);
}

.market-tabs button {
  position: relative;
  padding: 0 0 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.market-tabs button.active {
  color: var(--text);
}

.market-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.table-head,
.market-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.table-head {
  grid-template-columns: 1.3fr 1fr 0.8fr;
}

.table-head {
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 800;
}

.market-row {
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
}

.market-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.market-buy-btn {
  min-height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.coin {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.coin > span:last-child {
  min-width: 0;
}

.coin-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: #202530;
  font-size: 12px;
  font-weight: 800;
}

.coin b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coin span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.price {
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change {
  justify-self: end;
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.change.up {
  background: var(--green);
}

.change.down {
  background: var(--red);
}

.about {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 26px;
  padding: 30px;
  margin-bottom: 40px;
}

.about p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.searchbar {
  display: flex;
  gap: 10px;
  margin: 24px 0 18px;
}

.searchbar input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.searchbar input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.contract-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 24px 0 36px;
}

.contract-main,
.trade-ticket {
  padding: 20px;
}

.pair-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contract-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.contract-round-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
}

.contract-round-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.pair-price {
  font-size: 32px;
  font-weight: 800;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.mini-stat {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.mini-stat span {
  color: var(--muted);
  font-size: 12px;
}

.mini-stat b {
  display: block;
  margin-top: 6px;
}

.intervals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.intervals button {
  min-width: 44px;
  height: 34px;
  border-radius: 6px;
  color: #4b5360;
  background: #f0f2f6;
  font-weight: 800;
}

.intervals button.active {
  color: #fff;
  background: #202530;
}

.chart {
  position: relative;
  height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to right, rgba(120, 130, 145, 0.11) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(to bottom, rgba(120, 130, 145, 0.11) 1px, transparent 1px) 0 0 / 100% 54px,
    #fff;
}

.candle {
  position: absolute;
  bottom: var(--bottom);
  left: var(--left);
  width: 9px;
  height: var(--height);
  border-radius: 3px;
  background: var(--color);
}

.candle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -24px;
  width: 1px;
  height: calc(100% + 48px);
  background: var(--color);
  opacity: 0.75;
}

.ticket-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.ticket-tabs button {
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
}

.ticket-tabs .up {
  background: var(--green);
}

.ticket-tabs .down {
  background: var(--red);
}

.ticket-tabs button.inactive {
  color: var(--muted);
  background: #f0f2f6;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  color: #303641;
  font-size: 13px;
  font-weight: 800;
}

.field textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.ticket-summary {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
}

.ticket-summary div {
  display: flex;
  justify-content: space-between;
}

.ticket-summary b {
  color: var(--text);
}

.contract-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
}

.contract-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(16, 19, 25, 0.22);
}

.contract-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contract-modal h2 {
  margin: 0;
  font-size: 22px;
}

.modal-close {
  width: 36px;
  height: 36px;
  color: #647084;
  background: transparent;
  font-size: 32px;
  line-height: 1;
}

.contract-option-block {
  margin-top: 18px;
}

.contract-option-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.contract-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contract-chip-row.leverage {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scroll-row {
  display: flex;
  overflow-x: auto;
  padding-bottom: 4px;
}

.scroll-row .contract-chip {
  min-width: 122px;
}

.contract-chip {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
  color: var(--text);
  text-align: center;
}

.contract-chip b {
  display: block;
  font-size: 16px;
}

.contract-chip span {
  display: block;
  margin-top: 3px;
  color: #ff4f24;
  font-size: 12px;
}

.contract-chip.active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.contract-chip.active span {
  color: #fff;
}

.contract-custom {
  margin-top: 16px;
}

.contract-account-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contract-account-line b {
  color: var(--text);
}

.contract-order-summary {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 16px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
}

.contract-order-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.contract-order-summary b {
  color: var(--text);
}

.contract-order-summary .accent {
  color: var(--orange);
}

.contract-live-modal {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 16px 22px;
  width: min(720px, calc(100vw - 36px));
  max-width: 720px;
  max-height: calc(100vh - 56px);
  padding: 26px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  overflow-y: auto;
  scrollbar-width: none;
  text-align: left;
}

.contract-live-modal::-webkit-scrollbar {
  display: none;
}

.contract-live-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--muted);
  font-size: 34px;
}

.contract-live-head {
  display: grid;
  gap: 18px;
}

.contract-live-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

.contract-live-direction {
  width: max-content;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #0ba84e;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.contract-live-direction.sell {
  background: #dc3d45;
}

.contract-live-time {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
  padding: 28px 42px 0 0;
}

.contract-live-time span,
.contract-live-price span,
.contract-live-summary small,
.contract-live-profit small {
  color: var(--muted);
  font-size: 15px;
}

.contract-live-time strong {
  color: #f0b90b;
  font-size: 42px;
  line-height: 1;
  text-shadow: none;
}

.contract-live-price {
  display: grid;
  gap: 10px;
  grid-column: 1 / 2;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contract-live-price strong {
  color: var(--text);
  font-size: 42px;
  line-height: 1;
}

.contract-live-price small {
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
}

.contract-live-summary {
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contract-live-summary span {
  display: grid;
  gap: 10px;
  min-height: 64px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.contract-live-summary span:first-child {
  padding-left: 0;
  border-left: 0;
}

.contract-live-summary small,
.contract-live-profit small {
  display: block;
}

.contract-live-summary b {
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.contract-live-summary b.positive,
.contract-live-profit b {
  color: #16a34a;
}

.contract-live-profit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  padding: 18px 22px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.06);
}

.contract-live-profit span {
  display: grid;
  gap: 8px;
  padding: 0 22px;
  border-left: 1px solid rgba(22, 163, 74, 0.18);
}

.contract-live-profit span:first-child {
  padding-left: 0;
  border-left: 0;
}

.contract-live-profit b {
  font-size: 26px;
  line-height: 1.1;
}

.contract-history-modal {
  max-width: 720px;
}

.contract-history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contract-history-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.contract-history-row b,
.contract-history-row small {
  display: block;
}

.contract-history-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.contract-continue {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #35c957 0%, #21ab42 100%);
  font-weight: 900;
  font-size: 20px;
}

.contract-result-modal {
  width: min(520px, calc(100vw - 36px));
  max-width: 520px;
  display: grid;
  gap: 22px;
  padding: 28px;
  text-align: center;
}

.contract-result-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--muted);
  font-size: 32px;
}

.contract-result-head {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.contract-result-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contract-result-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.contract-result-head strong {
  font-size: 42px;
  line-height: 1;
}

.contract-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--panel-soft);
  text-align: left;
}

.contract-result-grid span {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.contract-result-grid small {
  color: var(--muted);
  font-size: 12px;
}

.contract-result-grid b {
  color: var(--text);
  font-size: 16px;
}

.contract-result-modal.profit .contract-result-head {
  color: var(--green);
}

.contract-result-modal.loss .contract-result-head {
  color: var(--red);
}

.spot-shortcut {
  width: 100%;
  margin-top: 12px;
}

.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 56px);
  padding: 40px 18px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 18px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px 0 40px;
}

.assets-screen {
  width: min(1180px, calc(100% - 48px));
  padding: 28px 0 92px;
  margin: 0 auto;
}

.assets-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 28px;
}

.assets-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(21, 29, 43, 0.06);
}

.assets-tabs button {
  min-height: 44px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.assets-tabs button.active {
  color: var(--orange);
  background: var(--orange-soft);
}

.assets-overview {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.assets-overview .assets-title,
.assets-overview .assets-tabs {
  grid-column: 1 / -1;
}

.assets-stock .assets-balance-card,
.assets-crypto .assets-balance-card,
.assets-stock .assets-holdings-card,
.assets-crypto .assets-holdings-card {
  width: 100%;
}

.assets-balance-card,
.assets-holdings-card {
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(21, 29, 43, 0.06);
}

.assets-balance-card > span {
  color: var(--muted);
  font-weight: 700;
}

.assets-balance-card > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.assets-balance-card strong {
  font-size: 42px;
  line-height: 1;
}

.assets-balance-card > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.assets-balance-card p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
}

.assets-balance-card p span {
  font-weight: 800;
}

.assets-balance-card p em {
  color: var(--muted);
  font-style: normal;
}

.asset-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.asset-actions a,
.asset-actions button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 92px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  font-weight: 800;
  text-align: center;
}

.asset-actions b {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.asset-actions span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft);
}

.assets-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.assets-section-head h2 {
  margin: 0;
  font-size: 20px;
}

.assets-section-head span {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.asset-summary-row,
.asset-holding-row {
  width: 100%;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.asset-summary-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.25fr 1.2fr auto;
  gap: 18px;
  padding: 22px 0;
  align-items: center;
}

.asset-summary-row small,
.holding-meta span,
.holding-main small,
.holding-value span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.asset-summary-row b,
.holding-meta b {
  display: block;
  margin-top: 8px;
}

.asset-type {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.asset-dot,
.asset-logo {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.asset-dot {
  width: 28px;
  height: 28px;
}

.asset-dot.stock {
  background: var(--orange);
}

.asset-dot.crypto {
  background: #f7931a;
}

.asset-dot.overview {
  background: #ff8f6c;
}

.asset-holding-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(150px, 0.9fr) repeat(3, minmax(120px, 0.7fr));
  gap: 16px;
  padding: 20px 0;
  align-items: center;
}

.holding-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-logo {
  width: 34px;
  height: 34px;
  background: #111827;
}

.asset-logo.crypto {
  background: #18b78f;
}

.holding-value {
  text-align: right;
}

.holding-value b {
  display: block;
  margin-bottom: 4px;
}

.holding-meta.right {
  text-align: right;
}

.assets-hint {
  display: block;
  padding: 14px;
  margin: 16px 0 0;
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
}

.assets-hint button {
  color: var(--orange);
  background: transparent;
  font-weight: 800;
}

.balance-card {
  grid-column: 1 / -1;
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, #1c222e, #323948);
}

.balance-value {
  margin-top: 12px;
  font-size: 38px;
  font-weight: 800;
}

.asset-list,
.profile-menu {
  padding: 20px;
}

.asset-row,
.menu-row,
.notice-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.asset-row:first-child,
.menu-row:first-child,
.notice-row:first-child {
  border-top: 0;
}

.me-screen {
  width: min(430px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  padding: 56px 22px 92px;
  background: #f3f5f9;
}

.me-profile-card,
.me-menu-card,
.me-logout-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 29, 43, 0.04);
}

.me-profile-card {
  padding: 28px 26px;
}

.me-profile-card h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.me-profile-card p {
  margin: 4px 0;
  color: var(--muted);
}

.me-profile-card .credit-score-line {
  margin-top: 12px;
  color: var(--text);
  font-weight: 700;
}

.credit-score-line b {
  font-weight: 900;
}

.invite-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.invite-line b {
  color: #657086;
  letter-spacing: 0.04em;
}

.me-profile-card h2 {
  margin: 22px 0 0;
  font-size: 38px;
  line-height: 1.1;
}

.me-menu-card,
.me-logout-card {
  padding: 18px 20px;
  margin-top: 40px;
}

.me-menu-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr 22px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.me-menu-row:first-child {
  border-top: 0;
}

.me-menu-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--text);
}

.me-menu-row b {
  font-size: 15px;
  font-weight: 600;
}

.me-menu-row i {
  color: #7b8495;
  font-style: normal;
  text-align: right;
}

.me-menu-row em {
  position: absolute;
  top: 8px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #fff;
  background: #ff2638;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.me-logout-card button {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  color: #fff;
  background: #252a35;
  font-size: 16px;
  font-weight: 900;
}

.security-screen {
  width: min(430px, 100%);
  min-height: calc(100vh - 56px);
  padding: 0 14px 92px;
  background: #f3f5f9;
}

.security-screen .mobile-page-head {
  margin: 0 -14px 12px;
}

.security-menu-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.security-menu-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  font-size: 15px;
  text-align: left;
}

.security-menu-card button:first-child {
  border-top: 0;
}

.security-menu-card em {
  color: #7b8495;
  font-style: normal;
  font-size: 22px;
}

.password-form-card {
  width: min(326px, calc(100% - 32px));
  padding: 20px;
  margin: 40px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(21, 29, 43, 0.06);
}

.password-field {
  display: block;
  margin-bottom: 16px;
}

.password-field span {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 900;
}

.password-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.password-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  outline: none;
  font-size: 16px;
}

.password-input input::placeholder {
  color: #7b8495;
}

.password-input i {
  color: #657086;
  font-style: normal;
  font-weight: 900;
}

.password-reset-btn {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-size: 17px;
  font-weight: 900;
}

.notification-screen {
  width: min(430px, 100%);
  min-height: calc(100vh - 56px);
  padding: 0 14px 92px;
  background: #f3f5f9;
}

.notification-screen .mobile-page-head {
  margin: 0 -14px 12px;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 29, 43, 0.04);
}

.notification-card.unread {
  border-left: 4px solid var(--orange);
}

.notification-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #7b8495;
  font-size: 12px;
  font-weight: 800;
}

.notification-card span {
  color: var(--orange);
}

.notification-card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.notification-card p {
  margin: 0;
  color: #465166;
  line-height: 1.45;
}

.kyc-screen {
  width: min(430px, 100%);
  min-height: calc(100vh - 56px);
  padding: 0 28px 92px;
  background: #f3f5f9;
}

.kyc-screen .mobile-page-head {
  margin: 0 -28px 28px;
}

.kyc-phone-card,
.kyc-upload-card {
  border: 1px solid var(--line);
  background: #fff;
}

.kyc-phone-card {
  margin-bottom: 14px;
}

.kyc-phone-card label {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
}

.kyc-phone-card span {
  color: #465166;
}

.kyc-phone-card input {
  min-width: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  outline: none;
  font-size: 15px;
}

.kyc-phone-card input::placeholder {
  color: #b3bac5;
}

.kyc-upload-card {
  padding: 16px 18px 26px;
  border-radius: 8px;
}

.kyc-upload-card h2 {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 16px;
}

.kyc-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
  justify-content: center;
}

.kyc-upload-tile {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  color: #465166;
}

.kyc-upload-tile input {
  display: none;
}

.kyc-upload-tile b {
  font-weight: 500;
}

.kyc-upload-tile span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: #c6ccd5;
  background: #f2f4f7;
}

.kyc-upload-tile em {
  max-width: 112px;
  min-height: 16px;
  overflow: hidden;
  color: #7b8495;
  font-size: 11px;
  font-style: normal;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kyc-submit-btn {
  width: 100%;
  height: 50px;
  margin-top: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-size: 16px;
  font-weight: 900;
}

@media (min-width: 761px) {
  .me-screen {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
    gap: 24px;
    align-items: start;
    width: min(960px, calc(100% - 48px));
    padding: 40px 0 56px;
    background: transparent;
  }

  .me-profile-card,
  .me-menu-card,
  .me-logout-card {
    box-shadow: 0 14px 38px rgba(21, 29, 43, 0.06);
  }

  .me-profile-card {
    position: sticky;
    top: 76px;
    min-height: 360px;
  }

  .me-menu-card {
    margin-top: 0;
  }

  .me-logout-card {
    grid-column: 2;
    margin-top: -8px;
  }

  .security-screen,
  .notification-screen,
  .kyc-screen {
    width: min(760px, calc(100% - 48px));
    min-height: calc(100vh - 57px);
    margin: 0 auto;
    padding: 40px 0 80px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .security-screen .mobile-page-head,
  .notification-screen .mobile-page-head,
  .kyc-screen .mobile-page-head {
    width: min(560px, 100%);
    margin: 0 auto 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .security-menu-card,
  .password-form-card,
  .notification-list,
  .kyc-phone-card,
  .kyc-upload-card,
  .kyc-submit-btn {
    width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .notification-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-list .empty-state {
    grid-column: 1 / -1;
  }

  .kyc-upload-grid {
    gap: 72px;
  }

  .auth-card {
    width: min(520px, 100%);
  }
}

.form-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 56px);
  padding: 28px 0 56px;
  margin: 0 auto;
}

.form-panel {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(21, 29, 43, 0.06);
}

.form-panel > h1 {
  margin-top: 0;
}

.form-panel > .field,
.form-panel > .secondary-btn,
.form-panel > .rules,
.form-panel > .muted,
.form-panel > .swap-preview,
.form-panel > .primary-btn {
  max-width: 720px;
}

.swap-preview {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.deposit-screen {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(420px, 1.12fr);
  gap: 20px;
  align-items: start;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 56px);
  padding: 0 0 92px;
  margin: 0 auto;
  background: #f3f5f9;
}

.mobile-page-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 52px;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.mobile-page-head button {
  height: 44px;
  color: var(--text);
  background: transparent;
  font-size: 22px;
}

.mobile-page-head h1 {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.deposit-form-card,
.deposit-qr-card,
.deposit-upload-card,
.deposit-rules-card {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.deposit-form-card {
  padding: 4px 16px;
}

.deposit-form-card label {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line);
}

.deposit-form-card label:first-child {
  border-top: 0;
}

.deposit-form-card span {
  color: #465166;
}

.deposit-form-card b,
.deposit-upload-card h2 {
  color: var(--orange);
}

.deposit-form-card select,
.deposit-form-card input {
  width: 100%;
  border: 0;
  color: var(--text);
  background: transparent;
  outline: none;
}

.deposit-form-card input::placeholder {
  color: #b3bac5;
}

.deposit-form-card em {
  color: #98a1b1;
  font-style: normal;
  font-size: 24px;
}

.deposit-qr-card {
  grid-column: 2;
  grid-row: 2 / span 3;
  display: grid;
  justify-items: center;
  padding: 34px 22px 30px;
}

.deposit-qr-img {
  width: 220px;
  height: 220px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 24px rgba(20, 210, 170, 0.17);
  object-fit: contain;
}

.deposit-address {
  width: min(330px, 100%);
  padding: 14px 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  font-family: Consolas, monospace;
  text-align: center;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.copy-btn,
.deposit-submit {
  width: min(360px, 100%);
  height: 50px;
  margin-top: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.copy-btn {
  margin-top: 0;
}

.deposit-upload-card {
  grid-column: 1;
  padding: 20px 16px 26px;
}

.deposit-upload-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.upload-tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  background: #f2f4f7;
}

.upload-tile input {
  display: none;
}

.upload-tile span {
  color: #c6ccd5;
}

.deposit-rules-card {
  grid-column: 1 / -1;
  padding: 20px;
}

.deposit-rules-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.deposit-rules-card ul {
  margin: 0;
  padding-left: 18px;
}

.deposit-rules-card li {
  margin: 12px 0;
  color: #465166;
  line-height: 1.35;
}

.deposit-rules-card b {
  color: var(--text);
}

.deposit-submit {
  grid-column: 1 / -1;
  display: block;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .form-page {
    width: calc(100% - 20px);
    min-height: auto;
    padding: 28px 0 92px;
  }

  .form-panel {
    padding: 24px;
  }

  .form-panel > .field,
  .form-panel > .secondary-btn,
  .form-panel > .rules,
  .form-panel > .muted,
  .form-panel > .primary-btn {
    max-width: none;
  }

  .deposit-screen {
    display: block;
    width: min(430px, 100%);
    padding: 0 10px 92px;
  }

  .mobile-page-head {
    margin: 0 -10px 12px;
  }

  .deposit-form-card,
  .deposit-qr-card,
  .deposit-upload-card,
  .deposit-rules-card {
    margin-bottom: 24px;
  }

  .deposit-form-card {
    border-radius: 0;
  }

  .deposit-qr-card {
    padding: 26px 16px 24px;
  }

  .deposit-submit {
    width: 100%;
    margin: 0 auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

.rules {
  margin: 22px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.rules h3 {
  margin: 0 0 12px;
}

.rules li {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.55;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 40;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: #202530;
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: none;
  width: min(760px, 100%);
  height: 68px;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: #fff;
  transform: translateX(-50%);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav a.active {
  color: var(--orange);
}

.muted {
  color: var(--muted);
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.buy-hold-page .form-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.buy-hold-page .form-panel > h1 {
  grid-column: 1 / -1;
}

.buy-summary {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.buy-summary h2 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.buy-hold-page .field,
.buy-hold-page .primary-btn {
  max-width: none;
}

.buy-hold-page .primary-btn {
  align-self: end;
  width: 100%;
}

.product-card h2 {
  margin: 0;
  font-size: 22px;
}

.product-card p {
  margin: 0;
  line-height: 1.6;
}

.product-card .compact-field {
  margin: 4px 0 0;
}

.mini-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.mini-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row div {
  display: grid;
  gap: 4px;
}

.list-row div:last-child {
  text-align: right;
}

.list-row small {
  color: var(--muted);
}

.product-tag {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 12px;
  font-weight: 800;
}

.product-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.product-metric span {
  color: var(--muted);
}

.bundle-detail-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 104px;
}

.bundle-detail-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 18px;
  background: transparent;
  border: 0;
}

.bundle-detail-head h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
}

.bundle-detail-head .icon-only {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: transparent;
}

.bundle-hero-card,
.bundle-composition-card,
.bundle-overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(24, 31, 42, 0.06);
}

.bundle-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.72fr);
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.bundle-hero-copy {
  align-self: center;
}

.bundle-hero-copy h2 {
  margin: 28px 0 16px;
  font-size: clamp(28px, 4.8vw, 40px);
}

.bundle-hero-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.75;
}

.bundle-illustration {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.bundle-coin {
  position: absolute;
  z-index: 2;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 34px;
  box-shadow: 0 16px 28px rgba(21, 31, 48, 0.12);
}

.coin-blue {
  left: 42px;
  top: 42px;
  color: #fff;
  background: linear-gradient(145deg, #7b8cff, #3d65f4);
}

.coin-orange {
  top: 8px;
  right: 74px;
  color: #fff;
  background: linear-gradient(145deg, #ff9a22, var(--orange));
}

.coin-white {
  right: 24px;
  top: 78px;
  color: #111318;
  background: #fff;
}

.open-box {
  position: absolute;
  bottom: 22px;
  width: 180px;
  height: 106px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffd7c2, #ffb27b);
  transform: skewY(-5deg);
  box-shadow: 0 18px 36px rgba(255, 112, 48, 0.18);
}

.open-box::before,
.open-box::after {
  content: "";
  position: absolute;
  top: -32px;
  width: 100px;
  height: 58px;
  background: rgba(255, 226, 211, 0.95);
}

.open-box::before {
  left: -32px;
  transform: skewY(18deg) rotate(-18deg);
}

.open-box::after {
  right: -28px;
  transform: skewY(-18deg) rotate(18deg);
}

.bundle-hero-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 18px;
}

.bundle-hero-metrics div,
.bundle-overview-card div {
  min-width: 0;
  text-align: center;
}

.bundle-hero-metrics div + div,
.bundle-overview-card div + div {
  border-left: 1px solid var(--line);
}

.bundle-hero-metrics span,
.bundle-overview-card span,
.bundle-composition-row span {
  display: block;
  color: var(--muted);
}

.bundle-hero-metrics b,
.bundle-overview-card b {
  display: block;
  margin-top: 12px;
  font-size: clamp(18px, 3vw, 25px);
}

.bundle-hero-metrics div:nth-child(2) b,
.bundle-overview-card div:nth-child(2) b {
  color: var(--orange);
}

.bundle-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 14px;
}

.bundle-section-title h2,
.bundle-overview h2 {
  margin: 0;
  font-size: 26px;
}

.bundle-section-title button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  background: transparent;
  font-weight: 800;
}

.bundle-composition-card {
  padding: 0 32px;
}

.bundle-composition-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(92px, 0.65fr) minmax(128px, 0.85fr);
  gap: 18px;
  align-items: center;
  padding: 28px 0;
}

.bundle-composition-row + .bundle-composition-row {
  border-top: 1px solid var(--line);
}

.bundle-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.bundle-logo-tslax {
  background: #e82127;
}

.bundle-logo-amznx {
  color: #111318;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.bundle-logo-metax {
  background: linear-gradient(145deg, #4d91ff, #3162e8);
}

.bundle-middle b,
.bundle-allocation b,
.bundle-right b {
  display: block;
  font-size: 20px;
}

.bundle-middle span,
.bundle-allocation span,
.bundle-right span {
  margin-top: 6px;
}

.bundle-right {
  text-align: right;
}

.bundle-overview {
  margin-top: 30px;
}

.bundle-overview-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  padding: 28px 0;
}

.overview-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--orange);
  background: var(--orange-soft);
}

.bundle-note {
  position: relative;
  margin: 34px 0 22px;
  padding-left: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.bundle-note::before {
  content: "i";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.bundle-amount-field {
  margin: 0 0 14px;
}

.bundle-join-btn {
  width: 100%;
  min-height: 58px;
  font-size: 20px;
}

@media (max-width: 900px) {
  .topbar {
    gap: 12px;
    padding: 0 14px;
  }

  .desktop-nav {
    display: none;
  }

  .top-actions .hide-mobile {
    display: none;
  }

  .page {
    width: min(760px, 100%);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 18px 24px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .phone-visual {
    min-height: 372px;
    overflow: hidden;
  }

  .phone {
    left: 50%;
    right: auto;
    width: 220px;
    height: 354px;
    padding: 14px;
    border-width: 8px;
    border-radius: 34px;
    transform: translateX(-50%);
  }

  .phone::before {
    top: 8px;
    width: 76px;
    height: 18px;
  }

  .phone-top {
    margin-top: 18px;
  }

  .phone-balance {
    margin: 18px 0 12px;
    font-size: 27px;
  }

  .phone-grid {
    gap: 8px;
    margin-bottom: 10px;
  }

  .phone-grid span {
    height: 36px;
  }

  .phone-card {
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 14px;
  }

  .phone-card:last-child {
    display: none;
  }

  .character-card {
    display: none;
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 10px;
    margin-top: 8px;
  }

  .table-panel,
  .about,
  .contract-layout,
  .dashboard,
  .form-page {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
  }

  .about,
  .contract-layout,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .assets-screen {
    width: min(760px, calc(100% - 20px));
  }

  .assets-overview {
    display: block;
  }

  .bottom-nav {
    display: grid;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 58px;
  }

  .logo-slot {
    width: 122px;
  }

  .chip-button {
    padding: 0 12px;
    font-size: 14px;
  }

  .notice-strip {
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 13px;
  }

  .hero {
    padding-top: 28px;
    gap: 20px;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .phone-visual {
    min-height: 268px;
  }

  .phone {
    width: 150px;
    height: 230px;
    padding: 12px;
    border-width: 8px;
    border-radius: 28px;
  }

  .phone-top {
    margin-top: 12px;
    font-size: 8px;
  }

  .phone-balance {
    margin: 11px 0 9px;
    font-size: 19px;
  }

  .phone-grid span {
    height: 22px;
  }

  .phone-card {
    padding: 7px 8px;
    margin-top: 6px;
    font-size: 10px;
  }

  .phone-card b {
    margin-bottom: 5px;
  }

  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 22px 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .stat {
    display: block;
    padding: 0 10px;
    border-top: 0;
    border-left: 1px solid #d9dde5;
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stat strong {
    font-size: 19px;
    line-height: 1.15;
  }

  .stat span {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.18;
  }

  .hero-actions {
    gap: 10px;
  }

  .google-btn {
    width: 100%;
    height: 56px;
  }

  .round-action {
    width: 50px;
    height: 50px;
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 18px;
  }

  .quick-item {
    min-height: 76px;
    font-size: 11px;
  }

  .table-head,
  .market-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px 8px;
    gap: 6px;
    min-width: 0;
  }

  .table-head {
    grid-template-columns: minmax(116px, 1.2fr) minmax(76px, 0.75fr) minmax(70px, 0.65fr);
  }

  .market-main {
    grid-template-columns: minmax(116px, 1.2fr) minmax(76px, 0.75fr) minmax(70px, 0.65fr);
    gap: 6px;
  }

  .market-buy-btn {
    min-height: 34px;
    border-radius: 6px;
    font-size: 12px;
  }

  .table-head {
    font-size: 12px;
  }

  .table-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .coin-logo {
    display: none;
  }

  .coin {
    gap: 8px;
  }

  .coin b,
  .price {
    font-size: 15px;
  }

  .coin span {
    font-size: 12px;
  }

  .change {
    min-width: 64px;
    padding: 7px 5px;
    font-size: 12px;
  }

  .buy-hold-page .form-panel {
    display: block;
  }

  .buy-summary {
    margin-bottom: 18px;
    padding: 18px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .balance-value {
    font-size: 30px;
  }

  .assets-screen {
    width: min(560px, calc(100% - 20px));
    padding-top: 18px;
  }

  .assets-balance-card,
  .assets-holdings-card {
    padding: 18px;
  }

  .asset-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .asset-actions a,
  .asset-actions button {
    width: 100%;
    min-width: 0;
    min-height: 80px;
    padding: 10px 4px;
    gap: 6px;
    overflow: hidden;
    text-align: center;
  }

  .asset-actions span {
    width: 36px;
    height: 36px;
  }

  .asset-actions b {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .asset-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .asset-summary-row em {
    display: none;
  }

  .asset-holding-row {
    grid-template-columns: 1fr;
  }

  .holding-value,
  .holding-meta.right {
    text-align: left;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .contract-overlay {
    align-items: end;
    padding: 0;
  }

  .contract-modal {
    width: 100%;
    max-height: calc(100vh - 80px);
    border-radius: 14px 14px 0 0;
    padding: 18px 18px 22px;
  }

  .contract-chip-row {
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .contract-chip-row.leverage {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
  }

  .contract-chip {
    min-height: 46px;
    padding: 9px 10px;
  }

  .contract-chip b {
    font-size: 16px;
  }

  .contract-head-actions {
    gap: 8px;
  }

  .contract-round-btn {
    width: 44px;
    height: 44px;
  }

  .contract-history-row {
    grid-template-columns: 1fr 1fr;
  }

  .contract-live-modal {
    width: min(100%, 440px);
    max-height: calc(100vh - 72px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px 12px;
    border-radius: 14px 14px 0 0;
    padding: 22px 18px 86px;
    overflow-y: auto;
  }

  .contract-live-modal .modal-close {
    top: 16px;
    right: 16px;
    font-size: 32px;
  }

  .contract-live-head {
    gap: 16px;
  }

  .contract-live-head h2 {
    padding-right: 32px;
    font-size: 24px;
  }

  .contract-live-direction {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
  }

  .contract-live-time {
    justify-items: end;
    gap: 6px;
    padding: 36px 0 0;
  }

  .contract-live-time span,
  .contract-live-price span,
  .contract-live-summary small,
  .contract-live-profit small {
    font-size: 12px;
  }

  .contract-live-time strong {
    font-size: 31px;
  }

  .contract-live-price {
    grid-column: 1 / -1;
    gap: 8px;
    padding-bottom: 16px;
  }

  .contract-live-price strong {
    font-size: 32px;
  }

  .contract-live-price small {
    font-size: 17px;
  }

  .contract-live-summary {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }

  .contract-live-summary span {
    gap: 8px;
    min-height: 58px;
    padding: 0 8px;
  }

  .contract-live-summary b {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .contract-live-profit {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1.2fr;
    padding: 16px 14px;
    border-radius: 10px;
  }

  .contract-live-profit span {
    gap: 8px;
    padding: 0 10px;
  }

  .contract-live-profit b {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .contract-continue {
    min-height: 56px;
    font-size: 16px;
  }

  .contract-result-modal {
    width: min(100%, 420px);
    max-height: calc(100vh - 72px);
    border-radius: 14px 14px 0 0;
    padding: 24px 18px 86px;
    overflow-y: auto;
  }

  .contract-result-head h2 {
    font-size: 28px;
  }

  .contract-result-head strong {
    font-size: 34px;
  }

  .contract-result-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
  }

  .contract-result-grid span {
    padding: 9px;
  }

  .contract-result-grid b {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .bundle-detail-page {
    width: 100%;
    padding: 12px 12px 98px;
  }

  .bundle-detail-head {
    grid-template-columns: 40px 1fr 40px;
    margin: 0 0 14px;
  }

  .bundle-detail-head h1 {
    font-size: 20px;
  }

  .bundle-detail-head .icon-only {
    width: 38px;
    height: 38px;
  }

  .bundle-hero-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  .bundle-hero-copy h2 {
    margin: 24px 0 14px;
    font-size: 32px;
  }

  .bundle-hero-copy p {
    font-size: 19px;
    line-height: 1.7;
  }

  .bundle-illustration {
    min-height: 170px;
    order: 2;
  }

  .bundle-coin {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }

  .coin-blue {
    left: calc(50% - 100px);
    top: 32px;
  }

  .coin-orange {
    right: calc(50% - 94px);
    top: 0;
  }

  .coin-white {
    right: calc(50% - 126px);
    top: 58px;
  }

  .open-box {
    bottom: 16px;
    width: 140px;
    height: 82px;
  }

  .open-box::before,
  .open-box::after {
    top: -24px;
    width: 76px;
    height: 44px;
  }

  .bundle-hero-metrics {
    order: 3;
    padding-top: 8px;
  }

  .bundle-hero-metrics span,
  .bundle-overview-card span {
    font-size: 14px;
  }

  .bundle-hero-metrics b,
  .bundle-overview-card b {
    margin-top: 8px;
    font-size: 18px;
  }

  .bundle-section-title {
    margin-top: 26px;
  }

  .bundle-section-title h2,
  .bundle-overview h2 {
    font-size: 24px;
  }

  .bundle-composition-card {
    padding: 0 18px;
  }

  .bundle-composition-row {
    grid-template-columns: 50px minmax(0, 1fr) minmax(84px, auto);
    gap: 12px;
    padding: 22px 0;
  }

  .bundle-logo {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .bundle-middle b,
  .bundle-allocation b,
  .bundle-right b {
    font-size: 18px;
  }

  .bundle-allocation {
    grid-column: 2;
    padding-top: 6px;
  }

  .bundle-right {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .bundle-overview-card {
    padding: 22px 0;
  }

  .overview-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
  }

  .bundle-note {
    margin: 28px 0 20px;
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .bundle-hero-card {
    padding: 18px 16px;
  }

  .bundle-hero-copy h2 {
    font-size: 29px;
  }

  .bundle-hero-copy p {
    font-size: 17px;
  }

  .bundle-hero-metrics,
  .bundle-overview-card {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .bundle-hero-metrics span,
  .bundle-overview-card span,
  .bundle-composition-row span {
    font-size: 12px;
  }

  .bundle-hero-metrics b,
  .bundle-overview-card b {
    font-size: 16px;
  }

  .bundle-composition-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .bundle-right {
    grid-column: 2;
    grid-row: auto;
    text-align: left;
  }
}
