:root{
  --bg: #f0f7f4;
  --card: rgba(255,255,255,0.98);
  --card2: rgba(255,255,255,0.92);
  --text: #001a14;
  --muted: rgba(0,26,20,0.65);
  --border: rgba(0,26,20,0.10);
  --shadow: 0 20px 60px rgba(0,26,20,0.10);
  --radius: 18px;

  /* Bangladesh Flag Colors */
  --bd-green: #004225;
  --bd-orange: #FF6B35;
  --bd-orange-light: #FFB347;
  
  /* Accent Colors */
  --primary: #004225;
  --secondary: #FF6B35;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  --greenSoft: rgba(0,66,37,0.12);
  --orangeSoft: rgba(255,107,53,0.12);
}


*{ box-sizing: border-box; }
html,body{
  margin:0;
  font-family: "Hind Siliguri", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1400px 900px at 5% 5%, rgba(0,66,37,0.18), transparent 50%),
              radial-gradient(1200px 800px at 95% 15%, rgba(255,107,53,0.15), transparent 55%),
              radial-gradient(1000px 700px at 50% 95%, rgba(16,185,129,0.12), transparent 60%),
              linear-gradient(180deg, var(--bg), #f8fcfa);
  overflow-x:hidden;
  min-height: 100vh;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22500%22%20height=%22500%22%20viewBox=%220%200%20500%20500%22%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20.g%7Bstroke:%23004225;%20opacity:.12%7D%0A%20%20%20%20%20%20.o%7Bstroke:%23FF6B35;%20opacity:.10%7D%0A%20%20%20%20%20%20.n%7Bfill:none;%20stroke-width:2;%20stroke-linecap:round;%20stroke-linejoin:round%7D%0A%20%20%20%20%3C/style%3E%0A%20%20%3C/defs%3E%0A%20%20%3Cg%20class=%22n%20g%22%20transform=%22translate(50,60)%22%3E%0A%20%20%20%20%3Crect%20x=%220%22%20y=%2220%22%20width=%22110%22%20height=%2280%22%20rx=%2214%22/%3E%0A%20%20%20%20%3Cpath%20d=%22M20%2020%20v-18%20h80%20v18%22/%3E%0A%20%20%20%20%3Cpath%20d=%22M40%2045%20l20%2020%22/%3E%0A%20%20%3C/g%3E%0A%20%20%3Cg%20class=%22n%20o%22%20transform=%22translate(280,80)%22%3E%0A%20%20%20%20%3Cpath%20d=%22M40%20100%20C40%2075,%2030%2060,%2020%2048%22/%3E%0A%20%20%20%20%3Cpath%20d=%22M40%20100%20C40%2075,%2050%2060,%2060%2048%22/%3E%0A%20%20%20%20%3Cpath%20d=%22M40%20100%20C40%2072,%2040%2055,%2040%2035%22/%3E%0A%20%20%3C/g%3E%0A%20%20%3Cg%20class=%22n%20g%22%20transform=%22translate(80,300)%22%3E%0A%20%20%20%20%3Crect%20x=%220%22%20y=%220%22%20width=%22120%22%20height=%2290%22%20rx=%2816%22/%3E%0A%20%20%20%20%3Cpath%20d=%22M28%2045%20l18%2020%2045-45%22/%3E%0A%20%20%3C/g%3E%0A%20%20%3Cg%20class=%22n%20o%22%20transform=%22translate(300,320)%22%3E%0A%20%20%20%20%3Cpath%20d=%22M44%203%20l12%2030%2032%201%20-25%2020%208%2031%20-27%20-17%20-27%2017%208%20-31%20-25%20-20%2032%20-1z%22/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");
  background-size: 500px 500px;
  background-repeat: repeat;
  opacity: 0.8;
  mix-blend-mode: multiply;
  animation: bgMove 35s linear infinite;
  z-index:-2;
}
body::after{
  content:"";
  position:fixed;
  inset:-25%;
  pointer-events:none;
  background:
    radial-gradient(600px 600px at 20% 20%, rgba(0,66,37,0.18), transparent 65%),
    radial-gradient(650px 650px at 85% 25%, rgba(255,107,53,0.16), transparent 65%),
    radial-gradient(800px 800px at 50% 90%, rgba(16,185,129,0.12), transparent 70%),
    radial-gradient(700px 700px at 15% 70%, rgba(255,107,53,0.08), transparent 65%);
  filter: blur(22px);
  animation: blobs 18s ease-in-out infinite alternate;
  z-index:-3;
}
@keyframes bgMove { 
  0%{background-position:0 0;} 
  50%{background-position: 250px 250px;}
  100%{background-position:500px 500px;} 
}
@keyframes blobs { 
  0%{transform:translate3d(0,0,0) scale(1);opacity:.85;} 
  50%{transform:translate3d(8%,-5%,0) scale(1.08);opacity:.9;}
  100%{transform:translate3d(5%,-3%,0) scale(1.05);opacity:.75;} 
}
body{
  margin:0;
  font-family: "Hind Siliguri", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(90,130,255,0.25), transparent 60%),
              radial-gradient(900px 600px at 80% 30%, rgba(255,120,180,0.18), transparent 55%),
              var(--bg);
  color: var(--text);
}

