/* SPOKEN BOOSTER - public style. Dark green + gold theme. Mobile-first. */
:root {
  --green: #0b3d20;
  --green2: #0e4d28;
  --green3: #145c33;
  --gold: #ffd21f;
  --gold2: #f5b800;
  --ink: #1a1a1a;
  --muted: #5b6470;
  --line: #e5e7eb;
  --bg: #f6f7f5;
  --white: #fff;
  --red: #c00;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hind Siliguri", "Noto Sans Bengali", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* announcement + header */
.announce { background: var(--gold); color: #231f00; overflow: hidden; padding: 8px 0; font-weight: 700; font-size: 15px; }
/* v19: announcement marquee — one line sliding smoothly left, looping seamlessly. */
.announce-track { display: inline-flex; white-space: nowrap; animation: announce-slide 20s linear infinite; will-change: transform; }
.announce-track span { padding: 0 2rem; }
.announce:hover .announce-track { animation-play-state: paused; }
@keyframes announce-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.site-header { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--green); font-weight: 700; cursor: pointer; text-decoration: none; font-size: 16px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold2); }
.btn-lg { padding: 14px 28px; font-size: 18px; }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* hero */
.hero { background: linear-gradient(135deg, var(--green) 0%, var(--green3) 60%, #0a2f18 100%); color: #fff; padding: 36px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.hero-img img { border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.45); width: 100%; max-width: 420px; margin: 0 auto; }
.hero-text { text-align: center; }
.tagline { color: var(--gold); font-weight: 700; margin: 0 0 6px; }
.book-title { color: var(--gold); font-size: 44px; line-height: 1.15; margin: 0 0 8px; font-weight: 900; }
.subtitle { font-size: 20px; margin: 0 0 14px; }
.topic-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.price-line { margin: 10px 0 4px; }
.old-price { text-decoration: line-through; opacity: .7; font-size: 20px; margin-right: 10px; }
.price { color: var(--gold); font-size: 34px; font-weight: 900; }
.delivery-line, .delivery-time { margin: 4px 0; opacity: .95; }
.total-line { font-weight: 800; color: var(--gold); }
.cod-note { font-weight: 700; }

/* sections */
.section { padding: 40px 0; }
.section-alt { background: #fff; }
.section-title { color: var(--green); text-align: center; font-size: 28px; margin: 0 0 24px; font-weight: 800; }
.section-title.left { text-align: left; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.section-alt .card { background: var(--bg); }
.card h3 { color: var(--green); margin: 0 0 8px; }
.card-num { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--green); font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.stars { color: var(--gold2); font-size: 20px; letter-spacing: 2px; }
.author-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.author-img { border-radius: 16px; max-width: 320px; margin: 0 auto; }
.slogan { font-style: italic; color: var(--green2); font-weight: 600; }
.other-books img { max-width: 220px; margin: 0 auto 12px; border-radius: 8px; }
.soon { color: var(--gold2); font-weight: 800; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview-grid img { border-radius: 10px; border: 1px solid var(--line); }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--green); }

/* order form */
.order-form label { display: block; margin-bottom: 14px; font-weight: 700; color: var(--green); }
.order-form input[type="text"], .order-form input[type="tel"], .order-form input[type="email"], .order-form input[type="number"], .order-form input[type="password"], .order-form textarea, .order-form select { display: block; width: 100%; padding: 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 16px; margin-top: 6px; font-family: inherit; }
.order-form input:focus, .order-form textarea:focus { outline: 2px solid var(--gold2); border-color: var(--gold2); }
.area-field { border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.area-field legend { font-weight: 700; color: var(--green); }
.radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-weight: 600; }
.qty-wrap { display: inline-flex; align-items: center; gap: 0; margin-top: 6px; }
.qty-wrap button { width: 44px; height: 46px; font-size: 22px; border: 1.5px solid #cbd5e1; background: #fff; cursor: pointer; }
.qty-wrap input { width: 64px; text-align: center; margin: 0 !important; border-left: none !important; border-right: none !important; border-radius: 0 !important; }
.field-error { color: var(--red); margin: -8px 0 10px; font-size: 14px; min-height: 0; }
.calc-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.calc-row { display: flex; justify-content: space-between; padding: 4px 0; }
.calc-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 18px; }
.form-msg { margin-top: 12px; font-weight: 700; }
.form-msg.bad { color: var(--red); }
.form-msg.ok { color: var(--green2); }

/* v18: toast — clean success/error message after copy / add / save,
   so it is always clear the action worked (or what went wrong). */
.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; text-align: center; background: #16a34a; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.28); animation: toast-in .25s ease; }
.toast-bad { background: #dc2626; }
.toast-ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.confirm-box { background: #fff; border: 2px solid var(--green); border-radius: 12px; padding: 20px; margin-top: 20px; }
.confirm-box h3 { color: var(--green); margin-top: 0; }

/* tracking */
.track-result { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 20px; }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.bad { color: var(--red); }
.terms-body { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; white-space: pre-wrap; }

/* footer + floating buttons */
.site-footer { background: var(--green); color: #fff; padding: 32px 0 16px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.footer-brand { font-size: 20px; font-weight: 800; color: var(--gold); }
.site-footer a { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.2); margin-top: 20px; padding-top: 14px; font-size: 14px; opacity: .85; }
.float-wa, .float-call { position: fixed; right: 16px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 30; }
.float-wa { bottom: 84px; background: #25d366; }
.float-call { bottom: 20px; background: var(--gold2); color: var(--green); }

/* auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--green); padding: 20px; }
.auth-card { background: #fff; border-radius: 16px; padding: 28px; width: 100%; max-width: 420px; }
.auth-card h1 { color: var(--green); text-align: center; }
.auth-logo { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; }
.auth-card label { display: block; margin-bottom: 14px; font-weight: 700; color: var(--green); }
.auth-card input { display: block; width: 100%; padding: 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; margin-top: 6px; font-size: 16px; }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.check input { width: auto !important; margin: 0 !important; }

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 420px 1fr; align-items: center; }
  .hero-text { text-align: left; }
  .topic-badges { justify-content: flex-start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .author-grid { grid-template-columns: 320px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .book-title { font-size: 56px; }
}
@media print {
  body * { visibility: hidden; }
  .print-slip, .print-slip * { visibility: visible; }
  .print-slip { position: absolute; left: 0; top: 0; width: 100%; }
}

/* admin form + table — also used by the installer, which loads only this file */
.admin-form { background: var(--white); border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 20px; }
.admin-form h3 { color: var(--green); margin: 20px 0 10px; }
.admin-form label { display: block; margin-bottom: 14px; font-weight: 700; color: var(--green); }
.admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="tel"], .admin-form input[type="number"], .admin-form input[type="password"], .admin-form input[type="search"], .admin-form input[type="date"], .admin-form textarea, .admin-form select { display: block; width: 100%; padding: 11px; border: 1.5px solid #cbd5e1; border-radius: 8px; font-size: 15px; margin-top: 6px; font-family: inherit; }
.tbl { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tbl th, .tbl td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.tbl th { background: var(--green); color: #fff; }

/* ============ Visual upgrade v8 — color, gradients, glow, motion ============ */
.announce { background: linear-gradient(90deg, #ffe45c, var(--gold) 40%, #ffc800); letter-spacing: .3px; }
.site-header { background: linear-gradient(135deg, #0a3320 0%, var(--green) 55%, var(--green2) 100%); border-bottom: 3px solid var(--gold); box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.btn { transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 2px 8px rgba(0,0,0,.10); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.btn-gold { background: linear-gradient(135deg, #ffe45c 0%, var(--gold) 45%, var(--gold2) 100%); border-color: var(--gold2); box-shadow: 0 4px 14px rgba(245,184,0,.45); }
.btn-gold:hover { background: linear-gradient(135deg, #fff06a 0%, var(--gold) 45%, #ffb300 100%); }
.hero { background: radial-gradient(600px 300px at 85% -10%, rgba(255,210,31,.28), transparent 60%), radial-gradient(500px 260px at 5% 110%, rgba(20,92,51,.9), transparent 60%), linear-gradient(135deg, #082a18 0%, var(--green) 45%, var(--green3) 75%, #0a2f18 100%); }
.hero-text, .hero-img { animation: fadeUp .6s ease both; }
.hero-img { animation-delay: .12s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.book-title { background: linear-gradient(180deg, #fff3a0 0%, var(--gold) 55%, #f0a500 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 24px rgba(255,210,31,.25); }
.hero-img img { border: 3px solid rgba(255,210,31,.55); transition: transform .3s, box-shadow .3s; }
.hero-img img:hover { transform: scale(1.02) rotate(-.5deg); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.badge { background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); transition: transform .15s, background .15s; }
.badge:hover { transform: translateY(-2px); background: rgba(255,210,31,.28); }
.price { background: linear-gradient(180deg, #fff3a0, var(--gold) 60%, #f0a500); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cod-note { background: rgba(255,210,31,.18); border: 1px solid rgba(255,210,31,.5); border-radius: 999px; padding: 6px 14px; display: inline-block; }
.section-title { position: relative; padding-bottom: 14px; }
.section-title::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold2)); margin: 10px auto 0; }
.section-title.left::after { margin-left: 0; }
.card { position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green2), var(--gold), var(--gold2)); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11,61,32,.16); }
.card-num { background: linear-gradient(135deg, #ffe45c, var(--gold2)); box-shadow: 0 4px 10px rgba(245,184,0,.45); }
.stars { text-shadow: 0 0 12px rgba(245,184,0,.55); }
.author-img { border: 3px solid rgba(255,210,31,.6); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.soon { background: linear-gradient(90deg, var(--gold2), #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preview-grid img { transition: transform .2s, box-shadow .2s; }
.preview-grid img:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.faq { transition: border-color .15s, box-shadow .15s; }
.faq:hover { border-color: var(--gold2); box-shadow: 0 6px 18px rgba(245,184,0,.18); }
.order-form input:focus, .order-form textarea:focus, .order-form select:focus { outline: none; border-color: var(--gold2); box-shadow: 0 0 0 4px rgba(255,210,31,.35); }
.calc-box { background: linear-gradient(180deg, #fffdf0, #fff); border-color: var(--gold2); box-shadow: 0 4px 16px rgba(245,184,0,.15); }
.calc-total { color: var(--green); }
.confirm-box { background: linear-gradient(180deg, #f2fbf5, #fff); box-shadow: 0 10px 28px rgba(11,61,32,.14); }
.site-footer { background: linear-gradient(135deg, #082a18 0%, var(--green) 60%, var(--green2) 100%); border-top: 3px solid var(--gold); }
.float-wa, .float-call { animation: floatPulse 2.4s ease-in-out infinite; }
@keyframes floatPulse { 0%,100% { box-shadow: 0 4px 14px rgba(0,0,0,.3); } 50% { box-shadow: 0 4px 22px rgba(255,210,31,.6); } }
.auth-wrap { background: radial-gradient(500px 300px at 80% 0%, rgba(255,210,31,.25), transparent 60%), linear-gradient(135deg, #082a18, var(--green) 60%, var(--green2)); }
.auth-card { border-top: 5px solid var(--gold); box-shadow: 0 18px 48px rgba(0,0,0,.35); }
.auth-card h1 { background: linear-gradient(90deg, var(--green), var(--green2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.admin-form { box-shadow: 0 6px 20px rgba(11,61,32,.10); }
.admin-form h3 { border-bottom: 2px solid rgba(255,210,31,.7); padding-bottom: 6px; }
.tbl th { background: linear-gradient(90deg, var(--green), var(--green2)); }

/* ============ Order form card upgrade v9 ============ */
#order-form { background: linear-gradient(180deg, #ffffff 0%, #f0f7f2 100%); }
#order-form .section-title { font-size: 32px; }
form.order-form { background: #fff; border-radius: 20px; padding: 30px 24px 24px; box-shadow: 0 16px 44px rgba(11,61,32,.16); border: 1px solid #e8eef0; position: relative; overflow: hidden; }
form.order-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--green2), var(--gold), var(--gold2)); }
.order-form label { font-size: 15px; }
.order-form input[type="text"], .order-form input[type="tel"], .order-form textarea { background: #f8fafc; border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.order-form input:focus, .order-form textarea:focus { background: #fff; }
.area-field { background: #f8fafc; border-radius: 14px; padding: 14px; }
.area-field .radio { border: 2px solid #dbe3e6; border-radius: 999px; padding: 8px 16px; margin: 4px 8px 4px 0; background: #fff; transition: border-color .15s, background .15s; cursor: pointer; }
.area-field .radio:has(input:checked) { border-color: var(--gold2); background: #fff8d6; }
.qty-wrap button { background: linear-gradient(135deg, #ffe45c, var(--gold2)); border-color: var(--gold2); color: var(--green); font-weight: 900; }
.qty-wrap button:first-child { border-radius: 10px 0 0 10px; }
.qty-wrap button:last-child { border-radius: 0 10px 10px 0; }
.qty-wrap input { font-weight: 800; color: var(--green); }
.calc-box { background: linear-gradient(180deg, #fffbe6, #fff); border: 2px solid var(--gold); box-shadow: 0 6px 18px rgba(245,184,0,.2); border-radius: 14px; }
.calc-total { font-size: 20px; }
#orderBtn { font-size: 19px; padding: 16px 28px; letter-spacing: .5px; border-radius: 14px; box-shadow: 0 8px 22px rgba(245,184,0,.5); }
#orderBtn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245,184,0,.55); }
form.order-form .cod-note { background: #eafaf0; border-color: #bfe8cd; color: var(--green2); }
.field-error { font-weight: 600; }

/* Free bonus course highlight (v17) */
.bonus-card { text-align: center; padding: 36px 28px; border-radius: 20px; background: linear-gradient(135deg, #fffbe6 0%, #ffffff 55%, #fff7d6 100%); border: 3px solid #d4af37; box-shadow: 0 12px 40px rgba(212, 175, 55, 0.35), 0 0 0 6px rgba(212, 175, 55, 0.12); }
.bonus-badge { display: inline-block; padding: 8px 22px; border-radius: 999px; font-weight: 800; letter-spacing: 1px; color: #fff; background: linear-gradient(90deg, #b8860b, #d4af37); box-shadow: 0 4px 14px rgba(212, 175, 55, 0.5); }
.bonus-title { font-size: 30px; margin: 18px 0 8px; color: #0f5132; }
.bonus-info { color: #444; font-size: 17px; max-width: 560px; margin: 0 auto; }
.bonus-price { font-size: 22px; margin: 16px 0 0; }
.bonus-price s { color: #b3261e; opacity: 0.75; margin-right: 10px; }
.bonus-free { font-size: 30px; background: linear-gradient(90deg, #d4af37, #f3d97e); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 600px) { .bonus-title { font-size: 24px; } .bonus-free { font-size: 26px; } }
