/* ==========================================================================
   TEN STAGE MATRIX — DAILY EARNING & ROI PAYOUT CENTER STYLES
   ========================================================================== */

.tsm-de-wrapper {
  font-family: 'Outfit', sans-serif !important;
  color: #ffffff;
  width: 100%;
  animation: tsmFadeIn 0.35s ease-out;
}

@keyframes tsmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header & Banner */
.tsm-de-banner {
  background: linear-gradient(135deg, rgba(42, 245, 149, 0.12) 0%, rgba(0, 240, 255, 0.08) 50%, rgba(13, 10, 24, 0.9) 100%);
  border: 1px solid rgba(42, 245, 149, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tsm-de-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(42, 245, 149, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tsm-de-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tsm-de-badge-qualified {
  background: rgba(42, 245, 149, 0.18);
  color: #2AF595;
  border: 1px solid rgba(42, 245, 149, 0.4);
  box-shadow: 0 0 12px rgba(42, 245, 149, 0.25);
}

.tsm-de-badge-pending {
  background: rgba(255, 184, 0, 0.15);
  color: #FFB800;
  border: 1px solid rgba(255, 184, 0, 0.35);
}

.tsm-de-badge-cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Metric Cards */
.tsm-de-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .tsm-de-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tsm-de-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.tsm-de-card {
  background: rgba(18, 14, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  transition: all 0.25s ease;
  backdrop-filter: blur(16px);
}

.tsm-de-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 245, 149, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.tsm-de-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.tsm-de-card-val {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.tsm-de-card-lbl {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* Sections */
.tsm-de-section {
  background: rgba(18, 14, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
}

.tsm-de-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* 3-Line Tracker Grid */
.tsm-de-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .tsm-de-lines-grid {
    grid-template-columns: 1fr;
  }
}

.tsm-de-line-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px;
  transition: all 0.2s ease;
}

.tsm-de-line-box.qualified {
  border-color: rgba(42, 245, 149, 0.4);
  background: rgba(42, 245, 149, 0.04);
}

.tsm-de-line-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.tsm-de-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 12px 0;
}

.tsm-de-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 5-Levels Grid */
.tsm-de-levels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}

@media (max-width: 1200px) {
  .tsm-de-levels-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tsm-de-levels-grid {
    grid-template-columns: 1fr;
  }
}

.tsm-de-level-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 16px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.tsm-de-level-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.tsm-de-level-box.qualified {
  background: linear-gradient(145deg, rgba(42, 245, 149, 0.12) 0%, rgba(18, 14, 30, 0.9) 100%);
  border-color: rgba(42, 245, 149, 0.65);
  box-shadow: 0 4px 20px rgba(42, 245, 149, 0.2), inset 0 0 12px rgba(42, 245, 149, 0.08);
}

.tsm-de-level-box.qualified:hover {
  transform: translateY(-2px);
  border-color: #2AF595;
  box-shadow: 0 8px 30px rgba(42, 245, 149, 0.35);
}

/* Upper Section Congratulations Banner */
.tsm-de-congrats-banner {
  background: linear-gradient(135deg, rgba(42, 245, 149, 0.18) 0%, rgba(0, 240, 255, 0.12) 45%, rgba(18, 14, 30, 0.95) 100%);
  border: 1.5px solid rgba(42, 245, 149, 0.55);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(42, 245, 149, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: tsmGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes tsmGlowPulse {
  0% { box-shadow: 0 10px 28px rgba(42, 245, 149, 0.18); border-color: rgba(42, 245, 149, 0.5); }
  100% { box-shadow: 0 14px 42px rgba(42, 245, 149, 0.32); border-color: rgba(42, 245, 149, 0.85); }
}

.tsm-de-congrats-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(42, 245, 149, 0.16);
  border: 1px solid rgba(42, 245, 149, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tsm-de-level-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.tsm-de-level-pill.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.15);
}

/* Policy Box */
.tsm-de-policy-box {
  background: rgba(13, 10, 24, 0.7);
  border-left: 4px solid #2AF595;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

/* Table */
.tsm-de-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tsm-de-table th {
  text-align: left;
  padding: 12px 16px;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.tsm-de-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tsm-de-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Action Button */
.tsm-de-btn {
  background: linear-gradient(135deg, #2AF595 0%, #00F0FF 100%);
  color: #050209;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tsm-de-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42, 245, 149, 0.4);
}

.tsm-de-btn:active {
  transform: translateY(0);
}

/* Level Users Section & Interactive Breakdown */
.tsm-de-level-box {
  cursor: pointer;
}

.tsm-de-level-box.selected {
  border-color: #00F0FF !important;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25) !important;
  transform: translateY(-2px);
}

.tsm-de-level-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tsm-de-level-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 14px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tsm-de-level-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.tsm-de-level-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(42, 245, 149, 0.15) 100%);
  border-color: #00F0FF;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

.tsm-de-filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tsm-de-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.tsm-de-filter-btn.active {
  background: rgba(42, 245, 149, 0.15);
  border-color: #2AF595;
  color: #2AF595;
}

.tsm-de-search-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
  min-width: 240px;
}

.tsm-de-search-input:focus {
  border-color: #00F0FF;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.tsm-de-badge-gray {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.tsm-de-badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
