:root {
  --header-height: 48px;
}
.site-header .main-nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.site-header .main-nav .nav-link {
  flex-shrink: 0;
}
.site-header .header-actions {
  flex-shrink: 0;
}
@media (max-width: 1600px) {
  .signed-header .nav-extra {
    display: none;
  }
}
@media (max-width: 1440px) {
  .signed-header .nav-secondary {
    display: none;
  }
}
.site-header {
  height: 48px;
  gap: 30px;
  padding: 0 20px;
}
.hero h1 {
  font-size: clamp(60px, 5.3vw, 80px);
  line-height: 1.25;
  max-width: 1220px;
  margin-bottom: 28px;
}
.hero:after {
  background: #03101d66;
}
.hero-content {
  bottom: 34px;
}
.hero-form {
  width: 400px;
}
.hero-form .btn {
  font-size: 16px;
  padding: 0 26px;
}
.home-page .brand {
  color: #91bc32;
}
.hero .brand {
  color: #b9f641;
}
.home-page .home-market {
  background: #f5f6f8;
}
.home-page .home-market .tab-row {
  display: block;
}
.home-page .home-market [data-group="home-rank"] {
  border: 0;
  font-size: 24px;
  gap: 48px;
  margin-bottom: 4px;
}
.home-page .home-market [data-group="home-rank"] button {
  font-size: 24px;
  padding: 12px 0;
}
.home-page .home-market [data-group="home-rank"] button:after {
  display: none;
}
.home-page .home-market [data-group="home-type"] {
  justify-content: flex-start;
  gap: 32px;
}
.home-page .home-market .data-table {
  margin-top: 30px;
}
.home-page .home-market .data-table td {
  border: 0;
}
.home-page .home-market .table-action {
  border: 0;
  background: #eceef0;
  border-radius: 6px;
  font-weight: 600;
}
.home-page .home-market .table-action:hover {
  background: #111;
  color: white;
}
.coin {
  overflow: hidden;
}
.reward-bar .btn {
  background: #222;
  color: white;
}
.site-header {
  position: sticky;
  top: 0;
}
.market-page {
  padding-top: 44px;
}
.market-title .tabs {
  margin-bottom: 96px;
}
.market-types > .tabs {
  font-size: 24px;
}
.market-types {
  border-bottom: 1px solid var(--line);
}
.market-types .tabs {
  border: 0;
}
.ranking article {
  padding: 20px 24px;
}
.ranking article a {
  margin: 17px 0;
}
.ranking {
  margin-bottom: 60px;
}
.sort-strip {
  margin-bottom: 8px;
}
.data-table th,
.data-table td {
  padding-right: 8px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 0;
}
.auth-layout {
  min-height: calc(100vh - 48px);
}
.header-actions .social-circle {
  color: white;
}
@media (max-width: 1250px) {
  .site-header {
    gap: 26px;
  }
  .hero h1 {
    font-size: 76px;
    max-width: 1040px;
  }
  .ranking article {
    padding: 20px 22px;
  }
  .site-header .nav-extra {
    display: none;
  }
  .site-header .main-nav {
    gap: 24px;
  }
  .site-header .header-actions {
    gap: 22px;
  }
}
@media (max-width: 1000px) {
  .site-header .main-nav {
    gap: 18px;
  }
  .site-header {
    gap: 24px;
  }
  .hero h1 {
    font-size: 64px;
  }
}
@media (max-width: 600px) {
  :root {
    --header-height: 56px;
  }
  .site-header,
  .site-header.over-hero {
    height: 56px;
    padding: 0 20px;
    gap: 12px;
    position: relative;
  }
  .site-header .header-actions {
    gap: 8px;
  }
  .home-page {
    --bg: #000;
    --surface: #121212;
    --input: #222425;
    --text: #fff;
    --muted: #999;
    --secondary: #bbb;
    --line: #2a2f33;
    background: #000;
    color: #fff;
  }
  .home-page .brand {
    color: #b9f641;
  }
  .home-page .home-market {
    background: #000;
  }
  .home-page .home-market .tab-row {
    display: flex;
  }
  .home-page .home-market [data-group="home-rank"] {
    gap: 18px;
    font-size: 14px;
    margin: 0;
    overflow: auto;
  }
  .home-page .home-market [data-group="home-rank"] button {
    font-size: 14px;
  }
  .home-page .home-market [data-group="home-type"] {
    gap: 14px;
    border: 0;
  }
  .home-page .home-market .data-table {
    margin-top: 12px;
  }
  .home-page .home-market .data-table th {
    font-size: 11px;
  }
  .home-page .home-market .data-table td {
    border-top: 1px solid var(--line);
  }
  .home-page .mobile-nav {
    background: #222d;
    color: #aaa;
    border-color: #333;
  }
  .home-page .site-header .logo img {
    content: url("/assets/bitunix-dark-logo-6146222c.svg");
  }
  .home-page .footer-brand img {
    content: url("/assets/bitunix-dark-logo-6146222c.svg");
  }
  .market-page {
    padding-top: 14px;
  }
  .market-title .tabs {
    margin-bottom: 22px;
  }
  .market-types > .tabs {
    font-size: 16px;
  }
  .sort-strip {
    margin-bottom: 0;
  }
  .data-table td,
  .data-table th {
    padding-right: 5px;
  }
  .data-table td:last-child,
  .data-table th:last-child {
    padding-right: 0;
  }
  .home-page .footer-bottom {
    color: #888;
  }
  .mobile-hero {
    padding-top: calc(100vw * 0.86);
  }
  .home-page .mobile-hero h1 {
    font-size: 36px;
  }
  .home-page .por {
    color: #888;
  }
  .auth-layout {
    min-height: calc(100vh - 56px);
  }
  .auth-page .site-header {
    position: relative;
  }
  .order-panel .balance {
    font-size: 11px;
  }
  .site-header .header-actions .btn {
    padding: 0 15px;
  }
}
.orderbook {
  overflow: hidden;
}
.orderbook .asks .book-row:nth-child(n + 9),
.orderbook .bids .book-row:nth-child(n + 9) {
  display: none;
}
.orderbook .book-row {
  height: 23px;
}
.book-head {
  font-size: 10px;
}
.book-price {
  padding: 18px 14px;
}
.book-ratio {
  margin: 14px;
}
.home-page .review {
  background: #f7f8fa;
}
.home-page .portfolio {
  background: #f5f6f8;
}
@media (max-width: 600px) {
  .orderbook .book-row {
    height: 25px;
  }
  .book-price {
    padding: 17px 8px;
  }
  .book-ratio {
    margin: 14px 8px;
  }
  .home-page .review {
    background: #121212;
  }
}
@media (max-width: 600px) {
  body.home-page .site-header .logo img {
    content: url("/assets/bitunix-dark-logo-6146222c.svg");
  }
}
@media (max-width: 600px) {
  body.auth-page .site-header .logo img {
    content: url("/assets/bitunix-dark-logo-6146222c.svg");
  }
}
.auth-art {
  height: 100%;
  object-fit: cover;
}
.phone-display {
  position: relative;
  width: 100%;
  height: 565px;
  max-width: 530px;
}
.phone-frame {
  position: absolute;
  width: 260px;
  height: 542px;
  border: 6px solid #000;
  border-radius: 42px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 18px 45px #0001;
}
.phone-frame:after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 22px;
  border-radius: 999px;
  background: #000;
}
.phone-frame img,
.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.light-phone {
  left: 0;
  top: 0;
}
.dark-phone {
  right: 0;
  top: 24px;
}
.download-hero .phone-display {
  margin: auto;
}
@media (max-width: 600px) {
  .phone-display {
    max-width: 330px;
    height: 370px;
    order: 0;
  }
  .phone-frame {
    width: 174px;
    height: 362px;
    border-width: 4px;
    border-radius: 28px;
  }
  .phone-frame:after {
    width: 46px;
    height: 15px;
    top: 5px;
  }
  .dark-phone {
    top: 10px;
  }
  .light-phone {
    left: 25px;
  }
  .dark-phone {
    right: 15px;
  }
}
#live-chart { width:100%;height:420px;min-width:0; }
.chart-panel .panel-top { min-height:42px;flex-shrink:0; }
.chart-panel .chart-tools { min-height:36px;flex-shrink:0; }
.chart-panel { min-width:0; }
@media(min-width:768px){ .trading-terminal .terminal-grid,.trading-terminal.futures-terminal .terminal-grid { grid-template-rows:minmax(650px,calc(100vh - 320px)) 180px; } }
.live-chart-status { font-size:11px;color:var(--muted);padding:8px 12px;min-height:30px; }
.chart-retry,.chart-history { margin:4px 12px 12px;border:1px solid var(--line);padding:7px 12px;border-radius:6px;font-size:11px;align-self:flex-start; }
.chart-panel.expanded #live-chart { height:calc(100vh - 200px); }
@media(max-width:767px){ #live-chart { height:360px; } .live-chart-status { font-size:10px; } }
.orderbook .book-live-status { padding:8px 12px;font-size:10px;color:var(--muted);line-height:1.5; }
.orderbook .recent-market-trades { max-height:450px;overflow-y:auto; }
.orderbook .book-retry { margin:8px 12px;padding:6px 10px;border:1px solid var(--line);border-radius:5px;font-size:11px; }
.orderbook [hidden] { display:none!important; }
