/* Download Page Styles */

body {
  background-image: url('../img/background.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  position: relative !important;
}

/* ✅ Thêm overlay màu đen trong suốt phủ lên nền */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4) !important;
  z-index: 0;
  pointer-events: none;
}

#main-container {
  position: relative;
  z-index: 1;
}

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&display=swap');

/* ✅ Auth Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a0000 100%);
  border-radius: 15px;
  padding: 25px;
  width: 90%;
  max-width: 450px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  border: 2px solid rgba(255, 0, 0, 0.3);
  font-family: 'Prompt', 'Kanit', sans-serif;
}

.auth-modal-content::-webkit-scrollbar {
  width: 8px;
}

.auth-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.auth-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 0, 0.5);
  border-radius: 4px;
}

.auth-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 0, 0.7);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

.auth-modal-header h2 {
  color: #FF0000;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Prompt', 'Kanit', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.auth-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  opacity: 0.7;
}

.auth-modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  color: #FF0000;
  opacity: 1;
  transform: rotate(90deg);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group label {
  display: block;
  color: #FF0000;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  font-family: 'Prompt', 'Kanit', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  font-family: 'Prompt', 'Kanit', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #FF0000;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2), 0 0 15px rgba(255, 0, 0, 0.3);
}

.auth-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-form-group small {
  display: block;
  color: rgba(255, 0, 0, 0.8);
  font-size: 12px;
  margin-top: 5px;
}

.auth-btn-primary {
  width: 100%;
  padding: 12px;
  background: #FF0000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Prompt', 'Kanit', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
}

.auth-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
  background: #ff4444;
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-error {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: #ff6b6b;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.auth-modal-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 0, 0, 0.3);
  text-align: center;
}

.auth-modal-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

.auth-modal-footer a {
  color: #FF0000;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.auth-modal-footer a:hover {
  color: #ff4444;
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* ✅ Terms and Conditions Styles */
.terms-container {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.terms-container::-webkit-scrollbar {
  width: 8px;
}

.terms-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.terms-container::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 0, 0.5);
  border-radius: 4px;
}

.terms-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 0, 0.7);
}

.terms-content {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.6;
  font-family: 'Prompt', 'Kanit', sans-serif;
}

.terms-content h4 {
  color: #FF0000;
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
}

.terms-content p {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.8);
}

.terms-content strong {
  color: #fff;
  font-weight: 600;
}

.terms-checkbox-wrapper {
  margin-top: 10px;
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-family: 'Prompt', 'Kanit', sans-serif;
  cursor: pointer;
  margin-bottom: 5px;
}

.terms-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #FF0000;
  flex-shrink: 0;
}

.terms-checkbox-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.terms-checkbox-label span {
  flex: 1;
  line-height: 1.5;
}

.terms-hint {
  display: block;
  color: rgba(255, 0, 0, 0.8);
  font-size: 12px;
  margin-top: 5px;
  font-style: italic;
}

.terms-hint.hidden {
  display: none;
}

/* ✅ SweetAlert2 Custom Styles */
.swal2-custom-popup {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a0000 100%) !important;
  border: 2px solid rgba(255, 0, 0, 0.3) !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.2) !important;
  font-family: 'Prompt', 'Kanit', sans-serif !important;
}

.swal2-custom-title {
  color: #FF0000 !important;
  font-family: 'Prompt', 'Kanit', sans-serif !important;
  font-weight: 600 !important;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5) !important;
}

.swal2-custom-confirm {
  background: #FF0000 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 30px !important;
  font-family: 'Prompt', 'Kanit', sans-serif !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
}

.swal2-custom-confirm:hover {
  background: #ff4444 !important;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2) !important;
  transform: translateY(-3px) !important;
}

.swal2-icon.swal2-success {
  border-color: #FF0000 !important;
  color: #FF0000 !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: #FF0000 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(255, 0, 0, 0.3) !important;
}

.swal2-icon.swal2-error {
  border-color: #FF0000 !important;
  color: #FF0000 !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  background-color: #FF0000 !important;
}