.container{
  width: min(1180px, 92vw);
  margin: 28px auto 60px;
}

.muted{ color: var(--muted); }
.small{ font-size: 14px; }

.hero{ margin-top: 10px; }
.hero-card{
  display:grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1{ 
  margin:0 0 10px; 
  font-size: clamp(26px, 2.6vw, 42px); 
  line-height:1.15;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: slideInRight .6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sub{ margin:0 0 14px; color: var(--muted); font-size: 16px; }

.steps{ display:flex; flex-direction: column; gap: 10px; }
.step{
  padding: 12px 14px;
  border: 1.5px solid rgba(0,66,37,0.15);
  background: linear-gradient(135deg, rgba(0,66,37,0.04), rgba(255,107,53,0.03));
  border-radius: 14px;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s ease;
}
.step:hover{
  transform: translateX(4px);
  box-shadow: 0 10px 25px rgba(0,66,37,0.08), inset 0 0 20px rgba(255,107,53,0.04);
  border-color: rgba(0,66,37,0.25);
  animation: slideInRight .3s ease;
}
.step-num{
  display:inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,66,37,0.25);
  margin-right: 8px;
  background: linear-gradient(135deg, rgba(0,66,37,0.12), rgba(255,107,53,0.08));
  font-weight: 700;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.mini-stats{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: center;
}
.stat{
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat:hover{
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,66,37,0.12), 0 0 20px rgba(255,107,53,0.08);
  border-color: rgba(0,66,37,0.20);
}
.stat:nth-child(1){ animation: slideInLeft .5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.stat:nth-child(2){ animation: slideInLeft .5s cubic-bezier(0.34, 1.56, 0.64, 1); animation-delay: .05s; }
.stat:nth-child(3){ animation: slideInLeft .5s cubic-bezier(0.34, 1.56, 0.64, 1); animation-delay: .1s; }
.stat-k{ 
  font-weight: 700; 
  font-size: 18px; 
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-v{ color: var(--muted); font-size: 14px; margin-top: 4px; }

.builder{ margin-top: 18px; }
.builder-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}

.panel{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head{ padding: 18px 18px 8px; }
.panel-head h2{ margin:0; font-size: 20px; }
.panel-head p{ margin:6px 0 0; }

.panel-foot{ padding: 12px 18px 18px; }

.canvas-wrap{
  position: relative;
  padding: 14px 18px 0;
}
canvas{
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.22);
  display:block;
  animation: scaleInCenter .5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.15);
}

.dropzone{
  position:absolute;
  inset: 14px 18px 0 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.30);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  transition: 0.15s ease;
}
.dropzone:hover{ transform: translateY(-1px); background: rgba(0,0,0,0.22); }
.dropzone.hidden{ display:none; }

.dz-inner{ text-align:center; padding: 22px; }
.dz-icon{ font-size: 26px; margin-bottom: 8px; }
.dz-title{ font-weight: 700; font-size: 18px; }
.dz-sub{ color: var(--muted); margin-top: 4px; font-size: 14px; }

.controls{ 
  padding: 14px 18px 18px;
  animation: slideInUp .6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-delay: .25s;
}
.control-row{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 10px;
  animation: slideInUp .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.control-row:nth-of-type(1){
  animation-delay: 0s;
}
.control-row:nth-of-type(2){
  animation-delay: .1s;
}
.spacer{ flex: 1; }
.hint{
  margin-top: 12px;
  padding: 12px 14px;
  border: 1.5px solid rgba(0,66,37,0.15);
  background: linear-gradient(135deg, rgba(0,66,37,0.06), rgba(255,107,53,0.04));
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  animation: slideInUp .5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-delay: .2s;
  transition: all .3s ease;
}
.hint:hover{
  border-color: rgba(0,66,37,0.25);
  background: linear-gradient(135deg, rgba(0,66,37,0.12), rgba(255,107,53,0.08));
  box-shadow: 0 10px 25px rgba(0,66,37,0.08);
}

.btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.15s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.10); }
.btn:active{ transform: translateY(0px); }

