/* ═══════════════════════════════════════════════
   HoneyBee Learning — Bee Points & Admin Styles
   ═══════════════════════════════════════════════ */

/* ─── LEADERBOARD SECTION ─── */
.bp-leader-section {
  background: linear-gradient(135deg, #1a0a00 0%, #2d1200 50%, #3d1a00 100%);
  padding: 60px 5%;
}

.bp-leader-section .section-tag {
  background: rgba(255,215,0,0.15);
  color: #FFD700;
  border: 1px solid rgba(255,215,0,0.3);
}

.bp-leader-section .section-title {
  color: #FFD700;
}

.bp-leader-section .section-sub {
  color: rgba(255,255,255,0.6);
}

.bp-leader-card {
  max-width: 540px;
  margin: 32px auto 0;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,215,0,0.2);
  border-radius: 24px;
  padding: 10px 0 20px;
}

.bp-leader-list {
  padding: 10px 0;
}

.bp-leader-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: fadeUp 0.5s ease both;
  transition: background 0.2s;
}

.bp-leader-row:last-child {
  border-bottom: none;
}

.bp-leader-row:hover {
  background: rgba(255,215,0,0.04);
}

.bp-leader-medal {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.bp-leader-info {
  flex: 1;
}

.bp-leader-name {
  font-weight: 800;
  color: white;
  font-size: 1rem;
}

.bp-leader-orders {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-top: 2px;
}

.bp-leader-pts {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  flex-shrink: 0;
  text-align: right;
}

.bp-leader-note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  margin-top: 12px;
  padding: 0 20px;
}

.bp-leader-skeleton {
  height: 52px;
  background: rgba(255,255,255,0.06);
  margin: 6px 20px;
  border-radius: 12px;
  animation: shimmer 1.5s infinite linear;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
}

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

/* ─── NAV OVERFLOW: Too many links on small screens ─── */
/* When nav has many links, collapse less important ones */
@media (max-width: 1024px) {
  .nav-links li:nth-child(3),   /* Reviews — hide on tablet */
  .nav-links li:nth-child(7) {  /* Contact — hide on tablet */
    display: none;
  }
}

@media (max-width: 768px) {
  /* All links visible in hamburger drawer */
  .nav-links li { display: block !important; }
}



/* ─── BEE POINTS PAGE ─── */
.bp-hero {
  min-height: 55vh;
  background: linear-gradient(135deg, #1a0a00 0%, #3d1a00 30%, #6b3a1f 60%, #f4a227 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 5% 70px;
  text-align: center;
}

.bp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,179,0,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(244,162,39,0.15) 0%, transparent 50%);
}

.bp-hero-firework {
  position: absolute;
  font-size: 3rem;
  animation: fireworkFloat 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}
.bp-hero-firework:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.bp-hero-firework:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }
.bp-hero-firework:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 1s; }
.bp-hero-firework:nth-child(4) { bottom: 15%; right: 8%; animation-delay: 1.5s; }

@keyframes fireworkFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 0.9; }
}

.bp-hero-content {
  position: relative;
  z-index: 2;
}

.bp-hero-icon {
  font-size: 5rem;
  margin-bottom: 16px;
  display: block;
  animation: bounceIn 0.8s ease both;
}

.bp-hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #FFD700;
  text-shadow: 0 0 40px rgba(255,215,0,0.5), 2px 4px 0 rgba(0,0,0,0.4);
  line-height: 1.05;
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.bp-hero-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.bp-hero-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
  max-width: 480px;
  margin: 0 auto;
}

.bp-pill {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,215,0,0.4);
  color: #FFD700;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

/* ─── LOOKUP SECTION ─── */
.bp-lookup-section {
  background: var(--cream);
  padding: 60px 5%;
  text-align: center;
}

.bp-lookup-card {
  background: white;
  border-radius: 24px;
  padding: 44px 36px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 8px 48px rgba(61,107,36,0.12);
  border: 2px solid var(--green-pale);
}

.bp-lookup-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 8px;
}

.bp-lookup-sub {
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 28px;
}

.bp-lookup-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.bp-lookup-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: 50px;
  border: 2.5px solid var(--green-pale);
  background: #f8fef4;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  color: var(--text);
}

.bp-lookup-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(61,107,36,0.1);
}

.bp-lookup-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
}

.bp-lookup-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #3d6b24, #5a9435);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(61,107,36,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bp-lookup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(61,107,36,0.4);
}

.bp-lookup-btn:active {
  transform: translateY(0);
}

.bp-lookup-error {
  color: #c0392b;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 12px;
  display: none;
}

/* ─── CUSTOMER POINTS CARD ─── */
.bp-points-result {
  display: none;
  margin-top: 28px;
}

