:root {
  color-scheme: dark;
  --ink: #090a0c;
  --ink-soft: #101216;
  --panel: #15181d;
  --panel-soft: #1a1e24;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f0;
  --muted: #989b9f;
  --dim: #666a70;
  --accent: #dcf56d;
  --accent-ink: #111409;
  --positive: #39d98a;
  --negative: #ff6878;
  --warning: #f2c96d;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --display: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: #050506;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
[hidden] { display: none !important; }

.mobile-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  background:
    radial-gradient(circle at 94% 4%, rgba(220, 245, 109, 0.055), transparent 23%),
    var(--ink);
}

.site-header,
.detail-header,
.auth-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: calc(62px + var(--safe-top));
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: calc(10px + var(--safe-top)) 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(9, 10, 12, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(220, 245, 109, 0.46);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: -0.08em;
}

.header-account,
.back-text,
.favorite-text {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #d7d8d4;
  font-size: 12px;
  font-weight: 750;
}

.header-account.is-authenticated {
  border-color: rgba(220, 245, 109, 0.28);
  color: var(--accent);
}

.home-main,
.markets-main,
.account-main {
  padding: 0 18px calc(92px + var(--safe-bottom));
}

.home-hero {
  position: relative;
  min-height: 356px;
  padding: 67px 0 38px;
  border-bottom: 1px solid var(--line);
}

.home-hero::after {
  position: absolute;
  top: 42px;
  right: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(220, 245, 109, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(220, 245, 109, 0.018),
    0 0 0 66px rgba(220, 245, 109, 0.012);
  content: "";
  pointer-events: none;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 370px;
  margin: 0;
  font-family: var(--body);
  font-size: clamp(39px, 10.8vw, 52px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.home-hero h1 span { display: block; }
.home-hero h1 span + span { margin-top: 7px; color: #d9dbd6; }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 315px;
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 2px solid rgba(220, 245, 109, 0.5);
  color: #a6a8a5;
  font-size: 13px;
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: 9px;
  margin-top: 29px;
}

.primary-action,
.quiet-action,
.danger-action {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 850;
  transition: transform 140ms ease, opacity 140ms ease;
}

.primary-action { background: var(--accent); color: var(--accent-ink); }
.quiet-action { border-color: var(--line-strong); background: transparent; color: var(--text); }
.danger-action { width: 100%; margin-top: 24px; border-color: rgba(255, 104, 120, 0.24); background: transparent; color: var(--negative); }
.primary-action:active, .quiet-action:active, .danger-action:active { transform: scale(0.985); }

.signed-in-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 29px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.signed-in-banner strong, .signed-in-banner a { color: var(--text); }
.signed-in-banner a { font-weight: 750; }

.pulse-section,
.home-market-section,
.campaign-section,
.market-brief {
  padding-top: 34px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.section-title-row h2,
.campaign-section h2,
.market-brief h2,
.chart-heading h1,
.detail-data h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-title-row .section-kicker,
.chart-heading .section-kicker { margin-bottom: 5px; }

.text-action {
  min-height: 40px;
  padding: 10px 0 7px;
  color: #c8c9c6;
  font-size: 12px;
  font-weight: 760;
}

.pulse-track {
  display: grid;
  grid-auto-columns: minmax(218px, 71%);
  grid-auto-flow: column;
  gap: 10px;
  margin-right: -18px;
  padding-right: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pulse-track::-webkit-scrollbar { display: none; }

.pulse-card {
  min-height: 151px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  scroll-snap-align: start;
}

.pulse-card-top,
.pulse-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pulse-card-top strong { font-size: 13px; }
.pulse-card-top span { color: var(--muted); font-size: 10px; }
.pulse-card-price { margin-top: 14px; }
.pulse-card-price strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.035em; }
.pulse-card-price span { font-size: 11px; font-weight: 800; }
.sparkline { display: block; width: 100%; height: 42px; margin-top: 11px; }

.asset-list { border-top: 1px solid var(--line); }

.asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, .86fr) 72px;
  min-height: 74px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease;
}
.asset-row:active { background: rgba(255,255,255,.022); }

.asset-identity,
.asset-quote,
.asset-change { min-width: 0; }
.asset-identity strong,
.asset-identity span,
.asset-quote strong,
.asset-quote span { display: block; }
.asset-identity strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.asset-identity span { margin-top: 2px; color: var(--dim); font-size: 10px; }
.asset-quote { text-align: right; }
.asset-quote strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.asset-quote span { color: var(--dim); font-size: 10px; }
.asset-change { text-align: right; }
.change-value { font-size: 12px; font-weight: 850; }
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }

.favorite-control {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 10px;
}
.favorite-control.is-favorite { color: var(--accent); }

.campaign-section {
  position: relative;
  margin-top: 36px;
  padding: 29px 21px 20px;
  overflow: hidden;
  border: 1px solid rgba(220, 245, 109, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(220, 245, 109, 0.11), transparent 34%),
    #121419;
}

.campaign-section::after {
  position: absolute;
  top: -82px;
  right: -86px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(220, 245, 109, 0.1);
  border-radius: 50%;
  content: "";
}

.campaign-copy {
  position: relative;
  z-index: 1;
}

.campaign-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  margin-bottom: 18px;
  padding: 4px 9px;
  border: 1px solid rgba(220, 245, 109, 0.25);
  border-radius: 999px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
}