.btn-primary{
  background: linear-gradient(135deg, rgba(0,66,37,0.18), rgba(255,107,53,0.10));
  border-color: rgba(0,66,37,0.45);
  color: var(--text);
}
.btn-primary:hover{ 
  background: linear-gradient(135deg, rgba(0,66,37,0.25), rgba(255,107,53,0.18));
  box-shadow: 0 20px 40px rgba(0,66,37,0.15);
}

.btn-soft{
  background: rgba(255,255,255,0.08);
}
.btn-soft:hover{
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,66,37,0.10);
}
.btn-ghost{
  background: transparent;
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Full-width helper button (keeps existing design language) */
.btn-wide{
  width: 100%;
  text-align: center;
}

input[type="range"]{
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, rgba(0,66,37,0.3), rgba(255,107,53,0.3));
  border-radius: 999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,66,37,0.25);
  transition: all .2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0,66,37,0.35);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(0,66,37,0.25);
  transition: all .2s ease;
}
input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0,66,37,0.35);
}

.frames{
  padding: 12px 18px 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}
.frame{
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor:pointer;
  transition: 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.frame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display:block;
  border: 1px solid rgba(255,255,255,0.10);
}
.frame:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.07); }
.frame.active{
  outline: 3px solid var(--primary);
  background: linear-gradient(135deg, rgba(0,66,37,0.12), rgba(255,107,53,0.08));
  box-shadow: 0 18px 40px rgba(0,66,37,0.15), inset 0 0 20px rgba(255,107,53,0.05);
}

.slider-section{ margin-top: 22px; }
.section-head{ margin: 0 0 10px; animation: slideInUp .6s cubic-bezier(0.34, 1.56, 0.64, 1); animation-delay: .12s; }
.section-head h2{ margin:0; font-size: 20px; }
.section-head p{ margin:6px 0 0; }

.carousel{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.carousel-track{
  display:flex;
  gap: 12px;
  will-change: transform;
  transform: translateX(0);
}
.carousel-item{
  flex: 0 0 auto;
  width: 180px;
  height: 110px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
}
.carousel-item img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.footer{
  margin-top: 18px;
  text-align:center;
  color: var(--muted);
}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 999;
}
.modal-backdrop.show{ display:flex; }
.modal{
  width: min(760px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.modal-lg{ width: min(980px, 96vw); }

.icon-btn{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  cursor:pointer;
}
.icon-btn:hover{ background: rgba(0,0,0,0.35); }

.modal-body{ padding: 18px; }
.modal-title{ margin: 0 0 12px; }

.promo{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 14px;
}
.promo-badge{
  display:inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,66,37,0.35);
  background: linear-gradient(135deg, rgba(0,66,37,0.20), rgba(255,107,53,0.12));
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  animation: bounceIn .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.promo h2{ margin: 0 0 6px; font-size: 20px; }
.promo p{ margin: 0; color: var(--muted); }

/* promo banner + image */
.promo-banner{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  padding: 14px;
}
.promo-banner-img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
}
.promo-art{
  height: 150px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.20);
  display:flex;
  align-items:center;
  justify-content:center;
}
.promo-art-inner{
  text-align:center;
  font-weight: 800;
  letter-spacing: 1px;
}
.promo-art-inner span{ font-size: 26px; display:block; }
.promo-art-inner small{ color: var(--muted); font-weight: 600; }

.modal-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}

.preview-wrap{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(0,0,0,0.22);
  max-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.preview-wrap::-webkit-scrollbar {
  width: 8px;
}
.preview-wrap::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}
.preview-wrap::-webkit-scrollbar-thumb {
  background: rgba(0,66,37,0.5);
  border-radius: 10px;
}
.preview-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(0,66,37,0.7);
}
#previewCanvas{
  max-width: 100%;
  max-height: 60vh;
  display:block;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 900px){
  .hero-card{ grid-template-columns: 1fr; }
  .builder-grid{ grid-template-columns: 1fr; }
  .frames{ grid-template-columns: repeat(2, 1fr); }
  .frame{ min-height: 120px; }
}
@media (max-width: 640px){
  .frames{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .frame{ min-height: 100px; padding: 8px; }
  .carousel-item{ width: 140px; height: 90px; }
}
@media (max-width: 480px){
  .frames{ grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 12px 12px; }
  .frame{ min-height: 90px; padding: 6px; }
  .carousel-item{ width: 120px; height: 80px; }
}


/* ===== White theme UI + subtle green/red accents (design-only) ===== */
.site-logo{
  width: 190px;
  height: auto;
  display:block;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 22px rgba(0,66,37,0.15));
  animation: logoFloat 4.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite, logoGlow 4.5s ease-in-out infinite, slideInLeft .6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform .3s ease;
}
.site-logo:hover{
  transform: scale(1.05);
}
@keyframes logoFloat{ 
  0%,100%{transform:translateY(0)} 
  50%{transform:translateY(-4px)} 
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 10px 22px rgba(0,66,37,0.15));
  }
  50% {
    filter: drop-shadow(0 15px 35px rgba(255,107,53,0.20));
  }
}

