@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --ct-bg: #060913;
  --ct-bg-soft: #0a1020;
  --ct-panel: rgba(13, 20, 36, 0.82);
  --ct-panel-solid: #0d1424;
  --ct-panel-hover: rgba(18, 29, 51, 0.92);
  --ct-border: rgba(150, 176, 220, 0.14);
  --ct-border-strong: rgba(125, 211, 252, 0.34);
  --ct-text: #f4f7fb;
  --ct-muted: #8d9ab2;
  --ct-faint: #5c6980;
  --ct-cyan: #4dd7ff;
  --ct-blue: #6d7cff;
  --ct-violet: #9b7cff;
  --ct-green: #27d69b;
  --ct-red: #ff647c;
  --ct-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --ct-radius-lg: 24px;
  --ct-radius-md: 16px;
  --ct-radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-resource-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  width: min(1480px, calc(100% - 36px));
  margin: 18px auto 48px;
  padding: 22px 24px;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  color: var(--ct-text);
  background: rgba(8, 15, 27, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.seo-resource-kicker {
  color: var(--ct-cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.seo-resource-panel h2 {
  margin: 7px 0 8px;
  color: var(--ct-text);
  font-size: 18px;
  font-weight: 600;
}

.seo-resource-panel p {
  max-width: 900px;
  margin: 0;
  color: var(--ct-muted);
  font-size: 13px;
  line-height: 1.75;
}

.seo-faq {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.seo-faq details {
  color: var(--ct-muted);
  font-size: 12px;
}

.seo-faq summary {
  color: #c9d5e5;
  cursor: pointer;
}

.seo-faq details p {
  margin-top: 6px;
  font-size: 12px;
}

.seo-resource-links {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
}

.seo-resource-links a {
  color: #c9f5ff;
  font-size: 12px;
  text-decoration: none;
}

.seo-resource-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .seo-resource-panel {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .seo-resource-links {
    align-items: flex-start;
  }
}

html {
  min-height: 100%;
  background: var(--ct-bg);
}

body.ct-app {
  min-height: 100vh;
  margin: 0;
  color: var(--ct-text);
  background:
    radial-gradient(circle at 8% -10%, rgba(77, 215, 255, 0.13), transparent 29rem),
    radial-gradient(circle at 94% 12%, rgba(109, 124, 255, 0.13), transparent 34rem),
    linear-gradient(180deg, #080c17 0%, #060913 42%, #070b14 100%);
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.ct-app::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.ct-app :focus-visible {
  outline: 2px solid var(--ct-cyan);
  outline-offset: 3px;
}

.ct-app button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

button,
.nav-item,
.card,
.exchange-invite,
.add-chart {
  -webkit-tap-highlight-color: transparent;
}

.ct-app .navbar,
.ct-app.page-view .toolbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 66px;
  padding: 10px clamp(18px, 3vw, 46px);
  border: 0;
  border-bottom: 1px solid var(--ct-border);
  border-radius: 0;
  background: rgba(6, 9, 19, 0.78);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(135%);
}

.ct-app .navbar::before,
.ct-app.page-view .toolbar::before {
  flex: 0 0 auto;
  width: 100px;
  margin-right: 22px;
  content: "COINTOOLS";
  color: var(--ct-text);
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ct-app .navbar::after,
.ct-app.page-view .toolbar::after {
  position: absolute;
  bottom: -1px;
  left: clamp(18px, 3vw, 46px);
  width: 72px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--ct-cyan), transparent);
  box-shadow: 0 0 14px var(--ct-cyan);
}

.ct-app .nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-app .nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.ct-app .nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ct-muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  appearance: none;
  cursor: pointer;
}

.ct-app .nav-dropdown:hover .nav-dropdown-trigger,
.ct-app .nav-dropdown:focus-within .nav-dropdown-trigger,
.ct-app .nav-dropdown-trigger.active {
  border-color: var(--ct-border);
  color: var(--ct-text);
  background: rgba(255, 255, 255, 0.055);
}

.ct-app .nav-dropdown:hover .nav-dropdown-trigger:not(.active),
.ct-app .nav-dropdown:focus-within .nav-dropdown-trigger:not(.active) {
  border-color: transparent;
  color: var(--ct-text);
  background: transparent;
}

.ct-app .nav-dropdown-trigger:not(.active) {
  padding: 10px 14px;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0;
}

.ct-app .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 10020;
  display: grid;
  min-width: 156px;
  padding: 7px;
  visibility: hidden;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  opacity: 0;
  background: rgba(8, 14, 26, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.ct-app .nav-dropdown:hover .nav-dropdown-menu,
.ct-app .nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.ct-app .nav-dropdown-menu a {
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--ct-muted);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.ct-app .nav-dropdown-menu a:hover,
.ct-app .nav-dropdown-menu a:focus {
  color: var(--ct-text);
  outline: none;
  background: rgba(77, 215, 255, 0.09);
}

.ct-app .navbar > .nav-links:first-of-type {
  flex: 0 1 auto;
}

.ct-app .navbar > .nav-links:last-of-type {
  flex: 0 0 auto;
  margin-left: auto;
}

.ct-app .navbar > .nav-links:first-of-type .nav-item,
.ct-app .navbar > .nav-links:first-of-type .nav-dropdown-trigger,
.ct-app.page-view .toolbar > .toolbar-nav .nav-item,
.ct-app.page-view .toolbar > .toolbar-nav .nav-dropdown-trigger {
  display: flex;
  height: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  white-space: nowrap;
}

.ct-app .nav-item,
.ct-app .nav-item.home-button {
  position: relative;
  min-height: auto;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ct-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  transition: 180ms ease;
}

.ct-app .nav-item:hover,
.ct-app .nav-item.active,
.ct-app .nav-item.home-button:hover {
  border-color: var(--ct-border);
  color: var(--ct-text);
  background: rgba(255, 255, 255, 0.055);
}

.ct-app .navbar .nav-item.active::after,
.ct-app.page-view .toolbar .toolbar-nav .nav-item.active::after,
.ct-app .navbar .nav-dropdown-trigger.active::after,
.ct-app.page-view .toolbar .nav-dropdown-trigger.active::after {
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 1px;
  border-radius: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--ct-cyan), transparent);
  box-shadow: 0 0 8px rgba(77, 215, 255, 0.45);
}

.ct-app .join-community {
  display: inline-flex;
  width: 92px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  border-color: rgba(77, 215, 255, 0.25);
  border-radius: 9px;
  color: #c9f5ff;
  background: rgba(77, 215, 255, 0.075);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.ct-app .navbar > .nav-links:last-of-type .join-community {
  position: static;
  inset: auto;
  margin: 0;
  overflow: visible;
}

.ct-app .ad-banner {
  display: none;
}

.ct-app .ad-banner-content {
  color: var(--ct-muted);
  font-size: 12px;
  font-weight: 500;
}

.ct-app button,
.ct-app .custom-button {
  border: 1px solid var(--ct-border-strong);
  border-radius: 10px;
  color: #dcf8ff;
  background: linear-gradient(135deg, rgba(77, 215, 255, 0.18), rgba(109, 124, 255, 0.16));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ct-app button:hover,
.ct-app .custom-button:hover {
  border-color: rgba(77, 215, 255, 0.62);
  background: linear-gradient(135deg, rgba(77, 215, 255, 0.27), rgba(109, 124, 255, 0.23));
  transform: translateY(-1px);
}

.ct-app input,
.ct-app select {
  border: 1px solid var(--ct-border);
  border-radius: 9px;
  outline: none;
  color: var(--ct-text);
  background-color: rgba(5, 10, 20, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ct-app input:focus,
.ct-app select:focus {
  border-color: var(--ct-cyan);
  box-shadow: 0 0 0 3px rgba(77, 215, 255, 0.1);
}

.ct-app table {
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ct-text);
  background: transparent;
}

.ct-app th {
  color: #b9c7dc;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ct-app td {
  color: #d6deeb;
  font-size: 12px;
}

.ct-app th,
.ct-app td {
  border-color: var(--ct-border);
}

.ct-app tbody tr {
  transition: background 160ms ease;
}

.ct-app tbody tr:hover {
  background: rgba(77, 215, 255, 0.045);
}

/* Home */
.page-home #content {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 8px;
}

.ct-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 12px;
}

.page-home .ct-hero > div {
  padding-left: 28px;
}

.ct-hero::after {
  position: absolute;
  top: 48px;
  right: 2%;
  z-index: -1;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(77, 215, 255, 0.1);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle, rgba(77, 215, 255, 0.13) 0 1px, transparent 2px) 0 0 / 18px 18px;
  mask-image: radial-gradient(circle, black, transparent 70%);
}

.ct-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--ct-cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ct-hero-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--ct-green);
  box-shadow: 0 0 14px var(--ct-green);
}