.bp-points-card {
  background: linear-gradient(135deg, #1a3a0a 0%, #2d5c14 50%, #3d6b24 100%);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bp-points-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255,215,0,0.1);
  border-radius: 50%;
}

.bp-points-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.bp-customer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.bp-customer-actual-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 20px;
}

.bp-points-display {
  background: rgba(255,215,0,0.15);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.bp-points-bee-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 4px;
}

.bp-points-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bp-points-value {
  font-family: 'Fredoka One', cursive;
  font-size: 3.5rem;
  color: #FFD700;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.bp-points-sub {
  font-size: 0.82rem;
  color: rgba(255,215,0,0.7);
  font-weight: 600;
}

.bp-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.bp-stat-box {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.bp-stat-box-value {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: white;
}

.bp-stat-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── REDEEM TABLE ─── */
.bp-redeem-section {
  background: var(--cream, #fffdf5);
  padding: 80px 5%;
  overflow-x: hidden;
}

.bp-redeem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.bp-redeem-card {
  background: white;
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  border: 2px solid var(--honey-pale, #ffe89e);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

/* Beautiful 'Ticket' style cutouts */
.bp-redeem-divider {
  position: relative;
  border: none;
  border-top: 2px dashed rgba(255, 179, 0, 0.35);
  margin: 0 -24px 20px -24px;
}

.bp-redeem-divider::before,
.bp-redeem-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--cream, #fffdf5);
  border-radius: 50%;
  border: 2px solid var(--honey-pale, #ffe89e);
  z-index: 1;
}

.bp-redeem-divider::before {
  left: -12px;
  border-right-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.3s;
}

.bp-redeem-divider::after {
  right: -12px;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
  transform: translateY(-50%) rotate(-45deg);
  transition: border-color 0.3s;
}

.bp-redeem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(255, 179, 0, 0.15);
  border-color: var(--honey);
}

.bp-redeem-card:hover .bp-redeem-divider::before,
.bp-redeem-card:hover .bp-redeem-divider::after {
  border-color: var(--honey);
}

.bp-redeem-icon {
  font-size: 2.8rem;
  display: inline-flex;
  margin: -10px auto 4px;
  padding: 16px;
  background: linear-gradient(135deg, #fffbdf, white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.1);
  z-index: 2;
  position: relative;
  align-items: center;
  justify-content: center;
}

.bp-redeem-points {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: var(--brown);
  background: linear-gradient(135deg, var(--honey), #f4a227);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 10px;
  margin-bottom: 2px;
  line-height: 1;
}

.bp-redeem-pts-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.bp-redeem-reward {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1.4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bp-redeem-order-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: var(--honey);
  border: none;
  border-radius: 50px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
  z-index: 2;
  position: relative;
}

.bp-redeem-order-btn:hover {
  background: #f4a227;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 179, 0, 0.4);
}


/* ─── HOW IT WORKS SECTION ─── */
.bp-how-section {
  background: var(--cream);
  padding: 60px 5%;
}

.bp-how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
  margin-top: 40px;
  position: relative;
}

/* Connecting line between the 4 step circles on desktop */
.bp-how-grid::before {
  content: '';
  position: absolute;
  top: 22px; /* aligns with centre of the step number circle */
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 2px;
  background: linear-gradient(90deg, var(--green), #5a9435);
  z-index: 0;
}

.bp-how-card {
  background: white;
  border-radius: 20px;
  padding: 30px 18px 24px;
  text-align: center;
  border: 2px solid var(--green-pale);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
}

.bp-how-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.bp-how-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), #5a9435);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(61,107,36,0.3);
  border: 3px solid var(--cream);
  position: relative;
  z-index: 2;
}

.bp-how-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.bp-how-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.bp-how-desc {
  font-size: 0.84rem;
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.55;
}

/* Tablet: 2x2 */
@media (max-width: 900px) {
  .bp-how-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .bp-how-grid::before { display: none; }
}

/* Mobile: 2x2 stays, smaller cards */
@media (max-width: 600px) {
  .bp-how-section { padding: 44px 4%; }
  .bp-how-grid { gap: 12px; }
  .bp-how-card { padding: 18px 12px 14px; }
  .bp-how-num { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 8px; }
  .bp-how-icon { font-size: 2rem; margin-bottom: 6px; }
  .bp-how-title { font-size: 0.88rem; }
  .bp-how-desc { font-size: 0.76rem; }
}

/* Very small: single column */
@media (max-width: 380px) {
  .bp-how-grid { grid-template-columns: 1fr; }
  .bp-how-card { padding: 16px 14px 14px; }
}

/* ─── CTA SECTION ─── */
.bp-cta-section {
  background: linear-gradient(135deg, #3d6b24 0%, #5a9435 100%);
  padding: 60px 5%;
  text-align: center;
}

.bp-cta-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white;
  margin-bottom: 12px;
}

.bp-cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-bottom: 28px;
}

.bp-cta-btn {
  background: #FFD700;
  color: #1a0a00;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.bp-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
}

/* ─── LOADING SPINNER ─── */
.bp-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── ADMIN PAGE ─── */
.admin-body {
  background: #0f1117;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
}

/* Login Screen */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0f1117 0%, #1a1d2e 50%, #0f1117 100%);
  position: relative;
  overflow: hidden;
}

.admin-login-wrap::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,179,0,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.admin-login-wrap::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61,107,36,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.admin-login-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 52px 44px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both;
}

