/* 
 * 38 Magala Form & Admin Stylesheet
 * Elegant Auspicious Khmer Sacred & Modern Responsive UI
 */

@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Moul&display=swap');

:root {
  --font-body: 'Kantumruy Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Khmer OS Siemreap", sans-serif;
  --font-heading: 'Moul', 'Kantumruy Pro', cursive, sans-serif;

  /* Colors */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(18, 26, 45, 0.85);
  --bg-card-hover: rgba(28, 38, 64, 0.95);
  --bg-input: rgba(15, 23, 42, 0.75);
  
  --gold-300: #fef08a;
  --gold-400: #fde047;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --ruby-500: #ef4444;
  --sapphire-500: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fbbf24;

  --border-gold: rgba(245, 158, 11, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --shadow-gold: 0 8px 32px -4px rgba(245, 158, 11, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-admin {
  max-width: 1300px;
}

/* Top Live Clock Bar */
.live-clock-bar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.live-clock-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
}

.clock-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-500);
  padding: 3px 10px;
  border-radius: 9999px;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.82rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.clock-time-display {
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Banner Section */
.banner-wrapper {
  margin: 16px 0 24px 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow-gold);
  background: #0f172a;
}

.banner-img {
  width: 100%;
  height: auto;
  min-height: 190px;
  max-height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.banner-wrapper:hover .banner-img {
  transform: scale(1.015);
}

/* Dynamic Designer Banner */
.dynamic-banner-box {
  width: 100%;
  min-height: 250px;
  padding: 38px 20px 30px 20px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.4s ease;
}

.banner-halo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 220px;
  transform: translate(-50%, -60%);
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.28) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(24px);
}

.banner-mandala-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(251, 191, 36, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.banner-mandala-bg::after {
  content: '';
  position: absolute;
  inset: 35px;
  border: 1.5px solid rgba(251, 191, 36, 0.18);
  border-radius: 50%;
}

.banner-corner-ornament {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(251, 191, 36, 0.7);
  pointer-events: none;
}
.corner-tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.corner-tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.corner-bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-br { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; }

.banner-inner-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  width: 100%;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.banner-lotus-wrap {
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.5));
}

.banner-lotus-wrap svg {
  width: 58px;
  height: 48px;
  display: block;
}

.banner-title {
  font-size: 1.95rem;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.banner-title.font-moul {
  font-family: var(--font-heading);
}

.banner-title.font-kantumruy {
  font-family: var(--font-body);
  font-weight: 700;
}

.banner-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 12px;
  opacity: 0.95;
}

