/* Digital Trainer — EduVault-style theme: indigo #4f46e5 primary, dark navy hero/footer,
   white cards, 16px radius, soft shadows. No gradients on buttons; hero may use a subtle dark radial glow. */
:root{
  --primary:#4f46e5; --primary-d:#4338ca; --primary-soft:#eef2ff;
  --navy:#1e1b4b; --dark:#14112e; --dark2:#1e1a45;
  --ink:#111827; --muted:#64748b; --line:#e5e7eb; --bg:#f8f9fc; --card:#fff;
  --green:#15803d; --green-bg:#dcfce7; --red:#b91c1c; --amber:#d97706; --amber-bg:#fef3c7;
  --radius:16px; --shadow:0 1px 3px rgba(17,24,39,.06),0 6px 18px rgba(17,24,39,.06);
  --logo-bg:#030132; /* exact background of img/logo.jpg — headers use it so the logo blends in */
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Bengali","Hind Siliguri",sans-serif;
}
*{box-sizing:border-box}
/* Hard guard: the page must never scroll sideways. If any element is wider
   than the phone screen, it is clipped at the edge instead of pushing the
   whole page (and the footer) sideways and leaving a white strip. */
html,body{overflow-x:hidden}
@supports (overflow-x:clip){ html,body{overflow-x:clip} }
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.6;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%}
img,svg{max-width:100%}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{color:var(--navy);line-height:1.25;margin:0 0 12px}
h1{font-size:30px} h2{font-size:24px} h3{font-size:19px}
p{margin:0 0 14px}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.muted{color:var(--muted)} .small{font-size:14px} .nowrap{white-space:nowrap}
.skip{position:absolute;left:-9999px}
/* Header — dark logo background so the logo blends into the bar. */
.site-header{position:sticky;top:0;z-index:50;background:var(--logo-bg);border-bottom:1px solid rgba(255,255,255,.08)}
.header-in{display:flex;align-items:center;gap:10px;min-height:60px;flex-wrap:nowrap;min-width:0}
.logo{display:flex;align-items:center;gap:9px;color:#fff;font-weight:800;font-size:18px;text-decoration:none;flex-shrink:0;white-space:nowrap;min-width:0}
.logo-img{max-height:44px;max-width:200px;object-fit:contain;display:block;border-radius:8px}
.header-signin{display:none}
.cart-btn .cart-label{display:none}
.logo:hover{text-decoration:none}
.logo-mark{width:36px;height:36px;border-radius:10px;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:19px;font-weight:900}
.logo b{color:#fff} .logo span{color:#c7d2fe}
.header-search{flex:1;display:none}
.site-header .header-search input{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18);color:#fff}
.site-header .header-search input::placeholder{color:#94a3b8}
.site-header .search-icon{color:#94a3b8}
.header-search input,.search-input{width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;font-size:16px;background:#f8fafc}
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border-radius:12px;border:1px solid transparent;font-size:16px;font-weight:700;cursor:pointer;text-decoration:none;background:var(--primary);color:#fff;white-space:nowrap}
.btn:hover{text-decoration:none;filter:brightness(1.08)}
.btn-yellow{background:var(--primary);color:#fff}
.btn-outline{background:#fff;border-color:var(--primary);color:var(--primary)}
.btn-outline-white{background:transparent;border-color:rgba(255,255,255,.7);color:#fff}
.btn-ghost{background:transparent;color:var(--primary)}
.btn-block{width:100%}
.btn-sm{min-height:44px;padding:8px 14px;font-size:15px}
.cart-btn{position:relative;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-weight:700;text-decoration:none;padding:0 10px}
.cart-count{position:absolute;top:-7px;right:-7px;background:var(--primary);color:#fff;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:12px;font-weight:800;padding:0 5px}
.nav-desktop{display:none;gap:4px}
.nav-desktop a{color:#e0e7ff;font-weight:600;padding:10px 12px;border-radius:8px;text-decoration:none}
.nav-desktop a:hover{background:rgba(255,255,255,.10);text-decoration:none}
.nav-desktop a.active{color:#a5b4fc}
/* Icons — inline SVG, 16–20px, currentColor. No emoji. */
.ic{width:18px;height:18px;flex:none;vertical-align:-3px}
.btn .ic{width:18px;height:18px}
.btn-icon{min-width:44px;min-height:44px;padding:0 11px;flex:none}
.nav-desktop a .ic{width:17px;height:17px;vertical-align:-3px;margin-right:5px}
.cart-btn .ic{width:19px;height:19px}
.chip .ic{width:17px;height:17px;margin-right:6px}
.star-ic{width:14px;height:14px;color:var(--amber);vertical-align:-2px}
.star-empty{color:#e2e8f0}
.stars{display:inline-flex;align-items:center;gap:1px;font-weight:700;color:#92400e}
.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);display:flex;pointer-events:none}
.header-search{position:relative}
.header-search input{padding-left:42px}
/* Hero slider (image-only, below the hero) */
.slider{position:relative}
.slide{display:none}
.slide.active{display:block;animation:slideIn .45s ease}
@keyframes slideIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.slider-dots{display:flex;gap:8px;margin-top:18px;justify-content:center}
.slider-dot{width:12px;height:12px;border-radius:999px;border:0;background:#c7d2fe;cursor:pointer;padding:0;min-width:12px;min-height:12px}
.slider-dot.active{background:var(--primary)}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:rgba(20,17,46,.35);color:#fff;cursor:pointer;display:none;align-items:center;justify-content:center}
.slider-arrow.prev{left:12px;right:auto}
.slide-link{display:block}
.slide-img{display:block;width:100%;height:180px;object-fit:cover;border-radius:var(--radius)}
.slider-arrow.next{right:12px}
.slider-arrow:hover{background:rgba(20,17,46,.6)}
@media (min-width:900px){ .slider-arrow{display:flex} }
/* Hero — dark navy with a soft purple glow */
.hero{background:radial-gradient(ellipse 60% 80% at 75% 15%, rgba(79,70,229,.45), transparent 60%),var(--dark);color:#fff;padding:48px 0 40px}
.hero h1{color:#fff;font-size:32px;margin-bottom:10px}
.hero .bangla{font-size:20px;color:#a5b4fc;font-weight:800;margin-bottom:8px}
.hero p{color:#c7d2fe;max-width:560px}
.hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 0}
.hero-grid{display:grid;grid-template-columns:1fr;gap:28px;align-items:center}
.hero-illu{display:none}
.hero-illu img{display:block;width:100%;border-radius:var(--radius);box-shadow:0 20px 50px rgba(0,0,0,.35)}
/* Sections */
.section{padding:44px 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.section-head p{margin:0}
.chips{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.chip{min-height:44px;padding:10px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:600;font-size:14px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;min-width:0}
.chip .ic{flex:none}
.chip:hover{border-color:var(--primary);text-decoration:none}
.chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}
/* Category tiles — EduVault "Shop by Category" (name + subtext, no icons) */
.cat-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cat-tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px 16px;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px}
.cat-tile:hover{border-color:var(--primary);text-decoration:none}
.cat-tile b{color:var(--navy);font-size:16px}
.cat-tile span{color:var(--muted);font-size:13px}
/* Category chip strip (courses page) — one horizontal scroll-snap row,
   name only, no icons. Same row on mobile and desktop. */
.cat-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:14px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.cat-strip::-webkit-scrollbar{display:none}
.cat-chip{flex:0 0 auto;scroll-snap-align:start;min-height:44px;padding:10px 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:600;font-size:15px;cursor:pointer;white-space:nowrap;font-family:inherit}
.cat-chip:hover{border-color:var(--primary)}
.cat-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}
/* Featured category cards */
.feat-cats{display:grid;grid-template-columns:1fr;gap:16px}
.feat-cat{position:relative;display:block;border-radius:var(--radius);overflow:hidden;text-decoration:none;box-shadow:var(--shadow)}
.feat-cat img{display:block;width:100%;height:180px;object-fit:cover}
.feat-cat .feat-cap{position:absolute;left:0;right:0;bottom:0;padding:16px;background:linear-gradient(transparent,rgba(20,17,46,.85));color:#fff}
.feat-cat .feat-cap b{display:block;font-size:18px;color:#fff}
.feat-cat .feat-cap span{font-size:14px;color:#c7d2fe}
/* Course cards — cover image on top; phone shows title, rating, price only. */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.course-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
.course-card:hover{box-shadow:0 6px 22px rgba(17,24,39,.12)}
.cover-link{display:block;position:relative;text-decoration:none}
.cover-img{display:block;width:100%;height:120px;object-fit:cover}
.cover-badge{position:absolute;top:10px;left:10px}
.card-body{padding:12px;display:flex;flex-direction:column;gap:6px;flex:1}
.card-body h3{font-size:15px;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-body h3 a{color:var(--navy);text-decoration:none}
.card-meta{color:var(--muted);font-size:13px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.price-row{display:flex;align-items:baseline;gap:8px;margin-top:auto;padding-top:6px;flex-wrap:wrap}
.price{font-size:18px;font-weight:800;color:var(--navy)}
.card-actions{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.card-actions .btn{padding:11px 8px;font-size:15px;white-space:nowrap}
.old-price{color:var(--muted);text-decoration:line-through}
.off{background:var(--green-bg);color:var(--green);font-weight:700;font-size:13px;padding:3px 8px;border-radius:999px}
.badge{display:inline-block;background:var(--amber-bg);color:#92400e;font-size:12px;font-weight:800;padding:4px 9px;border-radius:999px}
.badge-new{background:#dbeafe;color:#1e40af}
/* Trust / FAQ */
.trust{display:grid;grid-template-columns:1fr;gap:12px}
.trust-item{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;gap:12px;align-items:flex-start}
.trust-item .ic{width:20px;height:20px;color:var(--primary);margin-top:2px}
.trust-item b{display:block;color:var(--navy);margin-bottom:2px}
.trust-item p{margin:0;color:var(--muted);font-size:14px}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden}
.faq-item summary{min-height:48px;padding:14px 16px;font-weight:700;color:var(--navy);cursor:pointer;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item p{padding:0 16px 16px;margin:0}
/* Forms */
.field{margin-bottom:14px}
.field label{display:block;font-weight:700;margin-bottom:6px;color:var(--navy)}
.field input,.field select,.field textarea{width:100%;min-height:48px;padding:11px 13px;border:1px solid #cbd5e1;border-radius:10px;font-size:16px;font-family:inherit;background:#fff}
.field textarea{min-height:110px}
.field .hint{font-size:14px;color:var(--muted);margin-top:5px}
.error{color:var(--red);font-size:14px;font-weight:600;margin-top:5px;display:none}
input.invalid,select.invalid{border-color:var(--red)}
/* Cart rows */
.cart-thumb{width:72px;height:72px;flex:none;border-radius:12px;object-fit:cover;display:block}
.cart-row .btn-sm{min-height:44px}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.cart-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);align-items:flex-start}
.cart-row:last-child{border-bottom:0}
.qty{display:inline-flex;align-items:center;gap:2px}
.qty button{min-width:44px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:18px;cursor:pointer}
.pay-option{display:flex;gap:12px;border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:10px;cursor:pointer;align-items:flex-start}
.pay-option input{width:22px;height:22px;margin-top:3px;flex-shrink:0}
.pay-option.selected{border-color:var(--primary);background:var(--primary-soft)}
.pay-num{font-size:19px;font-weight:800;letter-spacing:.5px}
.copy-btn{min-height:44px;padding:8px 14px;border:1px solid var(--primary);background:#fff;color:var(--primary);border-radius:8px;font-weight:700;cursor:pointer}
.steps{display:flex;gap:8px;margin:18px 0;flex-wrap:wrap}
.step{flex:1;min-width:90px;text-align:center;font-size:14px;font-weight:700;color:var(--muted);border-top:4px solid var(--line);padding-top:8px}
.step.active{color:var(--navy);border-color:var(--primary)}
.progress{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.progress > span{display:block;height:100%;background:var(--primary)}
.status-pill{display:inline-block;padding:5px 11px;border-radius:999px;font-size:13px;font-weight:800}
.status-hold{background:var(--amber-bg);color:#92400e}.status-approved{background:var(--green-bg);color:var(--green)}.status-pending{background:#dbeafe;color:#1e40af}
.notice{background:#fefce8;border:1px solid #fde68a;border-radius:12px;padding:14px 16px;margin-bottom:16px}
.notice-green{background:#f0fdf4;border-color:#bbf7d0}
.notice-blue{background:var(--primary-soft);border-color:#c7d2fe}
.empty{text-align:center;padding:36px 16px;background:#fff;border:1px dashed var(--line);border-radius:var(--radius)}
/* Course detail */
.detail-grid{display:grid;grid-template-columns:1fr;gap:20px}
.detail-cover{display:block;width:100%;border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;aspect-ratio:16/9;object-fit:cover}
.sticky-buy{position:sticky;top:76px}
.curriculum{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.curriculum details{border-bottom:1px solid var(--line)} .curriculum details:last-child{border-bottom:0}
.curriculum summary{min-height:48px;padding:13px 16px;font-weight:700;color:var(--navy);cursor:pointer}
.lesson{display:flex;justify-content:space-between;gap:10px;padding:11px 16px;border-top:1px solid #f1f5f9;font-size:15px}
.lesson .free{color:var(--green);font-weight:700}
.detail-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin:20px 0 16px;border-bottom:1px solid var(--line)}
.detail-tab{min-height:44px;padding:10px 16px;border:0;background:none;color:var(--muted);font-weight:700;font-size:15px;cursor:pointer;white-space:nowrap;border-bottom:3px solid transparent;margin-bottom:-1px}
.detail-tab.active{color:var(--primary);border-bottom-color:var(--primary)}
.check-list{list-style:none;padding:0;margin:0}
.check-list li{display:flex;gap:10px;padding:8px 0;align-items:flex-start}
.check-list .ic{width:20px;height:20px;color:var(--primary);margin-top:2px}
/* Catalogue layout (courses page) — full-width main, chip strip on top */
.catalog-main{min-width:0}
/* Checkout two-column */
.checkout-grid{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
/* Dashboard (student) */
.dash-layout{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
.dash-sidebar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:12px;box-shadow:var(--shadow)}
.dash-sidebar a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:10px;color:var(--ink);font-weight:600;text-decoration:none;min-height:48px}
.dash-sidebar a:hover{background:var(--primary-soft);text-decoration:none}
.dash-sidebar a.active{background:var(--primary);color:#fff}
.dash-sidebar a .ic{width:18px;height:18px}
.dash-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:16px}
/* Auth page */
.auth-wrap{display:grid;grid-template-columns:1fr;min-height:100vh}
.auth-hero{display:none;background:radial-gradient(ellipse 70% 60% at 70% 20%, rgba(79,70,229,.5), transparent 60%),var(--dark);color:#fff;padding:48px 40px}
.auth-hero h1{color:#fff;font-size:34px}
.auth-hero p{color:#c7d2fe}
.auth-form-col{padding:32px 20px;display:flex;align-items:flex-start;justify-content:center}
.auth-card{width:100%;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 22px;box-shadow:var(--shadow)}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px}
.auth-tab{min-height:44px;border-radius:10px;border:1px solid var(--line);background:#f8fafc;font-weight:700;font-size:15px;cursor:pointer;color:var(--ink)}
.auth-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.otp-input{letter-spacing:8px;font-size:22px;font-weight:800;text-align:center}
/* Success check */
.success-check{width:88px;height:88px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;margin:8px auto 16px}
.success-check .ic{width:44px;height:44px}
/* Footer — dark navy, 4 columns; mobile 1 column with side padding + safe area. */
.site-footer{background:var(--dark);color:#c7d2fe;margin-top:36px;padding-bottom:env(safe-area-inset-bottom)}
.site-footer .wrap{padding:0 20px}
.site-footer a{color:#e0e7ff}
.site-footer h3{color:#fff}
.footer-grid{display:grid;grid-template-columns:1fr;gap:28px;padding:40px 0 20px}
.footer-grid>div{margin-bottom:4px}
.footer-about{max-width:340px}
.footer-contact{line-height:2}
.footer-contact .ic{width:16px;height:16px;vertical-align:-3px;margin-right:6px}
.footer-links a{display:block;padding:6px 0}
.pay-badges{display:flex;flex-wrap:wrap;gap:8px}
.pay-badges span{border:1px solid #4c4a8a;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:700;color:#fff;background:#26245e}
.footer-bottom{border-top:1px solid #312e81;padding:18px 0 calc(110px + env(safe-area-inset-bottom));font-size:14px}
.footer-bottom p{margin:0}
/* Mobile bottom nav */
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:56px;justify-content:center;color:var(--navy);font-size:12px;font-weight:700;text-decoration:none;position:relative}
.bottom-nav a.active{color:var(--primary)}
.bottom-nav .cart-count{top:4px;right:calc(50% - 22px)}
.bottom-nav .ic{width:20px;height:20px}
.whatsapp-fab{position:fixed;right:14px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:55;background:#25d366;color:#fff;width:52px;height:52px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:800;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.whatsapp-fab .ic{width:26px;height:26px}
/* Admin panel + demo banner */
.admin-header{background:var(--logo-bg);border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;z-index:50}
.admin-header-in{display:flex;align-items:center;gap:12px;min-height:60px}
.admin-title{font-weight:800;color:#fff;font-size:18px}
.admin-footer{border-top:1px solid var(--line);padding:20px 0 calc(20px + env(safe-area-inset-bottom));font-size:14px;color:var(--muted);margin-top:36px}
.admin-footer a{color:var(--primary);font-weight:700}
.demo-banner{background:#facc15;color:var(--navy);font-weight:800;text-align:center;padding:10px 16px;font-size:15px}
.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:16px}
.tab-btn{min-height:44px;padding:10px 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:700;font-size:15px;cursor:pointer;white-space:nowrap}
.tab-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;box-shadow:var(--shadow)}
.stat-card b{font-size:26px;color:var(--navy);display:block}
.stat-card span{color:var(--muted);font-size:14px}
.status-rejected{background:#fee2e2;color:#991b1b}
.order-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:var(--shadow)}
.order-card h3{margin-bottom:6px}
.admin-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.admin-row .btn{flex:1;min-width:120px}
@media (min-width:640px){ .stat-grid{grid-template-columns:repeat(4,1fr)} }
.legal{max-width:760px}
.legal h2{margin-top:28px}
.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;margin-bottom:14px}
.toolbar select,.toolbar input{min-height:44px;border:1px solid #cbd5e1;border-radius:10px;padding:9px 12px;font-size:16px;background:#fff;min-width:0;width:100%}
.toolbar input{grid-column:1 / -1}
.toolbar .btn{grid-column:1 / -1}
@media (min-width:640px){
  .grid{grid-template-columns:repeat(3,1fr);gap:16px}
  .trust{grid-template-columns:1fr 1fr}
  .header-search{display:block}
  .chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .chip{flex:0 0 auto;font-size:15px;padding:10px 16px}
  .footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}
  .footer-grid>div{margin-bottom:0}
  h1{font-size:36px}
  .cat-tiles{grid-template-columns:repeat(3,1fr)}
  .feat-cats{grid-template-columns:1fr 1fr}
  .feat-cat img{height:220px}
  .cover-img{height:150px}
  .auth-wrap{grid-template-columns:1fr 1fr}
  .auth-hero{display:block}
}
@media (min-width:1025px){
  .grid{grid-template-columns:repeat(4,1fr)}
  .trust{grid-template-columns:repeat(4,1fr)}
  .card-body h3{font-size:16px}
  .detail-grid{grid-template-columns:1fr 360px}
  .nav-desktop{display:flex}
  .header-signin{display:inline-flex}
  .cart-btn .cart-label{display:inline}
  .slide-img{height:320px}
  .hero h1{font-size:44px}
  .hero-grid{grid-template-columns:1.1fr .9fr}
  .hero-illu{display:block}
  .bottom-nav{display:none}
  .whatsapp-fab{bottom:calc(20px + env(safe-area-inset-bottom))}
  .footer-bottom{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .checkout-grid{grid-template-columns:1fr 360px}
  .dash-layout{grid-template-columns:240px 1fr}
  .dash-tabs{display:none}
}
@media (max-width:1024px){
  body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  main{scroll-margin-top:76px}
  .dash-sidebar{display:none}
}
@media (min-width:1400px){
  .grid{grid-template-columns:repeat(5,1fr)}
  .wrap{max-width:1360px}
}
@media (max-width:389px){
  h1{font-size:27px} .hero .bangla{font-size:19px}
  .header-actions .btn span{display:none}
  .grid{gap:10px}
  .card-body{padding:10px}
  .cover-img{height:104px}
}

/* ---- Responsive guards: no horizontal overflow, no overlapping text ---- */
input,select,textarea{max-width:100%}
.panel,.order-card,.course-card,.stat-card,.cart-row,.pay-option,.faq-item,.curriculum{min-width:0}
/* Grid children must be allowed to shrink, or a long one-line element
   (e.g. the course rating line) forces the whole grid — and the page —
   wider than the phone, so the line is cut off instead of wrapping. */
.detail-grid>div,.footer-grid>div{min-width:0}
.order-card,.panel,.course-card,.cart-row p,.lesson span,.cat-tile b{overflow-wrap:break-word}
.cart-row>div{min-width:0}
.lesson>span{min-width:0}
.pay-num{overflow-wrap:anywhere}
.section-head{flex-wrap:wrap}
.section-head>div{min-width:0}
.detail-tabs,.dash-tabs,.tabs{scrollbar-width:thin}

/* ---- Back button row (course detail) ---- */
.page-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.page-top .muted{font-size:14px}
.back-btn .ic{width:18px;height:18px}

/* ---- Admin shell: sidebar menu on EVERY width ----
   Desktop: sticky left sidebar. Below 1025px: off-canvas sidebar opened
   with the hamburger in the admin header (backdrop tap / ESC closes). */
.admin-shell{display:block}
.admin-sidebar{display:block;position:fixed;top:0;left:0;bottom:0;width:272px;max-width:84vw;z-index:70;background:#fff;border-right:1px solid var(--line);padding:12px;box-shadow:0 8px 30px rgba(17,24,39,.18);transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto}
.admin-sidebar.open{transform:none}
.admin-backdrop{position:fixed;inset:0;z-index:65;background:rgba(20,17,46,.45);border:0;padding:0;cursor:pointer}
.admin-menu-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;flex:none}
.admin-menu-btn.is-hidden{display:none}
.admin-menu-btn .ic{width:22px;height:22px}
.admin-sidebar .side-title{font-weight:800;color:var(--navy);padding:8px 12px 12px;font-size:15px}
.admin-nav{display:flex;flex-direction:column;gap:2px}
.nav-group{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:14px 14px 4px}
.admin-nav .nav-group:first-child{padding-top:6px}
.admin-nav .tab-btn{border:0;border-radius:10px;text-align:left;justify-content:flex-start;padding:12px 14px;background:none;color:var(--ink)}
.admin-nav .tab-btn:hover{background:var(--primary-soft)}
.admin-nav .tab-btn.active{background:var(--primary);color:#fff}
.admin-nav .tab-btn .ic{width:18px;height:18px;margin-right:10px;vertical-align:-3px}
.admin-nav .tab-btn .nav-count{margin-left:auto;font-size:12px;font-weight:800;background:#eef2ff;color:var(--primary);border-radius:999px;padding:2px 8px}
.admin-nav .tab-btn.active .nav-count{background:rgba(255,255,255,.25);color:#fff}
.admin-main{min-width:0}
@media (min-width:1025px){
  .admin-shell{display:grid;grid-template-columns:232px minmax(0,1fr);gap:24px;align-items:start}
  .admin-sidebar{position:sticky;top:76px;bottom:auto;width:auto;max-width:none;z-index:1;transform:none;transition:none;box-shadow:var(--shadow);border:1px solid var(--line);border-radius:var(--radius);overflow-y:visible}
  .admin-menu-btn{display:none}
  .admin-backdrop{display:none}
}
/* Icon-led stat cards */
.stat-card{display:flex;gap:12px;align-items:flex-start}
.stat-ic{flex:none;width:44px;height:44px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}
.stat-ic .ic{width:22px;height:22px}
.stat-ic.amber{background:var(--amber-bg);color:#92400e}
.stat-ic.green{background:var(--green-bg);color:var(--green)}
.stat-card b{font-size:24px;color:var(--navy);display:block;line-height:1.2}
.stat-card span{color:var(--muted);font-size:13px;line-height:1.35;display:block}
.stat-card>div{min-width:0}
/* Admin header on small phones: DT mark only, wrap buttons */
@media (max-width:639px){
  .admin-header .logo>span:last-child{display:none}
  .admin-title{display:none}
  .admin-header-in{flex-wrap:wrap;padding-top:8px;padding-bottom:8px;min-height:0}
  .admin-header-in .header-actions{margin-left:auto}
  .order-card .admin-row{flex-direction:column}
  .order-card .admin-row .btn{flex:1 1 auto;width:100%;min-width:0}
  .order-card .admin-row .muted{width:100%}
}
/* Order cards: never overlap, long values wrap */
.order-card{overflow-wrap:anywhere}
.order-card .order-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.order-card .order-top h3{margin:0;min-width:0;overflow-wrap:anywhere}
.order-card .order-top .price{flex:none}
.order-detail{margin-top:10px;padding-top:10px;border-top:1px solid #f1f5f9;font-size:15px}
.order-detail ul{margin:6px 0;padding-left:18px}
.mini-btn{min-height:40px;padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--primary);font-weight:700;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.mini-btn .ic{width:16px;height:16px}
/* Dashboard recent orders + admin search */
.recent-list{display:flex;flex-direction:column;gap:10px}
.recent-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f1f5f9;flex-wrap:wrap}
.recent-row:last-child{border-bottom:0}
.recent-row .grow{flex:1;min-width:140px}
.recent-row .grow b{display:block;color:var(--navy);overflow-wrap:anywhere}
.admin-search{display:flex;gap:8px;margin-bottom:12px}
.admin-search input{flex:1;min-width:0;min-height:44px;border:1px solid #cbd5e1;border-radius:10px;padding:9px 12px;font-size:16px}
/* Login screen */
.login-card{max-width:440px;margin:0 auto}
.login-card .field{position:relative}
.pw-toggle{position:absolute;right:10px;top:32px;min-width:44px;min-height:44px;border:0;background:none;color:var(--primary);font-weight:700;cursor:pointer;font-size:14px}
.login-logo{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.login-logo .logo-mark{width:44px;height:44px;font-size:22px;border-radius:12px}


/* ---- SMS Payments tab (Payment Automation app, PRD §10) ---- */
.prov-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;color:#fff;white-space:nowrap}
.prov-bkash{background:#E2136E}
.prov-nagad{background:#F6921E}
.prov-rocket{background:#89288F}
.prov-row{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:16px}
.prov-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;box-shadow:var(--shadow);min-width:0}
.prov-head{display:flex;align-items:center;gap:8px}
.prov-head b{color:var(--navy)}
.prov-dot{flex:none;width:12px;height:12px;border-radius:999px}
.prov-dot.prov-bkash{background:#E2136E}
.prov-dot.prov-nagad{background:#F6921E}
.prov-dot.prov-rocket{background:#89288F}
.raw-sms{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:10px 0 0}
@media (min-width:640px){ .prov-row{grid-template-columns:repeat(3,1fr)} }

/* ---- Gateway payment page (pay.html) + verification states ---- */
.status-ok{background:var(--green-bg);color:var(--green)}
.status-bad{background:#fef2f2;color:#b91c1c}
.gw-header{background:#fff;border-bottom:1px solid var(--line)}
.gw-header .wrap{display:flex;align-items:center;justify-content:center;min-height:60px}
.gw-wrap{max-width:560px;margin:0 auto}
.pay-amount{font-size:40px;font-weight:800;color:var(--navy);line-height:1.1;margin:4px 0 16px}
.verify-card{margin-top:16px}
.spin{width:22px;height:22px;border:3px solid #fde68a;border-top-color:#92400e;border-radius:50%;display:inline-block;vertical-align:-5px;animation:dtspin 1s linear infinite}
@keyframes dtspin{to{transform:rotate(360deg)}}

/* ---- Payment gateway (pay.html) — TrxPay-style, two screens ---- */
body.gw-body{background-color:#f3f5fa;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='76'%3E%3Cg fill='none' stroke='%23dde3f0' stroke-width='1'%3E%3Ccircle cx='38' cy='38' r='27'/%3E%3Ccircle cx='0' cy='0' r='27'/%3E%3Ccircle cx='76' cy='0' r='27'/%3E%3Ccircle cx='0' cy='76' r='27'/%3E%3Ccircle cx='76' cy='76' r='27'/%3E%3C/g%3E%3C/svg%3E");padding-bottom:104px}
.gw-col{max-width:480px;margin:0 auto;padding:0 16px}
.gw-topbar{position:sticky;top:0;z-index:50;background:var(--logo-bg);border-bottom:1px solid rgba(255,255,255,.08)}
.gw-topbar-in{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:60px}
.lang-pills{display:flex;background:rgba(255,255,255,.10);border-radius:999px;padding:3px;gap:2px;flex:none}
.lang-pills button{border:0;background:transparent;padding:7px 13px;border-radius:999px;font-weight:800;font-size:14px;color:#c7d2fe;cursor:pointer;min-height:36px}
.lang-pills button.active{background:#fff;color:var(--navy);box-shadow:var(--shadow)}
.gw-center{text-align:center}
.gw-brand-pill{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 22px;font-weight:800;color:var(--navy);box-shadow:var(--shadow);margin:26px auto 10px}
.gw-brand-big{font-size:34px;font-weight:800;color:#475569;text-align:center;margin:6px 0 18px}
.gw-mb-bar{background:#2563EB;color:#fff;text-align:center;font-weight:800;font-size:20px;padding:16px;border-radius:14px;margin-bottom:16px}
.gw-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gw-method{position:relative;background:#fff;border:2px solid transparent;border-radius:16px;box-shadow:var(--shadow);padding:20px 10px;cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:112px}
.gw-method img{max-height:52px;max-width:100%;object-fit:contain;display:block}
.gw-method.sel{border-color:var(--primary)}
.gw-method.dis{opacity:.45;cursor:not-allowed;filter:grayscale(1)}
.gw-method .sel-badge{display:none;position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:50%;background:var(--primary);color:#fff}
.gw-method .sel-badge .ic{width:14px;height:14px}
.gw-method.sel .sel-badge{display:grid;place-items:center}
.gw-method .rec-badge{position:absolute;top:8px;left:8px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px}
.gw-method .coming{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:12px;font-weight:700;color:var(--muted)}
.gw-warn{background:#fefce8;border:1px solid #fde68a;border-radius:12px;padding:14px 16px;margin-top:16px}
.gw-paybar{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#dbeafe;border-top:1px solid #bfdbfe;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
.gw-paybar button{display:block;width:100%;max-width:448px;margin:0 auto;min-height:56px;border:0;background:#2563EB;color:#fff;font-size:19px;font-weight:800;cursor:pointer;border-radius:12px;box-shadow:0 6px 16px rgba(37,99,235,.35)}
.gw-paybar button:disabled{opacity:.5;cursor:not-allowed}
.gw-navrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}
.gw-round-btn{width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;cursor:pointer;box-shadow:var(--shadow);flex:none;color:var(--navy)}
.gw-timer{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 16px;font-weight:800;font-size:15px;color:var(--navy);cursor:default;max-width:70%;overflow-wrap:anywhere}
.gw-timer.expired{border-color:var(--red);color:var(--red);cursor:pointer;font-size:14px}
.gw-logo-card{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:14px 16px;display:flex;align-items:center;justify-content:center}
.gw-logo-card img{max-height:56px;max-width:100%;object-fit:contain;display:block}
.gw-type-pill{display:inline-block;margin:8px auto 0;padding:7px 20px;border-radius:999px;color:#fff;font-weight:800;font-size:14px}
.bc-bkash{background:#E2136E}.bc-nagad{background:#F6921E}.bc-rocket{background:#89288F}
/* Single combined order card: brand + invoice ID, amount, pay-to number.
   One card, tight rows, minimal vertical space on a phone. */
.gw-order{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:6px 16px;margin-top:12px;min-width:0}
.gw-order-row{display:flex;align-items:center;gap:12px;padding:10px 0;min-width:0}
.gw-order-row + .gw-order-row{border-top:1px solid var(--line)}
.gw-order-top>div{min-width:0;overflow-wrap:anywhere}
.gw-order-amt{justify-content:space-between}
.gw-order-pay{justify-content:space-between}
.gw-order-pay>div{min-width:0}
.gw-avatar{width:48px;height:48px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;font-size:18px;font-weight:800;color:#64748b;flex:none}
.gw-amount-big{font-size:30px;font-weight:800;color:var(--navy);line-height:1.15}
.gw-num{font-size:19px;font-weight:800;letter-spacing:.5px;overflow-wrap:anywhere}
.gw-steps{border-radius:20px;padding:16px 14px;margin-top:10px;color:#fff}
.gw-steps h2{color:#fff;text-align:center;margin-bottom:4px}
.gw-steps input{width:100%;min-height:50px;border-radius:12px;border:0;padding:12px 16px;font-size:17px;background:#fff;color:var(--ink)}
.gw-steps .error{color:#fff;background:rgba(0,0,0,.25);border-radius:8px;padding:8px 12px}
.gw-steps ol{list-style:none;padding:0;margin:12px 0 0;counter-reset:gwstep}
.gw-steps li{counter-increment:gwstep;display:flex;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.28);font-size:15px;line-height:1.45}
.gw-steps li:last-child{border-bottom:0}
.gw-steps li::before{content:counter(gwstep) ".";font-weight:800;color:#fde047;flex:none}
.gw-steps li .hl{color:#fde047;font-weight:800}
.gw-where{display:inline-block;text-align:left;color:#fff;font-weight:700;margin-top:10px;text-decoration:underline;cursor:pointer;background:none;border:0;padding:6px 0;font-size:14px}
.gw-terms{font-size:12.5px;line-height:1.5;color:var(--muted);margin:10px 2px 0;text-align:center}
.gw-verify{width:100%;min-height:56px;border:0;border-radius:14px;color:#fff;font-size:19px;font-weight:800;cursor:pointer;margin-top:10px;letter-spacing:1px}
.gw-verify:disabled{opacity:.65;cursor:not-allowed}
.gw-vcard{border-radius:16px;padding:14px;margin-top:12px;box-shadow:var(--shadow)}
.gw-vok{background:#f0fdf4;border:1px solid #bbf7d0}
.gw-vbad{background:#fef2f2;border:1px solid #fecaca}
.gw-vwait{background:#fefce8;border:1px solid #fde68a}
.gw-vinfo{background:#eff6ff;border:1px solid #bfdbfe}
/* ---- verification modal: dimmed + lightly blurred backdrop, centred card ---- */
.gw-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.gw-modal[hidden]{display:none}
.gw-modal-card{position:relative;background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(15,23,42,.35);width:100%;max-width:420px;max-height:calc(100dvh - 32px);overflow:auto;padding:22px 18px}
.gw-modal-x{position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--navy);display:grid;place-items:center;cursor:pointer;flex:none}
.gw-modal-x .ic{width:16px;height:16px}
.gw-modal-body{padding-top:6px}
.gw-modal-err{font-size:20px;font-weight:800;color:var(--red);text-align:center;margin-bottom:6px}
.gw-modal-body .success-check{margin:4px auto 12px}
body.gw-modal-open{overflow:hidden}
/* ---- status chip under VERIFY (reopens the modal; result is never lost) ---- */
.gw-chip{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:12px;padding:13px 14px;border-radius:12px;font-weight:700;font-size:14px;cursor:pointer;border:1px solid}
.gw-chip .ic{width:16px;height:16px;flex:none}
.gw-chip .spin-sm{width:16px;height:16px;border-width:2px}
.chip-info{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.chip-ok{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}
.chip-bad{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
/* ---- Bangla steps: a bit bolder; amount step carries a copy button ---- */
.gw-steps ol.steps-bn li{font-weight:600}
.gw-steps li .step-txt{flex:1;min-width:0}
.step-copy{flex:none;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.55);color:#fff;border-radius:8px;padding:4px 10px;font-size:12px;font-weight:700;cursor:pointer}
.gw-foot{text-align:center;color:var(--muted);font-size:14px;padding:24px 0 8px}
.gw-foot .ic{width:15px;height:15px;vertical-align:-2px}
@media (min-width:640px){ .gw-brand-big{font-size:38px} }
