/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@400;600&display=swap');

/* Tailwind Custom Colors */
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --neon-blue: #00f0ff;
  --neon-purple: #ff00ff;
  --discord-blue: #5865F2;
}

/* Global Styles */
/* Global Styles */
body {
  font-family: 'Inter', sans-serif;
  /* Xóa background gradient cũ hoặc giữ làm fallback */
  background-color: #1a1a2e; 
  /* Thiết lập để ảnh background hiển thị đẹp */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  background-repeat: no-repeat;
  overflow-x: hidden;
  position: relative;
  color: #fff; /* Đảm bảo màu chữ mặc định là trắng */
}
/* Thêm vào styles.css để ảnh trong bài viết luôn giữ tỷ lệ đẹp */
.post-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Ép tỷ lệ 16:9 */
    object-fit: cover;    /* Cắt bớt phần thừa, không làm méo ảnh */
    border-radius: 8px 8px 0 0; /* Bo góc trên cho đẹp giống card */
}
/* Navigation */
nav {
  transition: all 0.3s ease;
}

nav:hover {
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

/* Logo */
.logo {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
}

/* Brand Text */
#brand-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-blue);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.6);
}

/* Main Navigation Links */
.main-nav {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.main-nav:hover {
  color: var(--neon-blue);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.6);
}

/* Auth Navigation Links */
.auth-nav {
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  border-radius: 6px;
  border: 1px solid rgba(255, 0, 255, 0.5);
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.auth-nav:hover {
  background: linear-gradient(45deg, #d500f9, #ff00ff);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
  transform: translateY(-2px);
}

/* Discord Button */
.discord-button {
  background: linear-gradient(45deg, var(--discord-blue), #7289DA);
  border: 2px solid rgba(88, 101, 242, 0.5);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.discord-button:hover {
  background: linear-gradient(45deg, #7289DA, var(--discord-blue));
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
  transform: translateY(-2px);
}

/* Category Filter Buttons */
.category-filter {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-filter:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
  transform: translateY(-2px);
}

.category-filter.active {
  background: linear-gradient(45deg, #ff00ff, #b000e6);
  border-color: #ff00ff;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
  transform: scale(1.05);
}

/* Amount Buttons */
.amount-button {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  border: 2px solid rgba(0, 240, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.amount-button:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
  transform: translateY(-2px);
}

/* Payment Button */
.payment-button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  border: 2px solid var(--neon-blue);
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  color: #1a1a2e;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-button:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
  transform: translateY(-2px) scale(1.05);
}

/* --- FIX LỖI TRANSACTION / DISCOUNT TABLE --- */

/* Transaction Table Container */
.transaction-table {
  border: 1px solid var(--neon-blue);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  display: block; 
  padding: 0; /* Loại bỏ padding cũ */
  background-color: #1a1a2e; /* Đảm bảo background cho các hàng xen kẽ */
}

/* Transaction History Header (7 columns) */
.transaction-header {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

/* Discount List/History Header (4 columns) */
.discount-header {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.transaction-header span, .discount-header span {
  background: linear-gradient(45deg, #2a2a4e, #1a1a2e);
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neon-blue);
  text-align: center;
  border-bottom: 1px solid var(--neon-blue);
  font-family: 'Orbitron', sans-serif;
  border-right: 1px solid rgba(0, 240, 255, 0.2); 
}

.transaction-header span:last-child, .discount-header span:last-child {
    border-right: none;
}

/* Transaction History Row (7 columns) */
.transaction-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)); 
}

/* Discount Row (4 columns) - SỬ DỤNG CLASS NÀY CHO MÃ GIẢM GIÁ */
.discount-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
}

/* Styling cho tất cả các ô trong hàng */
.transaction-row span, .discount-row span {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  border-right: 1px solid rgba(0, 240, 255, 0.2); 
  word-break: break-word; /* Quan trọng: cho phép ngắt chữ khi quá dài */
}

.transaction-row span:last-child, .discount-row span:last-child {
    border-right: none;
}

/* Màu xen kẽ cho các hàng */
.transaction-row:nth-child(even) { background-color: #2a2a4e; }
.transaction-row:nth-child(odd) { background-color: #1a1a2e; }

.discount-row:nth-child(even) { background-color: #2a2a4e; }
.discount-row:nth-child(odd) { background-color: #1a1a2e; }

/* Hiệu ứng hover cho các hàng */
.transaction-row:hover, .discount-row:hover {
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 255, 0.1));
}


.transaction-row span a {
  color: var(--neon-blue);
  transition: all 0.3s ease;
}

.transaction-row span a:hover {
  color: var(--neon-purple);
  text-decoration: underline;
}

.transaction-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.transaction-type .icon {
  font-size: 1rem;
}

/* --- END FIX LỖI TRANSACTION / DISCOUNT TABLE --- */


/* Back Button */
.back-button {
  padding: 0.75rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  color: #1a1a2e;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.back-button:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
  transform: translateY(-3px) scale(1.05);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.9);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  }
}

/* User Menu Button */
.logout-button {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  border: 2px solid rgba(255, 0, 255, 0.5);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logout-button:hover {
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
  transform: translateY(-2px);
}

#user-balance {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neon-blue);
}

#user-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

/* User Avatar */
#user-avatar {
  transition: all 0.3s ease;
}

#user-avatar:hover {
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.6));
}