.banner-tagline {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

/* Themes */
.theme-gold {
  background: radial-gradient(circle at 50% 25%, #3b1d06 0%, #1c1917 45%, #0a1128 100%);
  border-color: rgba(245, 158, 11, 0.4);
}
.theme-gold .banner-title {
  background: linear-gradient(180deg, #fef08a 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.5));
}
.theme-gold .banner-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
}
.theme-gold .banner-subtitle { color: #fde68a; }
.theme-gold .banner-tagline { color: #fbbf24; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); }

.theme-ruby {
  background: radial-gradient(circle at 50% 25%, #4c0519 0%, #2b0712 50%, #0f0205 100%);
  border-color: rgba(244, 63, 94, 0.4);
}
.theme-ruby .banner-title {
  background: linear-gradient(180deg, #ffe4e6 0%, #f43f5e 50%, #be123c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(244, 63, 94, 0.5));
}
.theme-ruby .banner-badge {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid #f43f5e;
  color: #fda4af;
}
.theme-ruby .banner-subtitle { color: #fecdd3; }
.theme-ruby .banner-tagline { color: #fb7185; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.25); }

.theme-emerald {
  background: radial-gradient(circle at 50% 25%, #064e3b 0%, #042f2e 50%, #021a14 100%);
  border-color: rgba(16, 185, 129, 0.4);
}
.theme-emerald .banner-title {
  background: linear-gradient(180deg, #d1fae5 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.5));
}
.theme-emerald .banner-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}
.theme-emerald .banner-subtitle { color: #a7f3d0; }
.theme-emerald .banner-tagline { color: #34d399; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.25); }

.theme-sapphire {
  background: radial-gradient(circle at 50% 25%, #1e1b4b 0%, #0f172a 50%, #030712 100%);
  border-color: rgba(59, 130, 246, 0.4);
}
.theme-sapphire .banner-title {
  background: linear-gradient(180deg, #dbeafe 0%, #60a5fa 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.5));
}
.theme-sapphire .banner-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid #3b82f6;
  color: #93c5fd;
}
.theme-sapphire .banner-subtitle { color: #bfdbfe; }
.theme-sapphire .banner-tagline { color: #60a5fa; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25); }

.theme-dark {
  background: radial-gradient(circle at 50% 25%, #27272a 0%, #18181b 60%, #09090b 100%);
  border-color: rgba(245, 158, 11, 0.4);
}
.theme-dark .banner-title {
  background: linear-gradient(180deg, #ffffff 0%, #fbbf24 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(251, 191, 36, 0.4));
}
.theme-dark .banner-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
}
.theme-dark .banner-subtitle { color: #e4e4e7; }
.theme-dark .banner-tagline { color: #fde047; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.25); }

/* Color Theme Pills in Admin */
.theme-pill-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.theme-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1.5px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}
.theme-pill-btn:hover {
  border-color: var(--gold-500);
  transform: translateY(-1px);
}
.theme-pill-btn.active {
  border-color: var(--gold-500);
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-300);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}
.theme-color-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
  .banner-title {
    font-size: 1.38rem;
  }
  .banner-subtitle {
    font-size: 0.92rem;
  }
  .banner-tagline {
    font-size: 0.78rem;
    padding: 4px 10px;
  }
  .dynamic-banner-box {
    padding: 26px 12px 20px 12px;
    min-height: 200px;
  }
}

/* Countdown Card */
.countdown-card {
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.95), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-600), transparent);
}

.countdown-title {
  color: var(--gold-400);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.countdown-box {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.countdown-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1.1;
  font-family: monospace, sans-serif;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
}

.countdown-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.section-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.section-title {
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--gold-400);
}

.section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Terms Agreement Card */
.terms-card {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.terms-content-box {
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  max-height: 240px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-line;
  margin-bottom: 20px;
}

.terms-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.terms-checkbox-wrap:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-500);
}

.terms-checkbox-wrap input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.terms-checkbox-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold-300);
  cursor: pointer;
}

/* Form Groups & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.required-star {
  color: #ef4444;
  font-size: 1.1rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.98rem;
  font-family: var(--font-body);
  color: var(--text-main);
  outline: none;
  transition: all 0.25s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #64748b;
  font-size: 0.9rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: rgba(15, 23, 42, 0.95);
}

.form-input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.error-text {
  color: #f87171;
  font-size: 0.82rem;
  display: none;
}

.is-invalid + .error-text {
  display: block;
}

/* Choice Cards (Radio Grid) */
.radio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.radio-card {
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card-content:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
  border-color: var(--gold-500);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
  color: var(--gold-300);
}

.radio-card-icon {
  font-size: 1.5rem;
}

.radio-card-text {
  font-size: 0.94rem;
  font-weight: 500;
}

/* Primary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-gold);
  color: var(--gold-300);
}

.btn-secondary:hover {
  background: rgba(45, 60, 85, 0.9);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Footer Section */
.footer-wrap {
  margin-top: 40px;
  margin-bottom: 30px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), #090d16);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-gold);
  text-align: center;
}

/* Auspicious Dhamma Donation Header Above QR Code */
.donation-header-box {
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.donation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--gold-500);
  color: var(--gold-300);
  padding: 4px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.donation-title {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  line-height: 1.6;
  background: linear-gradient(180deg, #fef08a 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.45));
  max-width: 760px;
  margin: 0 auto;
  letter-spacing: 0.5px;
}

.donation-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-500);
  margin-top: 14px;
  font-size: 0.95rem;
}

.donation-divider::before,
.donation-divider::after {
  content: '';
  height: 1px;
  width: 70px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.donation-divider::after {
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 200px 1fr;
    text-align: left;
  }
}

.qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  max-width: 210px;
  margin: 0 auto;
}

.qr-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.bank-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bank-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-item-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-item-val {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--gold-500);
  color: #0f172a;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #64748b;
}

/* Thank You Modal / Page */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.thank-you-ticket {
  background: linear-gradient(145deg, #161f36, #0d1322);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 28px;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.35);
  text-align: center;
  position: relative;
  animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  0% { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-400);
  color: var(--emerald-400);
  padding: 6px 18px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.ticket-header-title {
  font-family: var(--font-heading);
  color: var(--gold-400);
  font-size: 1.8rem;
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.ticket-code-box {
  background: rgba(10, 15, 29, 0.9);
  border: 1px dashed var(--gold-500);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 16px auto;
}

.ticket-code-num {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 2px;
}

.blessing-message-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin: 20px 0;
  text-align: justify;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #fde68a;
}

.blessing-message-box p {
  margin-bottom: 12px;
}

.blessing-message-box p:last-child {
  margin-bottom: 0;
}

.ticket-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Admin Dashboard Specific Styles */
.admin-navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-gold);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold-500);
  color: var(--gold-400);
  font-weight: 600;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Data Table Container */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.table-search-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: #fff;
  font-size: 0.9rem;
  min-width: 260px;
}

.table-search-input:focus {
  border-color: var(--gold-500);
  outline: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.data-table th {
  background: rgba(10, 15, 29, 0.95);
  padding: 12px 14px;
  color: var(--gold-400);
  font-weight: 600;
  border-bottom: 1.5px solid var(--border-gold);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: #e2e8f0;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-gray {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Lucky Draw UI */
.draw-hero {
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  border: 1px solid var(--border-gold);
}

.draw-presets {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.draw-btn-large {
  padding: 16px 28px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 260px;
}

.draw-btn-sub {
  font-size: 0.82rem;
  opacity: 0.85;
  font-weight: normal;
}

.draw-display-box {
  margin: 24px auto;
  max-width: 450px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #0d1322;
  border: 2px dashed var(--gold-500);
  text-align: center;
}

.draw-rolling-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-300);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 20px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 6px;
}

.winner-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.winner-idx {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-500);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
}

/* Toast notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid var(--gold-500);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .live-clock-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .countdown-num {
    font-size: 1.45rem;
  }
  .glass-card {
    padding: 20px 16px;
  }
  .footer-wrap {
    padding: 24px 16px;
  }
  .donation-title {
    font-size: 1.15rem;
    line-height: 1.55;
  }
  .thank-you-ticket {
    padding: 24px 16px;
  }
  .ticket-header-title {
    font-size: 1.4rem;
  }
}

/* Print Optimization for Thank You Ticket */
@media print {
  body * {
    visibility: hidden;
  }
  #thankYouModal,
  #thankYouModal * {
    visibility: visible;
  }
  #thankYouModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    opacity: 1 !important;
  }
  .thank-you-ticket {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid #b45309 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 20px !important;
  }
  .ticket-header-title,
  .donation-title,
  .ticket-code-num,
  .bank-item-val {
    color: #92400e !important;
    -webkit-text-fill-color: initial !important;
  }
  .blessing-message-box,
  .ticket-donation-box,
  .ticket-registrant-card {
    background: #fefce8 !important;
    color: #1f2937 !important;
    border-color: #cbd5e1 !important;
  }
  .blessing-message-box p {
    color: #1f2937 !important;
  }
  .ticket-actions,
  .copy-btn {
    display: none !important;
  }
}
