/* Copy Pro Investors */
.cab-copy-page,
.cab-copy-bot-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 4px 48px;
  color: #e8eaed;
}
.cab-copy-head h1,
.cab-copy-bot-name {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cab-copy-head p {
  margin: 0 0 18px;
  color: #9aa3ad;
  font-size: 0.95rem;
  max-width: 52ch;
}
.cab-copy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.cab-copy-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #2a313a;
  color: #c5ccd3;
  text-decoration: none;
  font-size: 0.85rem;
  background: #161a20;
}
.cab-copy-chip:hover { border-color: #3d4652; color: #fff; }
.cab-copy-chip.is-active {
  background: #1e3a2f;
  border-color: #2f6b4f;
  color: #b6f0d0;
}
.cab-copy-section { margin-bottom: 28px; }
.cab-copy-section-head h2,
.cab-copy-panel h2,
.cab-copy-rank-block h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
}
.cab-copy-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.cab-copy-carousel::-webkit-scrollbar {
  height: 6px;
}
.cab-copy-carousel::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
.cab-copy-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.cab-copy-carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}
.cab-copy-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, #1a1f27 0%, #12161c 100%);
  border: 1px solid #262c35;
  color: inherit;
  min-height: 210px;
  transition: border-color .15s ease, transform .15s ease;
}
.cab-copy-card:hover {
  border-color: #3a4554;
  transform: translateY(-1px);
}
.cab-copy-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.cab-copy-card-cta {
  display: flex;
  justify-content: center;
  margin-top: 2px;
  padding-top: 2px;
}
.cab-copy-card-top { display: flex; justify-content: space-between; gap: 8px; }
.cab-copy-card-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cab-copy-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #0f1318;
  flex: 0 0 auto;
}
.cab-copy-av.sm { width: 36px; height: 36px; }
.cab-copy-av.lg { width: 72px; height: 72px; }
.cab-copy-av-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #9ecbff;
  background: #243041;
}

