/* ============================================================
   Bangla Tech Tools — সম্পূর্ণ ডিজাইন সিস্টেম
   নীল ও সাদা কালার | মোবাইল ও ডেস্কটপ রেসপনসিভ
   ============================================================ */

:root {
  --primary: #1e56d6;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-800: #17398f;
  --sky: #0ea5e9;
  --sky-soft: #e0f2fe;
  --blue-soft: #eaf1ff;
  --grad: linear-gradient(135deg, #1e56d6 0%, #0ea5e9 100%);
  --grad-dark: linear-gradient(135deg, #17398f 0%, #1e56d6 60%, #0ea5e9 130%);
  --bg: #f5f8ff;
  --surface: #ffffff;
  --text: #0f1f3d;
  --muted: #55688f;
  --border: #e2eaf8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 10px 34px rgba(30, 86, 214, 0.10);
  --shadow-sm: 0 4px 14px rgba(30, 86, 214, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: 'Hind Siliguri', 'Noto Sans Bengali', 'SolaimanLipi', 'Segoe UI', sans-serif;
  --font-display: 'Baloo Da 2', 'Hind Siliguri', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }

a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-right: 0; }

:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; border-radius: 4px; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.text-sm { font-size: .9rem; }

/* ============ বাটন ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  padding: .68rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .25s ease; text-decoration: none !important;
  line-height: 1.4; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(30, 86, 214, .32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 86, 214, .4); }
.btn-outline { background: #fff; color: var(--primary-600); border-color: var(--primary-600); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-light { background: #fff; color: var(--primary-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.24); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .42rem 1rem; font-size: .92rem; }
.btn-lg { padding: .85rem 2.1rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ============ টপবার ============ */
.topbar { background: linear-gradient(90deg, #0b1e4b 0%, #17356f 50%, #0b1e4b 100%); color: #dbe7ff; font-size: .87rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding: .28rem 0; }
.topbar-msg { display: flex; align-items: center; gap: .5rem; font-weight: 500; letter-spacing: .1px; }
.topbar-links { display: flex; align-items: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.topbar-links a { color: #c9d8f6; display: inline-flex; align-items: center; gap: .38rem; font-weight: 500; text-decoration: none !important; transition: color .2s; }
.topbar-links a:hover { color: #fff; }
.topbar-links svg { width: 15px; height: 15px; opacity: .9; }

/* ============ হেডার (প্রিমিয়াম SaaS ডিজাইন) ============ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(226,234,248,.85);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 32px rgba(23,57,143,.10);
  border-bottom-color: transparent;
}
.nav-wrap { display: flex; align-items: center; gap: .9rem; height: var(--header-h); position: relative; z-index: 950; }

/* --- ব্র্যান্ড / প্রিমিয়াম লোগো --- */
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none !important; flex-shrink: 0; }
.brand-mark {
  width: 47px; height: 47px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; color: #fff; flex-shrink: 0; position: relative;
  box-shadow: 0 8px 20px rgba(30,86,214,.38), inset 0 1.5px 0 rgba(255,255,255,.4), inset 0 -2px 4px rgba(11,30,75,.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.brand-mark::before {
  content: ''; position: absolute; left: 3px; right: 3px; top: 2px; height: 46%;
  border-radius: 11px 11px 16px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.30), transparent);
  pointer-events: none;
}
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.05); box-shadow: 0 12px 26px rgba(30,86,214,.48), inset 0 1.5px 0 rgba(255,255,255,.4); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; letter-spacing: .2px;
  background: linear-gradient(115deg, #17398f 5%, #1e56d6 55%, #0ea5e9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #1e56d6;
}
.brand-text small { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .45px; }

/* --- মেনু (রাউন্ডেড পিল বাটন) --- */
.main-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: .28rem; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .52rem 1.06rem; border-radius: 999px; font-weight: 600; font-size: .99rem;
  color: #24365e; background: none; border: none; font-family: var(--font);
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.nav-link:hover { background: var(--blue-soft); color: var(--primary-600); transform: translateY(-1px); }
.nav-link:active { transform: translateY(0) scale(.98); }
.nav-link.active {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 18px rgba(30,86,214,.32), inset 0 1px 0 rgba(255,255,255,.28);
}
.nav-link.active:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,86,214,.42); }
.nav-link .caret { width: 14px; height: 14px; flex-shrink: 0; transition: transform .28s ease; opacity: .85; }
.has-dropdown:hover > .drop-toggle .caret, .has-dropdown.open > .drop-toggle .caret { transform: rotate(180deg); }

/* --- প্রিমিয়াম ড্রপডাউন --- */
.has-dropdown { position: relative; }

/* --- Tools Mega Menu: ক্রিটিক্যাল প্রি-হাইড ---
   mega-menu.css ফাইলটি JS দিয়ে পরে ইনজেক্ট হয়; সেটি লোড হওয়ার আগে
   প্যানেলটি যেন কখনো স্টাইল ছাড়া খোলা অবস্থায় দেখা না যায়
   (রিফ্রেশ করলে "মেনু নিজে খুলছে" / flickering সমস্যা)।
   mega-menu.css-এর .mega রুল (DOM-এ পরে থাকে) এই display আবার চালু করে। */
.mega { display: none; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 480px; padding: .55rem;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 26px 60px rgba(23,57,143,.16), 0 4px 14px rgba(23,57,143,.07);
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .18rem;
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .26s ease, transform .26s ease, visibility .26s;
}
.dropdown::before {
  content: ''; position: absolute; top: -6.5px; left: 50%; width: 13px; height: 13px;
  background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg); border-radius: 2.5px 0 0 0;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: center; gap: .68rem; padding: .6rem .7rem;
  border-radius: 12px; color: var(--text); font-weight: 600; font-size: .95rem;
  text-decoration: none !important; transition: background .2s ease, transform .2s ease;
}
.dropdown a:hover { background: var(--blue-soft); transform: translateX(3px); }
.dropdown a svg {
  width: 36px; height: 36px; padding: 8px; border-radius: 11px; flex-shrink: 0;
  background: var(--blue-soft); color: var(--primary-600);
  transition: transform .25s ease;
}
.dropdown a:hover svg { transform: scale(1.1) rotate(-4deg); }
.dropdown a span { min-width: 0; line-height: 1.3; }
.dropdown a small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.45; margin-top: 1px; }
/* প্রতিটি আইকনে আলাদা রঙ */
.dropdown a:nth-child(1) svg { background: #eaf1ff; color: #1e56d6; }
.dropdown a:nth-child(2) svg { background: #e9f9ef; color: #16a34a; }
.dropdown a:nth-child(3) svg { background: #f3edff; color: #7c3aed; }
.dropdown a:nth-child(4) svg { background: #e4f7f4; color: #0d9488; }
.dropdown a:nth-child(5) svg { background: #fff1f0; color: #e5342b; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

/* --- সার্চ বক্স --- */
.search-box { position: relative; }
.search-box .search-input {
  width: 225px; padding: .55rem 2.6rem .55rem 1.05rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font); font-size: .93rem; color: var(--text); background: #edf3fc;
  transition: all .26s ease;
}
.search-box .search-input::placeholder { color: #7286ad; }
.search-box .search-input:focus {
  outline: none; border-color: var(--primary); background: #fff; width: 262px;
  box-shadow: 0 0 0 4px rgba(30,86,214,.10);
}
.search-btn {
  position: absolute; right: 4.5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(30,86,214,.35); transition: transform .2s ease, box-shadow .2s ease;
}
.search-btn:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 6px 16px rgba(30,86,214,.45); }
.search-btn svg { width: 16px; height: 16px; }

/* মাঝারি ডেস্কটপে কমপ্যাক্ট */
@media (max-width: 1150px) {
  .nav-link { padding: .48rem .78rem; font-size: .95rem; }
  .search-box .search-input { width: 168px; }
  .search-box .search-input:focus { width: 198px; }
  .brand-text strong { font-size: 1.12rem; }
  .dropdown { min-width: 440px; }
}

.search-results {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(400px, 88vw);
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(23,57,143,.16); max-height: 420px; overflow-y: auto; z-index: 950; padding: .4rem;
}
.search-results .sr-cat {
  display: inline-block; font-size: .7rem; font-weight: 700; color: var(--primary-600);
  background: var(--blue-soft); border-radius: 999px; padding: .1rem .55rem; margin: .6rem .3rem 0 .3rem;
}
.search-result-item {
  display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .7rem;
  border-radius: 10px; text-decoration: none !important; color: var(--text);
}
.search-result-item:hover { background: var(--blue-soft); }
.search-result-item strong { display: block; font-size: .95rem; color: var(--primary-700); }
.search-result-item small { color: var(--muted); font-size: .8rem; line-height: 1.5; display: block; }
.search-empty { padding: 1rem; text-align: center; color: var(--muted); font-size: .92rem; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 45px; height: 45px; border: 1.5px solid var(--border); background: #fff;
  border-radius: 13px; cursor: pointer; align-items: center; flex-shrink: 0;
  transition: border-color .25s, box-shadow .25s;
}
.hamburger:hover { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30,86,214,.08); }
.hamburger span { width: 20px; height: 2.5px; border-radius: 3px; background: var(--primary-700); transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay { position: fixed; inset: 0; background: rgba(10, 25, 60, .45); z-index: 940; opacity: 0; pointer-events: none; transition: opacity .3s; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.nav-overlay.show { opacity: 1; pointer-events: auto; }

/* ============ হিরো (নতুন ডিজাইন — ছবিসহ) ============ */
.hero {
  position: relative; overflow: hidden; color: var(--text);
  background: linear-gradient(180deg, #d9ebfd 0%, #e9f3ff 52%, #f4f8ff 100%);
  padding: 3.2rem 0 7rem;
}
.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-blob.b1 { width: 460px; height: 460px; top: -160px; left: -140px; background: radial-gradient(circle at 35% 35%, rgba(30,86,214,.13), transparent 70%); }
.hero-blob.b2 { width: 380px; height: 380px; bottom: -140px; right: -110px; background: radial-gradient(circle at 35% 35%, rgba(14,165,233,.15), transparent 70%); }
.hero-blob.b3 { width: 130px; height: 130px; top: 14%; right: 6%; background: radial-gradient(circle, rgba(255,183,3,.30), transparent 70%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.4rem; align-items: center; }

.hero-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .95rem;
  padding: .44rem 1.2rem; border-radius: 999px; margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(30,86,214,.30);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(1.85rem, 4.3vw, 2.9rem);
  line-height: 1.3; color: var(--primary-800); font-weight: 800; margin-bottom: .7rem;
}
.hl-swoosh {
  color: var(--primary); position: relative; display: inline-block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22' preserveAspectRatio='none'><path d='M6 16 Q150 2 294 13' stroke='%23ffb703' stroke-width='7' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: bottom; background-size: 100% .30em;
  padding-bottom: .18em;
}
.hero-sub { font-size: clamp(1rem, 1.9vw, 1.15rem); color: var(--muted); max-width: 560px; margin-bottom: 1.5rem; font-weight: 500; }

.hero-search {
  display: flex; max-width: 530px; margin: 0 0 1.2rem; position: relative;
  background: #fff; border-radius: 999px; padding: .35rem .35rem .35rem .4rem;
  border: 1px solid #d7e4fa; box-shadow: 0 16px 36px rgba(30,86,214,.14);
}
.hero-search input {
  flex: 1; border: none; background: transparent; padding: .72rem 1.1rem;
  font-family: var(--font); font-size: 1.02rem; color: var(--text); min-width: 0;
}
.hero-search input:focus { outline: none; }
.hero-search button {
  display: flex; align-items: center; gap: .45rem; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-family: var(--font); font-weight: 700;
  font-size: 1rem; padding: .72rem 1.45rem; border-radius: 999px; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(30,86,214,.35); transition: transform .2s, box-shadow .2s;
}
.hero-search button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(30,86,214,.42); }
.hero-search .search-results { left: 0; right: 0; top: calc(100% + 10px); width: auto; }

.trust-points { list-style: none; display: flex; gap: 1.3rem; flex-wrap: wrap; padding: 0; margin: 0; }
.trust-points li { display: flex; align-items: center; gap: .45rem; font-weight: 600; color: #1f3a6e; font-size: .97rem; }
.trust-points .tick {
  width: 21px; height: 21px; border-radius: 50%; background: var(--success);
  display: inline-grid; place-items: center; color: #fff; flex-shrink: 0;
}

.hero-right { position: relative; display: flex; justify-content: center; align-items: center; padding: 1.2rem .6rem 2.6rem; }
/* ত্রি-ছবি কম্পোজিশন — Ariyan | ল্যাপটপ | Adil */
.hero-trio {
  position: relative; z-index: 2; width: min(600px, 100%);
  display: grid; grid-template-columns: 1fr 2.1fr 1fr;
  align-items: center; gap: clamp(.55rem, 1.4vw, .95rem);
}
.hero-trio figure { margin: 0; }
.trio-main img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; display: block;
  border-radius: 28px; border: 6px solid #fff; background: #fff;
  box-shadow: 0 0 0 1px rgba(30,86,214,.15), 0 34px 70px rgba(23,57,143,.24);
}
.trio-side img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; display: block;
  border-radius: 18px; border: 4px solid #fff; background: #fff;
  box-shadow: 0 0 0 1px rgba(30,86,214,.15), 0 16px 36px rgba(23,57,143,.20);
}
.trio-side { transition: transform .3s ease; }
.trio-side:hover { transform: translateY(-4px); }
.float-chip {
  position: absolute; display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 17px; background: #fff; box-shadow: 0 14px 28px rgba(15,31,61,.18);
  animation: floaty 3.8s ease-in-out infinite; z-index: 3;
}
.float-chip svg { width: 30px; height: 30px; }
.chip-pdf { top: -14px; left: 14%; color: #e5342b; }
.chip-calc { top: 38%; right: -14px; color: #1e56d6; animation-delay: .7s; }
.chip-img { bottom: 14px; left: -12px; color: #0e9f6e; animation-delay: 1.3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-script {
  position: absolute; right: 0; bottom: -1.4rem;
  font-family: 'Segoe Script', 'Comic Sans MS', 'Bradley Hand', cursive;
  color: var(--primary); font-size: 1.22rem; font-weight: 700; line-height: 1.25;
  text-align: center; transform: rotate(-5deg); text-shadow: 0 2px 0 rgba(255,255,255,.8);
}

/* ============ জনপ্রিয় টুলস প্যানেল ============ */
.tools-panel-section { position: relative; z-index: 5; margin-top: -3.6rem; }
.tools-panel {
  background: #fff; border: 1px solid #e4edfc; border-radius: 26px;
  box-shadow: 0 26px 60px rgba(15,31,61,.10); padding: 2rem 1.7rem 1.7rem;
}
.tools-panel-head { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 1.4rem; }
.tools-panel-head .line { height: 3px; flex: 1; max-width: 170px; border-radius: 3px; background: linear-gradient(90deg, transparent, #b9d2f7); }
.tools-panel-head .line:last-child { background: linear-gradient(270deg, transparent, #b9d2f7); }
.tools-panel-head h2 {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.55rem); color: #fff;
  background: var(--grad); padding: .52rem 1.6rem; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(30,86,214,.30); white-space: nowrap; margin: 0;
}
.ptool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.05rem; }
.ptool-card {
  --ac: #1e56d6; --acb: #e1ecff;
  display: flex; flex-direction: column; background: var(--acb);
  border: 1px solid rgba(255,255,255,.9); border-radius: 20px; overflow: hidden;
  text-decoration: none !important; position: relative;
  box-shadow: 0 8px 22px rgba(15,31,61,.09);
  transition: transform .28s ease, box-shadow .28s ease;
}
.ptool-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15,31,61,.16); }
.ptool-art {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--acb);
  border-bottom: 1px solid rgba(255,255,255,.65);
}
.ptool-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.ptool-card:hover .ptool-art img { transform: scale(1.07); }
.ptool-text { flex: 1; min-width: 0; padding: .8rem .9rem .2rem; text-align: center; }
.ptool-text b {
  display: block; color: #14264d; font-size: 1.02rem; font-family: var(--font-display);
  line-height: 1.35;
}
.ptool-text small { color: #4d6089; font-size: .8rem; line-height: 1.45; display: block; }
.ptool-go {
  margin: .65rem .9rem .9rem; padding: .48rem .9rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: .38rem;
  background: #fff; color: var(--ac); font-weight: 700; font-size: .86rem;
  font-family: var(--font-display); box-shadow: 0 3px 10px rgba(15,31,61,.08);
  transition: background .25s, color .25s;
}
.ptool-go .go-ic { font-style: normal; transition: transform .25s; line-height: 1; }
.ptool-card:hover .ptool-go { background: var(--ac); color: #fff; }
.ptool-card:hover .go-ic { transform: translateX(3px); }

/* প্রতিটি কার্ডের নিজস্ব রঙ থিম — ইলাস্ট্রেশনের সাথে ম্যাচ করা */
.pc-pdf  { --ac: #e5342b; --acb: #fff1f0; }
.pc-bmi  { --ac: #16a34a; --acb: #e9f9ef; }
.pc-age  { --ac: #7c3aed; --acb: #f3edff; }
.pc-img  { --ac: #0284c7; --acb: #e6f4fe; }
.pc-word { --ac: #0d9488; --acb: #e4f7f4; }
.pc-news { --ac: #d97706; --acb: #fff3e3; }
.pc-ai   { --ac: #6d28d9; --acb: #efecff; }
.pc-blog { --ac: #db2777; --acb: #ffeaf2; }

@media (max-width: 900px) {
  .ptool-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
}
@media (max-width: 480px) {
  .ptool-grid { gap: .7rem; }
  .ptool-card { border-radius: 16px; }
  .ptool-text { padding: .6rem .55rem .05rem; }
  .ptool-text b { font-size: .88rem; }
  .ptool-text small { font-size: .7rem; }
  .ptool-go { margin: .5rem .55rem .6rem; padding: .4rem .65rem; font-size: .76rem; }
}

/* ============ ফিচার স্ট্রিপ ============ */
.strip-section { padding: 2rem 0 .4rem; }
.feature-strip {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm); padding: .85rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.strip-item { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: #1f3a6e; font-size: .95rem; }
.strip-item .si { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.strip-item .si svg { width: 17px; height: 17px; }
.si-blue { background: #e1ecff; color: #1e56d6; }
.si-green { background: #ddf5e4; color: #16a34a; }
.si-orange { background: #ffeeda; color: #d97706; }
.si-red { background: #ffe7ee; color: #e11d48; }
.strip-sep { width: 1px; height: 24px; background: #dbe5f5; flex-shrink: 0; }

/* ছোট পেজ-হিরো (সাব-পেজের জন্য) */
.page-hero { background: var(--grad-dark); color: #fff; padding: 2.6rem 0 2.8rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; top: -160px; right: -100px; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .5rem; }
.breadcrumb a { color: #fff; opacity: .9; }
.breadcrumb a:hover { opacity: 1; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.35; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 680px; margin-top: .4rem; }

/* ============ সেকশন ============ */
.section { padding: 3.6rem 0; }
.section-alt { background: #fff; border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.section-kicker { display: inline-block; color: var(--primary-600); font-weight: 700; font-size: .9rem; background: var(--blue-soft); padding: .2rem 1rem; border-radius: 999px; margin-bottom: .6rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.05rem); color: var(--text); line-height: 1.35; }
.section-sub { color: var(--muted); margin-top: .5rem; }

/* ============ টুল কার্ড ============ */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.3rem; }
.tool-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .28s, box-shadow .28s; position: relative; overflow: hidden; text-decoration: none !important; color: var(--text);
}
.tool-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-icon {
  width: 56px; height: 56px; border-radius: 15px; background: var(--blue-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.tool-icon svg { width: 28px; height: 28px; }
.tool-card h3 { font-size: 1.15rem; margin-bottom: .3rem; color: var(--primary-700); font-family: var(--font-display); }
.tool-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.tool-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 700; color: var(--primary-600); font-size: .95rem; }
.tool-go .arrow { transition: transform .25s; }
.tool-card:hover .tool-go .arrow { transform: translateX(5px); }
.tool-tag { position: absolute; top: 1rem; right: 1rem; font-size: .7rem; font-weight: 700; background: #dcfce7; color: #15803d; padding: .12rem .6rem; border-radius: 999px; }
.tool-tag.new { background: #fef3c7; color: #b45309; }

/* ============ ক্যাটাগরি (প্রিমিয়াম) ============ */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat-card {
  --c1: var(--primary); --c2: var(--primary-600); --tint: var(--blue-soft); --glow: rgba(30,86,214,.22);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: .28rem;
  padding: 1.25rem 1.15rem 1.05rem; border-radius: 20px;
  background: linear-gradient(165deg, #fff 10%, var(--tint) 100%);
  border: 1px solid #e6eefb; box-shadow: 0 8px 22px rgba(15,31,61,.07);
  text-decoration: none !important; color: var(--text);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cat-card::before {
  content: ""; position: absolute; top: -30%; left: -35%; width: 60%; height: 160%; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%);
  transform: translateX(-160%) rotate(10deg); transition: transform .8s ease;
}
.cat-card:hover::before { transform: translateX(340%) rotate(10deg); }
.cat-card:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 22px 42px var(--glow), 0 4px 12px rgba(15,31,61,.06);
}
.cat-card > * { position: relative; z-index: 2; }
.cat-icon {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: .55rem;
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 20px var(--glow);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.cat-icon svg { width: 25px; height: 25px; }
.cat-card:hover .cat-icon { transform: rotate(-7deg) scale(1.1); }
.cat-name { font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; color: var(--text); margin: 0; line-height: 1.35; }
.cat-desc { color: var(--muted); font-size: .84rem; line-height: 1.5; margin: 0 0 .5rem; }
.cat-go { margin-top: auto; display: inline-flex; align-items: center; gap: .32rem; font-size: .8rem; font-weight: 700; color: var(--c2); }
.cat-go svg { width: 14px; height: 14px; transition: transform .3s; }
.cat-card:hover .cat-go svg { transform: translateX(4px); }

/* প্রতি ক্যাটাগরির নিজস্ব রং */
.ci-image { --c1:#8b5cf6; --c2:#6d28d9; --tint:#f5f1ff; --glow:rgba(139,92,246,.26); }
.ci-calc  { --c1:#3b82f6; --c2:#1d4ed8; --tint:#eef4ff; --glow:rgba(59,130,246,.26); }
.ci-text  { --c1:#14b8a6; --c2:#0f766e; --tint:#eafcfa; --glow:rgba(20,184,166,.26); }
.ci-pdf   { --c1:#f43f5e; --c2:#be123c; --tint:#fff1f3; --glow:rgba(244,63,94,.24); }
.ci-news  { --c1:#f59e0b; --c2:#d97706; --tint:#fff8ea; --glow:rgba(245,158,11,.26); }
.ci-ai    { --c1:#6366f1; --c2:#4338ca; --tint:#f1f1ff; --glow:rgba(99,102,241,.26); }
.ci-blog  { --c1:#ec4899; --c2:#be185d; --tint:#fff1f8; --glow:rgba(236,72,153,.24); }
.ci-about { --c1:#10b981; --c2:#047857; --tint:#ebfdf5; --glow:rgba(16,185,129,.26); }

/* সেকশন টাইটেলে গ্রেডিয়েন্ট টেক্সট */
#categories .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ ফিচার ============ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.3rem; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.feature-card .tool-icon { margin-bottom: .8rem; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.feature-card p { color: var(--muted); font-size: .93rem; }

/* ============ খবর ============ */
.news-tabs { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.6rem; }
.tab-btn {
  border: 2px solid var(--border); background: #fff; color: var(--text);
  font-family: var(--font); font-weight: 600; font-size: .95rem; padding: .45rem 1.2rem;
  border-radius: 999px; cursor: pointer; transition: all .22s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary-600); }
.tab-btn.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(30,86,214,.3); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 1.2rem; }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-soft), var(--sky-soft)); display: grid; place-items: center; color: var(--primary); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb svg { width: 42px; height: 42px; opacity: .6; }
.news-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.news-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.source-chip { background: var(--primary-700); color: #fff; font-weight: 600; padding: .06rem .65rem; border-radius: 999px; font-size: .74rem; }
.news-card h3 { font-size: 1.02rem; line-height: 1.55; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary-600); }
.news-card p { font-size: .88rem; color: var(--muted); flex: 1; }
.news-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .3rem; }

.news-status { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--muted); font-size: .88rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }

.skeleton { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.skeleton .sk-line { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eef2fb 25%, #e0e8f6 50%, #eef2fb 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; margin-bottom: .7rem; }
.skeleton .sk-line.w60 { width: 60%; } .skeleton .sk-line.w90 { width: 90%; } .skeleton .sk-line.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 2.5rem 1rem; background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty-state .tool-icon { margin-inline: auto; }

/* ============ ব্লগ ============ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; text-decoration: none !important; color: var(--text); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cover { height: 150px; background: var(--grad); display: grid; place-items: center; color: rgba(255,255,255,.9); position: relative; }
.post-cover svg { width: 46px; height: 46px; opacity: .85; }
.post-cover .cover-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.2) 0 12%, transparent 13%), radial-gradient(circle at 15% 80%, rgba(255,255,255,.15) 0 18%, transparent 19%); }
.post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.post-cat { background: var(--blue-soft); color: var(--primary-600); font-weight: 700; padding: .1rem .7rem; border-radius: 999px; font-size: .76rem; }
.post-body h3 { font-size: 1.12rem; line-height: 1.5; color: var(--primary-800); }
.post-body p { font-size: .9rem; color: var(--muted); flex: 1; }
.post-read { font-weight: 700; color: var(--primary-600); font-size: .9rem; }

.chip-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.8rem; }
.chip { border: 2px solid var(--border); background: #fff; border-radius: 999px; padding: .3rem 1.05rem; font-family: var(--font); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--text); transition: all .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary-600); }
.chip.active { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }

/* ============ আর্টিকেল / ব্লগ পোস্ট ============ */
.article-wrap { max-width: 780px; margin-inline: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); margin-top: -2.2rem; position: relative; z-index: 3; }
.article h2 { font-family: var(--font-display); font-size: 1.42rem; color: var(--primary-700); margin: 1.9rem 0 .7rem; padding-left: .7rem; border-left: 4px solid var(--primary); line-height: 1.4; }
.article h3 { font-size: 1.15rem; color: var(--primary-800); margin: 1.3rem 0 .5rem; }
.article p { margin-bottom: .9rem; color: #24345c; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; display: grid; gap: .35rem; color: #24345c; }
.article blockquote { background: var(--blue-soft); border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; margin: 1.2rem 0; color: var(--primary-800); font-weight: 500; }
.article .table-wrap { margin: 1.2rem 0; }
.post-hero-meta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; color: rgba(255,255,255,.88); font-size: .92rem; }

.share-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; border: 2px solid var(--border); background: #fff; border-radius: 999px; padding: .35rem 1rem; font-family: var(--font); font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--text); text-decoration: none !important; transition: all .2s; }
.share-btn:hover { border-color: var(--primary); color: var(--primary-600); background: var(--blue-soft); }

.cta-box { background: var(--grad-dark); color: #fff; border-radius: var(--radius); padding: 1.8rem; margin: 2rem 0 0; text-align: center; }
.cta-box h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .4rem; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1rem; font-size: .96rem; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.post-nav a { flex: 1; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.1rem; text-decoration: none !important; color: var(--text); transition: all .2s; }
.post-nav a:hover { border-color: var(--primary); background: var(--blue-soft); }
.post-nav small { color: var(--muted); display: block; font-size: .78rem; }
.post-nav b { color: var(--primary-700); font-size: .95rem; }
.post-nav a.next { text-align: right; }

/* ============ টুল ওয়ার্কস্পেস ============ */
.tool-panel { max-width: 860px; margin: -2.2rem auto 0; position: relative; z-index: 3; }
.tool-panel.wide { max-width: 980px; }
.panel-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 3.5vw, 2.3rem); }

.field { margin-bottom: 1.15rem; }
.field > label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .72rem 1rem; border: 2px solid var(--border); border-radius: 12px;
  font-family: var(--font); font-size: 1rem; color: var(--text); background: #fff; transition: all .2s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30,86,214,.1); }
textarea.input { resize: vertical; min-height: 200px; line-height: 1.8; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

input[type="range"] { width: 100%; accent-color: var(--primary-600); height: 6px; cursor: pointer; }
.range-val { font-weight: 700; color: var(--primary-600); min-width: 3.2rem; display: inline-block; text-align: center; background: var(--blue-soft); border-radius: 8px; }

.unit-toggle { display: inline-flex; background: var(--bg); border: 2px solid var(--border); border-radius: 999px; padding: .25rem; gap: .25rem; margin-bottom: 1.2rem; }
.unit-toggle button { border: none; background: transparent; font-family: var(--font); font-weight: 600; padding: .4rem 1.4rem; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: .95rem; transition: all .2s; }
.unit-toggle button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(30,86,214,.3); }

/* ফলাফল */
.result-box { background: var(--blue-soft); border: 2px solid #c9dbff; border-radius: var(--radius); padding: 1.5rem; margin-top: 1.4rem; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result-box.error { background: #fef2f2; border-color: #fecaca; }
.result-box.error .result-title { color: var(--danger); }
.result-box.ok { background: #f0fdf4; border-color: #bbf7d0; }
.result-box.ok .result-title { color: #15803d; }
.result-box.warn { background: #fffbeb; border-color: #fde68a; }
.result-box.warn .result-title { color: #b45309; }
.result-title { font-weight: 700; color: var(--primary-700); margin-bottom: .8rem; font-size: 1.05rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .9rem .6rem; text-align: center; }
.stat-box .val { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-600); font-weight: 700; line-height: 1.2; word-break: break-word; }
.stat-box .lbl { font-size: .82rem; color: var(--muted); }
.main-result { text-align: center; padding: .6rem 0 1rem; }
.main-result .big { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 700; color: var(--primary-600); line-height: 1.15; }
.main-result .cat-label { display: inline-block; margin-top: .4rem; padding: .3rem 1.4rem; border-radius: 999px; font-weight: 700; color: #fff; font-size: 1.05rem; }

.bmi-scale { position: relative; height: 14px; border-radius: 999px; margin: 1.6rem 0 .4rem; background: linear-gradient(90deg, #60a5fa 0 25%, #4ade80 25% 50%, #fbbf24 50% 75%, #f87171 75% 100%); }
.bmi-marker { position: absolute; top: -7px; width: 28px; height: 28px; background: #fff; border: 4px solid var(--primary-700); border-radius: 50%; transform: translateX(-50%); transition: left .6s cubic-bezier(.2,.8,.2,1); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.scale-labels { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }

.progress { height: 12px; background: #e6edfb; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .5s; }

/* কীওয়ার্ড চিপ */
.kw-chip { display: inline-flex; align-items: baseline; gap: .4rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .25rem .9rem; font-size: .88rem; margin: .25rem .15rem; }
.kw-chip b { color: var(--primary-600); }

/* ফাইল ড্রপজোন */
.drop-zone {
  border: 2.5px dashed #b9cdf3; border-radius: var(--radius); background: var(--bg);
  padding: 2.4rem 1.2rem; text-align: center; cursor: pointer; transition: all .25s;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: var(--blue-soft); }
.drop-zone .tool-icon { margin: 0 auto .8rem; background: #fff; }
.drop-zone h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.drop-zone p { color: var(--muted); font-size: .88rem; }
.drop-zone input[type="file"] { display: none; }

.file-list { display: grid; gap: .8rem; margin-top: 1.2rem; }
.file-item { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; flex-wrap: wrap; }
.file-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--blue-soft); display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb svg { width: 26px; height: 26px; }
.file-info { flex: 1; min-width: 180px; }
.file-info b { display: block; font-size: .95rem; word-break: break-all; }
.file-info small { color: var(--muted); }
.file-size { font-weight: 700; color: var(--primary-600); font-size: .95rem; white-space: nowrap; }
.savings { display: inline-block; font-size: .78rem; font-weight: 700; padding: .05rem .6rem; border-radius: 999px; }
.savings.down { background: #dcfce7; color: #15803d; }
.savings.up { background: #fee2e2; color: #b91c1c; }

/* ট্যাব (PDF টুলস) */
.op-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.op-tab { border: 2px solid var(--border); background: #fff; font-family: var(--font); font-weight: 600; font-size: .93rem; padding: .5rem 1.1rem; border-radius: 12px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; gap: .45rem; transition: all .2s; }
.op-tab svg { width: 18px; height: 18px; }
.op-tab:hover { border-color: var(--primary); color: var(--primary-600); }
.op-tab.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(30,86,214,.3); }
.op-pane { animation: fadeUp .3s ease; }

.status-bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.status-bar.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.status-bar.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.spinner { width: 18px; height: 18px; border: 3px solid #c7d7f7; border-top-color: var(--primary-600); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* FAQ */
.faq { display: grid; gap: .7rem; max-width: 760px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.2rem; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--primary-800); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--primary-600); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: .6rem; font-size: .95rem; }

/* টেবিল */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
th, td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--blue-soft); color: var(--primary-800); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8faff; }

/* AI টুল কার্ড */
.ai-count { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.ai-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .55rem; transition: transform .25s, box-shadow .25s; }
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ai-card-top { display: flex; align-items: center; gap: .8rem; }
.ai-logo { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); font-size: 1.15rem; flex-shrink: 0; }
.ai-card h3 { font-size: 1.1rem; color: var(--primary-800); }
.ai-card p { font-size: .9rem; color: var(--muted); flex: 1; }
.ai-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { font-size: .74rem; font-weight: 700; padding: .1rem .65rem; border-radius: 999px; background: var(--blue-soft); color: var(--primary-600); }
.badge.free { background: #dcfce7; color: #15803d; }
.badge.paid { background: #fef3c7; color: #b45309; }
.badge.freemium { background: #ede9fe; color: #6d28d9; }
.ai-card .tool-go { margin-top: .2rem; }

/* ============ যোগাযোগ ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: grid; gap: 1rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; }
.info-row .tool-icon { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.info-row .tool-icon svg { width: 20px; height: 20px; }
.info-row b { display: block; font-size: .98rem; }
.info-row p, .info-row a { font-size: .9rem; color: var(--muted); word-break: break-word; }

/* ============ ফুটার ============ */
.site-footer { background: #0b1e4b; color: #c7d5f2; margin-top: 3.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1.35fr; gap: 2rem; padding: 3.2rem 0 2.2rem; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; font-family: var(--font-display); }
.footer-col p { font-size: .9rem; color: #9fb2dc; }
.footer-col ul { list-style: none; display: grid; gap: .45rem; }
.footer-col a { color: #c7d5f2; font-size: .92rem; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.footer-brand .brand-mark { width: 42px; height: 42px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.footer-tagline { color: #ffd166; font-weight: 600; font-size: .92rem !important; margin-bottom: .5rem !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; font-size: .85rem; color: #9fb2dc; }

.social-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.10);
  display: grid; place-items: center; color: #fff; transition: all .25s;
}
.social-row a:hover { background: var(--grad); transform: translateY(-3px); text-decoration: none; }
.social-row svg { width: 18px; height: 18px; }

.nl-form { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: .28rem .28rem .28rem .3rem; margin-top: .8rem; }
.nl-form input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: .5rem .9rem; font-family: var(--font); font-size: .93rem; color: var(--text);
}
.nl-form input:focus { outline: none; }
.nl-form button {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--grad);
  color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  transition: transform .2s;
}
.nl-form button:hover { transform: scale(1.06); }
.nl-form svg { width: 17px; height: 17px; }
.nl-note { font-size: .78rem !important; color: #8ba3d6 !important; margin-top: .55rem; }

/* ============ টোস্ট, টু-টপ ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #0b1e4b; color: #fff; padding: .7rem 1.5rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; z-index: 2000; opacity: 0; transition: all .35s;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--success); }
.toast.err { background: var(--danger); }

.to-top {
  position: fixed; bottom: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--grad); color: #fff; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(30,86,214,.4); opacity: 0; pointer-events: none; transition: all .3s; z-index: 800;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ============ রেসপনসিভ ============ */
@media (max-width: 1024px) {
  .search-box.header-search { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-right { padding-bottom: 2.8rem; }
  .hero-script { right: 4%; bottom: -1rem; }
  .topbar-msg { font-size: .82rem; }
  .main-nav {
    position: fixed; top: var(--header-h); right: -110%; width: min(348px, 90vw); margin: 0;
    height: calc(100vh - var(--header-h)); background: #fff; z-index: 945;
    padding: 1.1rem .95rem 2rem; overflow-y: auto;
    transition: right .34s cubic-bezier(.22,.61,.36,1);
    box-shadow: -18px 0 48px rgba(11,30,75,.22); border-left: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
  }
  .main-nav.open { right: 0; }
  .mobile-account-row { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .32rem; }
  .nav-link { width: 100%; justify-content: space-between; padding: .72rem 1rem; font-size: 1.02rem; border-radius: 14px; }
  .has-dropdown .dropdown, .has-dropdown.open .dropdown, .has-dropdown:hover .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; display: none; padding: .15rem 0 .35rem .45rem;
    grid-template-columns: 1fr; min-width: 0; gap: .1rem; border-radius: 0;
  }
  .dropdown::before { display: none; }
  .has-dropdown.open .dropdown { display: grid; }
  .dropdown a { padding: .55rem .7rem; }
  .mobile-search { display: block !important; margin-bottom: .85rem; }
  .mobile-search .search-input { width: 100%; border: 1.5px solid var(--border); border-radius: 999px; padding: .68rem 1.1rem; font-family: var(--font); font-size: .98rem; background: #edf3fc; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.mobile-search { display: none; }
.mobile-search .search-results { position: absolute; left: 1.2rem; right: 1.2rem; top: calc(100% + 4px); width: auto; }
.mobile-search { position: relative; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .topbar-msg { display: none; }
  .topbar-inner { justify-content: center; }
  .hero { padding: 2.4rem 0 5rem; }
  .hero-search button span { display: none; }
  .hero-search button { padding: .72rem 1.05rem; }
  .trust-points { gap: .8rem 1.1rem; }
  .hero-trio { width: min(440px, 100%); gap: .5rem; }
  .float-chip { width: 44px; height: 44px; border-radius: 13px; }
  .float-chip svg { width: 23px; height: 23px; }
  .chip-pdf { top: -10px; left: 10%; }
  .chip-calc { right: -8px; top: 36%; }
  .chip-img { left: -8px; bottom: 10px; }
  .trio-side img { border-radius: 15px; }
  .trio-main img { border-radius: 22px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .cat-card { padding: 1rem .9rem .9rem; border-radius: 17px; }
  .cat-icon { width: 44px; height: 44px; border-radius: 12px; }
  .cat-icon svg { width: 21px; height: 21px; }
  .cat-name { font-size: .96rem; }
  .cat-desc { font-size: .78rem; margin-bottom: .35rem; }
  .cat-go { font-size: .74rem; }
  .tools-panel-section { margin-top: -2.8rem; }
  .tools-panel { padding: 1.5rem 1rem 1.3rem; }
  .tools-panel-head .line { max-width: 60px; }
  .tools-panel-head h2 { padding: .45rem 1.15rem; }
  .feature-strip { border-radius: 20px; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem 1.2rem; }
  .strip-sep { display: none; }
  .strip-item { width: 100%; }
  .section { padding: 2.6rem 0; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 2.4rem 0 1.8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .post-nav a { min-width: 100%; }
  .to-top { bottom: 16px; right: 16px; }
  .tool-panel { margin-top: -1.6rem; }
}

@media (max-width: 420px) {
  .brand-text small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-script { font-size: 1.05rem; right: 2%; }
  .hero-trio { gap: .45rem; }
  .trio-side img { border-width: 3px; border-radius: 13px; }
  .trio-main img { border-width: 4px; border-radius: 19px; }
  .cat-card { padding: .85rem .75rem .8rem; border-radius: 15px; }
  .cat-icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: .4rem; }
  .cat-icon svg { width: 19px; height: 19px; }
  .cat-name { font-size: .88rem; }
  .cat-desc { font-size: .72rem; }
  .cat-go { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   ডাইনামিক ব্লগ পোস্ট (ডেটাবেজ থেকে) — সংযোজন
   ============================================================ */
.db-heading { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-700); margin-bottom: 1.2rem; }
.post-cover.cover-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db-card .post-cat.db-cat { background: var(--primary-600); }

/* ডাইনামিক পোস্ট ভিউয়ার (blog/post.html) */
.bp-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.6rem; box-shadow: var(--shadow-sm); }
.bp-content img { border-radius: 12px; margin: 1rem 0; max-width: 100%; }
.bp-content code { background: var(--blue-soft); padding: .1rem .45rem; border-radius: 6px; font-size: .92em; direction: ltr; display: inline-block; }
.article-nav { max-width: 780px; margin: 1.6rem auto 0; }

/* ============================================================
   মেম্বারশিপ সিস্টেম — প্রিমিয়াম নীল-সাদা ডিজাইন সংযোজন
   (Auth, Pricing, Account, CV Maker, QR, Invoice, AI, BG Remover)
   ============================================================ */

/* ---------- নেভ: নতুন টুলস ড্রপডাউন (১০ আইটেম) + অ্যাকাউন্ট বাটন ---------- */
.dropdown.dd-tools { min-width: 560px; }
.dropdown a .prem-tag {
  display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .3px;
  background: linear-gradient(115deg, #f59e0b, #f97316); color: #fff;
  padding: .05rem .45rem; border-radius: 999px; margin-inline-start: .35rem;
  vertical-align: middle; text-transform: uppercase;
}
.dropdown a:nth-child(6) svg { background: #fff1f0; color: #e5342b; }
.dropdown a:nth-child(7) svg { background: #f3edff; color: #7c3aed; }
.dropdown a:nth-child(8) svg { background: #e4f7f4; color: #0d9488; }
.dropdown a:nth-child(9) svg { background: #efecff; color: #6d28d9; }
.dropdown a:nth-child(10) svg { background: #ffeaf2; color: #db2777; }

.account-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .48rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: .93rem;
  text-decoration: none !important; white-space: nowrap; cursor: pointer; border: 2px solid var(--primary-600);
  color: var(--primary-600); background: #fff; font-family: var(--font);
  transition: all .22s ease;
}
.account-btn:hover { background: var(--blue-soft); transform: translateY(-1px); }
.account-btn.solid { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(30,86,214,.3); }
.account-btn.solid:hover { box-shadow: 0 10px 24px rgba(30,86,214,.4); }
.account-btn .avatar-dot {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--primary-600);
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; flex-shrink: 0;
}
.account-btn.solid .avatar-dot { background: rgba(255,255,255,.25); color: #fff; }
.mobile-account-row { display: none; gap: .6rem; padding: .6rem .4rem .2rem; }
.mobile-account-row .account-btn { flex: 1; justify-content: center; }

/* ---------- Auth পেজ (login/register) ---------- */
.auth-wrap { max-width: 460px; margin: -2.2rem auto 0; position: relative; z-index: 3; padding-bottom: 3rem; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.4rem); }
.auth-card h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-700); margin-bottom: .3rem; }
.auth-card .auth-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: .95rem; color: var(--muted); }
.auth-switch a { font-weight: 700; }
.auth-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; margin-bottom: 1rem; }
.auth-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; margin-bottom: 1rem; }
.pass-wrap { position: relative; }
.pass-wrap .input { width: 100%; padding-inline-end: 2.8rem; }
.pass-eye { position: absolute; inset-inline-end: .55rem; top: 50%; transform: translateY(-50%); border: none; background: none; cursor: pointer; color: var(--muted); padding: .3rem; border-radius: 8px; }
.pass-eye:hover { color: var(--primary-600); background: var(--blue-soft); }
.auth-note { background: var(--blue-soft); border-radius: 12px; padding: .75rem 1rem; font-size: .86rem; color: var(--primary-800); margin-top: 1.1rem; }

/* ---------- Usage বার (টুল পেজে) ---------- */
.usage-bar { display: flex; align-items: center; gap: .65rem; background: var(--blue-soft); border: 1px solid #c9dbff; border-radius: 999px; padding: .35rem .95rem; font-size: .85rem; font-weight: 600; color: var(--primary-800); width: fit-content; max-width: 100%; }
.usage-bar .ub-track { width: 110px; height: 7px; background: rgba(30,86,214,.15); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.usage-bar .ub-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s ease; }
.usage-bar .ub-fill.full { background: linear-gradient(90deg,#dc2626,#f97316); }
.usage-bar a { font-weight: 700; }

/* ---------- Premium ব্যাজ ও লক ---------- */
.pre-badge { display: inline-flex; align-items: center; gap: .3rem; background: linear-gradient(115deg,#f59e0b,#f97316); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .4px; padding: .18rem .7rem; border-radius: 999px; text-transform: uppercase; }
.tpl-lock { position: absolute; top: .55rem; inset-inline-end: .55rem; z-index: 2; }
.tpl-locked-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.55); backdrop-filter: blur(1.5px); display: grid; place-items: center; border-radius: inherit; z-index: 1; cursor: not-allowed; }
.tpl-locked-overlay .lock-msg { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: .5rem .95rem; border-radius: 12px; font-size: .85rem; font-weight: 700; color: var(--primary-700); }

/* ---------- Pricing পেজ ---------- */
.plans-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.4rem; align-items: stretch; }
.plan-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: clamp(1.5rem, 3.5vw, 2.2rem); box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border: 2px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--grad) border-box; box-shadow: 0 18px 44px rgba(30,86,214,.18); }
.plan-card .plan-kicker { font-weight: 700; font-size: .85rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.plan-card h3 { font-family: var(--font-display); font-size: 1.55rem; color: var(--text); margin-top: .2rem; }
.plan-price { display: flex; align-items: baseline; gap: .4rem; margin: .8rem 0 .2rem; }
.plan-price .amount { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 800; color: var(--primary-600); line-height: 1; }
.plan-price .per { color: var(--muted); font-size: .95rem; }
.plan-desc { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.plan-feats { list-style: none; margin: 1.1rem 0 1.5rem; display: grid; gap: .55rem; }
.plan-feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.plan-feats .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--primary-600); display: grid; place-items: center; flex-shrink: 0; margin-top: .14rem; }
.plan-feats .tick svg { width: 11px; height: 11px; }
.plan-feats li.dim { color: var(--muted); }
.plan-feats li.dim .tick { background: #f1f5f9; color: #94a3b8; }
.plan-card .btn { margin-top: auto; }
.plan-ribbon { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; padding: .28rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 18px rgba(30,86,214,.35); white-space: nowrap; }
.limits-table-note { margin-top: 2rem; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.compare-wrap table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare-wrap th, .compare-wrap td { padding: .8rem 1rem; text-align: start; border-bottom: 1px solid var(--border); font-size: .94rem; }
.compare-wrap th { background: var(--blue-soft); color: var(--primary-800); font-weight: 700; }
.compare-wrap tr:last-child td { border-bottom: none; }
.pay-info-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 1.4rem 1.6rem; margin-top: 1.6rem; }
.pay-methods { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
.pay-chip { display: inline-flex; flex-direction: column; background: var(--blue-soft); border: 1px solid #c9dbff; border-radius: 12px; padding: .55rem 1rem; font-size: .88rem; }
.pay-chip b { color: var(--primary-700); }

/* ---------- Buy মোডাল ---------- */
.btt-modal-back { position: fixed; inset: 0; background: rgba(11,30,75,.55); backdrop-filter: blur(4px); z-index: 1200; display: grid; place-items: center; padding: 1rem; }
.btt-modal { background: #fff; border-radius: 20px; max-width: 480px; width: 100%; padding: 1.7rem; box-shadow: 0 30px 70px rgba(11,30,75,.35); max-height: 90vh; overflow-y: auto; position: relative; }
.btt-modal h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary-700); margin-bottom: .4rem; }
.btt-modal .bm-close { position: absolute; top: .8rem; inset-inline-end: .9rem; border: none; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--muted); }
.btt-modal .bm-close:hover { background: var(--blue-soft); color: var(--primary-600); }
.pay-choose { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .9rem 0; }
.pay-choose label { border: 2px solid var(--border); border-radius: 12px; padding: .7rem .9rem; cursor: pointer; font-size: .9rem; display: flex; flex-direction: column; gap: .15rem; transition: all .2s; }
.pay-choose label.active { border-color: var(--primary); background: var(--blue-soft); }
.pay-choose input { accent-color: var(--primary); }

/* ---------- Account পেজ ---------- */
.acct-head-card { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.acct-avatar { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; box-shadow: 0 10px 24px rgba(30,86,214,.35); flex-shrink: 0; }
.acct-meta h2 { font-family: var(--font-display); font-size: 1.4rem; }
.acct-meta p { color: var(--muted); font-size: .92rem; }
.acct-badges { display: flex; gap: .5rem; align-items: center; margin-top: .35rem; flex-wrap: wrap; }
.acct-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.3rem; margin-top: 1.4rem; }
.acct-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem; }
.acct-card h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--primary-700); margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.acct-usage-list { display: grid; gap: .7rem; }
.acct-usage-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: .6rem .9rem; font-size: .92rem; }
.acct-usage-item .u-limit { color: var(--muted); font-weight: 600; white-space: nowrap; }
.acct-list { display: grid; gap: .55rem; max-height: 320px; overflow-y: auto; }
.acct-list-item { display: flex; justify-content: space-between; gap: .7rem; align-items: center; padding: .55rem .85rem; background: var(--bg); border: 1px solid var(--border); border-radius: 11px; font-size: .88rem; }
.acct-list-item small { color: var(--muted); }
.acct-empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 1rem .5rem; }
.status-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-pill.p-premium { background: linear-gradient(115deg,#f59e0b,#f97316); color: #fff; }
.status-pill.p-free { background: var(--blue-soft); color: var(--primary-700); }
.status-pill.s-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-pill.s-approved { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-pill.s-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- টুল ওয়ার্কস্পেস (CV / Invoice / QR / AI / BGR কমন) ---------- */
.tool-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
.tool-split .panel-card { height: 100%; }
.workspace-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary-700); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.dyn-list { display: grid; gap: .8rem; }
.dyn-item { background: var(--bg); border: 1px solid var(--border); border-radius: 13px; padding: .85rem .95rem; position: relative; }
.dyn-item .dyn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.dyn-del { border: none; background: #fef2f2; color: #dc2626; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: .9rem; display: grid; place-items: center; }
.dyn-del:hover { background: #fecaca; }
.add-row-btn { width: 100%; border: 2px dashed #b9cdf5; background: var(--blue-soft); color: var(--primary-700); font-family: var(--font); font-weight: 700; padding: .6rem; border-radius: 12px; cursor: pointer; margin-top: .8rem; transition: all .2s; }
.add-row-btn:hover { background: #dbe7ff; }
.photo-pick { display: flex; align-items: center; gap: .9rem; }
.photo-preview { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 2px solid var(--border); background: var(--bg); }
.photo-empty { width: 64px; height: 64px; border-radius: 14px; border: 2px dashed #b9cdf5; display: grid; place-items: center; color: #7d97c9; font-size: 1.4rem; background: var(--bg); }
.color-pick-row { display: flex; align-items: center; gap: .6rem; }
.color-pick-row input[type="color"] { width: 46px; height: 38px; border: 1px solid var(--border); border-radius: 10px; padding: 2px; cursor: pointer; background: #fff; }

/* টেমপ্লেট সিলেক্টর */
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.1rem; }
.tpl-card { position: relative; border: 2px solid var(--border); border-radius: 14px; padding: .8rem .9rem; cursor: pointer; background: #fff; transition: all .2s; text-align: start; font-family: var(--font); }
.tpl-card:hover { border-color: #93b4f5; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tpl-card.active { border-color: var(--primary); background: var(--blue-soft); box-shadow: 0 8px 20px rgba(30,86,214,.15); }
.tpl-card b { display: block; font-size: .95rem; color: var(--text); }
.tpl-card small { color: var(--muted); font-size: .78rem; }
.tpl-thumb { height: 44px; border-radius: 8px; margin-bottom: .55rem; border: 1px solid var(--border); }
.tpl-thumb.t-classic { background: linear-gradient(180deg,#fff 55%, #e2eaf8 55%); }
.tpl-thumb.t-modern { background: linear-gradient(90deg,#1e56d6 32%, #f5f8ff 32%); }
.tpl-thumb.t-elegant { background: linear-gradient(180deg,#17398f 20%, #fff 20%); }
.tpl-thumb.t-pro { background: linear-gradient(135deg,#0f1f3d 30%, #e0f2fe 30%); }

/* লাইভ প্রিভিউ (CV/ইনভয়েস) */
.preview-shell { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; }
.preview-a4 { background: #fff; box-shadow: 0 8px 30px rgba(15,31,61,.12); border-radius: 6px; width: 100%; aspect-ratio: 210/297; overflow: hidden; position: relative; }
.preview-a4 .pv-scroll { position: absolute; inset: 0; overflow: hidden; }
/* CV টেমপ্লেট — কমন */
.cv-doc { font-size: 12.5px; line-height: 1.55; height: 100%; color: #1a2742; padding: 26px 30px; display: flex; flex-direction: column; }
.cv-doc .cv-name { font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1.2; }
.cv-doc .cv-role { font-size: 13px; font-weight: 600; opacity: .85; }
.cv-doc .cv-contact { font-size: 10.8px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cv-sec-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; margin: 13px 0 6px; padding-bottom: 3px; border-bottom: 2px solid currentColor; }
.cv-sec-title:first-child { margin-top: 0; }
.cv-item b { display: block; font-size: 12.5px; }
.cv-item .cv-sub { font-size: 11px; opacity: .75; }
.cv-item p { margin: 2px 0 7px; font-size: 11.8px; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-skills span { background: rgba(30,86,214,.09); border-radius: 999px; padding: 2px 10px; font-size: 10.8px; font-weight: 600; }
.cv-doc.t-classic { border-top: 8px solid var(--cv-ac, #1e56d6); }
.cv-doc.t-classic .cv-head-row { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.cv-doc.t-classic .cv-photo { width: 74px; height: 90px; object-fit: cover; border-radius: 8px; border: 2px solid var(--cv-ac, #1e56d6); }
.cv-doc.t-classic .cv-sec-title { color: var(--cv-ac, #1e56d6); border-color: var(--cv-ac, #1e56d6); }
.cv-doc.t-modern { flex-direction: row; padding: 0; }
.cv-doc.t-modern .cv-side { width: 34%; background: var(--cv-ac, #1e56d6); color: #fff; padding: 24px 18px; }
.cv-doc.t-modern .cv-side .cv-name { font-size: 19px; color: #fff; }
.cv-doc.t-modern .cv-side .cv-role { color: rgba(255,255,255,.85); }
.cv-doc.t-modern .cv-photo { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.55); margin: 0 auto 12px; display: block; }
.cv-doc.t-modern .cv-side .cv-sec-title { color: #fff; border-color: rgba(255,255,255,.4); margin-top: 14px; }
.cv-doc.t-modern .cv-skills span { background: rgba(255,255,255,.18); color: #fff; }
.cv-doc.t-modern .cv-main { flex: 1; padding: 24px 20px; }
.cv-doc.t-modern .cv-main .cv-sec-title { color: var(--cv-ac, #1e56d6); border-color: var(--cv-ac, #1e56d6); }
.cv-doc.t-elegant { text-align: center; }
.cv-doc.t-elegant .cv-photo { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid var(--cv-ac, #17398f); margin: 0 auto 8px; }
.cv-doc.t-elegant .cv-sec-title { color: var(--cv-ac, #17398f); border-color: var(--cv-ac, #17398f); }
.cv-doc.t-elegant .cv-skills { justify-content: center; }
.cv-doc.t-pro { background: linear-gradient(135deg, rgba(15,31,61,.045), transparent 40%); }
.cv-doc.t-pro .cv-head-row { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; border-bottom: 3px solid var(--cv-ac, #0f1f3d); padding-bottom: 10px; }
.cv-doc.t-pro .cv-photo { width: 68px; height: 82px; object-fit: cover; border-radius: 6px; }
.cv-doc.t-pro .cv-sec-title { color: var(--cv-ac, #0f1f3d); border-color: var(--cv-ac, #0f1f3d); display: flex; align-items: center; gap: 7px; }
.cv-doc.t-pro .cv-sec-title::before { content: ''; width: 14px; height: 3px; background: var(--cv-ac, #0f1f3d); border-radius: 2px; }

/* ইনভয়েস প্রিভিউ */
.inv-doc { font-size: 12px; color: #1a2742; height: 100%; padding: 26px 30px; display: flex; flex-direction: column; }
.inv-doc .inv-top { display: flex; justify-content: space-between; gap: 16px; }
.inv-doc .inv-biz b { font-family: var(--font-display); font-size: 17px; display: block; }
.inv-doc .inv-biz p, .inv-doc .inv-cust p { font-size: 11px; color: #55688f; line-height: 1.5; margin: 0; }
.inv-doc .inv-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--inv-ac, #1e56d6); text-transform: uppercase; letter-spacing: 2px; }
.inv-doc .inv-meta { font-size: 11px; text-align: end; color: #55688f; }
.inv-doc .inv-meta b { color: #1a2742; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 11.4px; }
.inv-table th { background: var(--inv-ac, #1e56d6); color: #fff; text-align: start; padding: 6px 9px; font-weight: 600; }
.inv-table td { padding: 5.5px 9px; border-bottom: 1px solid #e2eaf8; }
.inv-table .num { text-align: end; }
.inv-totals { margin-top: 10px; margin-inline-start: auto; width: 46%; font-size: 11.6px; }
.inv-totals .t-row { display: flex; justify-content: space-between; padding: 3.5px 9px; }
.inv-totals .t-row.grand { background: var(--inv-ac, #1e56d6); color: #fff; font-weight: 800; border-radius: 7px; margin-top: 4px; padding: 6px 9px; }
.inv-doc .inv-notes { margin-top: auto; font-size: 10.6px; color: #55688f; border-top: 2px solid #e2eaf8; padding-top: 8px; }
.inv-doc.t-modern2 { background: #fff; }
.inv-doc.t-modern2 .inv-top { border-bottom: 4px solid var(--inv-ac, #0d9488); padding-bottom: 12px; }
.inv-doc.t-pro2 .inv-title { letter-spacing: 5px; }
.inv-doc.t-pro2 .inv-table th { background: #0f1f3d; }
.inv-doc.t-pro2 .inv-totals .t-row.grand { background: #0f1f3d; }
.inv-logo { max-height: 44px; max-width: 130px; object-fit: contain; }

/* QR টুল */
.qr-stage { display: grid; place-items: center; background: repeating-conic-gradient(#eef3fc 0% 25%, #fff 0% 50%) 50% / 22px 22px; border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem; min-height: 260px; }
.qr-stage img, .qr-stage canvas { max-width: 100%; border-radius: 8px; box-shadow: 0 10px 26px rgba(15,31,61,.14); background: #fff; }
.qr-empty { text-align: center; color: var(--muted); font-size: .92rem; }
.qr-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.type-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.type-tabs button { border: 2px solid var(--border); background: #fff; font-family: var(--font); font-weight: 700; padding: .42rem 1.05rem; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: .9rem; transition: all .2s; }
.type-tabs button.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(30,86,214,.28); }

/* AI টুল */
.ai-output { background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 1.1rem 1.25rem; min-height: 150px; max-height: 460px; overflow-y: auto; font-size: .97rem; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.ai-output.empty { color: var(--muted); display: grid; place-items: center; text-align: center; }
.ai-loading { display: inline-flex; align-items: center; gap: .55rem; color: var(--primary-600); font-weight: 700; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: aiBlink 1s infinite; }
.ai-dot:nth-child(2) { animation-delay: .18s; } .ai-dot:nth-child(3) { animation-delay: .36s; }
@keyframes aiBlink { 0%,80%,100% { opacity: .25; transform: scale(.85); } 40% { opacity: 1; transform: scale(1.1); } }
.ai-card-heads { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .7rem; flex-wrap: wrap; }

/* BG Remover */
.bgr-drop { border: 3px dashed #b9cdf5; border-radius: 18px; background: var(--blue-soft); padding: 2.2rem 1.4rem; text-align: center; cursor: pointer; transition: all .2s; }
.bgr-drop:hover, .bgr-drop.drag { border-color: var(--primary); background: #dbe7ff; }
.bgr-drop .bd-ic { font-size: 2.2rem; }
.bgr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.bgr-pane { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.bgr-pane .bp-label { font-size: .8rem; font-weight: 700; color: var(--muted); padding: .45rem .8rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.bgr-pane .bp-img { min-height: 220px; display: grid; place-items: center; background: repeating-conic-gradient(#eef3fc 0% 25%, #fff 0% 50%) 50% / 20px 20px; padding: .6rem; }
.bgr-pane img { max-width: 100%; max-height: 320px; object-fit: contain; }
.bgr-batch-list { display: grid; gap: .55rem; max-height: 260px; overflow-y: auto; }

/* রেসপনসিভ (মেম্বারশিপ সংযোজন) */
@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: 1fr; }
  .tool-split { grid-template-columns: 1fr; }
  .acct-grid { grid-template-columns: 1fr; }
  .dropdown.dd-tools { min-width: 480px; }
}
@media (max-width: 640px) {
  .tpl-grid { grid-template-columns: 1fr 1fr; }
  .bgr-compare { grid-template-columns: 1fr; }
  .pay-choose { grid-template-columns: 1fr; }
  .preview-a4 { aspect-ratio: auto; min-height: 420px; }
  .preview-a4 .pv-scroll { position: relative; min-height: 420px; }
  .cv-doc { font-size: 11.5px; padding: 18px; }
  .inv-doc { padding: 18px; }
  .inv-totals { width: 100%; }
}

/* ============================================================
   নতুন ৫ টুল সেকশন (Homepage) — বাংলা টাইপিং, সিগনেচার, থাম্বনেইল,
   পাসপোর্ট ফটো, আয়কর ক্যালকুলেটর
   ============================================================ */
.new-tools-section { padding: 0 0 1.5rem; }
.new-tools-section .tools-panel-head { margin-bottom: 1.4rem; }
.nt5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
}
.nt5-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: hidden;
}
.nt5-card::after {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .28s ease;
}
.nt5-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(30, 86, 214, .35);
}
.nt5-card:hover::after { opacity: 1; }
.nt5-ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff;
  flex: none;
}
.nt5-ic svg { width: 24px; height: 24px; }
.nt5c-1 { background: linear-gradient(135deg, #1e56d6, #0ea5e9); }
.nt5c-2 { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.nt5c-3 { background: linear-gradient(135deg, #dc2626, #f59e0b); }
.nt5c-4 { background: linear-gradient(135deg, #0d9488, #10b981); }
.nt5c-5 { background: linear-gradient(135deg, #b45309, #d97706); }
.nt5-tx { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.nt5-tx b { font-size: 1.02rem; font-weight: 700; }
.nt5-tx small { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.nt5-go {
  font-size: .86rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.nt5-card:hover .nt5-go { text-decoration: underline; }
@media (max-width: 560px) {
  .nt5-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .nt5-card { padding: 1rem .85rem; }
  .nt5-go { font-size: .8rem; }
}
@media (max-width: 400px) {
  .nt5-grid { grid-template-columns: 1fr; }
}