.ct-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: var(--ct-text);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.ct-hero h1 span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(100deg, #fff 15%, var(--ct-cyan) 55%, #a6afff 92%);
  background-clip: text;
  -webkit-background-clip: text;
}

.ct-hero-copy {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--ct-muted);
  font-size: 16px;
  line-height: 1.8;
}

.ct-hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
}

.ct-metric {
  min-width: 128px;
  padding: 20px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md);
  background: var(--ct-panel);
  box-shadow: var(--ct-shadow);
  backdrop-filter: blur(16px);
}

.ct-metric strong {
  display: block;
  margin-bottom: 7px;
  font-size: 25px;
  font-weight: 600;
}

.ct-metric span {
  color: var(--ct-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .card-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
}

.page-home .card {
  position: relative;
  width: auto;
  min-height: 0;
  height: 370px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  color: var(--ct-text);
  background: linear-gradient(145deg, rgba(17, 27, 47, 0.9), rgba(9, 15, 27, 0.88));
  box-shadow: var(--ct-shadow);
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.page-home .card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, rgba(77, 215, 255, 0.08), transparent 35%);
}

.page-home .card:hover {
  border-color: var(--ct-border-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46), 0 0 40px rgba(77, 215, 255, 0.05);
  transform: translateY(-5px);
}