/* User Menu */
#user-menu {
  background: linear-gradient(145deg, #2a2a4e 0%, #1a1a2e 100%);
  border: 1px solid var(--neon-blue);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  z-index: 50;
}

#user-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

#user-menu a:hover {
  background: var(--neon-blue);
  color: #1a1a2e;
}

/* Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: linear-gradient(145deg, #2a2a4e 0%, #1a1a2e 100%);
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.3);
}

/* Warranty Section */
.warranty-section {
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
  background: linear-gradient(145deg, #3a3a5e 0%, #2a2a3e 100%);
}

/* TRONG styles.css - FIX MÀU CHỮ CHO INPUT NẠP TIỀN */
.deposit-ui input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--neon-blue);
  border-radius: 6px;
  /* ĐẢM BẢO MÀU CHỮ LÀ MÀU TRẮNG */
  color: #fff !important; 
  font-family: 'Inter', sans-serif;
}

.deposit-ui input:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

/* TRONG styles.css */
/* TRONG styles.css */
.deposit-ui #generate-qr {
  padding: 0.75rem 1.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
  /* FIXED DỨT ĐIỂM: Đặt màu chữ trắng để tương phản trên nền neon sáng */
  color: #ffffff !important; 
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.deposit-ui #generate-qr:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
  transform: translateY(-3px) scale(1.05);
}

/* Page Transitions */
.page-content, main {
  animation: fadeIn 0.5s ease-in-out;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
  animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* Video Player */
#video-player {
  transition: opacity 0.3s ease;
  max-width: 100%;
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

/* Dynamic Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: -1;
}

/* Typography */
.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000; /* Tăng z-index để modal ở trên cùng */
  align-items: center;
  justify-content: center;
  opacity: 1; /* Đảm bảo không bị ẩn */
  visibility: visible; /* Đảm bảo modal hiện */
}

.modal-content {
  background: linear-gradient(145deg, #2a2a4e 0%, #1a1a2e 100%);
  border: 2px solid var(--neon-blue);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  animation: fadeIn 0.3s ease-in-out;
  position: relative; /* Đảm bảo nội dung modal không bị che */
}

.modal-content h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-blue);
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-content input, .modal-content label {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--neon-blue);
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.modal-content button {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  border: none;
  border-radius: 6px;
  color: #1a1a2e;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content button:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--neon-blue);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--neon-purple);
}

/* Error Messages */
.text-red-500 {
  font-family: 'Inter', sans-serif;
}

/* Pricing UI */
.pricing-ui ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.pricing-ui li {
  line-height: 1.6;
}

