html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
}

.arena-container {
  flex: 1;
  width: 100%;
  padding: 1rem;
}

.kol-arena {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.trending-carousel { overflow: hidden; white-space: nowrap; margin-bottom: 1rem; padding-right: 2rem; position: relative; }
.trending-token-wrapper { display: flex; gap: 10px; }
.trending-token-card { flex: 0 0 auto; width: 250px; background: #222; padding: 5px 10px; border-radius: 8px; font-size: 0.8rem; color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.4); margin-right: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; }
.trending-token-card .token-name { font-weight: bold; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }
.trending-token-card .token-ticker { color: #df3079; text-decoration: none; text-align: center; transition: color 0.2s ease; }
.trending-token-card .token-ticker:hover { color: #52d38e; text-decoration: underline; }

.kol-card {
  background: transparent !important;
  border: 1px solid #444;
  padding: 1rem;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  text-align: left;
  cursor: url('https://cdn-icons-png.flaticon.com/512/3891/3891889.png'), grab;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  min-height: 150px;
}

.kol-card-left {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.kol-card-right {
  flex-grow: 1;
}

.kol-card:hover { transform: scale(1.03); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.kol-card.dragover { border: 2px dashed #555; transform: scale(1.05); }
.kol-card.dropped { transform: scale(0.95); opacity: 0.7; }
.kol-icon { width: 60px; height: 60px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s ease; margin-bottom: 0; }
.kol-icon:hover { border-color: var(--accent-turquoise); }
.kol-handle { font-weight: normal; color: #52d38e; font-size: 1rem; cursor: pointer; text-decoration: none; word-break: break-all; }
.kol-handle:hover { text-decoration: underline; }

.kol-activity-list {
  width: 100%;
  padding: 0;
  margin: 0;
}

.kol-transaction-item {
  font-size: 0.75rem;
  color: #bbb;
  margin-bottom: 5px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-all;
}
.kol-transaction-item:last-child {
  margin-bottom: 0;
}

.kol-transaction-item .kolsignal-ticker {
  color: #df3079;
  text-decoration: none;
  font-weight: 500;
}
.kol-transaction-item .kolsignal-ticker:hover {
  color: #52d38e;
  text-decoration: underline;
}

.hide-btn { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.5); border: none; color: #aaa; font-size: 16px; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; opacity: 0; transition: opacity 0.3s, background-color 0.2s ease; cursor: pointer; z-index: 5; }
.kol-card:hover .hide-btn { opacity: 0.7; }
.hide-btn:hover { opacity: 1; background-color: rgba(255, 0, 0, 0.7); color: #fff; }

.kol-badge-container { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 2; } .kol-rank-badge, .kol-crown-badge { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.3); } .kol-badge-right { position: absolute; top: 8px; right: 30px; font-size: 1.2rem; z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,0.5); } .kol-crown-badge { background: transparent !important; width: auto !important; height: auto !important; border-radius: 0 !important; padding: 0 !important; display: inline-block !important; font-size: 1.2rem !important; line-height: 1 !important; box-shadow: none !important; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.glow-green-strong { animation: glowGreenStrong 2s infinite; } .glow-green-medium { animation: glowGreenMedium 2s infinite; } .glow-green-light  { animation: glowGreenLight 2s infinite; } .glow-red-strong   { animation: glowRedStrong 2s infinite; } .glow-red-medium   { animation: glowRedMedium 2s infinite; } .glow-red-light    { animation: glowRedLight 2s infinite; } @keyframes glowGreenStrong { 0% { box-shadow: 0 0 10px #51d38f; } 50% { box-shadow: 0 0 30px #51d38f; } 100% { box-shadow: 0 0 10px #51d38f; } } @keyframes glowGreenMedium { 0% { box-shadow: 0 0 7px #51d38f; } 50% { box-shadow: 0 0 20px #51d38f; } 100% { box-shadow: 0 0 7px #51d38f; } } @keyframes glowGreenLight { 0% { box-shadow: 0 0 5px #51d38f; } 50% { box-shadow: 0 0 10px #51d38f; } 100% { box-shadow: 0 0 5px #51d38f; } } @keyframes glowRedStrong { 0% { box-shadow: 0 0 10px #ff0000; } 50% { box-shadow: 0 0 30px #ff0000; } 100% { box-shadow: 0 0 10px #ff0000; } } @keyframes glowRedMedium { 0% { box-shadow: 0 0 7px #ff0000; } 50% { box-shadow: 0 0 20px #ff0000; } 100% { box-shadow: 0 0 7px #ff0000; } } @keyframes glowRedLight { 0% { box-shadow: 0 0 5px #ff0000; } 50% { box-shadow: 0 0 10px #ff0000; } 100% { box-shadow: 0 0 5px #ff0000; } }

.pnl-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; justify-content: center; align-items: center; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 10000; overflow-y: auto; padding: 20px; } .pnl-modal.show { display: flex; } .pnl-modal-content { perspective: 800px; overflow: visible; max-width: 330px; width: 100%; display: flex; flex-direction: column; align-items: center; } .pnl-card { width: 100%; background: #110622; border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.8); transform: rotateY(-90deg) scale(0.9); transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 2px solid transparent; background-image: linear-gradient(#110622, #110622), linear-gradient(90deg, #ff0080, #8000ff); background-origin: padding-box, border-box; background-clip: padding-box, border-box; overflow: visible; margin-bottom: 1rem; } .pnl-modal.show .pnl-card { transform: rotateY(0deg) scale(1); } .pnl-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; } .pnl-avatar-wrapper { display: inline-block; padding: 2px; background: linear-gradient(90deg, #ff0080, #8000ff); border-radius: 50%; flex-shrink: 0; } .pnl-avatar { display: block; width: 80px; height: 80px; border-radius: 50%; background-color: #333; } .pnl-handle { font-size: 1.5rem; font-weight: 700; color: #f40b80; letter-spacing: 0.05em; display: flex; align-items: center; flex-grow: 1; min-width: 0; word-break: break-all; } .pnl-x-icon { width: 16px; height: 16px; margin-left: 0.5rem; flex-shrink: 0; opacity: 0.8; transition: opacity 0.2s ease; } .pnl-handle a:hover .pnl-x-icon { opacity: 1; } .pnl-subhead { font-size: 1rem; color: #723f9e; text-align: center; margin: 0 0 0.25rem; } .pnl-headline { font-size: 3.7rem; line-height: 1.1; margin: 0 0 1rem; color: #5ee246; font-weight: 700; width: 100%; text-align: center; } .pnl-headline.negative { color: #ff1921; } .pnl-stats { display: flex; justify-content: space-around; align-items: center; margin-bottom: 1.5rem; overflow: visible; gap: 10px; }  .pnl-stats + .pnl-stats { font-size: 0.9rem; } .pnl-stats + .pnl-stats .stat-value { font-size: 1.2rem; } .pnl-stats .stat-item { text-align: center; display: flex; flex-direction: column; align-items: center; overflow: visible; flex: 1; } .stat-label { font-size: 0.9rem; color: #713897; margin-bottom: 0.25rem; white-space: nowrap; } .stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1.1; } .stat-item.stat-wins .stat-label { color: #783f9b; } .stat-item.stat-wins .stat-value { color: #f30d6c; } .stat-item.stat-winrate .stat-label { color: #713897; } .stat-item.stat-winrate .stat-value { color: #0093dc; } .stat-item.stat-rank .hexagon-rank { width: 6.5rem; height: 6rem; } .stat-item.stat-rank .hexagon-rank svg { width: 100%; height: 100%; display: block; overflow: visible; } .stat-item.stat-rank .hexagon-rank polygon { stroke: #39FF14; stroke-width: 6; fill: transparent; } .stat-item.stat-rank .hexagon-rank .hexagon-label, .stat-item.stat-rank .hexagon-rank .hexagon-value { fill: #39FF14; font-family: sans-serif; } .stat-item.stat-rank .hexagon-rank .hexagon-label { font-size: 0.75rem; } .stat-item.stat-rank .hexagon-rank .hexagon-value { font-size: 2rem; font-weight: 700; } .stat-item.stat-7d .stat-label, .stat-item.stat-30d .stat-label, .stat-item.stat-alltime .stat-label { color: #713897; } .stat-item.stat-7d .stat-value { color: #5ee246; } .stat-item.stat-30d .stat-value { color: #0093dc; } .stat-item.stat-alltime .stat-value { color: #f18829; } .pnl-divider { width: 100%; height: 1px; background: var(--border-color); margin: 1rem 0 1rem; } .pnl-footer { display: flex; justify-content: space-between; align-items: center; } .pnl-footer-text { display: flex; flex-direction: column; align-items: flex-start; } .pnl-tracked-by, .pnl-ws { font-size: 0.75rem; color: rgba(255,255,255,0.6); font-weight: 400; margin: 0; line-height: 1.2; } .pnl-footer .pnl-qr img { width: 48px; height: 48px; border-radius: 4px; display: block; } .pnl-share-x-btn { display: inline-flex; align-items: center; background-color: rgba(29, 161, 242, 0.15); border: 1px solid rgba(29, 161, 242, 0.3); color: #eee; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; text-decoration: none; width: fit-content; margin: 1rem auto 0; transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease; cursor: pointer; opacity: 0.8; } .pnl-share-x-btn:hover { opacity: 1.0; transform: scale(1.05); background-color: rgba(29, 161, 242, 0.3); }

#quickGuidePopup { display: none; position: absolute; bottom: calc(100% + 5px); right: 0; transform: translateX(0); background: rgba(20, 20, 25, 0.95); color: #fff; font-size: 12px; padding: 10px 15px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.7); z-index: 10001; min-width: 300px; white-space: pre-wrap; border: 1px solid var(--border-color); backdrop-filter: blur(3px); } #quickGuidePopup.visible { display: block; } #sortControls .right-buttons { position: relative; display: inline-block; }

@media screen and (max-width: 400px) { .pnl-modal-content { max-width: 95vw; } .pnl-card { padding: 1rem; margin-bottom: 0.5rem;} .pnl-header { flex-direction: column; gap: 0.5rem; text-align: center; } .pnl-avatar { width: 60px; height: 60px; } .pnl-handle { font-size: 1.2rem; justify-content: center; } .pnl-headline { font-size: 3rem; } .pnl-stats { flex-direction: column; gap: 1rem; align-items: center;} .pnl-stats .stat-item { padding-left: 0; padding-right: 0; } .stat-item.stat-rank .hexagon-rank { width: 5rem; height: 4.6rem; } .stat-item.stat-rank .hexagon-rank .hexagon-value { font-size: 1.5rem; } .stat-value { font-size: 1.5rem; } .pnl-stats + .pnl-stats .stat-value { font-size: 1rem; } .pnl-footer { flex-direction: column; gap: 0.5rem; align-items: center; } .pnl-share-x-btn { order: 3; margin-top: 1rem;} .pnl-qr { order: 1; } .pnl-footer-text { order: 2; align-items: center;} #quickGuidePopup { right: 5px; bottom: calc(100% + 5px); left: auto; max-width: calc(100vw - 40px); transform: translateX(0); } }

.view-toggle-container { display: flex; justify-content: center; margin-bottom: 1.5rem; gap: 0.5rem; }
.view-toggle-btn { padding: 0.5rem 1rem; border: 1px solid var(--border-color); background-color: var(--bg-secondary); color: var(--text-secondary); cursor: pointer; border-radius: 6px; font-size: 0.9rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s; display: inline-flex; align-items: center; gap: 0.3rem;  }
.view-toggle-btn:hover { background-color: #333; border-color: #555; color: var(--text-primary); }
.view-toggle-btn.active { background-color: var(--accent-turquoise); border-color: var(--accent-turquoise); color: #000; font-weight: 600; }

.view-toggle-btn.locked {
}
.view-toggle-btn.locked:not(.active) {
    opacity: 0.7;
}
.lock-icon-shillbox {
    margin-left: 5px;
    font-size: 0.8em;
    color: inherit;
}
.view-toggle-btn.active.locked .lock-icon-shillbox {
    color: #000;
}

#leaderboardTableContainer { width: 100%; margin-top: 1rem; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
#leaderboardTable { width: 100%; border-collapse: collapse; }
#leaderboardTable th, #leaderboardTable td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
#leaderboardTable thead th { background-color: var(--bg-secondary); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; color: var(--text-secondary); }
#leaderboardTable tbody tr:last-child td { border-bottom: none; }
#leaderboardTable tbody tr { transition: background-color 0.15s ease-in-out; }
#leaderboardTable tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }
#leaderboardTable th .sort-indicator { display: inline-block; margin-left: 4px; color: var(--text-secondary); opacity: 0.5; font-size: 0.9em; transition: opacity 0.2s, color 0.2s; }
#leaderboardTable th:hover .sort-indicator { opacity: 0.8; }
#leaderboardTable th[aria-sort] .sort-indicator { opacity: 1; color: var(--accent-turquoise); }
#leaderboardTable .text-green-400 { color: #4ade80 !important; }
#leaderboardTable .text-red-400 { color: #f87171 !important; }
#leaderboardTable .text-gray-400 { color: #9ca3af !important; }
#leaderboardTable img.leaderboard-avatar { width: 20px !important; height: 20px !important; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }

#leaderboardTable th.rank-col, #leaderboardTable td.rank-col { width: 60px; padding-left: 0.75rem; padding-right: 0.75rem; text-align: center; }
#leaderboardTable th.kol-col-header, #leaderboardTable td.kol-col-cell { min-width: 150px;  white-space: normal; }

#leaderboardTable th.delta-col-header,
#leaderboardTable td.delta-col {
    width: 80px;
    min-width: 70px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
    white-space: nowrap;
}

#overlapTableContainer {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow-x: auto;
}

#overlapTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

#overlapTable th,
#overlapTable td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.875rem;
  text-align: left;
}

#overlapTable thead th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: left;
  white-space: normal !important; 
}

#overlapTable th:nth-child(1),
#overlapTable td:nth-child(1) {
    min-width: 200px;
}
#overlapTable th:nth-child(2),
#overlapTable td:nth-child(2) {
    min-width: 160px;
}
.overlap-ca-cell {
    word-break: break-all;
    cursor: pointer;
}
.overlap-ca-cell:hover {
    text-decoration: underline;
    color: var(--accent-turquoise);
}

#overlapTable tbody tr:last-child td {
  border-bottom: none;
}

#overlapTable tbody tr {
  transition: background-color 0.15s ease-in-out;
}

#overlapTable tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

#overlapTable img.leaderboard-avatar {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.overlap-token-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
}
.overlap-token-info:hover .font-bold {
    color: var(--accent-turquoise);
    text-decoration: underline;
}

.overlap-holders-cell {
  min-width: 250px;
  text-align: left;
}

.overlap-holders-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.overlap-holder-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

img.kol-icon-overlap {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}
.holder-handle {
    color: var(--text-primary);
    font-weight: 500;
}
.holder-amount {
    color: var(--accent-turquoise);
}


@media screen and (max-width: 768px) {
  .hide-on-mobile-overlap {
      display: none !important;
  }
  
  #overlapTable {
    table-layout: fixed;
    width: 100%;
  }
  
  #overlapTable th, #overlapTable td {
    padding: 0.6rem 0.4rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

  #overlapTable th:nth-child(1),
  #overlapTable td:nth-child(1) { 
    width: 35%;
    min-width: 0;
  }

  #overlapTable th:last-child,
  #overlapTable td:last-child { 
    width: 65%;
    min-width: 0;
  }
  
  .overlap-holders-cell {
    min-width: auto;
  }
   
  .overlap-holder-item {
    flex-wrap: wrap;
  }
  .holder-handle {
      word-break: break-word;
  }
}

#holdingsTable .copy-holdings-ticker {
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
}

#holdingsTable .copy-holdings-ticker:hover {
    text-decoration: underline;
    color: var(--accent-turquoise);
}

.leaderboard-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.calendar-view-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#calendarModal .modal-content {
    max-width: 800px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header button {
    background: none;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    min-height: 100px;
}

.day-number {
    font-weight: bold;
}

.kol-ranking {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.kol-ranking-emoji {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.tier-list-table {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tier-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.tier-row:last-child {
    border-bottom: none;
}
.tier-label {
    flex: 0 0 200px;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}
.tier-title {
    font-size: 1.2rem;
    font-weight: bold;
}
.tier-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: normal;
}
.tier-kols {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tier-kol-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier-kol-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--accent-turquoise);
}

.tier-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}
.tier-toggle-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.tier-toggle-btn.active {
    background-color: var(--accent-turquoise);
    color: #000;
    font-weight: 500;
}