@import url("https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap");

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --teal: #13a89e;
  --teal-dark: #0e857d;
  --gold: #e8b931;
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #1b2a3a;
  --muted: #6b7a8c;
  --line: #e3e8ef;
  --danger: #d64545;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 37, 69, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Mukta", "Poppins", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px;
}
h1, h2, h3, .brand { font-family: "Poppins", "Mukta", sans-serif; line-height: 1.25; }
a { color: var(--teal-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* header */
.top {
  background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40;
  border-bottom: 3px solid var(--gold);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--teal);
  display: grid; place-items: center; color: var(--gold); font-weight: 800;
}
.brand small { display: block; color: var(--gold); font-size: 11px; font-weight: 500; font-family: "Mukta"; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a { color: #dce6f2; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.08); color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 18px; font: 600 15px "Mukta", sans-serif;
  cursor: pointer; background: var(--teal); color: #fff; transition: .15s;
}
.btn:hover { background: var(--teal-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn.navy { background: var(--navy); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn.block { width: 100%; }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #145a7a 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 10px; }
.hero h1 span { color: var(--gold); }
.hero p { color: #c9d6e6; max-width: 640px; margin: 0 0 22px; font-size: 17px; }
.search { display: flex; max-width: 560px; background: #fff; border-radius: 12px; overflow: hidden; }
.search input { flex: 1; border: 0; padding: 14px 16px; font: 16px "Mukta"; outline: none; min-width: 0; }
.search button { border-radius: 0; }

/* tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: none; }
.tabs button {
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); padding: 8px 14px;
  border-radius: 999px; font: 600 14px "Mukta"; cursor: pointer; white-space: nowrap;
}
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding: 16px 0 48px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .15s;
}
.card:hover { transform: translateY(-3px); }
.card .cover { aspect-ratio: 4/3; background: linear-gradient(135deg, #dfe9f5, #eaf7f6); position: relative; display: grid; place-items: center; font-size: 46px; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.badge {
  display: inline-block; font: 600 12px "Mukta"; padding: 3px 9px; border-radius: 999px;
  background: rgba(19,168,158,.12); color: var(--teal-dark);
}
.badge.gold { background: rgba(232,185,49,.18); color: #8a6a00; }
.badge.navy { background: var(--navy); color: #fff; }
.card .cover .badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(255,255,255,.92); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 16px; }
.card .sub { color: var(--muted); font-size: 14px; flex: 1; }
.price { display: flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--navy); font-size: 19px; }
.price s { color: var(--muted); font-weight: 400; font-size: 14px; }
.price .free { color: var(--teal-dark); }

/* product page */
.pp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; padding: 32px 0 56px; }
.pp .media { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.pp .media .main { aspect-ratio: 4/3; background: linear-gradient(135deg,#dfe9f5,#eaf7f6); display: grid; place-items: center; font-size: 80px; }
.pp .media .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img.on { border-color: var(--teal); }
.pp h1 { margin: 6px 0; font-size: clamp(24px, 3vw, 32px); color: var(--navy); }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.buybox .price { font-size: 28px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.specs div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.specs b { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.feat { list-style: none; padding: 0; margin: 12px 0; }
.feat li { padding: 6px 0 6px 28px; position: relative; }
.feat li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 800; }
.desc { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; margin-bottom: 48px; }
.desc h2 { margin-top: 0; color: var(--navy); font-size: 20px; }
.video { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 12px; margin-top: 14px; }
.inc { list-style: none; padding: 0; margin: 8px 0 0; }
.inc li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; }

/* library */
.lib { display: grid; gap: 14px; padding: 24px 0 56px; }
.lib-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.lib-item .thumb { width: 96px; height: 72px; border-radius: 10px; background: #eaf2f8; display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.lib-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-item h3 { margin: 0 0 4px; font-size: 17px; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; background: #f4f7fb; border: 1px dashed var(--teal); border-radius: 10px; padding: 8px 12px; }
.key code { font-size: 15px; letter-spacing: 1px; color: var(--navy); font-weight: 700; }

/* forms */
label.f { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 5px; color: var(--navy); }
label.f small { font-weight: 400; color: var(--muted); }
.in, select.in, textarea.in {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: 15px "Mukta", sans-serif; background: #fff; color: var(--ink); outline: none;
}
.in:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,168,158,.15); }
textarea.in { min-height: 110px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* modal & toast */
.modal { position: fixed; inset: 0; background: rgba(11,37,69,.55); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal .box { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { margin: 0 0 6px; color: var(--navy); }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#toast div { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 500; border-left: 4px solid var(--gold); max-width: 90vw; }
#toast div.err { border-left-color: var(--danger); }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty .ic { font-size: 48px; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(19,168,158,.25); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

footer.foot { background: var(--navy); color: #a9b9cc; padding: 28px 0; font-size: 14px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
footer.foot a { color: var(--gold); }

@media (max-width: 820px) {
  .pp { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .row, .row3 { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .nav a.hide-m { display: none; }
}

/* ===== v2: logo, offer bar, sections, webinars, testimonials, blog ===== */
.brand .logo-img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; padding: 2px; }
.offerbar { background: linear-gradient(90deg, var(--gold), #f5d35c); color: var(--navy); position: sticky; top: 67px; z-index: 35; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.offerbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.ob-badge { background: var(--navy); color: var(--gold); font: 700 12px "Poppins"; padding: 4px 10px; border-radius: 999px; white-space: nowrap; animation: pulse 1.6s infinite; }
.ob-text { flex: 1; font-size: 14.5px; min-width: 0; }
.ob-text code { background: rgba(11,37,69,.12); padding: 1px 6px; border-radius: 5px; font-weight: 700; }
.ob-go { color: var(--navy); font-weight: 700; white-space: nowrap; }
.ob-x { border: 0; background: transparent; color: var(--navy); font-size: 16px; cursor: pointer; padding: 4px 6px; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.sec { padding: 26px 0 6px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-h h2 { color: var(--navy); margin: 0; font-size: 22px; }
.offer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ocard { border-radius: var(--radius); padding: 18px; color: #fff; background: linear-gradient(135deg, var(--navy), #145a7a); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.ocard::after { content: "%"; position: absolute; right: -6px; bottom: -34px; font: 800 120px "Poppins"; color: rgba(232,185,49,.18); }
.ocard h3 { margin: 0; font-size: 18px; }
.ocard .ob-badge { align-self: flex-start; }
.ocard .ends { color: var(--gold); font-size: 13px; font-weight: 600; }
.price .offer-tag { background: var(--danger); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.wcard.live { border: 2px solid var(--danger); }
.wcard img, .wcard .wph { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg,#dfe9f5,#eaf7f6); display: grid; place-items: center; font-size: 44px; }
.wbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wbody h3 { margin: 2px 0 0; color: var(--navy); font-size: 17px; }
.wact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.badge.live { background: var(--danger); color: #fff; animation: pulse 1.4s infinite; }
.countdown { font-weight: 700; color: var(--teal-dark); font-size: 14px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.tcard p { margin: 0; font-size: 15px; flex: 1; }
.stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.tby { display: flex; gap: 10px; align-items: center; }
.tby img, .tav { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.tav { background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: transform .15s; }
.bcard:hover { transform: translateY(-3px); }
.bcard img, .bcard .bph { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg,#dfe9f5,#eaf7f6); display: grid; place-items: center; font-size: 40px; }
.bcard .bb { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.bcard h3 { margin: 0; color: var(--navy); font-size: 17px; }
.article { max-width: 780px; margin: 26px auto 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.article h1 { color: var(--navy); margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 34px); }
.article .cover { width: 100%; border-radius: 12px; margin: 14px 0; }
.article p, .article li { font-size: 16.5px; line-height: 1.75; }
.article h3 { color: var(--navy); margin-top: 26px; }
.article blockquote, .desc blockquote { border-left: 4px solid var(--gold); margin: 14px 0; padding: 6px 14px; background: #fffaf0; border-radius: 0 8px 8px 0; }
.md-img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.validity { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e3f6f4; color: var(--teal-dark); margin-top: 6px; }
.validity.warn { background: #fff4d6; color: #8a6a00; }
.validity.bad { background: #fde8e8; color: var(--danger); }
.lib-item.expired { opacity: .85; background: #fbfbfc; }
.rate-in { display: flex; gap: 4px; font-size: 30px; cursor: pointer; color: #d4dae3; user-select: none; }
.rate-in span.on { color: var(--gold); }
@media (max-width: 820px) {
  .offerbar { top: 64px; }
  .ob-text { font-size: 13px; }
  .article { padding: 18px; margin-top: 14px; }
}
