/* ===================================================
   GLOW BUTTON COMPONENT (DE-DUPLICATED & FIXED)
   =================================================== */

/* 1. Outer Button Shell */
.glow-card-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 170px;
  width: auto;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 2px;
  vertical-align: middle;
  background: #ffffff;
  box-sizing: border-box;
}

/* 2. Inner Frosted Container */
.glow-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 10px 0 14px;
  box-sizing: border-box;
}

/* 3. Animated Glow Blob Behind Glass */
.glow-blob {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  opacity: 0.85;
  filter: blur(14px);
  animation: glow-bounce 4s infinite ease-in-out;
  pointer-events: none;
}

/* Color Modifier Classes */
.blob-green  { background-color: #25d366; color: #25d366; }
.blob-red    { background-color: #ff0000; color: #ff0000; }
.blob-blue   { background-color: #007bff; color: #007bff; }
.blob-purple { background-color: #660033; color: #660033; }
.blob-amber  { background-color: #f59e0b; color: #f59e0b; }
.blob-orange { background-color: #f97316; color: #f97316; }
.blob-pink   { background-color: #ec4899; color: #ec4899; }
.blob-cyan   { background-color: #06b6d4; color: #06b6d4; }
.blob-teal   { background-color: #14b8a6; color: #14b8a6; }
.blob-indigo { background-color: #6366f1; color: #6366f1; }
.blob-slate  { background-color: #64748b; color: #64748b; }
.blob-zinc   { background-color: #71717a; color: #71717a; }

/* Left Content Section */
.glow-left-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.glow-left-box i,
.glow-icon {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}

.glow-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  line-height: 1;
}

/* Embedded QR Badge Button */
.btn-inline-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #ffffff;
  color: #1a73e8;
  border: 1.5px solid #d0e2ff;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.12);
  outline: none;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.btn-inline-qr i {
  font-size: 12px;
}

.btn-inline-qr:hover {
  background: #1a73e8;
  color: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.25);
  transform: translateY(-1px);
}

/* Glow Animation */
@keyframes glow-bounce {
  0%   { transform: translate(-80%, -50%); }
  50%  { transform: translate(10%, -50%); }
  100% { transform: translate(-80%, -50%); }
}

/* ===================================================
   QR DONATION GRID & CARDS
   ================================================== */
.qr-donation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.qr-pay-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease-in-out;
}

.qr-pay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 14px 14px 0 0;
}

.qr-card-upi::before {
  background: linear-gradient(90deg, #0e526e, #337ab7);
}

.qr-card-whatsapp::before {
  background: linear-gradient(90deg, #128c7e, #25d366);
}

.qr-pay-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.qr-card-upi:hover {
  border-color: #337ab7;
}

.qr-card-whatsapp:hover {
  border-color: #25d366;
}

.qr-pay-card.active-qr {
  border-color: #337ab7 !important;
  box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.25), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.qr-card-header {
  margin-bottom: 10px;
}

.qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-upi {
  background: #edf6ff;
  color: #0e526e;
  border: 1px solid #cce4fb;
}

.badge-whatsapp {
  background: #eefcf3;
  color: #15803d;
  border: 1px solid #c8f5d7;
}

.qr-code-frame {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-frame canvas {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.qr-card-footer {
  margin-top: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qr-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.qr-card-hint {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

@media (max-width: 640px) {
  .qr-donation-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===================================================
   PANEL BORDERS & SERVICE GLOW CARDS
   =================================================== */
.newborderprimary {
  background: #ffffff;
  border: 1px solid rgba(0, 116, 208, 0.2);
  border-top: 4px solid #0074d0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.newbordernormal {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 116, 208, 0.2);
  border-radius: 16px;
  padding: 10px 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.svc-glow-card {
  width: 30% !important;
  min-width: 220px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px 14px 16px !important;
  margin: 8px 6px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
}

.glow-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
}

.glow-heading {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.glow-subtext {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.svc-glow-card:hover {
  transform: translateY(-3px) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 25px rgba(14, 82, 110, 0.1) !important;
}

.svc-glow-card.selected {
  background: linear-gradient(135deg, #0e526e 0%, #155e75 100%) !important;
  border-color: #0e526e !important;
}

.svc-glow-card.selected .glow-heading { color: #ffffff; }
.svc-glow-card.selected .glow-subtext { color: #bae6fd; }
.svc-glow-card.selected .glow-avatar { background: #ffffff; }
.svc-glow-card.selected .glow-card-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: transparent;
}

/* ===================================================
   TEMPLE CATEGORY GRID & CARDS
   =================================================== */
.temple-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 6px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .temple-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 992px) {
  .temple-cat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }
}

.temple-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: none;
  height: 290px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 10px 24px -4px color-mix(in srgb, var(--card-color, #1e293b) 20%, rgba(0, 0, 0, 0.08));
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.temple-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 18px 34px -6px color-mix(in srgb, var(--card-color, #1e293b) 35%, rgba(0, 0, 0, 0.12));
}

.temple-cat-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #111827;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  border: none;
}

.temple-cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.temple-cat-card:hover .temple-cat-img-wrap img {
  transform: scale(1.04);
}

.temple-cat-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 65%,
    color-mix(in srgb, var(--card-light, #ffffff) 80%, transparent) 92%,
    var(--card-light, #ffffff) 100%
  );
}

.temple-cat-body {
  position: relative;
  flex: 1;
  background: linear-gradient(180deg, var(--card-light, #ffffff) 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 10px 42px 10px;
  box-sizing: border-box;
}

.temple-cat-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #1e293b;
  margin: 0;
  text-align: center;
  width: 100%;
  word-break: break-word;
  letter-spacing: -0.2px;
}

.temple-cat-count {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-color, #1e293b);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 2.5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--card-color, #1e293b) 45%, transparent);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

@media (max-width: 575px) {
  .temple-cat-card {
    height: 260px;
    border-radius: 14px;
  }

  .temple-cat-img-wrap {
    height: 155px;
  }

  .temple-cat-body {
    padding: 4px 8px 36px 8px;
  }

  .temple-cat-name {
    font-size: 11.5px;
  }

  .temple-cat-count {
    font-size: 10.5px;
    padding: 2px 11px;
    bottom: 8px;
  }
}