.admin-login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.admin-login-bee {
  font-size: 3.5rem;
  display: block;
  animation: bounceIn 0.8s ease both;
}

.admin-login-brand {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #FFD700;
  margin-top: 8px;
}

.admin-login-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.admin-login-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: white;
  text-align: center;
  margin-bottom: 28px;
}

.admin-field {
  margin-bottom: 18px;
}

.admin-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.admin-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  transition: all 0.3s;
}

.admin-input:focus {
  outline: none;
  border-color: #FFD700;
  background: rgba(255,215,0,0.05);
  box-shadow: 0 0 0 4px rgba(255,215,0,0.1);
}

.admin-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.admin-login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #FFD700, #f4a227);
  color: #1a0a00;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(255,215,0,0.25);
  margin-top: 8px;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,215,0,0.35);
}

.admin-login-error {
  color: #ff6b6b;
  font-weight: 700;
  font-size: 0.87rem;
  text-align: center;
  margin-top: 14px;
  display: none;
}

/* ─── ADMIN DASHBOARD ─── */
.admin-dashboard {
  display: none;
}

.admin-topbar {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
}

.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-bee {
  font-size: 1.8rem;
}

.admin-topbar-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: #FFD700;
}

.admin-topbar-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-realtime-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,200,100,0.12);
  border: 1px solid rgba(0,200,100,0.3);
  color: #00c864;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
}

.admin-realtime-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c864;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.admin-logout-btn {
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.3);
  color: #ff6b6b;
  padding: 7px 16px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-logout-btn:hover {
  background: rgba(255,107,107,0.2);
}

.admin-content {
  padding: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Stats overview */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,215,0,0.25);
}

.admin-stat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.admin-stat-value {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #FFD700;
}

.admin-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-search {
  flex: 1;
  min-width: 220px;
  padding: 11px 18px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s;
}

.admin-search:focus {
  outline: none;
  border-color: #FFD700;
}

.admin-search::placeholder {
  color: rgba(255,255,255,0.3);
}

.admin-add-btn {
  background: linear-gradient(135deg, #FFD700, #f4a227);
  color: #1a0a00;
  border: none;
  padding: 11px 22px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,215,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.3);
}

/* Table */
.admin-table-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.73rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background: rgba(255,215,0,0.03);
}

.admin-points-badge {
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.25);
  color: #FFD700;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
}

.admin-action-btns {
  display: flex;
  gap: 8px;
}

.admin-edit-btn {
  background: rgba(61,107,36,0.15);
  border: 1px solid rgba(61,107,36,0.3);
  color: #6dbf3e;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-edit-btn:hover {
  background: rgba(61,107,36,0.28);
}

.admin-delete-btn {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.25);
  color: #ff6b6b;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-delete-btn:hover {
  background: rgba(255,107,107,0.2);
}

.admin-mobile-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.admin-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.admin-modal {
  background: #1a1d2e;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.admin-modal-overlay.open .admin-modal {
  transform: translateY(0);
}

.admin-modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 24px;
}

.admin-modal-field {
  margin-bottom: 16px;
}

.admin-modal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.admin-modal-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
}

.admin-modal-input:focus {
  outline: none;
  border-color: #FFD700;
}

.admin-modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.admin-modal-save {
  flex: 1;
  padding: 13px;
  background: linear-gradient(135deg, #FFD700, #f4a227);
  color: #1a0a00;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.admin-modal-save:hover {
  transform: translateY(-2px);
}

.admin-modal-cancel {
  padding: 13px 22px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-modal-cancel:hover {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.admin-modal-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 10px;
  display: none;
}

/* Empty State */
.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.3);
}

.admin-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.admin-empty-text {
  font-size: 1rem;
  font-weight: 700;
}

/* Loading state */
.admin-table-loading {
  text-align: center;
  padding: 44px;
  color: rgba(255,255,255,0.4);
}

