/* Fonts loaded via <link> in HTML for performance (non-render-blocking) */

:root {
  --buddhist-orange: #FF7B00;
  --buddhist-yellow: #FFB800;
  --buddhist-red: #D11D27;
  --buddhist-blue: #1C366B;
  --poya-moon: #FFFDF2;
  --bg-sky-top: #050A15;
  --bg-sky-mid: #0D1630;
  --bg-sky-horizon: #2A1A1A;
  
  --text-main: #FFFDF2;
  --text-muted: rgba(255, 253, 242, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 184, 0, 0.2);
}

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

body {
  font-family: 'Noto Sans Sinhala', sans-serif;
  background-color: var(--bg-sky-top);
  color: var(--text-main);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Scene */
.vesak-sky {
  position: fixed; inset: 0; z-index: -4;
  background: radial-gradient(circle at 50% 0%, #1A2A52 0%, var(--bg-sky-top) 40%, var(--bg-sky-mid) 100%);
}

.full-moon-container {
  position: fixed;
  top: 5%; right: 10%;
  width: clamp(150px, 30vw, 350px);
  aspect-ratio: 1;
  z-index: -3;
  mix-blend-mode: screen; /* Added here to blend the entire container (including black image backgrounds) into the sky */
}

.full-moon-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  box-shadow: 
    0 0 60px rgba(255, 253, 242, 0.6),
    0 0 160px rgba(255, 184, 0, 0.4);
  animation: moonGlow 8s infinite alternate;
}

.full-moon-image {
  position: absolute;
  inset: -15%;
  background-image: url('https://wsrv.nl/?url=vesak.delightconsumerproducts.lk/assets/moon.png&output=webp&q=70');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

@keyframes moonGlow {
  0% { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

.stars {
  position: fixed; inset: 0; z-index: -3;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.5;
  /* Removed heavy screen-wide twinkle animation to save CPU/GPU cycles */
}

/* Left Lanterns */
.lanterns-left {
  position: fixed;
  top: -10px;
  left: 3%;
  z-index: 1;
  display: flex;
  gap: 20px;
  pointer-events: none;
}
.hanging-lantern {
  transform-origin: top center;
  animation: waveLantern ease-in-out infinite alternate;
}
.lantern-1 {
  width: clamp(100px, 15vw, 150px);
  animation-duration: 4.5s;
}
.lantern-2 {
  width: clamp(80px, 12vw, 120px);
  margin-top: -30px;
  animation-duration: 6s;
  animation-delay: -2s;
}
.hanging-lantern svg {
  width: 100%;
  height: auto;
}

@keyframes waveLantern {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(8deg); }
}

/* Shining stars going up */
#blooms-container {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
}
.shining-star {
  position: absolute;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.9), 0 0 25px 8px rgba(255, 215, 0, 0.6);
  animation: floatStar linear infinite;
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes floatStar {
  0% { transform: translateY(110vh) scale(0.6); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(50vh) scale(1.3); opacity: 0.7; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(0.6); opacity: 0; }
}

/* Main Container */
#app-container {
  display: flex; justify-content: center; align-items: center;
  min-height: 100dvh;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 10;
}

.step {
  display: none; 
  flex-direction: column; 
  align-items: center; 
  width: 100%; 
  max-width: 600px; 
  text-align: center;
  opacity: 0;
}

.step.active { 
  display: flex; 
  animation: vesakGlowIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}

/* Beautiful Vesak Theme Transition (Glowing Lantern Effect) */
@keyframes vesakGlowIn {
  0% { 
    opacity: 0; 
    transform: translateY(40px) scale(0.95);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

/* Logo & Branding */
.logo-container {
  background: #FFFFFF;
  padding: 15px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 35px rgba(255, 184, 0, 0.15);
  margin-bottom: 35px;
  display: inline-block;
  border: 2px solid rgba(255, 184, 0, 0.25);
}
.main-logo {
  max-width: 170px; height: auto;
  display: block;
}

.tagline {
  font-family: 'Abhaya Libre', serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--buddhist-yellow);
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(255, 184, 0, 0.3);
}

.main-title {
  font-family: 'Abhaya Libre', serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--buddhist-yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 15px rgba(255, 184, 0, 0.4));
  margin-bottom: 25px;
}

.description {
  font-size: clamp(1rem, 3.2vw, 1.15rem);
  color: rgba(255, 253, 242, 0.85);
  max-width: 550px;
  margin: 0 auto 40px;
  line-height: 1.85;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Buddhist Flag Colors Accent Line */
.buddhist-flag-line {
  display: flex;
  height: 4px;
  width: 280px;
  margin: 0 auto 35px;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.buddhist-flag-line::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-sky-top), transparent 15%, transparent 85%, var(--bg-sky-top));
  pointer-events: none;
}
.buddhist-flag-line div { flex: 1; }
.bg-blue { background: #003399; }
.bg-yellow { background: #FFCC00; }
.bg-red { background: #E60000; }
.bg-white { background: #FFFFFF; }
.bg-orange { background: #FF6600; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #FF7B00, #D11D27);
  color: #FFF;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 12px 35px rgba(209, 29, 39, 0.5), inset 0 2px 0 rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-primary:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 45px rgba(209, 29, 39, 0.7), inset 0 2px 0 rgba(255,255,255,0.5);
}
.btn-secondary {
  background: var(--glass-bg);
  color: #FFF;
  padding: 14px 35px;
  border-radius: 50px;
  font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Live Counter Redesign */
.counter-box {
  margin-top: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 184, 0, 0.25);
  padding: 10px 25px 10px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 2px 10px rgba(255,184,0,0.05);
}

.counter-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 0, 0.15);
  width: 42px; height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.2);
}

.counter-icon {
  width: 24px; height: 24px;
  fill: var(--buddhist-yellow);
  filter: drop-shadow(0 0 5px rgba(255,184,0,0.8));
}

.counter-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.counter-text { 
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-size: 0.95rem; 
  color: var(--text-muted); 
  letter-spacing: 0.5px;
}

.counter-num { 
  font-size: 1.6rem; 
  font-weight: 800; 
  color: #FFF;
  text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

/* Instruction Box */
.instruction-box {
  background: rgba(45, 10, 15, 0.7);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-top: 35px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.instruction-box h3 {
  color: var(--buddhist-yellow);
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(255, 184, 0, 0.4);
}
.instruction-box p {
  color: #eee;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.instruction-box strong {
  color: #ffcccc;
  font-weight: 600;
}

/* Modals & Inputs */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 10, 21, 0.85);
  backdrop-filter: blur(15px);
  display: none; justify-content: center; align-items: center;
  padding: 20px;
  opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal-card {
  background: linear-gradient(145deg, rgba(28, 54, 107, 0.9), rgba(13, 22, 48, 0.95));
  border: 1px solid rgba(255, 184, 0, 0.3);
  padding: 40px 30px;
  border-radius: 24px;
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.open .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute; top: 15px; right: 15px;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-card h3 {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.8rem;
  color: var(--buddhist-yellow);
  margin-bottom: 25px;
  text-align: center;
}

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label {
  display: block; font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 8px;
}
.input-field {
  width: 100%; padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: #fff; font-family: inherit; font-size: 1rem;
  transition: all 0.3s;
}
.input-field:focus {
  outline: none; border-color: var(--buddhist-yellow);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15);
}

/* Grids & Carousel Redesign */
h2.step-title {
  font-family: 'Abhaya Libre', serif;
  font-size: 2.2rem;
  color: var(--buddhist-yellow);
  margin-bottom: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  padding: 20px 10px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
}

/* Custom Scrollbar (Used primarily on mobile) */
.cards-grid::-webkit-scrollbar {
  height: 6px;
}
.cards-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.cards-grid::-webkit-scrollbar-thumb {
  background: var(--buddhist-yellow);
  border-radius: 10px;
}

.item-card {
  position: relative; 
  border-radius: 15px; 
  overflow: hidden; 
  cursor: pointer;
  background: rgba(255,255,255,0.02); 
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  aspect-ratio: 9/16; 
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.item-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }

/* Mobile Horizontal Carousel Fallback */
@media (max-width: 768px) {
  .cards-grid {
    display: flex; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    justify-content: flex-start;
    padding-bottom: 25px;
  }
  .item-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: clamp(200px, 65vw, 280px);
  }
}

/* Beautiful Hover Overlay */
.hover-preview-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 2;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: all 0.3s;
}
.hover-preview-overlay span {
  background: rgba(255,255,255,0.2); backdrop-filter: blur(5px);
  color: #fff; padding: 10px 20px; border-radius: 30px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.4);
  transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.item-card:hover .hover-preview-overlay { opacity: 1; }
.item-card:hover .hover-preview-overlay span { transform: scale(1); }

.item-card:hover { 
  transform: translateY(-10px) scale(1.02); 
  border-color: rgba(255, 184, 0, 0.6); 
  box-shadow: 0 20px 45px rgba(255, 184, 0, 0.3);
}

.item-card.selected { 
  border-color: var(--buddhist-yellow); 
  transform: translateY(-5px);
  box-shadow: 0 0 0 3px var(--buddhist-yellow), 0 20px 50px rgba(255, 184, 0, 0.5); 
}

/* Dedicated Checkmark Div */
.selected-checkmark {
  position: absolute; top: 15px; right: 15px;
  background: var(--buddhist-yellow); color: #000;
  width: 32px; height: 32px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.item-card.selected .selected-checkmark { display: flex; }

.nav-buttons { display: flex; gap: 15px; justify-content: center; width: 100%; }
.w-100 { width: 100%; }

/* Canvas Container */
/* Download Page Redesign */
.success-header { margin-bottom: 30px; }
.success-title { 
  color: var(--buddhist-yellow); 
  font-size: clamp(2.5rem, 6vw, 3.5rem); 
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}
.success-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 253, 242, 0.8);
  letter-spacing: 0.5px;
}

