body {
  font-family: 'Kanit', sans-serif;
  min-height: 100vh;
  background: black;
  color: #fff;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/bg.jpg') center/cover;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

.card {
  background: rgba(25, 20, 15, 0.95);
  border: 1px solid rgba(209, 163, 118, 0.2);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(180, 126, 80, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(180, 126, 80, 0.3);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, #d1a376 0%, #b47e50 100%);
  border: none;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.logo-container {
  margin-bottom: 2rem;
  position: relative;
}

.logo-container img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.3));
}

.username-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-card {
/*  background: rgba(209, 163, 118, 0.1);
  border: 1px solid rgba(209, 163, 118, 0.2);
*/
  background-color: rgba(80, 80, 80, 0.05); /* เทาโปร่งใสจางๆ */
  border: 1px solid #fffff0; /* ขอบสีน้ำตาลทอง */
  border-radius: 10px;
  padding: 1.2rem;
  text-align: left;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(209, 163, 118, 0.2);
  border-color: rgba(209, 163, 118, 0.4);
  background: rgba(209, 163, 118, 0.15);
}

.stat-icon {
  font-size: 1.5rem;
  color: #d1a376;
  margin-right: 1rem;
  text-shadow: 0 0 10px rgba(209, 163, 118, 0.5);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.bg-nav {
  background: rgba(25, 20, 15, 0.95);
  border-top: 1px solid rgba(209, 163, 118, 0.2);
  border-bottom: 1px solid rgba(209, 163, 118, 0.2);
  backdrop-filter: blur(10px);
}

.nav-link {
  color: #fff !important;
  padding: 1rem 1.5rem !important;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

.nav-link:hover::before {
  transform: translateX(100%);
}

.nav-link:hover {
  background: rgba(209, 163, 118, 0.1);
  color: #d1a376 !important;
  transform: translateY(-2px);
}

.btn-logout {
  background: transparent;
  border: 1px solid #d1a376;
  color: #d1a376;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-logout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #d1a376 0%, #b47e50 100%);
  transition: 0.5s;
  z-index: -1;
}

.btn-logout:hover::before {
  width: 100%;
}

.btn-logout:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.content-section {
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: #ff6b00;
  border-radius: 2px;
}

.notice-box {
  background: rgba(209, 163, 118, 0.1);
  border: 1px solid rgba(209, 163, 118, 0.2);
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.notice-box:hover {
  border-color: rgba(209, 163, 118, 0.4);
  box-shadow: 0 4px 15px rgba(180, 126, 80, 0.1);
  background: rgba(209, 163, 118, 0.15);
}

.notice-icon {
  color: #d1a376;
  font-size: 1.2rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
}

.notice-content {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Gaming style card design */
.card.shadow-sm {
  background: rgba(25, 20, 15, 0.95);
  border: 1px solid rgba(209, 163, 118, 0.2) !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card.shadow-sm::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 107, 0, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateY(-100%);
  }
  100% {
    transform: rotate(45deg) translateY(100%);
  }
}

.card.shadow-sm:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(180, 126, 80, 0.3) !important;
  border-color: rgba(209, 163, 118, 0.4) !important;
}

/* Badge styles */
.badge-warning {
  background: linear-gradient(135deg, #d1a376 0%, #b47e50 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(180, 126, 80, 0.3);
}

.badge-success {
  background: linear-gradient(135deg, #8a6d4b 0%, #6b4e2f 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(138, 109, 75, 0.3);
}

/* Custom button styles */
.btn-refill {
  background: linear-gradient(135deg, #d1a376 0%, #b47e50 100%);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(180, 126, 80, 0.3);
}

.btn-refill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 126, 80, 0.4);
}

.btn-refill:active {
  transform: translateY(1px);
}

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

.btn-refill:hover::before {
  left: 100%;
}

/* Status badges */
.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-badge.completed {
  background: linear-gradient(135deg, #d1a376 0%, #b47e50 100%);
  color: #fff;
}

.status-badge.pending {
  background: linear-gradient(135deg, #8a6d4b 0%, #6b4e2f 100%);
  color: #fff;
}

.status-badge.failed {
  background: linear-gradient(135deg, #6b4e2f 0%, #4e3821 100%);
  color: #fff;
}

@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 1rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .last-update {
    margin-top: 0.5rem;
  }
}
.btn-orange-gradient {
  background: linear-gradient(to bottom, #d1a376, #b47e50);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 10; /* เพิ่ม */
  position: relative; /* เพิ่ม */
}
.navbar-nav .nav-link {
    cursor: pointer;
}

.package-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  pointer-events: none; /* เพิ่มบรรทัดนี้ */
}