.admin-setup-banner {
  background: rgba(255,215,0,0.08);
  border: 1.5px solid rgba(255,215,0,0.25);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.admin-setup-banner strong {
  color: #FFD700;
}

/* Member since badge */
.admin-member-since {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

/* ════════════════════════════════════════════
   BEE POINTS — COMPREHENSIVE MOBILE RESPONSIVE
   ════════════════════════════════════════════ */

/* Prevent horizontal overflow */
body:not(.admin-body) { overflow-x: hidden; }

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .bp-hero { padding: 100px 5% 60px; min-height: auto; }
  .bp-hero-icon { font-size: 4rem; }
  .bp-redeem-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .bp-lookup-section { padding: 50px 5%; }
  .bp-leader-section { padding: 50px 5%; }
  .bp-redeem-section { padding: 60px 5%; }
}

/* ── Mobile (≤ 680px) ── */
@media (max-width: 680px) {
  /* Hero */
  .bp-hero {
    padding: 90px 18px 60px;
    min-height: auto;
  }
  .bp-hero-firework { font-size: 2rem; opacity: 0.4; }
  .bp-hero-icon { font-size: 3.5rem; margin-bottom: 10px; }
  .bp-hero-title { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 10px; }
  .bp-hero-subtitle { font-size: 0.95rem; margin-bottom: 20px; }
  .bp-hero-pills { gap: 6px; flex-direction: column; align-items: center; }
  .bp-pill { font-size: 0.82rem; padding: 7px 14px; white-space: normal; text-align: center; }

  /* Lookup section */
  .bp-lookup-section { padding: 40px 16px; }
  .bp-lookup-card {
    padding: 28px 16px;
    border-radius: 18px;
  }
  .bp-lookup-title { font-size: 1.5rem; }
  .bp-lookup-sub { font-size: 0.86rem; margin-bottom: 20px; }
  .bp-lookup-input { font-size: 0.95rem; padding: 14px 16px 14px 46px; }
  .bp-lookup-btn { font-size: 0.95rem; padding: 13px; }

  /* Result card */
  .bp-points-card { padding: 22px 16px; border-radius: 16px; }
  .bp-customer-actual-name { font-size: 1.35rem; }
  .bp-points-value { font-size: 3rem; }
  .bp-stat-box-value { font-size: 1.1rem; }

  /* Leaderboard */
  .bp-leader-section { padding: 44px 16px; }
  .bp-leader-card { margin: 24px 0 0; }
  .bp-leader-row { padding: 12px 16px; gap: 10px; }
  .bp-leader-medal { font-size: 1.3rem; width: 28px; }
  .bp-leader-name { font-size: 0.92rem; }
  .bp-leader-pts { font-size: 1.25rem; }

  /* How it works */
  .bp-how-section { padding: 40px 16px; }

  /* Redeem section */
  .bp-redeem-section { padding: 44px 14px; }
  .bp-redeem-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .bp-redeem-card { min-height: 240px; padding: 24px 18px; }
  .bp-redeem-points { font-size: 2rem; }
  .bp-redeem-icon { font-size: 2.2rem; padding: 12px; }

  /* CTA section */
  .bp-cta-section { padding: 44px 16px 70px; }
  .bp-cta-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .bp-cta-sub { font-size: 0.9rem; }
  /* Stack the CTA buttons */
  .bp-cta-section > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .bp-cta-btn { text-align: center; padding: 14px 24px; font-size: 0.97rem; }
}

/* ── Very small phones (≤ 400px) ── */
@media (max-width: 400px) {
  .bp-hero { padding: 80px 14px 50px; }
  .bp-hero-title { font-size: 2rem; }
  .bp-hero-icon { font-size: 3rem; }
  .bp-lookup-card { padding: 22px 14px; }
  .bp-points-value { font-size: 2.6rem; }
  .nav-logo-sub { display: none; }
}

/* ── Sticky mobile WhatsApp bar (bee-points page) ── */
.bp-mobile-wa-bar {
  display: none;
}

@media (max-width: 680px) {
  .bp-mobile-wa-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: linear-gradient(90deg, #f4a227, #FFD700);
    padding: 13px 20px;
    padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    gap: 10px;
    text-decoration: none;
    color: #1a0a00;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    letter-spacing: 0.3px;
  }
  /* Push up footer / cta so sticky bar doesn't overlap */
  .bp-cta-section { padding-bottom: 90px !important; }
  footer#footer { padding-bottom: 90px !important; }
  /* Hide global FAB */
  .wa-fab { display: none !important; }
}

/* ── Touch-device: remove sticky hover effects ── */
@media (hover: none) {
  .bp-how-card:hover { transform: none; box-shadow: none; }
  .bp-redeem-card:hover { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
  .bp-leader-row:hover { background: none; }
}

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-content { padding: 16px; }
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4),
  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5) { display: none; }
  .admin-login-card { padding: 36px 24px; }
  .admin-topbar { padding: 12px 16px; }
  .bp-lookup-card { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) { display: none; }
}
