/* =========================================================
   STYLE CHUNG CHO CẢ ADMIN VÀ INDEX
   ========================================================= */

body {
  background: #f2f4f7;
  font-family: "Segoe UI", Roboto, sans-serif;
  padding-top: 15px;
  padding-bottom: 15px;
}

.container {
  max-width: 1100px;
}

/* Card */
.card {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  border: none;
}

/* Typography cho bảng */
table th,
table td {
  vertical-align: middle;
  font-size: 14px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* BOX TỔNG KẾT */
.summary-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Chia đều chiều cao các ô tổng kết */
.summary-box .row {
  display: flex;
  align-items: stretch;
}

/* Giữa nội dung trong mỗi ô */
.summary-box .col-12,
.summary-box .col-md-4 {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Số tiền */
.summary-value {
  font-weight: 600;
  font-size: 18px;
}

/* Filter Label */
.card-body .form-label {
  font-size: 14px;
}

/* Logo */
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  margin-right: 8px;
}

/* Session Header */
.session-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.session-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Trạng thái thanh toán */
.badge-paid {
  background: #16a34a;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.badge-unpaid {
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

/* Admin page hidden by default */
#adminPage {
  display: none;
}
/* ===============================
   TOP BADGE – GLASS LUXURY SWEEP
   =============================== */

.top-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

/* ===== GRADIENT BY RANK ===== */

.badge-gold {
  background: linear-gradient(
    135deg,
    #fff7cc,
    #fde68a,
    #facc15
  );
  color: #7c2d12;
  box-shadow:
    0 6px 18px rgba(245, 158, 11, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.badge-silver {
  background: linear-gradient(
    135deg,
    #f8fafc,
    #e5e7eb,
    #cbd5f5
  );
  color: #334155;
  box-shadow:
    0 6px 16px rgba(148,163,184,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.badge-bronze {
  background: linear-gradient(
    135deg,
    #ffedd5,
    #fdba74,
    #fb923c
  );
  color: #7c2d12;
  box-shadow:
    0 6px 16px rgba(251,146,60,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ===== GLASS LIGHT SWEEP ===== */

.top-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0.55) 55%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: glassSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glassSweep {
  0% {
    transform: translateX(-120%);
  }
  55% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}
/* ===== QR LUXURY GLASS ===== */

#qrFloatingBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,#d4af37,#fff3b0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: shine 3s infinite;
}

.qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.qr-box.glass {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 20px;
  width: 260px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 40px rgba(255,255,255,.35);
  position: relative;
}

.qr-box img {
  width: 100%;
  margin: 12px 0;
}

.qr-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.qr-close {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
}

@keyframes shine {
  0% { box-shadow: 0 0 10px rgba(255,255,255,.2); }
  50% { box-shadow: 0 0 30px rgba(255,255,255,.6); }
  100% { box-shadow: 0 0 10px rgba(255,255,255,.2); }
}
/* ===== QR GLASS LUXURY ===== */

.qr-box.glass {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.08)
  );
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 16px;
  width: 240px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2),
    0 12px 40px rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}

.qr-box.glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: glassShine 3s infinite;
}

@keyframes glassShine {
  0% { left: -60%; }
  100% { left: 120%; }
}

.qr-box img {
  width: 100%;
  border-radius: 8px;
}
.qr-layout {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-left {
  flex: 0 0 200px;
}

.qr-right {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.qr-right .amount {
  font-size: 18px;
  font-weight: 600;
  color: #16a34a;
  margin-top: 8px;
}
/* ===== PAYMENT QR GRID ===== */

.payment-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 20px;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.payment-col img {
  width: 100%;
  border-radius: 12px;
}

.amount-badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg,#fde68a,#facc15);
  color: #7c2d12;
  box-shadow: 0 6px 18px rgba(245,158,11,.35);
}
/* =========================
   QR PAYMENT – MOBILE FIX
   ========================= */

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .payment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* QR CỘT */
  .qr-col {
    display: flex;
    justify-content: center;
  }

  #vietqrImg {
    width: 240px;
    max-width: 90vw;
  }

  /* INFO */
  .info-col {
    text-align: center;
    font-size: 14px;
  }

  .info-col div {
    margin-bottom: 4px;
  }

  /* SỐ TIỀN */
  .amount-badge {
    display: inline-block;
    margin: 12px auto 0;
    padding: 10px 18px;
    font-size: 18px;
    border-radius: 999px;
    background: linear-gradient(
      135deg,
      #bbf7d0,
      #4ade80
    );
    color: #065f46;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(22,163,74,0.35);
  }

  /* NHẮC NHỞ */
  .note-col {
    text-align: center;
    font-size: 13px;
  }

  .note-col button {
    width: 100%;
    margin-top: 12px;
    font-size: 15px;
    padding: 10px;
  }
}
