/* ================================================================
   EngliShri v3.0 — Modern Minimalist Mobile-App Redesign
   Overrides legacy styles for a clean, product-first look.
================================================================= */

:root{
  --brand-navy: #123A8A;
  --brand-navy-deep: #0B255A;
  --brand-pink: #E4356E;
  --brand-pink-soft: #FFE4EE;
  --brand-orange: #F5813A;
  --brand-orange-deep: #D96A22;
  --ink-900: #0F1A2E;
  --ink-700: #2C3A55;
  --ink-500: #566079;
  --ink-300: #9AA3B8;
  --bg: #F6F8FC;
  --card: #FFFFFF;
  --line: #E5E8F0;
  --line-soft: #F0F2F7;
  --success: #16A34A;
  --whatsapp: #25D366;
  --whatsapp-deep: #128C7E;
  --shadow-xs: 0 1px 2px rgba(15,26,46,.06);
  --shadow-sm: 0 4px 12px rgba(15,26,46,.06);
  --shadow-md: 0 8px 24px rgba(15,26,46,.08);
  --shadow-lg: 0 20px 50px rgba(15,26,46,.14);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
}

/* --- Reset overrides --- */
html, body{
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--ink-900);
  font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
}
body{ padding-bottom: 92px; }  /* space for FAB / dock */
.wrap{ max-width: 1180px; padding: 0 20px; }

h1,h2,h3,h4{
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
h1{ font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; line-height: 1.1; }
h2{ font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; line-height: 1.2; }
h3{ font-size: 18px; font-weight: 700; }
p{ color: var(--ink-700); line-height: 1.65; }
.muted{ color: var(--ink-500); }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Inter', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-pink); background: var(--brand-pink-soft);
  padding: 6px 12px; border-radius: 999px;
}

