.download-section {
  margin-bottom: 3rem;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.download-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  pointer-events: none;
}

.download-section .section-title {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-section .section-title i {
  font-size: 1.2em;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: 1rem;
}

.table-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin: 0;
  position: relative;
}

.download-table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: #2c3e50;
  border: none;
  position: relative;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.download-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.download-table td {
  padding: 18px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f4;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-table tr {
  transition: all 0.3s ease;
}

.download-table tr:hover {
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.download-table tr:last-child td {
  border-bottom: none;
}

.download-table a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

.download-table a:hover {
  color: #764ba2;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.download-table a i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.download-table a:hover i {
  transform: scale(1.1) rotate(5deg);
}

.download-table a.downloading {
  opacity: 0.6;
  cursor: not-allowed;
}

.download-table .text-muted {
  color: #6c757d !important;
  opacity: 0.7;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-table .text-muted i {
  color: #dc3545;
  opacity: 0.8;
}

.warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: none;
  border-left: 4px solid #ff9800;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.warning strong {
  color: #e65100;
  font-weight: 700;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 2px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.access-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.access-badge:hover::before {
  left: 100%;
}

.access-badge.rank-unlimited { 
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.access-badge.rank-0 { 
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.access-badge.rank-1 { 
  background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.access-badge.rank-2 { 
  background: linear-gradient(135deg, #4a90e2 0%, #6bb6ff 100%);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.access-badge.rank-3 { 
  background: linear-gradient(135deg, #b8860b 0%, #daa520 50%, #ffd700 100%);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
  animation: gold-pulse 2s ease-in-out infinite alternate;
}

.access-badge.rank-4 { 
  background: linear-gradient(135deg, #fff2cc 0%, #ffeaa7 50%, #fdcb6e 100%);
  color: #8b4513 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 15px rgba(253, 203, 110, 0.5);
  border: 2px solid #f39c12;
}

.access-badge.rank-5 { 
  background: linear-gradient(135deg, #ff0000 0%, #ff7700 20%, #ffdd00 40%, #00ff00 60%, #0000ff 80%, #8a2be2 100%);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.6);
  animation: rainbow-glow-enhanced 3s ease-in-out infinite;
}

.special-access-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 2px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.special-access-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.special-access-badge:hover::before {
  left: 100%;
}

.special-access-badge.special-maimoller { 
  background: linear-gradient(135deg, #fff2cc 0%, #ffeaa7 50%, #fdcb6e 100%);
  color: #8b4513 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 15px rgba(253, 203, 110, 0.5);
  border: 2px solid #f39c12;
}

.special-access-badge.special-coadmin { 
  background: linear-gradient(135deg, #ff0000 0%, #ff7700 20%, #ffdd00 40%, #00ff00 60%, #0000ff 80%, #8a2be2 100%);
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.6);
  animation: rainbow-glow-enhanced 3s ease-in-out infinite;
}

@keyframes gold-pulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.8);
    transform: scale(1.02);
  }
}

@keyframes rainbow-glow-enhanced {
  0% {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.6);
    filter: hue-rotate(0deg);
  }
  16.66% {
    box-shadow: 0 4px 20px rgba(255, 119, 0, 0.6);
    filter: hue-rotate(60deg);
  }
  33.33% {
    box-shadow: 0 4px 20px rgba(255, 221, 0, 0.6);
    filter: hue-rotate(120deg);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.6);
    filter: hue-rotate(180deg);
  }
  66.66% {
    box-shadow: 0 4px 20px rgba(0, 0, 255, 0.6);
    filter: hue-rotate(240deg);
  }
  83.33% {
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.6);
    filter: hue-rotate(300deg);
  }
  100% {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.6);
    filter: hue-rotate(360deg);
  }
}

.points-cost {
  color: #e74c3c;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ffeaea 0%, #ffcccb 100%);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(231, 76, 60, 0.3);
  white-space: nowrap;
}

.points-cost::before {
  content: '💎';
  font-size: 0.9em;
}

.page-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: left;
  font-size: 2.5rem;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.back-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin-bottom: 2rem;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.back-button i {
  transition: transform 0.3s ease;
}

.back-button:hover i {
  transform: translateX(-2px);
}

@media (max-width: 768px) {
  .download-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .download-table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .download-table thead {
    display: none;
  }
  
  .download-table tbody {
    display: block;
  }
  
  .download-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
  }

  .download-table tr:hover {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.15);
  }
  
  .download-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    text-align: right;
    white-space: normal;
    overflow: visible;
  }

  .download-table td:last-child {
    border-bottom: none;
  }
  
  .download-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-align: left;
    flex-shrink: 0;
    margin-right: 10px;
  }

  .download-table a {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
  }

  .access-badge,
  .special-access-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    margin: 2px 0;
  }
  
  .points-cost {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .page-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .download-table th:nth-child(3),
  .download-table td:nth-child(3) {
    display: none;
  }
  
  .download-section {
    padding: 1.8rem;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .download-table th:nth-child(2),
  .download-table td:nth-child(2) {
    display: none;
  }
}