.pricing-ui .text-neon-blue {
  font-weight: 600;
}
@media (max-width: 768px) {
  /* nav ul {
    flex-direction: column;
    gap: 1rem;
  } */
  .card {
    margin-bottom: 1.5rem;
  }
  .category-filter, .amount-button, .payment-button {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
  .back-button {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  .deposit-ui #generate-qr {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  #user-menu {
    width: 100%;
    right: 0;
  }
  /* .main-nav, .auth-nav {
    width: 100%;
    text-align: center;
  } */
  .logo {
    height: 32px;
  }
  .transaction-table {
    grid-template-columns: 1fr;
  }

  /* Responsive cho Transaction History (7 cột) */
  .transaction-header {
    display: none;
  }
  .transaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--neon-blue);
    border-radius: 6px;
    margin-bottom: 0.5rem;
  }
  .transaction-row span {
    text-align: left;
    border: none;
    border-top: none;
    padding: 0.1rem 0;
    display: block;
    word-break: break-all;
  }
  .transaction-row span::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--neon-blue);
    margin-right: 0.5rem;
    display: inline-block;
    min-width: 60px;
  }
  .transaction-row span:nth-child(1)::before { content: "Loại: "; }
  .transaction-row span:nth-child(2)::before { content: "Số Tiền: "; }
  .transaction-row span:nth-child(3)::before { content: "Server: "; }
  .transaction-row span:nth-child(4)::before { content: "User: "; }
  .transaction-row span:nth-child(5)::before { content: "Mật Khẩu: "; }
  .transaction-row span:nth-child(6)::before { content: "Link Tải: "; }
  .transaction-row span:nth-child(7)::before { content: "Ngày: "; }
  .transaction-row:nth-child(even), .transaction-row:nth-child(odd) { background-color: transparent; }
  .transaction-row:hover { background: none; }

  /* Responsive cho Discount List/History (4 cột) */
  .discount-header {
    display: none;
  }
  .discount-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--neon-blue);
    border-radius: 6px;
    margin-bottom: 0.5rem;
  }
  .discount-row span {
    text-align: left;
    border: none;
    border-top: none;
    padding: 0.1rem 0;
    display: block;
    word-break: break-all;
  }
  .discount-row span::before {
    /* content: attr(data-label); */
    font-weight: 700;
    color: var(--neon-blue);
    margin-right: 0.5rem;
    display: inline-block;
    min-width: 80px;
  }
  .discount-row span:nth-child(1)::before { content: "Mã: "; }
  .discount-row span:nth-child(2)::before { content: "Loại/Ngày: "; }
  .discount-row span:nth-child(3)::before { content: "Lượt: "; }
  .discount-row span:nth-child(4)::before { content: "Trạng thái: "; }
  .discount-row:nth-child(even), .discount-row:nth-child(odd) { background-color: transparent; }
  .discount-row:hover { background: none; }
}

@media (max-width: 480px) {
  main h2 {
    font-size: 1.25rem;
  }
  .card h3 {
    font-size: 1rem;
  }
  .card p {
    font-size: 0.875rem;
  }
  .category-filter, .amount-button, .payment-button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  .discord-button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .logo {
    height: 28px;
  }
  .back-button {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }
  .deposit-ui #generate-qr {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }
  .transaction-table {
    font-size: 0.8rem;
  }
  .transaction-row span {
    font-size: 0.8rem;
  }
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  .modal-content h2 {
    font-size: 1.5rem;
  }
  /* TRONG styles.css */
  .modal-content input, .modal-content label {
    /* ... */
    color: #fff;
    /* ... */
  }
  .modal-content button {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  #user-balance {
    font-size: 0.8rem;
  }
  #user-name {
    font-size: 0.9rem;
  }
  #user-avatar {
    width: 24px;
    height: 24px;
  }
  #brand-text {
    font-size: 1rem;
  }
}

/* Nhãn Phổ biến */
.popular-label {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background-color: #e53e3e;
  border-radius: 9999px;
  text-transform: uppercase;
}
#discount-list, #discount-history {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--neon-blue);
  border-radius: 6px;
  padding: 0; /* Đã chuyển padding lên lớp cha */
}

/* TRONG styles.css (Đảm bảo các quy tắc này tồn tại và hoạt động) */

.discount-status {
  /* Các thuộc tính định dạng cơ bản */
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  /* Đảm bảo nó không bị biến thành block trên desktop */
  display: inline-block; 
}

.discount-status.active {
  /* Dùng cho "Khả dụng" và "Đã lưu (Chờ dùng)" */
  background: rgba(0, 255, 0, 0.2);
  color: #00ff00;
}

.discount-status.expired {
  /* Dùng cho "Hết hạn" và "Đã dùng & Hết hạn" */
  background: rgba(255, 0, 0, 0.2);
  color: #ff0000;
}

.discount-status.used_up {
  /* Dùng cho "Đã sử dụng" (thành công) */
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
}


/* Button Áp Dụng */
#apply-discount-button {
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  color: #ffffff !important; /* Màu trắng để nổi bật */
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: all 0.3s ease;
}

#apply-discount-button:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
  transform: translateY(-2px);
}

