/* Copy Trading page — WEEX-style */

.ct-page {
  background: var(--bg-dark);
  min-height: calc(100vh - 64px);
}

/* Hero */
.ct-hero {
  padding: 96px 0 32px;
  background: var(--bg-dark);
}

.ct-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: center;
}

.ct-hero-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.ct-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ct-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.ct-hero-link:hover {
  color: var(--dark-text);
}

.ct-hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1a1400 0%, #111 50%, #0a0a0a 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  min-height: 160px;
}

.ct-banner-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  min-height: 160px;
}

.ct-banner-kicker {
  font-size: 12px;
  color: var(--primary-brown);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.ct-banner-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  max-width: 220px;
}

.ct-banner-cta {
  display: inline-block;
  padding: 8px 16px;
  background: var(--btn-solid-bg, #fff);
  color: var(--btn-solid-text, #111);
  border-radius: var(--pill-radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.ct-banner-cta:hover {
  background: var(--btn-solid-hover, #f0f0f0);
}

.ct-banner-art {
  width: 120px;
  height: 100px;
  background: radial-gradient(circle at 30% 40%, rgba(245, 197, 24, 0.35), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(0, 192, 118, 0.2), transparent 55%);
  flex-shrink: 0;
}

.ct-banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.ct-banner-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
}

.ct-banner-dots span.active {
  background: var(--primary-brown);
}

/* Toolbar */
.ct-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.ct-tabs {
  display: flex;
  gap: 24px;
}

.ct-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
}

.ct-tab.active {
  color: var(--dark-text);
}

.ct-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary-brown);
}

.ct-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 240px;
  color: var(--light-text);
}

.ct-search {
  flex: 1;
  background: none;
  border: none;
  color: var(--dark-text);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.ct-search::placeholder {
  color: var(--light-text);
}

/* Sections */
.ct-section {
  margin-bottom: 36px;
}

.ct-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ct-section-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-text);
}

.ct-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  color: var(--dark-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.ct-scroll-btn:hover {
  border-color: var(--primary-brown);
  background: var(--bg-card);
}

.ct-track-wrap {
  overflow: hidden;
}

.ct-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.ct-track::-webkit-scrollbar {
  display: none;
}

/* Trader card — WEEX exact */
.ct-trader-card {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  background: #000;
  border: 1px solid #1a1a1a;
  border-radius: 24px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.ct-all-grid .ct-trader-card {
  flex: unset;
}

.ct-trader-card:hover {
  border-color: #2a2a2a;
}

.ct-trader-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.ct-trader-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.ct-trader-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.ct-trader-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141414;
  border: 1px solid #222;
  font-weight: 700;
  font-size: 18px;
  color: #666;
}

.ct-trader-rank {
  position: absolute;
  bottom: -4px;
  left: -4px;
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: rgba(80, 80, 80, 0.92);
  padding: 3px 6px;
  border-radius: 4px;
}

.ct-trader-meta {
  min-width: 0;
  flex: 1;
  padding-top: 4px;
}

.ct-trader-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.ct-trader-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.ct-trader-badge--level {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: #111;
  background: #f5c518;
}

.ct-trader-followers {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  color: #808080;
  line-height: 1.2;
}

.ct-trader-followers svg {
  flex-shrink: 0;
  color: #666;
}

.ct-roi-block {
  margin-bottom: 18px;
}

.ct-roi-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ct-roi-label {
  font-size: 11px;
  font-weight: 500;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.ct-roi-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ct-trader-roi-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ct-trader-roi-value.up {
  color: #00c076;
}

.ct-trader-roi-value.down {
  color: #ff4d4f;
}

.ct-sparkline {
  width: 112px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.ct-trader-stats {
  margin: 0;
  padding: 0;
}

.ct-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.3;
}

.ct-stat-row dt {
  color: #808080;
  font-weight: 400;
}

.ct-stat-row dd {
  margin: 0;
  font-weight: 500;
  color: #fff;
}

.ct-trader-divider {
  height: 1px;
  background: #1a1a1a;
  margin: 6px 0 16px;
}

.ct-trader-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  min-height: 24px;
}

.ct-trader-assets {
  display: flex;
  align-items: center;
}

.ct-asset-icon {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  object-fit: cover;
  margin-left: -4px;
  flex-shrink: 0;
  display: block;
}

.ct-asset-icon:first-child {
  margin-left: 0;
}

.ct-profit-share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.ct-profit-share-icon {
  display: block;
  flex-shrink: 0;
}

.ct-copy-btn {
  display: block;
  text-align: center;
  padding: 13px 16px;
  background: var(--btn-glass-bg, rgba(255, 255, 255, 0.07));
  color: var(--btn-glass-text, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--btn-glass-border, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  margin-top: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}

.ct-trader-card:hover .ct-copy-btn {
  background: var(--btn-glass-hover, rgba(255, 255, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* All traders grid */
.ct-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.ct-empty {
  color: var(--light-text);
  font-size: 14px;
  padding: 24px 0;
}

/* How it works — WEEX guide section */
.ct-how {
  display: flex;
  justify-content: center;
  padding: 96px 0 80px;
}

.ct-how-inner {
  max-width: 1200px;
  width: 100%;
}

.ct-how-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.ct-how-grid {
  display: flex;
  margin-top: 48px;
}

.ct-how-card {
  flex: 1;
  text-align: center;
  padding-right: 48px;
}

.ct-how-card:last-child {
  padding-right: 0;
}

.ct-how-icon {
  display: flex;
  justify-content: center;
}

.ct-how-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}

.ct-how-card h3 {
  margin: 24px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #fff;
}

.ct-how-card p {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 16px;
  color: #808080;
}

/* Responsive */
@media (max-width: 900px) {
  .ct-hero-inner {
    grid-template-columns: 1fr;
  }

  .ct-hero-banner {
    max-width: 100%;
  }

  .ct-how-grid {
    flex-direction: column;
    gap: 40px;
    margin-top: 32px;
  }

  .ct-how-card {
    padding-right: 0;
  }

  .ct-how-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .ct-hero {
    padding-top: 80px;
  }

  .ct-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ct-search-wrap {
    min-width: 0;
    width: 100%;
  }

  .ct-trader-card {
    flex: 0 0 300px;
  }
}
