/* =========================================================================
   NEXT VISION ACADEMY - 1-SCREEN COMPACT MOBILE FESTIVE CAMPAIGN
   Ultra-optimized for 1 single mobile screen (Zero scrolling required) 🪔
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,600&display=swap');

:root {
  --primary-maroon: #4a0711;
  --festive-crimson: #9e1326;
  --festive-bright-red: #d91c32;
  --gold-glow: #ffd700;
  --gold-warm: #f59e0b;
  --bg-gradient-start: #200407;
  --bg-gradient-mid: #3d060f;
  --bg-gradient-end: #140204;
  --fb-blue: #1877f2;
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --google-green: #16a34a;
  --text-dark: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
}

/* Landing page 1-screen mode */
body.campaign-app {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, var(--festive-crimson) 0%, var(--bg-gradient-mid) 45%, var(--bg-gradient-start) 100%);
}

/* Admin and Print pages must scroll freely */
body.admin-page, body.print-page {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* 1-Screen Wrapper: Flex column filling exactly 100dvh */
.screen-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px 14px 10px 14px;
  position: relative;
  z-index: 1;
}

/* 1. Header (Compact, ~65px) */
.app-header {
  text-align: center;
  padding: 4px 0 2px 0;
  flex-shrink: 0;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.16);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--gold-glow);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.header-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.header-tagline {
  font-size: 0.78rem;
  color: #fed7aa;
  opacity: 0.9;
}

/* 2. Side-by-Side Social Row (~46px) */
.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0;
  flex-shrink: 0;
}

.social-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
  position: relative;
}

.social-chip:active {
  transform: scale(0.97);
}

.chip-fb {
  background: var(--fb-blue);
}

.chip-ig {
  background: var(--ig-gradient);
}

.chip-status {
  display: none;
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.65rem;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.chip-done .chip-status {
  display: flex;
}

/* 3. Hero Google Review Card (~250px) */
.review-hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 14px 12px 14px;
  color: var(--text-dark);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  border: 2px solid var(--gold-warm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  max-height: 290px;
  margin: 4px 0;
}

.review-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-fill {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.rating-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 6px;
}

.mini-shuffle-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.compact-quote-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 10px 8px 10px;
  margin-bottom: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.compact-review-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #1e293b;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-review-num {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}

/* Big 1-Tap Copy Button */
.btn-copy-google {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  width: 100%;
  animation: pulseHero 2.5s infinite ease-in-out;
}

@keyframes pulseHero {
  0%, 100% { box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(22, 163, 74, 0.75); }
}

.btn-copy-google:active {
  transform: scale(0.98);
}

.mini-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #166534;
  background: #f0fdf4;
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 6px;
}

/* 4. Reward Trigger Strip (~50px) */
.voucher-strip {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 4px 0;
  flex-shrink: 0;
}

.voucher-strip-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gift-icon {
  font-size: 1.4rem;
}

.voucher-strip-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold-glow);
}

.voucher-strip-sub {
  font-size: 0.7rem;
  color: #fef3c7;
  opacity: 0.85;
}

.voucher-strip-btn {
  background: var(--festive-bright-red);
  color: white;
  border: 1px solid rgba(255,215,0,0.5);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* 5. Compact Footer (~24px) */
.app-footer {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 2px;
  flex-shrink: 0;
}

.app-footer a {
  color: var(--gold-glow);
  text-decoration: none;
  font-weight: 600;
}

/* MODAL / BOTTOM SHEET (VOUCHER CLAIM) */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: white;
  color: var(--text-dark);
  width: 100%;
  max-width: 440px;
  border-radius: 20px 20px 0 0;
  padding: 18px 18px 24px 18px;
  box-shadow: 0 -8px 25px rgba(0,0,0,0.3);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.festive-pill {
  background: var(--festive-bright-red);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.modal-close {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.input-field {
  margin-bottom: 10px;
}

.input-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 3px;
}

.input-field input, .input-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.modal-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--festive-crimson) 0%, var(--primary-maroon) 100%);
  color: var(--gold-glow);
  border: 1px solid rgba(255,215,0,0.5);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
}

/* Claimed Voucher Display */
.claimed-voucher-box {
  display: none;
  background: linear-gradient(135deg, #4a0711 0%, #7f1d1d 100%);
  border: 2px dashed var(--gold-glow);
  border-radius: 14px;
  padding: 16px;
  color: white;
  text-align: center;
  margin-top: 8px;
}

.coupon-code-pill {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,215,0,0.5);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fef08a;
  display: inline-block;
  margin: 6px 0;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
}

/* Toast */
.app-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0f172a;
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  z-index: 9999;
  border: 1px solid rgba(255,215,0,0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}