/* Toggle Buttons: Danh Sách Mã Giảm Giá và Lịch Sử Nhập Code */
.toggle-button {
  background: linear-gradient(45deg, #00f0ff, #00b7eb);
  color: #ffffff !important; /* Màu trắng để nổi bật */
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--neon-blue);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: all 0.3s ease;
}

.toggle-button:hover {
  background: linear-gradient(45deg, #ff00ff, #d500f9);
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
  transform: translateY(-2px);
}

.toggle-button.active {
  background: linear-gradient(45deg, #ff00ff, #b000e6);
  color: #ffffff !important;
  border-color: #ff00ff;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.8);
  transform: scale(1.05);
}
/* Thêm vào styles.css */
.countdown-box {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem; /* 48px */
    font-weight: 700;
    color: #fff;
    background: rgba(138, 43, 226, 0.5); /* Màu tím mờ (giống ảnh) */
    border: 2px solid var(--neon-purple);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    min-width: 80px; /* Đảm bảo các ô có chiều rộng bằng nhau */
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.countdown-label {
    font-family: 'Inter', sans-serif;
    color: #ccc;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .countdown-box {
        font-size: 1.5rem;
        padding: 0.5rem 0.75rem;
        min-width: 50px;
    }
}

/* styles.css - Thêm vào cuối file */

@keyframes pulse-slow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.6);
    transform: scale(1.01);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s infinite;
}
/* GIVEAWAY TOAST NOTIFICATION */
#ga-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999; /* Luôn nằm trên cùng */
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  border-radius: 10px;
  padding: 15px;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  backdrop-filter: blur(5px);
  
  /* Animation trượt từ trái vào */
  animation: slideInLeft 0.5s ease-out forwards;
}

#ga-toast.hidden {
  display: none;
}

.ga-toast-icon {
  font-size: 2rem;
  animation: bounce 2s infinite;
}

#close-ga-toast {
  position: absolute;
  top: 5px;
  right: 8px;
  color: #888;
  cursor: pointer;
  font-size: 1.2rem;
  background: none;
  border: none;
  line-height: 1;
}

#close-ga-toast:hover {
  color: #fff;
}

/* Animation Keyframes */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Mobile Responsive: Thu nhỏ một chút trên điện thoại */
@media (max-width: 480px) {
  #ga-toast {
    bottom: 10px;
    left: 10px;
    right: 10px; /* Căn full chiều ngang nếu màn hình quá nhỏ */
    max-width: none;
  }
}
#revenue-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}
#revenue-modal table th, #revenue-modal table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
#revenue-modal table th {
    color: var(--neon-blue);
    font-weight: 700;
}
/* Table Styles cho Modal Quản lý Auto */
#modal-manage-auto table th {
  letter-spacing: 1px;
}

#modal-manage-auto table tr:hover {
  background-color: rgba(0, 240, 255, 0.05); /* Hiệu ứng hover dòng */
}

#modal-manage-auto table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badge trạng thái */
.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-active {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981; /* Màu xanh lá */
  border: 1px solid #10b981;
}

.status-inactive {
  background-color: rgba(107, 114, 128, 0.2);
  color: #9ca3af; /* Màu xám */
  border: 1px solid #9ca3af;
}

.status-online {
  background-color: rgba(0, 240, 255, 0.2);
  color: #00f0ff; /* Màu neon blue */
  border: 1px solid #00f0ff;
  animation: pulse 2s infinite;
}

/* Copy Key Button */
.copy-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  margin-left: 5px;
  transition: color 0.2s;
}
.copy-btn:hover {
  color: #fff;
}
/* Giao diện Terminal chuyên nghiệp */
.terminal-window {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.terminal-header {
    background: #1a1a1a;
    padding: 8px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.terminal-body {
    padding: 15px;
}

/* Tối ưu hiển thị Log */
#bot-log-text {
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #000;
}

#bot-log-text::-webkit-scrollbar {
    width: 6px;
}

#bot-log-text::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 10px;
}

/* Hiệu ứng nhấp nháy con trỏ Terminal */
.terminal-prompt::after {
    content: "_";
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: #00ff00; }
}

/* Responsive Mobile */
@media (max-width: 640px) {
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
    }
    #bot-log-text {
        height: 150px; /* Giảm chiều cao trên mobile */
    }
}
@media (max-width: 768px) {
    #bot-submit-btn {
        display: block !important;  /* Force hiện trên mobile */
        margin-left: 10px;
    }
    .terminal-body {
        padding: 10px;  /* Giảm padding cho mobile */
    }
}