* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(160deg, #040d04 0%, #0a1f0a 40%, #102810 70%, #081408 100%);
  color: #e8e8e8;
  min-height: 100vh;
}

/* === DASHBOARD === */
.dashboard {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px 24px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-logo {
  font-size: 36px;
  font-weight: 900;
  color: #4caf50;
  letter-spacing: 1px;
}

.brand-divider {
  width: 2px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

.brand-title {
  font-size: 30px;
  font-weight: 800;
  color: #d4af37;
  letter-spacing: 2px;
}

.header-prize {
  font-size: 18px;
  color: #f5c842;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 1px;
}

.header-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #4caf50;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 4px rgba(76, 175, 80, 0.3); }
}

/* === WEEKEND MODE === */
.dashboard.weekend .header-live {
  color: rgba(200, 200, 200, 0.35);
}

.dashboard.weekend .live-dot {
  background: rgba(200, 200, 200, 0.3);
  box-shadow: none;
  animation: none;
}

.dashboard.weekend .header-prize {
  color: rgba(200, 200, 200, 0.35);
}

/* === COUNTDOWN === */
.header-countdown {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(200, 200, 200, 0.6);
  font-weight: 500;
}

.countdown-timer {
  font-weight: 800;
  font-size: 18px;
  color: #f5c842;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* === INFO BUTTON === */
.info-trigger {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  color: rgba(212, 175, 55, 0.6);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.info-trigger:hover {
  border-color: rgba(212, 175, 55, 0.6);
  color: #f5c842;
  background: rgba(212, 175, 55, 0.15);
}

/* === PODIUM === */
.podium-section {
  margin-bottom: 28px;
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
}

.podium-crown {
  font-size: 28px;
  margin-bottom: 4px;
  animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.podium-avatar.gold {
  background: linear-gradient(135deg, #d4af37, #f5c842);
  color: #1a1a0a;
  border-color: #f5c842;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  width: 60px;
  height: 60px;
  font-size: 26px;
}

.podium-avatar.silver {
  background: linear-gradient(135deg, #7a7a7a, #b0b0b0);
  color: #1a1a1a;
  border-color: #b0b0b0;
}

.podium-avatar.bronze {
  background: linear-gradient(135deg, #7a5020, #cd7f32);
  color: #1a1a1a;
  border-color: #cd7f32;
}

.podium-email {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.podium-volume {
  font-size: 15px;
  font-weight: 700;
  color: #f5c842;
  margin-bottom: 8px;
}

.podium-prize {
  font-size: 12px;
  font-weight: 800;
  color: #1a1a0a;
  background: linear-gradient(90deg, #d4af37, #f5c842);
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.podium-bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.bar-1st {
  height: 100px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: none;
}

.bar-2nd {
  height: 72px;
  background: linear-gradient(180deg, rgba(176, 176, 176, 0.2), rgba(176, 176, 176, 0.05));
  border: 1px solid rgba(176, 176, 176, 0.2);
  border-bottom: none;
}

.bar-3rd {
  height: 52px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.05));
  border: 1px solid rgba(205, 127, 50, 0.2);
  border-bottom: none;
}

/* === TABLE === */
.table-section {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(212, 175, 55, 0.06);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 12px;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.th-rank { width: 50px; }
.th-trader { flex: 1; }
.th-volume { width: 160px; text-align: right; }

.table-body {
  max-height: 400px;
  overflow-y: auto;
}

.table-body::-webkit-scrollbar {
  width: 4px;
}

.table-body::-webkit-scrollbar-track {
  background: transparent;
}

.table-body::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 2px;
}

.table-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-row.highlight-1 {
  background: rgba(212, 175, 55, 0.06);
}

.table-row.highlight-2 {
  background: rgba(176, 176, 176, 0.04);
}

.table-row.highlight-3 {
  background: rgba(205, 127, 50, 0.04);
}

.row-rank {
  width: 50px;
  font-weight: 800;
  font-size: 16px;
}

.row-rank.rank-gold { color: #f5c842; }
.row-rank.rank-silver { color: #b0b0b0; }
.row-rank.rank-bronze { color: #cd7f32; }
.row-rank.rank-default { color: rgba(200, 200, 200, 0.5); }

.row-trader {
  flex: 1;
}

.row-email {
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
}

.row-volume-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 160px;
}

.row-volume {
  font-size: 15px;
  font-weight: 600;
  color: #f5c842;
  text-align: right;
}

.row-prize {
  font-size: 10px;
  font-weight: 700;
  color: #1a1a0a;
  background: linear-gradient(90deg, #d4af37, #f5c842);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 40px 0;
  color: rgba(200, 200, 200, 0.3);
  font-size: 14px;
  font-style: italic;
}

/* === JOIN LINK === */
.join-section {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.join-link {
  display: inline-block;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(200, 200, 200, 0.6);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.04);
  transition: all 0.3s ease;
}

.join-link:hover {
  color: #f5c842;
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
}

.tutorial-link {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.tutorial-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* === FAQ === */
.faq-section {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
}

.faq-title {
  font-size: 18px;
  font-weight: 800;
  color: #d4af37;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.faq-question {
  font-size: 14px;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 13px;
  font-weight: 400;
  color: rgba(200, 200, 200, 0.7);
  line-height: 1.7;
}

.faq-answer a {
  color: #f5c842;
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* === FOOTER === */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 11px;
  color: rgba(200, 200, 200, 0.3);
}

.footer-update {
  color: rgba(76, 175, 80, 0.5);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.table-row {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

.podium-place {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.podium-2nd { animation-delay: 0.15s; }
.podium-1st { animation-delay: 0s; }
.podium-3rd { animation-delay: 0.3s; }