.page-home .card-content {
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-home .card-title {
  order: 2;
  margin: 16px 12px 3px;
  color: var(--ct-text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-home .card-title::after {
  float: right;
  content: "↗";
  color: var(--ct-cyan);
  font-size: 19px;
}

.page-home .card-icon {
  order: 1;
  width: 100%;
  height: 170px;
  overflow: hidden;
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  background: #050914;
}

.page-home .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.72) contrast(1.06);
  transition: opacity 240ms ease, transform 350ms ease, filter 240ms ease;
}

.page-home .card:hover .card-icon img {
  opacity: 1;
  filter: saturate(0.95) contrast(1.07);
  transform: scale(1.018);
}

.page-home .card-description {
  position: relative;
  margin: 5px 12px 14px;
  padding: 0;
  color: var(--ct-muted);
  font-size: 13px;
  line-height: 1.65;
}

.page-home .card-description li {
  position: relative;
  margin: 4px 0;
  padding-left: 17px;
  color: var(--ct-muted);
  list-style: none;
}

.page-home .card-description li::before {
  position: absolute;
  left: 0;
  display: block;
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ct-cyan);
  box-shadow: 0 0 8px rgba(77, 215, 255, 0.6);
}

.page-home .exchange-invite-container {
  justify-content: center;
  gap: 28px;
  margin: 8px 0 0;
}