/* Club frames on Copy Pro avatars */
.cab-copy-av-wrap.cab-avatar-club {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 52px;
  height: 60px;
  overflow: visible;
  background: transparent;
}
.cab-copy-av-wrap.cab-avatar-club.sm {
  width: 40px;
  height: 46px;
}
.cab-copy-av-wrap.cab-avatar-club .cab-avatar-club-inner {
  position: absolute;
  inset: 9% 12% 9% 12%;
  display: grid;
  place-items: center;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: #0f1318;
}
.cab-copy-av-wrap.cab-avatar-club .cab-avatar-club-inner .cab-copy-av {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
}
.cab-copy-av-wrap.cab-avatar-club .cab-avatar-club-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
.cab-copy-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.98rem;
}
.cab-copy-verified { color: #e6b422; flex: 0 0 auto; }
.cab-copy-style { color: #8b949e; font-size: 0.8rem; }
.cab-copy-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cab-copy-tags span {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #333b46;
  color: #aeb6bf;
}
.cab-copy-bio {
  margin: 0;
  font-size: 0.82rem;
  color: #9aa3ad;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cab-copy-card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #242a33;
}
.cab-copy-return strong,
.cab-copy-trades strong,
.cab-copy-bot-stats strong {
  display: block;
  font-size: 1.05rem;
}
.cab-copy-return span,
.cab-copy-trades span,
.cab-copy-bot-stats span {
  font-size: 0.72rem;
  color: #8b949e;
}
.is-up { color: #3dd68c; }
.is-down { color: #f07178; }
.is-flat { color: #c5ccd3; }

.cab-copy-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.cab-copy-rank-block {
  background: #151920;
  border: 1px solid #242a33;
  border-radius: 12px;
  padding: 12px;
}
.cab-copy-rank-list { display: flex; flex-direction: column; gap: 4px; }
.cab-copy-rank-list-wide { max-width: 720px; }
.cab-copy-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 8px;
  color: inherit;
}
.cab-copy-rank-row.has-cta {
  grid-template-columns: minmax(0, 1fr) auto;
}
.cab-copy-rank-row:hover { background: #1b2129; }
.cab-copy-rank-link {
  display: grid;
  grid-template-columns: 28px 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.cab-copy-rank-num { color: #6b7380; font-size: 0.85rem; text-align: center; }
.cab-copy-rank-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cab-copy-rank-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 560;
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cab-copy-rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  min-width: 0;
}
.cab-copy-rank-ret { font-size: 0.82rem; white-space: nowrap; }
.cab-copy-rank-closed {
  display: inline-block;
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid #2a313a;
  font-size: 0.75rem;
  color: #8b949e;
  white-space: nowrap;
}
.cab-copy-rank-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.cab-copy-empty { color: #8b949e; font-size: 0.9rem; margin: 0; }
.cab-copy-back {
  display: inline-block;
  margin-bottom: 14px;
  color: #9ecbff;
  text-decoration: none;
  font-size: 0.88rem;
}
.cab-copy-bot-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: start;
  margin-bottom: 16px;
}
.cab-copy-bot-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #151920;
  border: 1px solid #242a33;
}
@media (min-width: 800px) {
  .cab-copy-bot-head { grid-template-columns: auto 1fr auto; }
  .cab-copy-bot-stats {
    grid-column: auto;
    flex-direction: column;
    min-width: 140px;
  }
}
.cab-copy-bot-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #242a33;
}
.cab-copy-bot-tabs a {
  padding: 10px 14px;
  color: #9aa3ad;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.92rem;
}
.cab-copy-bot-tabs a.is-active {
  color: #fff;
  border-bottom-color: #3dd68c;
}
.cab-copy-panel {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #151920;
  border: 1px solid #242a33;
}
.cab-copy-spark-wrap { margin-top: 8px; }
.cab-copy-activity { list-style: none; margin: 0; padding: 0; }
.cab-copy-activity li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #242a33;
  font-size: 0.88rem;
}
.cab-copy-activity li:last-child { border-bottom: 0; }
.cab-copy-activity strong { display: block; margin-bottom: 2px; }
.cab-copy-activity span { color: #9aa3ad; }
.cab-copy-act-meta {
  text-align: right;
  white-space: nowrap;
  font-size: 0.8rem;
}
.cab-copy-act-meta time { display: block; color: #6b7380; margin-top: 2px; }
.cab-copy-table-wrap { overflow-x: auto; }
.cab-copy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.cab-copy-table th,
.cab-copy-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #242a33;
}
.cab-copy-table th { color: #8b949e; font-weight: 500; }

/* Subscribed strip + copy-trades modal */
.cab-copy-sub-empty {
  margin: 0 0 8px;
  color: #9aa3ad;
  font-size: 0.92rem;
}
.cab-prof-copy-actions {
  margin-top: 12px;
}
.cab-prof-copy-actions .btn-deposit {
  width: 100%;
  justify-content: center;
}
.cab-prof-copy-actions .btn-deposit.is-copying {
  background: rgba(19, 196, 92, .22);
  border-color: #2f6b4f;
}

/* Compact Copy trades on list/carousel (~40% smaller than profile) */
.cab-copy-page .cab-copy-sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--prof-green, #13c45c);
  color: var(--prof-green, #13c45c);
  background: rgba(19, 196, 92, 0.1);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transform: scale(0.6);
  transform-origin: center center;
  margin: -10px 0;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.cab-copy-page .cab-copy-sub-btn:hover {
  filter: brightness(1.06);
  background: rgba(19, 196, 92, 0.16);
}
.cab-copy-page .cab-copy-sub-btn.is-copying {
  background: rgba(19, 196, 92, 0.22);
  border-color: #2f6b4f;
}
.cab-copy-page .cab-copy-sub-btn.is-rank {
  margin: -8px -4px -8px 0;
}
.cab-copy-sub-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.cab-copy-sub-lead {
  margin: 0 0 14px;
  color: #e8eaed;
  font-size: 0.98rem;
}
.cab-copy-sub-explain {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #12161c;
  border: 1px solid #2a313a;
  color: #c5ccd3;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cab-copy-sub-explain p { margin: 0 0 8px; }
.cab-copy-sub-explain ul {
  margin: 0;
  padding-left: 1.15rem;
}
.cab-copy-sub-explain li { margin: 4px 0; }
.cab-copy-sub-err {
  margin: 0 0 10px;
  color: #ff8f8f;
  font-size: 0.88rem;
}
.cab-copy-sub-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
#cab-copy-unsub-confirm,
.cab-copy-unsub-confirm {
  border-color: #c45c5c;
  color: #ffb4b4;
  background: rgba(196, 92, 92, 0.12);
}
#cab-copy-unsub-confirm:hover,
.cab-copy-unsub-confirm:hover {
  background: rgba(196, 92, 92, 0.2);
  filter: none;
}

/* Subscribe mode picker: % vs fixed */
.cab-copy-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.cab-copy-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #2a313a;
  background: #12161c;
  color: #c5ccd3;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.cab-copy-mode-card:hover {
  border-color: #3d4652;
}
.cab-copy-mode-card.is-active {
  border-color: #2f6b4f;
  background: rgba(19, 196, 92, 0.08);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 79, 0.35);
}
.cab-copy-mode-name {
  color: #e8eaed;
  font-size: 0.95rem;
  font-weight: 650;
}
.cab-copy-mode-desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #9aa3ad;
}
.cab-copy-mode-ex {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6b7380;
}
.cab-copy-fixed-box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #12161c;
  border: 1px solid #2a313a;
}
.cab-copy-fixed-box .poly-modal-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: #9aa3ad;
}
.cab-copy-fixed-box .poly-stake-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a313a;
  background: #0f1318;
  color: #e8eaed;
  font-size: 1rem;
  box-sizing: border-box;
}
.cab-copy-fixed-box .poly-modal-quick,
.cab-copy-fixed-box .pm-tp-quick {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cab-copy-fixed-box .pm-tp-quick-btn {
  appearance: none;
  border: 1px solid #2a313a;
  background: #1a1f27;
  color: #c5ccd3;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.cab-copy-fixed-box .pm-tp-quick-btn:hover {
  border-color: #3d4652;
  color: #fff;
}
.cab-copy-fixed-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #8b949e;
}
@media (max-width: 560px) {
  .cab-copy-mode-row {
    grid-template-columns: 1fr;
  }
}