a{ color: inherit; }

.container{ width:min(1160px, calc(100% - 32px)); margin: 0 auto; }

.hero{
  padding: 22px 0 8px;
}
.hero-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-left h1{
  margin: 0;
  font-size: 26px;
  letter-spacing: .2px;
}
.hero-left .muted{
  color: var(--muted);
  font-weight: 700;
}
.mini-stats .stat{
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
}

.builder .panel{
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease, border-color .3s ease;
  animation: slideInUp .6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.builder .panel:nth-of-type(2){
  animation-delay: .1s;
}
.builder .panel:hover{
  transform: translateY(-6px);
  box-shadow: 0 35px 70px rgba(0,66,37,0.15), 0 0 50px rgba(255,107,53,0.10);
  border-color: rgba(0,66,37,0.25);
}
.panel-head h2{ color: var(--text); animation: slideInLeft .5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.panel-head .muted{ color: var(--muted); }
.canvas-wrap{
  background: rgba(11,18,32,0.03);
  border: 1px dashed rgba(11,18,32,0.20);
}

.btn{
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,26,20,0.08);
  transition: transform .15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .15s ease, border-color .15s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left .5s ease;
}
.btn:hover::before{
  left: 100%;
}
.btn:hover{ 
  transform: translateY(-2px); 
  box-shadow: 0 16px 40px rgba(0,26,20,0.12); 
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  border-color: rgba(46,125,50,0.38) !important;
  background: linear-gradient(135deg, rgba(46,125,50,0.16), rgba(46,125,50,0.04)) !important;
  color: var(--text) !important;
}
.btn-soft{
  background: rgba(255,255,255,0.8) !important;
  border-color: rgba(11,18,32,0.16) !important;
}
.btn-ghost{
  background: transparent !important;
  border-color: rgba(11,18,32,0.14) !important;
}

.dropzone{
  /* position: relative; */
  border: 2px dashed rgba(0,66,37,0.25) !important;
  background: linear-gradient(135deg, rgba(0,66,37,0.05), rgba(255,107,53,0.04)) !important;
  border-radius: 16px !important;
  padding: 18px !important;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dropzone:hover{
  border-color: rgba(0,66,37,0.45) !important;
  background: linear-gradient(135deg, rgba(0,66,37,0.08), rgba(255,107,53,0.06)) !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,66,37,0.08);
}
.dropzone .dz-inner{ gap: 8px !important; }
.dropzone .dz-title{ font-weight: 900 !important; color: var(--text) !important; }
.dropzone .dz-sub{ color: var(--muted) !important; font-weight: 600 !important; }
.dropzone::before{
  content:"";
  width: 44px;
  height: 44px;
  border-radius: 14px;
  position:absolute;
  left: 18px;
  top: 18px;
  background:
    linear-gradient(135deg, rgba(0,66,37,0.18), rgba(255,107,53,0.10));
  border: 1px solid rgba(0,66,37,0.20);
  box-shadow: 0 10px 22px rgba(0,66,37,0.08);
}
.dropzone::after{
  content:"";
  position:absolute;
  left: 18px;
  top: 18px;
  width:44px;height:44px;
  background: radial-gradient(circle at 50% 45%, rgba(46,125,50,0.0) 0 16px, transparent 17px),
              none;
  mask-image: none;
}
/* Keep existing emoji/icon but make it look aligned */
.dropzone .dz-icon{
  font-size: 18px !important;
  width: 44px !important;
  height: 44px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: var(--primary) !important;
  margin-left: 0 !important;
  filter: drop-shadow(0 4px 8px rgba(0,66,37,0.15));
}

.frames .frame{
  background: rgba(255,255,255,0.85) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 14px !important;
  overflow:hidden;
  transition: transform .15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .15s ease, border-color .15s ease;
  animation: scaleInCenter .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.frames .frame:nth-child(1){ animation-delay: 0s; }
.frames .frame:nth-child(2){ animation-delay: .05s; }
.frames .frame:nth-child(3){ animation-delay: .1s; }
.frames .frame:nth-child(4){ animation-delay: .15s; }
.frames .frame:nth-child(5){ animation-delay: .2s; }
.frames .frame:nth-child(6){ animation-delay: .25s; }
.frames .frame:nth-child(7){ animation-delay: .3s; }
.frames .frame:nth-child(8){ animation-delay: .35s; }
.frames .frame:nth-child(9){ animation-delay: .4s; }
.frames .frame:hover{ 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 20px 40px rgba(0,66,37,0.12), 0 0 20px rgba(255,107,53,0.08); 
  border-color: rgba(0,66,37,0.25) !important; 
}
.frames .frame.active{ border-color: rgba(198,40,40,0.35) !important; box-shadow: 0 18px 40px rgba(198,40,40,0.10); }

.carousel{
  background: var(--card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all .3s ease;
  animation: slideInUp .6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-delay: .15s;
}
.carousel:hover{
  border-color: rgba(0,66,37,0.20);
  box-shadow: 0 25px 60px rgba(0,66,37,0.10), 0 0 40px rgba(255,107,53,0.08);
  transform: translateY(-2px);
}
.carousel-item{
  border-radius: 14px;
  border: 1.5px solid var(--border) !important;
  background: rgba(255,255,255,0.90) !important;
  box-shadow: 0 12px 30px rgba(0,26,20,0.08);
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s ease;
}
.carousel-item:hover{
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0,66,37,0.12), 0 0 30px rgba(255,107,53,0.10);
}

.footer{
  color: var(--muted);
  animation: fadeUp .6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-delay: .28s;
  transition: all .3s ease;
}
.footer:hover{
  color: var(--text);
  text-shadow: 0 4px 12px rgba(0,66,37,0.1);
}

/* ===== Entrance animations (CSS only) ===== */
.hero-card, .builder .panel, .carousel{
  animation: slideInUp .6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.builder .panel:nth-of-type(2){ animation-delay: .08s; }
.carousel{ animation-delay: .14s; }

@keyframes fadeUp{
  from{ transform: translateY(10px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp{
  from{ 
    transform: translateY(30px); 
    opacity: 0; 
  }
  to{ 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@keyframes slideInLeft{
  from{
    transform: translateX(-40px);
    opacity: 0;
  }
  to{
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight{
  from{
    transform: translateX(40px);
    opacity: 0;
  }
  to{
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleInCenter{
  from{
    transform: scale(0.90);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0,66,37,0.3), 0 0 40px rgba(255,107,53,0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0,66,37,0.5), 0 0 60px rgba(255,107,53,0.3);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ===== Popup (welcome + preview) polish ===== */
.modal-backdrop{ background: rgba(0,26,20,0.45) !important; }
.modal{
  background: rgba(255,255,255,0.96) !important;
  border: 1.5px solid rgba(0,66,37,0.15) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 40px 100px rgba(0,66,37,0.25),
    0 0 60px rgba(255,107,53,0.15) !important;
  animation: modalSlideIn .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
}
.modal-title{ color: var(--primary) !important; font-weight: 700; }
.modal-body{ color: var(--muted) !important; }
.modal-actions .btn-primary{ 
  border-color: rgba(0,66,37,0.38) !important;
  background: linear-gradient(135deg, rgba(0,66,37,0.16), rgba(255,107,53,0.08)) !important;
}
.icon-btn{ 
  background: rgba(0,66,37,0.08) !important; 
  border: 1.5px solid rgba(0,66,37,0.15) !important;
  transition: .2s ease;
}
.icon-btn:hover{ 
  background: rgba(0,66,37,0.15) !important;
  transform: scale(1.1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive tweaks */
@media (max-width: 920px){
  .hero-left h1{ font-size: 22px; }
  .site-logo{ width: 170px; }
}
@media (max-width: 640px){
  .carousel-item{ width: 140px; height: 90px; }
}
@media (max-width: 560px){
  .site-logo{ width: 150px; }
  .container{ width: calc(100% - 24px); }
  .dropzone{ padding: 16px !important; }
  .dropzone::before, .dropzone::after{ left: 16px; top: 16px; }
  .carousel-item{ width: 120px; height: 80px; }
}

/* Scroll Animation Trigger */
@supports (scroll-timeline: view()) {
  .hero-card {
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  
  .builder .panel {
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  
  .carousel {
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}