.page-home .exchange-invite {
  padding: 11px 16px;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  color: var(--ct-text);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.page-home .exchange-invite:hover {
  border-color: var(--ct-border-strong);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transform: translateY(-2px);
}

.page-home .exchange-text {
  color: var(--ct-text);
  font-size: 13px;
  letter-spacing: 0;
}

/* Market wall */
.page-view > h1 {
  width: min(1480px, calc(100% - 36px));
  margin: 98px auto 4px;
  color: var(--ct-text);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-view > h1::after {
  display: block;
  margin-top: 7px;
  content: "多市场 · 多周期 · 实时观察";
  color: var(--ct-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.ct-app.page-view .toolbar {
  position: fixed;
  display: flex;
  gap: 8px;
  min-height: 66px;
  padding: 10px clamp(18px, 3vw, 46px);
  background:
    linear-gradient(90deg, rgba(10, 16, 30, 0.96), rgba(7, 12, 24, 0.9)),
    rgba(6, 9, 19, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.page-view .toolbar > div:not(.ad-banner) {
  position: static;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.page-view .toolbar .position-container,
.page-view .toolbar .time-interval-container,
.page-view .toolbar .chart-settings-container {
  min-height: 38px;
  padding: 3px 4px 3px 10px;
  border: 1px solid rgba(150, 176, 220, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease;
}

.page-view .toolbar .position-container:hover,
.page-view .toolbar .time-interval-container:hover,
.page-view .toolbar .chart-settings-container:hover {
  border-color: rgba(77, 215, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.page-view .toolbar label {
  margin: 0;
  color: #738198;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-view .toolbar input,
.page-view .toolbar select {
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0 30px 0 10px;
  border: 0;
  border-radius: 8px;
  color: #e9f2ff;
  background-color: rgba(3, 8, 18, 0.72);
  box-shadow: none;
  font-size: 12px;
}

.page-view .toolbar input {
  width: 62px;
  padding-right: 8px;
}

.page-view .toolbar select {
  width: 96px;
}

.page-view .toolbar input:focus,
.page-view .toolbar select:focus {
  box-shadow: 0 0 0 2px rgba(77, 215, 255, 0.12);
}

.page-view .toolbar button {
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(77, 215, 255, 0.26);
  border-radius: 8px;
  color: #bcefff;
  background: rgba(77, 215, 255, 0.08);
  box-shadow: none;
  font-size: 11px;
}

.page-view .toolbar button:hover {
  color: #effcff;
  border-color: rgba(77, 215, 255, 0.55);
  background: rgba(77, 215, 255, 0.15);
  transform: none;
}

/* Navigation buttons inside the big-screen toolbar must keep the same states as
   the home navigation instead of inheriting the toolbar action-button styling. */
.ct-app.page-view .toolbar .toolbar-nav .nav-dropdown-trigger:not(.active) {
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 8px;
  border: 0 !important;
  color: var(--ct-muted);
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 500;
  transform: none;
}

.ct-app.page-view .toolbar .toolbar-nav .nav-dropdown:hover .nav-dropdown-trigger:not(.active),
.ct-app.page-view .toolbar .toolbar-nav .nav-dropdown:focus-within .nav-dropdown-trigger:not(.active) {
  color: var(--ct-text);
  background: transparent !important;
}

.page-view .toolbar .save-button {
  border-color: rgba(39, 214, 155, 0.32);
  color: #c9ffec;
  background: rgba(39, 214, 155, 0.09);
}

.page-view .toolbar .save-button:hover {
  border-color: rgba(39, 214, 155, 0.58);
  color: #effff8;
  background: rgba(39, 214, 155, 0.16);
}

.page-view .nav-item.home-button {
  position: static;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  line-height: 36px;
}

.page-view .toolbar .join-community {
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  line-height: 36px;
  white-space: nowrap;
}

.page-view .toolbar::before {
  margin-right: 22px;
}

.page-view .toolbar > div.toolbar-nav {
  flex: 0 0 auto;
  gap: 5px;
  margin-left: 0;
}

.page-view .toolbar > div.toolbar-nav .nav-item {
  height: 34px;
  padding: 0 8px;
  line-height: 1;
  white-space: nowrap;
}

.page-view .toolbar > .join-community {
  flex: 0 0 auto;
  width: 92px;
  height: 36px;
  min-height: 36px;
  margin-left: auto;
  padding: 0 13px;
  border-radius: 9px;
  line-height: 1;
}

.page-view .chart-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1480px, calc(100% - 36px));
  margin: 78px auto 0;
  padding: 0;
}

.page-view .seo-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-view .chart-item {
  overflow: hidden;
  border: 1px solid var(--ct-border);
  border-radius: 14px;
  background: var(--ct-panel-solid);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
  resize: none;
}

.page-view .chart-item.is-resizing {
  user-select: none;
  border-color: rgba(77, 215, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(77, 215, 255, 0.1), 0 18px 52px rgba(0, 0, 0, 0.35);
}

.page-view .chart-item.is-dragging {
  z-index: 10001;
  opacity: 0.72;
  border-color: var(--ct-cyan);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.page-view .chart-item.drag-target {
  border-color: rgba(77, 215, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(77, 215, 255, 0.09);
}

.page-view .chart-drop-placeholder {
  flex: 0 0 auto;
  border: 1px dashed rgba(77, 215, 255, 0.72);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(77, 215, 255, 0.08), rgba(109, 124, 255, 0.04)),
    rgba(8, 18, 31, 0.65);
  box-shadow: inset 0 0 30px rgba(77, 215, 255, 0.045);
}

.page-view .chart-drag-handle {
  position: absolute;
  top: 6px;
  right: 101px;
  z-index: 10002;
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(150, 176, 220, 0.2);
  border-radius: 7px;
  background: rgba(6, 14, 25, 0.78);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  cursor: grab;
  touch-action: none;
  transform: none;
}

.page-view .chart-drag-handle::before {
  width: 10px;
  height: 10px;
  content: "";
  background:
    radial-gradient(circle, rgba(205, 237, 255, 0.8) 1px, transparent 1.25px)
    0 0 / 5px 5px;
}

.page-view .chart-drag-handle:hover {
  border-color: rgba(77, 215, 255, 0.58);
  background: rgba(12, 37, 52, 0.94);
  transform: none;
}

.page-view .chart-drag-handle:hover::before {
  background:
    radial-gradient(circle, rgba(231, 251, 255, 0.95) 1px, transparent 1.25px)
    0 0 / 5px 5px;
}

.page-view .chart-drag-handle:active {
  cursor: grabbing;
}

.page-view .remove-btn {
  position: absolute;
  top: 6px;
  right: 73px;
  z-index: 10002;
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(150, 176, 220, 0.2);
  border-radius: 7px;
  color: rgba(205, 237, 255, 0.86);
  background: rgba(6, 14, 25, 0.78);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transform: none;
}

.page-view .remove-btn:hover {
  border-color: rgba(77, 215, 255, 0.58);
  color: #e7fbff;
  background: rgba(12, 37, 52, 0.94);
  transform: none;
}

.page-view .chart-resize-handle {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 10002;
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(150, 176, 220, 0.2);
  border-radius: 7px;
  color: rgba(205, 237, 255, 0.86);
  background: rgba(6, 14, 25, 0.78);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  cursor: nwse-resize;
  touch-action: none;
  transform: none;
}

.page-view .chart-resize-handle::before {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  opacity: 0.9;
}

.page-view .chart-resize-handle:hover {
  border-color: rgba(77, 215, 255, 0.58);
  color: #e7fbff;
  background: rgba(12, 37, 52, 0.94);
  transform: none;
}

.page-view .add-chart {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  border: 1px solid rgba(77, 215, 255, 0.5);
  border-radius: 50%;
  color: #dffaff;
  background: linear-gradient(145deg, #162b3b, #111933);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42), 0 0 30px rgba(77, 215, 255, 0.1);
  font-size: 25px;
}

.page-view .symbol-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20000;
  width: min(430px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--ct-border-strong);
  border-radius: 20px;
  color: var(--ct-text);
  background: rgba(9, 15, 28, 0.96);
  box-shadow: var(--ct-shadow);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px);
}

.page-view .symbol-selector h3 {
  color: var(--ct-text);
  font-size: 18px;
}

.page-view .symbol-selector input {
  width: 100%;
  border-color: var(--ct-border);
  color: var(--ct-text);
  background: rgba(3, 8, 17, 0.8);
}

.page-view .symbol-selector ul {
  border-color: var(--ct-border);
  background: rgba(3, 8, 17, 0.72);
}

.page-view .symbol-selector li {
  color: var(--ct-muted);
  border-color: var(--ct-border);
}

.page-view .symbol-selector li:hover {
  color: var(--ct-text);
  background: rgba(77, 215, 255, 0.08);
}

/* Event simulator */
.page-bet .container {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.45fr);
  gap: 18px;
  width: min(1520px, calc(100% - 36px));
  max-width: none;
  margin: 24px auto 60px;
  padding: 0;
}

.page-bet .chart-container {
  grid-column: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-panel);
  box-shadow: var(--ct-shadow);
}

.page-bet .ranking-board {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 0;
  max-height: 760px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-panel);
  box-shadow: var(--ct-shadow);
}

.page-bet .predict-container {
  grid-column: 1 / -1;
  width: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  background: var(--ct-panel);
  box-shadow: var(--ct-shadow);
}

.page-bet .ranking-board h3,
.page-bet .predict-container h3 {
  margin: 0 0 16px;
  color: var(--ct-text);
  font-size: 16px;
  font-weight: 600;
}

.page-bet .ranking-board h3::before,
.page-bet .predict-container h3::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  content: "";
  background: var(--ct-cyan);
  box-shadow: 0 0 10px var(--ct-cyan);
}

.page-bet .guess-container {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  background: rgba(4, 9, 18, 0.68);
}

.page-bet .controls {
  gap: 12px;
}

.page-bet .controls > label {
  color: var(--ct-muted);
  font-size: 12px;
}

.page-bet .radio-inputs {
  padding: 4px;
  border: 1px solid var(--ct-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.page-bet .radio {
  min-height: auto;
  color: var(--ct-muted);
}

.page-bet .radio input:checked + .name {
  color: #e8fbff;
  background: rgba(77, 215, 255, 0.13);
  box-shadow: none;
}

.page-bet #usdt-count {
  border-color: var(--ct-border);
  color: var(--ct-text);
  background: rgba(5, 10, 20, 0.8);
}

.page-bet .buysell-button-container button {
  min-width: 100px;
  border: 1px solid transparent;
}

.page-bet #up {
  color: #bfffe9;
  border-color: rgba(39, 214, 155, 0.3);
  background: rgba(39, 214, 155, 0.12);
}

.page-bet #down {
  color: #ffd1d8;
  border-color: rgba(255, 100, 124, 0.3);
  background: rgba(255, 100, 124, 0.11);
}

.page-bet #summary {
  margin: 15px 0 0;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  color: var(--ct-muted);
  background: rgba(255, 255, 255, 0.025);
}

.page-bet .table-container {
  overflow: auto;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
}

.page-bet table,
.page-bet #ranking-list table,
.page-bet .predict-container table {
  width: 100%;
  border: 0;
  color: var(--ct-text);
  background: transparent;
}

.page-bet table th,
.page-bet table td,
.page-bet #ranking-list th,
.page-bet #ranking-list td {
  border-width: 0 0 1px;
  border-color: var(--ct-border);
  background: transparent;
}

.page-bet tr:nth-child(even),
.page-bet #ranking-list tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.page-bet #strategyTypeSelect {
  border-color: var(--ct-border);
  color: var(--ct-text);
  background-color: rgba(5, 10, 20, 0.8);
}

.page-bet #clear-modal .modal-content,
.ct-app .modal {
  border: 1px solid var(--ct-border-strong);
  border-radius: 20px;
  color: var(--ct-text);
  background: rgba(9, 15, 28, 0.98);
  box-shadow: var(--ct-shadow);
}

@media (max-width: 1100px) {
  .ct-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 78px;
  }

  .ct-hero-meta {
    justify-content: flex-start;
  }

  .page-view .toolbar {
    flex-wrap: wrap;
  }

  .page-bet .container {
    grid-template-columns: 1fr;
  }

  .page-bet .chart-container,
  .page-bet .ranking-board,
  .page-bet .predict-container {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .ct-app .navbar,
  .ct-app.page-view .toolbar {
    position: relative;
    padding: 12px 16px;
  }

  .ct-app .navbar::before,
  .ct-app.page-view .toolbar::before {
    width: 100%;
    margin: 0 0 5px;
  }

  .ct-app .navbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .ct-app .navbar .nav-links {
    flex: 1 1 auto;
    flex-wrap: wrap;
  }

  .ct-hero,
  .page-home #content,
  .page-view .chart-container,
  .page-bet .container {
    width: min(100% - 24px, 1180px);
  }

  .ct-hero {
    padding: 58px 0 44px;
  }

  .ct-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .ct-hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ct-metric {
    min-width: 0;
    padding: 16px;
  }

  .page-home .card-container {
    grid-template-columns: 1fr;
  }

  .page-home .card {
    height: auto;
    min-height: auto;
  }

  .page-home .card-icon {
    height: 205px;
  }

  .page-home .exchange-invite-container {
    align-items: stretch;
    flex-direction: column;
  }

  .page-view .toolbar > div:not(.ad-banner) {
    flex-wrap: wrap;
  }

  .page-view .chart-container {
    margin-top: 12px;
  }

  .page-view .chart-item {
    min-width: 100% !important;
  }

  .page-bet .container {
    margin-top: 12px;
  }

  .page-bet .controls {
    align-items: stretch;
  }

  .page-bet .radio-inputs {
    width: 100%;
    overflow-x: auto;
  }
}

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