.card-showcase {
  position: relative;
  width: 100%; max-width: 400px;
  margin: 0 auto 40px;
}
.showcase-glow {
  position: absolute;
  top: 10%; left: 10%; right: 10%; bottom: 10%;
  background: var(--buddhist-yellow);
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
  animation: pulseGlow 4s infinite alternate;
}
@keyframes pulseGlow {
  0% { opacity: 0.2; transform: scale(0.9); }
  100% { opacity: 0.45; transform: scale(1.1); }
}

.canvas-container {
  width: 100%;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-radius: 24px;
  border: 1px solid rgba(255, 184, 0, 0.2);
  box-shadow: 0 25px 50px rgba(0,0,0,0.7), inset 0 0 20px rgba(255, 184, 0, 0.1);
}
.canvas-container canvas { 
  width: 100%; height: auto; display: block; 
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.action-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 15px;
  width: 100%; max-width: 350px; margin: 0 auto;
}

.btn-download {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 18px 20px;
  background: linear-gradient(135deg, #FF7B00, #E62E00);
  color: white; font-size: 1.3rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 50px;
  box-shadow: 0 15px 35px rgba(230, 46, 0, 0.4), inset 0 2px 0 rgba(255,255,255,0.3);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-download:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px rgba(230, 46, 0, 0.6), inset 0 2px 0 rgba(255,255,255,0.5);
}

/* Social Media Profiles CTA */
.social-cta-container {
  margin-top: 35px;
  padding: 25px 20px;
  background: rgba(10, 15, 36, 0.4);
  border: 1px solid rgba(255, 184, 0, 0.15);
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.social-heading {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.3rem;
  color: var(--buddhist-yellow);
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 600px) {
  .social-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-facebook {
  background: linear-gradient(135deg, #1877F2, #0d5cb9);
  border: 1px solid rgba(24, 119, 242, 0.5);
}

.btn-facebook:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
  border-color: rgba(255,255,255,0.4);
}

.btn-tiktok {
  background: linear-gradient(135deg, #111111, #2b2b2b);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-tiktok:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 242, 254, 0.5);
}

.btn-restart {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted); font-size: 1.1rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50px;
  cursor: pointer; transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.btn-restart:hover {
  background: rgba(255,255,255,0.1);
  color: white; transform: translateY(-2px);
}

.btn-icon { width: 24px; height: 24px; fill: currentColor; }

/* Loader */
.dharma-wheel {
  width: 80px; height: 80px; margin: 0 auto 20px;
  border-radius: 50%; border: 4px solid var(--buddhist-yellow);
  position: relative; animation: spin 4s linear infinite;
}
.dharma-wheel::before, .dharma-wheel::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px;
  background: var(--buddhist-yellow); transform: translateY(-50%);
}
.dharma-wheel::after { transform: translateY(-50%) rotate(90deg); }
.dharma-spokes {
  position: absolute; inset: 0;
}
.dharma-spokes::before, .dharma-spokes::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px;
  background: var(--buddhist-yellow); transform: translateY(-50%) rotate(45deg);
}
.dharma-spokes::after { transform: translateY(-50%) rotate(-45deg); }

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

.loading-text { font-family: 'Abhaya Libre', serif; font-size: 1.5rem; color: var(--buddhist-yellow); margin-bottom: 10px; }
.loading-sub { color: rgba(255,255,255,0.6); }

/* SVG Decor */
.lotus-decor { width: 60px; fill: var(--buddhist-yellow); margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(255,184,0,0.5)); }

/* Screen Reader Only (Hidden SEO Content) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ RESPONSIVE: Tablet ============ */
@media (max-width: 1024px) {
  .step { max-width: 90vw; }
  .full-moon-container { width: clamp(120px, 25vw, 280px); top: 3%; right: 5%; }
  .lanterns-left { left: 1%; }
  .lantern-1 { width: clamp(80px, 12vw, 120px); }
  .lantern-2 { width: clamp(60px, 10vw, 100px); }
}

/* ============ RESPONSIVE: Mobile ============ */
@media (max-width: 768px) {
  #app-container { padding: 40px 15px 30px; }
  .step { max-width: 95vw; }
  .full-moon-container { width: clamp(100px, 35vw, 200px); top: 2%; right: 3%; }
  .lanterns-left { left: 0; gap: 10px; }
  .lantern-1 { width: clamp(70px, 18vw, 110px); }
  .lantern-2 { width: clamp(55px, 14vw, 90px); }
  .modal-card { padding: 30px 20px; max-width: 95vw; }
  .preview-card-modal { max-width: 95vw !important; }
  .card-showcase { max-width: 90vw; }
  .action-buttons { max-width: 90vw; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .btn-primary, .btn-secondary { width: 100%; padding: 15px; justify-content: center; }
  .nav-buttons { flex-direction: column-reverse; }
  .main-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .description { font-size: 0.95rem; margin: 0 auto 30px; }
  .counter-box { flex-direction: row; padding: 8px 15px 8px 8px; gap: 10px; }
  .counter-text { font-size: 0.85rem; }
  .counter-num { font-size: 1.3rem; }
  .instruction-box { padding: 20px 15px; }
  .instruction-box h3 { font-size: 1.1rem; }
  .instruction-box p { font-size: 0.85rem; }
  .success-title { font-size: clamp(2rem, 8vw, 2.5rem); }
}

/* ============ RESPONSIVE: Very Small Phones ============ */
@media (max-width: 360px) {
  #app-container { padding: 30px 10px 20px; }
  .main-title { font-size: 2rem; }
  .tagline { font-size: 1.1rem; }
  .btn-primary { padding: 14px 30px; font-size: 1.05rem; }
  .modal-card { padding: 25px 15px; }
  .logo-container { padding: 10px 20px; }
  .main-logo { max-width: 130px; }
}