/* ================ HEADER ================ */
.site-header{
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: var(--shadow-xs);
}
.header-inner{ height: 66px !important; }
.brand.brand--enhanced{ gap: 10px; }
.brand-logo{ width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-xs); }
.brand-copy strong{
  font-family: 'Fraunces', serif; font-size: 20px; color: var(--brand-navy); font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-copy small{ display: block; font-size: 11px; color: var(--ink-500); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.main-nav a{ color: var(--ink-700) !important; font-weight: 600; font-size: 14.5px; }
.main-nav a:hover, .main-nav a.active{ color: var(--brand-navy) !important; }
.main-nav a.active::after{ background: var(--brand-navy) !important; height: 2px !important; }

/* ================ BUTTONS ================ */
.btn{
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
  box-shadow: none !important;
  letter-spacing: 0.005em;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm) !important; }
.btn.small{ padding: 9px 16px !important; font-size: 13px !important; }
.btn.xsmall{ padding: 7px 14px !important; font-size: 12px !important; }
.btn-block{ width: 100%; }

.btn-primary,
.btn-buy-premium,
.btn-marigold,
.btn-red{
  background: linear-gradient(135deg, var(--brand-pink) 0%, #C0224E 100%) !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover, .btn-buy-premium:hover, .btn-marigold:hover, .btn-red:hover{
  box-shadow: 0 12px 24px rgba(228,53,110,.28) !important;
}
.btn-ink{
  background: var(--ink-900) !important; color: #fff !important; border: none !important;
}
.btn-outline{
  background: transparent !important; border: 1.5px solid var(--line) !important;
  color: var(--ink-900) !important;
}
.btn-outline:hover{ background: var(--bg) !important; border-color: var(--ink-900) !important; }
.btn-ghost{
  background: rgba(255,255,255,.14) !important; color:#fff !important;
  border: 1px solid rgba(255,255,255,.28) !important;
}
.btn-whatsapp{
  background: var(--whatsapp) !important; color: #fff !important; border: none !important;
}
.btn-whatsapp:hover{ background: var(--whatsapp-deep) !important; box-shadow: 0 12px 24px rgba(37,211,102,.3) !important; }
.btn-whatsapp-outline{
  background: transparent !important; border: 1.5px solid var(--whatsapp) !important;
  color: var(--whatsapp-deep) !important;
}

/* ================ HERO ================ */
.hero.hero-premium-home{
  padding: 44px 0 32px !important;
  display: grid !important;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy-panel .eyebrow{ margin-bottom: 20px; }
.hero-copy-panel h1{
  font-size: clamp(32px, 4.4vw, 52px) !important;
  line-height: 1.05 !important;
  color: var(--ink-900) !important;
  margin-bottom: 20px;
}
.hero-copy-panel h1 .mark-circle{
  background: linear-gradient(180deg, transparent 60%, rgba(228,53,110,.24) 60%);
  padding: 0 4px; color: var(--brand-pink); font-style: normal; font-family: 'Fraunces', serif;
}
.hero-lead{ font-size: 17px !important; color: var(--ink-700); max-width: 56ch; margin-bottom: 24px !important; }
.hero-ctas{ display:flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-badge-row{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-chip{
  background: #fff; border: 1px solid var(--line); padding: 7px 12px;
  border-radius: 999px; font-size: 12.5px; color: var(--ink-700); font-weight: 600;
}
.stat-row-premium{
  display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important; margin-top: 6px !important;
  background: #fff; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.stat b{ font-size: 22px; color: var(--brand-navy); font-family: 'Fraunces', serif; }
.stat span{ font-size: 12.5px; color: var(--ink-500); }

/* Hero showcase */
.hero-showcase-stack{ display: flex; flex-direction: column; gap: 18px; }
.hero-podium-card{
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  background: #fff; border: 1px solid var(--line);
}
.hero-podium-card img{ width:100%; display:block; }
.hero-brand-ribbon{
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-deep));
  color:#fff; padding: 18px 20px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.hero-ribbon-head{ display:flex; align-items:center; gap:14px; margin-bottom: 12px; }
.hero-ribbon-head img.logo-big{ width: 50px; height: 50px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.hero-ribbon-head strong{ display:block; font-family:'Fraunces', serif; font-size: 18px; }
.hero-ribbon-head span{ font-size: 12.5px; opacity: .8; }
.hero-ribbon-pills{ display:flex; flex-wrap: wrap; gap: 6px; }
.hero-ribbon-pills span{
  background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}

/* ================ SECTIONS ================ */
.section{ padding: 44px 0 !important; }
.section-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2{ margin-bottom: 6px; }
.section-head p{ color: var(--ink-500); font-size: 15px; max-width: 62ch; }

/* ================ FEATURE GRID (compact modern) ================ */
.feature-grid.premium-feature-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.feature-card{
  background:#fff; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .icon{
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-pink-soft); color: var(--brand-pink); font-size: 20px; margin-bottom: 12px;
}
.feature-card h3{ font-size: 15px; margin-bottom: 4px; font-family: 'Inter', sans-serif; }
.feature-card p{ font-size: 13px; color: var(--ink-500); margin-bottom: 0; }

/* ================ GRIDS ================ */
.grid{ display: grid; gap: 20px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

/* ================ COURSE / GENERIC CARD ================ */
.card{
  background:#fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s;
  display: block; color: inherit;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-navy); }
.badge{
  display:inline-block; background: var(--bg); color: var(--brand-navy); font-size: 11.5px;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line); margin-bottom: 10px;
}
.card h3{ font-size: 17px; margin-bottom: 6px; }
.card .desc{ font-size: 14px; color: var(--ink-500); margin-bottom: 14px; }
.card-foot{ display:flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line); }
.price{ font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--brand-navy); }
.price .old{ font-size: 13px; font-weight: 500; color: var(--ink-300); text-decoration: line-through; margin-right: 6px; }

/* ================ PRODUCT CARDS (image-first, compact) ================ */
.premium-product-card{
  background:#fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; padding: 0; box-shadow: var(--shadow-xs);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column;
}
.premium-product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-navy); }
.product-thumb{
  display: block; aspect-ratio: 1/1; overflow: hidden;
  background: linear-gradient(135deg, #FFF8F0, #FFE4EE);
}
.product-thumb img{ width:100%; height:100%; object-fit: cover; display:block; transition: transform .3s; }
.premium-product-card:hover .product-thumb img{ transform: scale(1.03); }
.product-card-body{ padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-body .badge{ align-self: flex-start; margin-bottom: 4px; background: var(--brand-pink-soft); color: var(--brand-pink); border-color: transparent; }
.product-label{
  display:inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand-navy); text-transform: uppercase; margin-bottom: 2px;
}
.product-card-body h3{ font-family:'Fraunces', serif; font-size: 17px; line-height:1.25; }
.product-card-body .desc{ font-size: 13.5px; color: var(--ink-500); margin: 4px 0 8px; line-height: 1.5; }
.product-bullets{
  list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 4px;
}
.product-bullets li{
  font-size: 12.5px; color: var(--ink-700); padding-left: 18px; position: relative;
}
.product-bullets li::before{
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 700;
}
.product-card-body .card-foot{
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
}
.product-pages{ font-size: 12px !important; color: var(--ink-500); }

/* Product card action bar with clear Buy Now CTA */
.product-card-actions{
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px;
}
.product-card-actions .btn{ padding: 10px 12px !important; font-size: 13px !important; }

/* ================ TEACHER STRIP ================ */
.teacher-strip{
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-deep)) !important;
  color: #fff !important;
  border-radius: var(--r-xl) !important;
  padding: 32px !important;
  margin: 32px 0 !important;
  display: grid !important;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: center;
}
.teacher-strip .eyebrow{ background: rgba(255,255,255,.12); color:#FFD47A; }
.teacher-strip h2{ color:#fff !important; font-size: 30px; margin-bottom: 10px; }
.teacher-strip .quote{ font-style: italic; opacity: .95; font-size: 17px; margin-bottom: 12px; font-family: 'Fraunces', serif; }
.teacher-strip p{ color: rgba(255,255,255,.85) !important; }
.teacher-photo.circle{
  width:180px; height:180px; border-radius: 50%; overflow: hidden;
  border: 4px solid rgba(255,255,255,.2); background: #fff; box-shadow: var(--shadow-lg);
}
.teacher-photo.circle img{ width:100%; height:100%; object-fit: cover; }
.cred-list{ margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.cred-list li{
  background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}

/* ================ APP INSTALL BAND ================ */
.app-install-band{
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%) !important;
  color: #fff !important;
  border-radius: var(--r-xl) !important;
  padding: 44px 40px !important;
  margin: 32px 0 !important;
  display: grid !important;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.app-install-band h2{ color: #fff !important; margin-bottom: 12px; }
.app-install-band p{ color: rgba(255,255,255,.85) !important; }
.install-points{ list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.install-points li{
  padding-left: 24px; position: relative; color: rgba(255,255,255,.9); font-size: 14.5px;
}
.install-points li::before{
  content: "▸"; position: absolute; left: 4px; color: #FFD47A; font-weight: 700;
}
.install-actions{ display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone mockup */
.phone-shell{
  width: 100%; max-width: 300px; margin: 0 auto;
  background: #0F1A2E; border-radius: 36px; padding: 12px 12px 24px;
  border: 4px solid #253355; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-notch{ width: 90px; height: 20px; background: #0F1A2E; border-radius: 0 0 16px 16px; margin: 0 auto 8px; }
.phone-inner{ background: #fff; border-radius: 22px; padding: 16px; color: var(--ink-900); }
.phone-app-head{ display:flex; align-items:center; gap: 10px; margin-bottom: 14px; }
.phone-app-head img{ width: 42px; height: 42px; border-radius: 10px; }
.phone-app-head strong{ font-family: 'Fraunces', serif; font-size: 15px; display: block; }
.phone-app-head span{ font-size: 11.5px; color: var(--ink-500); }
.phone-stat-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.phone-stat{ background: var(--bg); padding: 10px; border-radius: 10px; text-align: center; }
.phone-stat b{ display: block; font-family: 'Fraunces', serif; color: var(--brand-navy); font-size: 18px; }
.phone-stat span{ font-size: 11px; color: var(--ink-500); }
.phone-pill-row{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.phone-pill{ font-size: 11px; background: var(--brand-pink-soft); color: var(--brand-pink); padding: 5px 10px; border-radius: 999px; font-weight: 700; }
.phone-teacher{ display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.phone-teacher img{ width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.phone-teacher strong{ font-size: 13px; display: block; }
.phone-teacher small{ font-size: 11px; color: var(--ink-500); }

/* ================ CTA BAND ================ */
.cta-band{
  background:#fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-xl) !important;
  padding: 36px !important;
  text-align: center !important;
  box-shadow: var(--shadow-sm) !important;
  margin: 32px 0 !important;
}
.cta-band h2{ margin-bottom: 10px; }

/* ================ FAQ SECTION ================ */
.faq-section{
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--shadow-xs); margin: 32px 0;
}
.faq-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.faq-item{
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow .18s;
}
.faq-item:hover{ box-shadow: var(--shadow-xs); }
.faq-q{
  padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--ink-900);
}
.faq-q .plus{
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--brand-navy);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0; transition: transform .2s;
  border: 1px solid var(--line);
}
.faq-item.open .plus{ transform: rotate(45deg); background: var(--brand-pink); color:#fff; border-color: var(--brand-pink); }
.faq-a{
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 18px; font-size: 14px; color: var(--ink-700); line-height: 1.6;
}
.faq-item.open .faq-a{ max-height: 400px; padding: 0 18px 16px; }

/* ================ TESTIMONIALS ================ */
.testi{
  background: #fff; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.testi p{ font-size: 14.5px; color: var(--ink-700); margin-bottom: 12px; font-style: italic; }
.testi .who{ font-size: 12.5px; color: var(--brand-navy); font-weight: 700; }

/* ================ HOW IT WORKS STEPS ================ */
.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step{
  background: #fff; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.step .num{
  display:inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-pink); color: #fff; font-weight: 800; font-family: 'Fraunces', serif;
  margin-bottom: 10px;
}
.step h4{ font-family: 'Fraunces', serif; font-size: 15px; margin-bottom: 6px; }
.step p{ font-size: 13px; color: var(--ink-500); margin: 0; }

/* ================ PILL FILTERS ================ */
.pill-row{ display:flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.pill{
  border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-700); cursor: pointer;
  transition: all .18s;
}
.pill:hover{ border-color: var(--brand-navy); }
.pill.active{
  background: var(--brand-navy); color: #fff; border-color: var(--brand-navy);
}

/* ================ DETAIL PAGES ================ */
.detail-premium{
  display: grid !important; grid-template-columns: 1.4fr 1fr; gap: 32px; margin-top: 20px;
}
.detail-visual{ display: flex; flex-direction: column; gap: 20px; }
.premium-cover-card{
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); background: #fff;
}
.premium-cover-card img{ width: 100%; display: block; }
.detail-hero{ background: #fff; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.detail-hero h1{ margin-bottom: 10px; }
.info-chip-row{ display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.info-chip{
  background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-700);
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
}
.info-list{ list-style: none; padding: 0; margin: 14px 0; }
.info-list li{
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px;
}
.info-list li span{ color: var(--ink-500); }
.info-list li b{ color: var(--ink-900); }
.detail-meta-panel{
  background: var(--brand-pink-soft); border-radius: var(--r-lg); padding: 20px; border: 1px solid #FADDE8;
}
.detail-meta-panel h4{ font-family: 'Fraunces', serif; margin-bottom: 10px; color: var(--brand-navy); }
.detail-meta-panel ul{ list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.detail-meta-panel li{
  padding-left: 22px; position: relative; font-size: 14px; color: var(--ink-700);
}
.detail-meta-panel li::before{
  content: "★"; position: absolute; left: 0; color: var(--brand-pink);
}

.sticky-buy{
  background: #fff; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: sticky; top: 84px; height: fit-content;
}
.sticky-buy .price{ font-size: 30px !important; display: block; margin-bottom: 6px; }
.checkout-selected-card{
  background: var(--bg); border-radius: var(--r-md); padding: 12px; margin-bottom: 14px;
  border: 1px solid var(--line);
}
.checkout-selected-card small{ font-size: 11px; text-transform: uppercase; color: var(--ink-500); font-weight: 700; letter-spacing: .08em; }
.checkout-selected-card strong{ display: block; font-family: 'Fraunces', serif; font-size: 15px; margin: 2px 0; }
.checkout-selected-card span{ font-size: 12.5px; color: var(--ink-500); }
.checkout-trust-list{
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 16px;
  padding-top: 14px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--ink-500);
  text-align: center;
}

/* ================ FLOATING WHATSAPP BUBBLE ================ */
.floating-whatsapp{
  display: none; /* legacy hide - replaced by new bubble */
}
#waBubble{
  position: fixed; right: 18px; bottom: 22px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: grid; place-items: center;
  cursor: pointer; border: none;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
#waBubble:hover{ transform: scale(1.05); box-shadow: 0 12px 28px rgba(37,211,102,.5); }
#waBubble svg{ width: 34px; height: 34px; }
@keyframes wa-pulse{
  0%, 100%{ box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  50%{ box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0); }
}
#waBubble .wa-dot{
  position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-pink); border: 2px solid #fff;
}

/* WhatsApp popup panel */
#waPanel{
  position: fixed; right: 18px; bottom: 92px; z-index: 998;
  width: min(340px, calc(100vw - 32px));
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,26,46,.3);
  transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  border: 1px solid var(--line);
}
#waPanel.open{ transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.wa-head{
  background: linear-gradient(135deg, #128C7E, #25D366);
  color: #fff; padding: 18px 18px 20px; display: flex; align-items: center; gap: 12px;
}
.wa-head img{ width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); object-fit: cover; background: #fff; }
.wa-head strong{ display: block; font-family: 'Fraunces', serif; font-size: 16px; }
.wa-head small{ font-size: 12px; opacity: .9; }
.wa-close{
  margin-left: auto; background: rgba(255,255,255,.16); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.wa-body{
  padding: 16px;
  background: #E4DDD1 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><g fill='%23D5CFC1' opacity='.5'><circle cx='10' cy='10' r='1'/><circle cx='40' cy='30' r='1'/><circle cx='20' cy='50' r='1'/></g></svg>");
  max-height: 320px; overflow-y: auto;
}
.wa-intro{
  background: #fff; padding: 10px 14px; border-radius: 12px; font-size: 13.5px;
  color: var(--ink-700); margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  position: relative; max-width: 88%;
}
.wa-intro::after{
  content: ""; position: absolute; left: -6px; top: 12px;
  border: 6px solid transparent; border-right-color: #fff;
}
.wa-quick-title{ font-size: 11.5px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; color: var(--ink-500); margin: 10px 4px 8px; }
.wa-options{ display: flex; flex-direction: column; gap: 6px; }
.wa-option{
  background: #fff; border: 1px solid var(--line-soft); padding: 10px 14px; border-radius: 12px;
  font-size: 13px; color: var(--ink-900); cursor: pointer; text-align: left;
  transition: all .16s; font-weight: 500; line-height: 1.4;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.wa-option:hover{ background: var(--brand-pink-soft); border-color: var(--brand-pink); color: var(--brand-pink); }
.wa-option .arr{ opacity: .5; font-size: 15px; }
.wa-foot{
  padding: 12px 16px; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 8px; align-items: center;
}
.wa-foot input{
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
  font-family: inherit; font-size: 13.5px; outline: none; background: var(--bg);
}
.wa-foot input:focus{ border-color: var(--whatsapp); background: #fff; }
.wa-foot button{
  width: 40px; height: 40px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  border: none; cursor: pointer; display: grid; place-items: center; font-size: 16px;
  transition: background .16s;
}
.wa-foot button:hover{ background: var(--whatsapp-deep); }
.wa-foot button:disabled{ opacity: .4; cursor: not-allowed; }

/* ================ FOOTER ================ */
.site-footer{
  background: #fff !important; border-top: 1px solid var(--line) !important;
  padding: 28px 0 24px !important; margin-top: 32px;
}
.footer-inner{ display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand.footer-brand--enhanced{ display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-copy strong{ color: var(--brand-navy) !important; font-size: 17px; }
.footer-brand .brand-copy small{ color: var(--ink-500) !important; }
.footer-nav{ display: flex; gap: 22px; }
.footer-nav a{ font-size: 14px; color: var(--ink-500); font-weight: 500; }
.footer-nav a:hover{ color: var(--brand-navy); }
.footer-copy{ font-size: 12.5px; color: var(--ink-300); width: 100%; text-align: center; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ================ MOBILE CHECKOUT DOCK ================ */
.mobile-checkout-dock{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -8px 24px rgba(15,26,46,.1);
}
.mobile-checkout-copy{ flex: 1; overflow: hidden; }
.mobile-checkout-copy small{ font-size: 10.5px; text-transform: uppercase; color: var(--ink-500); font-weight: 700; letter-spacing: .06em; }
.mobile-checkout-copy strong{ display: block; font-family: 'Fraunces', serif; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.mobile-checkout-copy span{ font-size: 12px; color: var(--ink-500); }
.mobile-checkout-dock .btn{ width: auto !important; padding: 12px 20px !important; font-size: 13.5px !important; white-space: nowrap; }
.page-has-bottom-cta{ padding-bottom: 100px; }

/* ================ MODAL ================ */
.modal-backdrop{
  position: fixed; inset: 0; background: rgba(15,26,46,.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 200;
  padding: 20px; animation: fade .2s;
}
@keyframes fade{ from{opacity:0} to{opacity:1} }
.modal{
  background: #fff; border-radius: var(--r-xl); padding: 24px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3{ font-family:'Fraunces', serif; font-size: 20px; }
.close-x{
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: none;
  cursor: pointer; font-size: 15px; color: var(--ink-700);
}
.field{ margin-bottom: 14px; }
.field label{ display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 5px; }
.field input, .field textarea, .field select{
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14.5px; background: #fff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--brand-navy); }
.field textarea{ min-height: 90px; resize: vertical; }

/* Checkout modal - side by side */
.checkout-modal.checkout-modal--ecom{ max-width: 720px; padding: 0; overflow: hidden; }
.checkout-modal-grid{ display: grid; grid-template-columns: 1fr 1.15fr; }
.checkout-product-pane{
  background: linear-gradient(180deg, #FFF8F0, #FFE4EE); padding: 24px;
}
.checkout-product-media{
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  margin-bottom: 14px; background:#fff;
}
.checkout-product-media img{ width:100%; display: block; }
.checkout-product-pane .product-label{ color: var(--brand-navy); }
.checkout-product-pane h3{ font-family: 'Fraunces', serif; margin: 4px 0 8px; }
.checkout-price{ font-family: 'Fraunces', serif; color: var(--brand-navy); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.checkout-bullets li{ font-size: 12.5px !important; }
.checkout-form-pane{ padding: 24px; }
.checkout-steps{ display: flex; gap: 8px; margin-bottom: 16px; font-size: 11.5px; }
.checkout-steps span{ padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-500); font-weight: 600; }
.checkout-steps span.active{ background: var(--brand-navy); color: #fff; }
.checkout-submit-bar{ display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 14px; background: var(--bg); border-radius: var(--r-md); }
.checkout-submit-copy{ flex: 1; overflow: hidden; }
.checkout-submit-copy small{ font-size: 10.5px; text-transform: uppercase; color: var(--ink-500); font-weight: 700; }
.checkout-submit-copy strong{ display: block; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

/* Toast */
#toastContainer{ position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast{
  background: var(--ink-900); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-md);
  animation: toast-in .3s ease;
}
.toast.success{ background: var(--success); }
.toast.error{ background: var(--brand-pink); }
@keyframes toast-in{ from{ opacity:0; transform: translateY(20px);} to{opacity:1; transform:translateY(0);} }

.success-box, .error-box{
  padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 12px;
}
.success-box{ background: #E6F7EE; color: var(--success); border: 1px solid #A9E5C2; }
.error-box{ background: #FFE8ED; color: var(--brand-pink); border: 1px solid #F9CFD8; }
.form-note{ font-size: 12px; color: var(--ink-500); text-align: center; margin-top: 10px; }
.text-center{ text-align: center; }

.empty-state{
  text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--r-lg); border: 1px dashed var(--line);
}
.empty-state .icon{ display: block; font-size: 44px; margin-bottom: 12px; }

/* ================ RESPONSIVE — MOBILE FIRST ================ */
@media (max-width: 960px){
  .hero.hero-premium-home{ grid-template-columns: 1fr !important; gap: 28px; padding: 24px 0 !important; }
  .hero-showcase-stack{ order: -1; }
  .app-install-band{ grid-template-columns: 1fr !important; padding: 30px 24px !important; }
  .teacher-strip{ grid-template-columns: 1fr !important; text-align: center; padding: 28px 22px !important; }
  .teacher-photo.circle{ margin: 0 auto; width: 140px; height: 140px; }
  .cred-list{ justify-content: center; }
  .detail-premium{ grid-template-columns: 1fr !important; }
  .sticky-buy{ position: static; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .feature-grid.premium-feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .faq-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  body{ padding-bottom: 90px; }
  .wrap{ padding: 0 16px; }
  h1{ font-size: 28px !important; }
  h2{ font-size: 22px !important; }
  .section{ padding: 28px 0 !important; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .feature-grid.premium-feature-grid{ grid-template-columns: 1fr; }
  .stat-row-premium{ grid-template-columns: 1fr !important; }
  .checkout-modal-grid{ grid-template-columns: 1fr; }
  .checkout-product-pane{ display: none; }
  .hero-ctas .btn{ flex: 1; min-width: 42%; }
  .footer-nav{ order: 3; width: 100%; justify-content: center; }
  .cta-band{ padding: 28px 20px !important; }
  .faq-section{ padding: 22px 18px; }
  #waBubble{ width: 56px; height: 56px; right: 14px; bottom: 90px; }
  #waPanel{ right: 14px; bottom: 156px; }
  .site-header .brand-copy small{ display: none; }
  .brand-logo{ width: 34px; height: 34px; }
  /* Buy Now floating CTA row on product cards is critical */
  .product-card-actions{ grid-template-columns: 1fr 1fr; }
  .teacher-strip h2{ font-size: 22px; }
  .modal{ padding: 20px; }
}

/* ================= ADMIN PANEL FIXES ================= */
.admin-wrap{
  display:grid !important;
  grid-template-columns: 272px minmax(0,1fr) !important;
  gap: 0 !important;
  min-height: calc(100vh - 120px) !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-md) !important;
}
.admin-side{
  width: auto !important;
  background: linear-gradient(180deg, #162548 0%, #1D315D 100%) !important;
  border-radius: 0 !important;
  min-width: 0;
}
.admin-brand{
  padding: 22px 20px !important;
  min-height: 84px;
}
.admin-brand .logo{
  background: linear-gradient(135deg, #F6A53A, #D97A18) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(245,129,58,.3);
}
.admin-brand .name, .admin-brand .role{ color:#fff; }
.admin-brand .role{ opacity: .75 !important; }
.admin-nav{ padding: 14px 0 !important; overflow-y:auto; }
.admin-nav .nav-section{ color: rgba(255,255,255,.62) !important; }
.admin-nav a{
  padding: 12px 20px !important;
  border-left: 0 !important;
  position: relative;
}
.admin-nav a.active{
  background: rgba(255,255,255,.10) !important;
  padding-left: 20px !important;
}
.admin-nav a.active::before{
  content:"";
  position:absolute; left:0; top:8px; bottom:8px; width:3px;
  border-radius:0 3px 3px 0;
  background: #F6A53A;
}
.admin-footer{
  padding: 16px 20px !important;
  background: rgba(0,0,0,.08);
}
.admin-main{
  background: #F8FAFD !important;
  border-radius: 0 !important;
  overflow: auto !important;
  min-width: 0 !important;
}
.admin-topbar{
  background: #fff !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 18px 24px !important;
  position: sticky;
  top: 0;
  z-index: 5;
}
.admin-topbar h2{ color: var(--ink-900) !important; }
.admin-content{ padding: 24px !important; min-width: 0; }

.table-wrap{
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-xs) !important;
}
.table-header{
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;
}
.table-header h3{ color: var(--ink-900) !important; }
.table-search{
  width: min(240px, 100%) !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
}
.data-table{ min-width: 920px; background:#fff; }
.data-table thead th{
  position: sticky; top: 0;
  background: #FBF7EF !important;
  z-index: 1;
  white-space: nowrap;
}
.data-table tbody td{ white-space: normal; }
.row-actions{ flex-wrap: wrap; }
.icon-btn{ white-space: nowrap; }

@media (max-width: 980px){
  .admin-wrap{
    grid-template-columns: 1fr !important;
    border-radius: 20px !important;
  }
  .admin-side{
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .admin-nav{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:8px !important;
    padding: 10px 12px 14px !important;
    -webkit-overflow-scrolling: touch;
  }
  .admin-nav .nav-section{ display:none !important; }
  .admin-nav a{
    flex: 0 0 auto;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    background: rgba(255,255,255,.06);
  }
  .admin-nav a.active::before{ display:none; }
  .admin-footer{ display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
  .admin-topbar{
    padding: 16px !important;
    flex-direction: column;
    align-items: flex-start !important;
  }
  .admin-content{ padding: 16px !important; }
}

@media (max-width: 640px){
  .admin-brand{ padding: 16px !important; }
  .admin-topbar h2{ font-size: 18px !important; }
  .table-header{
    align-items: stretch !important;
  }
  .table-search,
  #enqFilter{ width: 100% !important; }
  .stat-cards{ grid-template-columns: 1fr !important; }
  .data-table{ min-width: 780px; }
}

/* Hide legacy elements not needed */
.corrections, .notebook-card, .brand-mark, .brand-dot{ display: none !important; }
.hero-art{ display: none !important; }
.mark-circle svg{ display: none; } /* remove hand-drawn arc from legacy */
.hero-note{ display: none; }
.store-note-card{ display: none; }

/* ================ V4 QUICK LINKS + CONTACT DOCK ================ */
.section-quick-links{ padding-top: 8px !important; }
.section-quick-links--top{ padding: 0 0 28px !important; }
.quick-link-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.quick-link-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow-xs);
  color:var(--ink-900);
  text-align:left;
}
.quick-link-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.quick-link-card strong{ font-size:15px; color:var(--ink-900); }
.quick-link-card small{ color:var(--ink-500); line-height:1.45; }
.quick-link-card--button{
  appearance:none;
  width:100%;
  cursor:pointer;
  font:inherit;
}
.quick-link-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--brand-pink-soft);
  font-size:22px;
}
.save-contact-panel{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  margin-top:18px;
}
.save-contact-panel strong{ display:block; color:var(--ink-900); }
.save-contact-panel small{ color:var(--ink-500); }
.contact-panel-v4{ border-radius:24px; padding:24px; }
.contact-grid--v4 .form-card{ border-radius:24px !important; }
.quick-contact-dock{
  position:fixed;
  left:12px;
  right:12px;
  bottom:10px;
  z-index:115;
  display:none;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:22px;
  padding:10px;
  box-shadow:0 18px 48px rgba(15,26,46,.16);
  backdrop-filter:blur(10px);
}
.quick-contact-action{
  border:none;
  background:#fff;
  border-radius:16px;
  min-height:60px;
  padding:10px 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:var(--ink-900);
  font:inherit;
  text-decoration:none;
  box-shadow:var(--shadow-xs);
}
.quick-contact-action span{ font-size:19px; line-height:1; }
.quick-contact-action small{ font-size:11.5px; font-weight:700; color:var(--ink-700); }
.quick-contact-action--wa{ background:#EAFBF1; }
.hero-premium-home--catalog .hero-podium-card img{ aspect-ratio: 16/11; object-fit: cover; }

@media (max-width: 980px){
  .quick-link-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px){
  body{ padding-bottom: 150px; }
  .quick-link-grid{ grid-template-columns:1fr; }
  .save-contact-panel{ flex-direction:column; align-items:flex-start; }
  .quick-contact-dock{ display:grid; }
  .quick-contact-action{ min-height:64px; }
  #waBubble{ bottom: 156px !important; }
  #waPanel{ bottom: 224px !important; }
}