/* Download Page Specific Styles */
.download-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.main-header {
  text-align: center;
  margin-bottom: 40px;
}

.main-title {
  font-size: 36px;
  font-weight: 700;
  color: #FF0000;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  margin: 0;
  font-family: 'Kanit', sans-serif;
}

.top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .top-row {
    grid-template-columns: 1fr;
  }
}

.download-section {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #FF0000;
  margin: 0 0 20px 0;
  text-align: center;
  font-family: 'Kanit', sans-serif;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.download-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
  font-family: 'Kanit', sans-serif;
}

.card-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 15px 0;
  font-family: 'Kanit', sans-serif;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #FF0000;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Kanit', sans-serif;
}

.download-btn:hover {
  background: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.system-requirements-section {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.system-title {
  font-size: 28px;
  font-weight: 700;
  color: #FF0000;
  text-align: center;
  margin: 0 0 30px 0;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  font-family: 'Kanit', sans-serif;
}

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }
}

.requirements-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 0, 0, 0.2);
  border-radius: 10px;
  padding: 25px;
}

.req-title {
  font-size: 22px;
  font-weight: 600;
  color: #FF0000;
  margin: 0 0 20px 0;
  text-align: center;
  font-family: 'Kanit', sans-serif;
}

.req-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.req-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.req-label {
  font-weight: 600;
  color: #FF0000;
  font-family: 'Kanit', sans-serif;
}

.req-value {
  color: #fff;
  font-family: 'Kanit', sans-serif;
}

/* ===== DOWNLOAD PAGE STYLES ===== */
body {
  background: #000;
  color: #fff;
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
}

.download-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Main Header */
.main-header {
  text-align: center;
  margin-bottom: 20px;
}

.main-title {
  font-size: 2.5rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    #FF0000, 
    #ff4444, 
    #ff6666, 
    #ff4444, 
    #FF0000, 
    transparent
  );
  background-size: 300% 100%;
  animation: fireGlow 2s ease-in-out infinite;
  border-radius: 2px;
  box-shadow: 
    0 0 8px rgba(255, 0, 0, 0.6),
    0 0 15px rgba(255, 0, 0, 0.4);
}

@keyframes fireGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 8px rgba(255, 0, 0, 0.6),
      0 0 15px rgba(255, 0, 0, 0.4);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 
      0 0 12px rgba(255, 0, 0, 0.8),
      0 0 20px rgba(255, 0, 0, 0.6);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 8px rgba(255, 0, 0, 0.6),
      0 0 15px rgba(255, 0, 0, 0.4);
  }
}

/* Top Row: 2 sections side by side */
.top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Section 1 & 2: Download Sections */
.download-section {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.left-section {
  /* Left section specific styles */
}

.right-section {
  /* Right section specific styles */
}

.section-title {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 25px 0;
  text-align: center;
  font-weight: 600;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.download-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  text-align: center;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
}

.card-title {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0 0 20px 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FF0000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: auto;
  min-width: 120px;
  justify-content: center;
}

.download-btn:hover {
  background: #ff4444;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 0, 0, 0.3);
}

/* Section 3: System Requirements */
.system-requirements-section {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.system-title {
  font-size: 2rem;
  color: #fff;
  margin: 0 0 30px 0;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.requirements-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 25px;
  transition: all 0.3s ease;
}

.requirements-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.1);
}

.req-title {
  font-size: 1.3rem;
  color: #FF0000;
  margin: 0 0 20px 0;
  text-align: center;
  font-weight: 600;
}

.req-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.req-item:last-child {
  border-bottom: none;
}

.req-label {
  font-weight: 600;
  color: #FF0000;
  min-width: 80px;
}

.req-value {
  color: #fff;
  text-align: right;
  flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .download-container {
    padding: 15px;
    gap: 30px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .system-title {
    font-size: 1.5rem;
  }
  
  .req-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .req-value {
    text-align: left;
  }
}