.campaign-section h2 {
  max-width: 340px;
  font-size: 27px;
}

.campaign-copy > p:not(.section-kicker) {
  max-width: 330px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.campaign-action {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  margin-top: 20px;
  padding: 9px 15px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 850;
}

.campaign-steps {
  display: grid;
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.campaign-steps li {
  display: grid;
  grid-template-columns: 35px 1fr;
  min-height: 58px;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.campaign-steps li > span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.campaign-steps strong {
  font-size: 12px;
}

.campaign-steps small {
  margin-top: 1px;
  color: var(--dim);
  font-size: 9px;
}

.market-brief {
  margin-top: 34px;
  padding: 29px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.market-brief p:not(.section-kicker) { max-width: 330px; margin: 13px 0 19px; color: var(--muted); font-size: 13px; }
.market-brief a { color: var(--accent); font-size: 12px; font-weight: 800; }

.live-status {
  color: var(--dim);
  font-size: 10px;
  white-space: nowrap;
}

.page-heading { padding: 39px 0 27px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin: 0; font-family: var(--display); font-size: 39px; line-height: 1; letter-spacing: -0.06em; }
.page-heading p:not(.section-kicker) { max-width: 330px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.market-search {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 55px;
  align-items: center;
  margin-top: 24px;
  border-bottom: 1px solid var(--line-strong);
}
.market-search > span { color: var(--dim); font-size: 11px; font-weight: 700; }
.market-search input { width: 100%; min-width: 0; height: 54px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; }
.market-search input::placeholder { color: #55595f; }

.market-tabs,
.interval-tabs {
  display: flex;
  gap: 4px;
  margin-top: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.market-tabs::-webkit-scrollbar, .interval-tabs::-webkit-scrollbar { display: none; }
.market-tab,
.interval-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
  font-weight: 760;
}
.market-tab.is-active,
.interval-tab.is-active { background: var(--accent); color: var(--accent-ink); }

.market-table { margin-top: 34px; }
.market-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.market-list-heading h2 { margin: 0; font-family: var(--display); font-size: 23px; letter-spacing: -0.04em; }
.market-list-heading span { color: var(--dim); font-size: 10px; }
.market-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,.86fr) 72px; gap: 8px; padding: 17px 0 8px; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.market-columns span:nth-child(n+2) { text-align: right; }

.empty-state,
.loading-copy { padding: 34px 8px; color: var(--dim); font-size: 12px; text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 14px; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 520px;
  min-height: calc(61px + var(--safe-bottom));
  margin: 0 auto;
  padding: 5px 18px calc(5px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(9,10,12,.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nav-link { position: relative; display: grid; min-height: 50px; place-items: center; color: var(--dim); font-size: 11px; font-weight: 760; }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { position: absolute; bottom: 4px; width: 18px; height: 2px; border-radius: 999px; background: var(--accent); content: ""; }

.detail-header { position: relative; }
.back-text, .favorite-text { min-width: 68px; border: 0; background: transparent; padding-right: 0; padding-left: 0; }
.back-text { justify-content: flex-start; }
.favorite-text { justify-content: flex-end; color: var(--accent); }
.detail-pair { display: grid; text-align: center; }
.detail-pair strong { font-size: 14px; }
.detail-pair span { margin-top: 1px; color: var(--dim); font-size: 9px; }
.detail-main { padding: 0 18px calc(42px + var(--safe-bottom)); }

.quote-summary { padding: 30px 0 27px; border-bottom: 1px solid var(--line); }
.quote-primary p { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.quote-primary strong { display: block; font-family: var(--display); font-size: clamp(38px, 11vw, 52px); line-height: 1; letter-spacing: -0.055em; }
.quote-primary > span { display: block; margin-top: 9px; font-size: 13px; font-weight: 850; }
.quote-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 29px; }
.quote-stats > span { min-width: 0; color: var(--dim); font-size: 9px; }
.quote-stats strong { display: block; margin-top: 5px; overflow: hidden; color: #c7c9c5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.chart-section { padding: 31px 0 30px; border-bottom: 1px solid var(--line); }
.chart-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.interval-tabs { margin-top: 21px; padding: 2px 0; }
.interval-tab { min-height: 34px; padding: 6px 12px; font-size: 10px; }

.chart-wrap { position: relative; height: 330px; margin-top: 22px; touch-action: none; }
.candle-chart { display: block; width: 100%; height: 100%; }
.chart-tooltip {
  position: absolute;
  z-index: 4;
  top: 9px;
  left: 9px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15,17,20,.94);
  color: var(--muted);
  font-size: 9px;
  pointer-events: none;
}
.chart-tooltip strong { grid-column: 1 / -1; color: var(--text); font-size: 10px; }
.chart-tooltip b { color: var(--text); font-weight: 700; }
.chart-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--dim); font-size: 9px; }

.detail-data { padding: 31px 0 10px; }
.detail-data dl { margin: 18px 0 0; border-top: 1px solid var(--line); }
.detail-data dl > div { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.detail-data dt { color: var(--muted); font-size: 11px; }
.detail-data dd { margin: 0; color: var(--text); font-size: 11px; font-weight: 750; text-align: right; }

.auth-shell { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.auth-header { position: relative; }
.auth-main { width: 100%; margin: auto 0; padding: 42px 20px calc(34px + var(--safe-bottom)); }
.register-main { margin: 0; padding-top: 32px; }
.auth-intro { margin-bottom: 32px; }
.auth-intro h1 { margin: 0; font-family: var(--display); font-size: 42px; line-height: 1; letter-spacing: -0.06em; }
.auth-intro p:not(.section-kicker) { max-width: 330px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 20px; }
.auth-form > label:not(.terms-row) { display: grid; gap: 7px; }
.auth-form > label > span:first-child { color: #c6c8c4; font-size: 11px; font-weight: 720; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-form input::placeholder { color: #55595f; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 58px !important; }
.password-field button { position: absolute; top: 50%; right: 0; min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; transform: translateY(-50%); }
.terms-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; }
.terms-row input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.terms-row a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form-submit { width: 100%; margin-top: 4px; }
.form-submit:disabled { cursor: wait; opacity: .55; }
.form-error { padding: 11px 0; border-top: 1px solid rgba(255,104,120,.25); border-bottom: 1px solid rgba(255,104,120,.25); color: #ff8995; font-size: 11px; }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a { margin-left: 4px; color: var(--accent); font-weight: 800; }
.continue-market { display: block; margin-top: 20px; color: var(--dim); font-size: 11px; text-align: center; }

.legal-main {
  padding: 0 18px 48px;
}

.legal-sections {
  display: grid;
}

.legal-sections section {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.legal-sections section > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.legal-sections h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
}

.legal-sections p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.error-shell {
  display: grid;
  place-items: center;
}

.error-main {
  width: 100%;
  padding: 40px 24px;
}

.error-code {
  margin: 82px 0 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.error-main h1 {
  max-width: 330px;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 43px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.error-main > p:not(.error-code) {
  margin: 17px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.account-state { margin-top: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-state > p { color: var(--muted); font-size: 12px; }
.guest-state { padding-top: 32px; text-align: center; }
.guest-state h2 { margin: 17px 0 0; font-family: var(--display); font-size: 28px; letter-spacing: -.04em; }
.guest-state > p { max-width: 300px; margin: 9px auto 0; }
.account-initial { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(220,245,109,.36); border-radius: 50%; color: var(--accent); font-size: 13px; font-weight: 900; }
.guest-state .account-initial { margin: 0 auto; }
.guest-state .hero-actions {
  display: flex;
  max-width: 310px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px auto 0;
}
.guest-state .primary-action,
.guest-state .quiet-action {
  min-height: 43px;
  border-radius: 999px;
  font-size: 13px;
}
.guest-state .primary-action {
  min-width: 112px;
  padding: 9px 25px;
  border-color: rgba(220, 245, 109, 0.28);
  background: #20241d;
  color: #eef2de;
}
.guest-state .quiet-action {
  min-width: 78px;
  padding: 9px 17px;
  border-color: transparent;
  color: #9da19b;
}
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head > span:last-child { display: grid; }
.profile-head strong { font-family: var(--display); font-size: 23px; letter-spacing: -.035em; }
.profile-head small { color: var(--positive); font-size: 10px; }
.profile-state dl { margin: 25px 0 0; border-top: 1px solid var(--line); }
.profile-state dl > div { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.profile-state dt { color: var(--muted); font-size: 11px; }
.profile-state dd { max-width: 65%; margin: 0; overflow: hidden; font-size: 11px; font-weight: 750; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.language-control { display: flex; flex: 0 0 auto; align-items: center; }
.language-trigger {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #c8cac5;
}
.language-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.5; }
.language-trigger:active { transform: scale(.96); }
.language-sheet {
  position: fixed;
  z-index: 220;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.language-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0, 0, 0, .72); }
.language-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(76dvh, 680px);
  padding: 20px 18px calc(22px + var(--safe-bottom));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #111318;
  box-shadow: 0 -26px 70px rgba(0, 0, 0, .48);
}
.language-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.language-panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.language-close { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.language-grid {
  display: grid;
  max-height: calc(min(76dvh, 680px) - 92px - var(--safe-bottom));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-top: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.language-option {
  min-height: 44px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  color: #c5c7c3;
  font-size: 12px;
  font-weight: 720;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.language-option.is-active { border-color: rgba(220, 245, 109, .38); background: rgba(220, 245, 109, .08); color: var(--accent); }
.language-sheet-open { overflow: hidden; }
[dir="rtl"] .profile-state dd { text-align: left; }
[dir="rtl"] .asset-row,
[dir="rtl"] .market-columns,
[dir="rtl"] .quote-stats,
[dir="rtl"] .candle-stage { direction: ltr; }

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: calc(76px + var(--safe-bottom));
  left: 18px;
  max-width: 484px;
  min-height: 45px;
  margin: 0 auto;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #202329;
  color: var(--text);
  box-shadow: 0 18px 48px rgba(0,0,0,.36);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.skeleton-block { position: relative; overflow: hidden; background: var(--panel) !important; }
.skeleton-block::after { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.05) 45%, transparent 75%); content: ""; transform: translateX(-100%); animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 560px) {
  .mobile-shell { border-right: 1px solid rgba(255,255,255,.06); border-left: 1px solid rgba(255,255,255,.06); box-shadow: 0 0 90px rgba(0,0,0,.36); }
}

@media (max-width: 359px) {
  .home-main, .markets-main, .account-main, .detail-main { padding-right: 14px; padding-left: 14px; }
  .site-header, .detail-header, .auth-header { padding-right: 14px; padding-left: 14px; }
  .asset-row, .market-columns { grid-template-columns: minmax(0,1fr) 84px 65px; }
  .home-hero h1 { font-size: 39px; }
  .quote-stats { grid-template-columns: 1fr 1fr; }
  .quote-stats > span:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
