:root {
    --bg: #f6f8f5;
    --surface: #ffffff;
    --border: #e1e7df;
    --text: #13221a;
    --muted: #5b6e62;
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-soft: #e8eefc;
    --danger: #b42318;
    --ok: #0f6d3a;
    --radius: 14px;

    /* হোম পেজ (সবসময় ডার্ক, রেফারেন্স ডিজাইনের মতো) */
    --x-nav: #05070d;
    --x-dark: #111827;
    --x-darker: #0b1220;
    --x-card: #1f2937;
    --x-card-border: #374151;
    --x-text: #f9fafb;
    --x-muted: #cbd5e1;
    --x-link: #60a5fa;
    --x-grad: linear-gradient(90deg, #155dfc 0%, #1447e6 50%, #3a2fbf 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1420;
        --surface: #161e2c;
        --border: #273246;
        --text: #eef2f8;
        --muted: #9aa8bd;
        --primary: #60a5fa;
        --primary-dark: #3b82f6;
        --primary-soft: #1b2a45;
        --danger: #f97066;
        --ok: #4ade80;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Noto Sans Bengali", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.is-home { background: var(--x-dark); color: var(--x-text); }

a { color: var(--primary); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- নেভবার ---------- */
.nav { background: var(--x-nav); position: sticky; top: 0; z-index: 10; }
.nav__inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav__brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.nav__brand svg { color: #3b82f6; }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links form { margin: 0; }
.nav__links a, .nav__link-btn { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav__links a:hover, .nav__link-btn:hover { background: rgba(255,255,255,.08); }
.nav__links a.nav__cta { background: #fff; color: #111827; }
.nav__links a.nav__cta:hover { background: #e5e7eb; }

/* ---------- হোম: হিরো ---------- */
.hero-x { background: var(--x-grad); color: #fff; padding: 88px 0 96px; }
.hero-x h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.2; margin: 0 0 20px; font-weight: 700; }
.hero-x__lead { font-size: 20px; margin: 0 0 28px; opacity: .95; }
.hero-x__text { font-size: 17px; margin: 0 0 36px; max-width: 720px; color: #dbe4ff; }
.hero-x__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-x__actions--center { justify-content: center; }

.btn-x { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 30px; border-radius: 12px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn-x:hover { transform: translateY(-1px); }
.btn-x--light { background: #fff; color: #1d4ed8; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-x--outline { color: #fff; border-color: rgba(255,255,255,.85); background: transparent; }
.btn-x--outline:hover { background: rgba(255,255,255,.1); }
.btn-x--primary { background: #2563eb; color: #fff; }
.btn-x--primary:hover { background: #1d4ed8; }

/* ---------- হোম: হোল্ডিং খোঁজা ---------- */
.search-x { background: var(--x-dark); padding: 0 0 8px; }
.search-x__card { margin-top: -48px; background: var(--x-card); border: 1px solid var(--x-card-border); border-radius: 16px; padding: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.35); display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: end; }
.search-x__head h2 { margin: 0 0 6px; font-size: 22px; }
.search-x__head p { margin: 0; color: var(--x-muted); font-size: 15px; }
.search-x__fields { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 12px; align-items: end; }
.field-x label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--x-muted); }
.field-x select, .field-x input { width: 100%; font: inherit; color: var(--x-text); background: var(--x-darker); border: 1px solid var(--x-card-border); border-radius: 10px; padding: 12px 14px; }
.field-x select:focus, .field-x input:focus { outline: 2px solid #3b82f6; outline-offset: 1px; }
.search-x .btn-x { height: 50px; }
.search-x .err { color: #fca5a5; }

/* ---------- হোম: সেকশন ---------- */
.section-x { background: #1e293b; padding: 80px 0; }
.section-x--dark { background: var(--x-dark); }
.section-x__title { text-align: center; font-size: 32px; margin: 0 0 12px; }
.section-x__sub { text-align: center; color: var(--x-muted); font-size: 18px; margin: 0 auto 56px; max-width: 680px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { background: var(--x-card); border: 1px solid var(--x-card-border); border-radius: 16px; padding: 28px 24px; text-align: center; }
.feature h3 { margin: 18px 0 10px; font-size: 20px; }
.feature p { margin: 0; color: var(--x-muted); }
.feature__icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; }
.feature__icon--blue { background: #1e3a8a; color: #60a5fa; }
.feature__icon--green { background: #14532d; color: #4ade80; }
.feature__icon--purple { background: #4c1d95; color: #c4b5fd; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: #111827; border: 1px solid var(--x-card-border); border-radius: 14px; padding: 24px; }
.service h3 { margin: 16px 0 6px; font-size: 18px; }
.service p { margin: 0 0 16px; color: var(--x-muted); font-size: 15px; }
.service__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.service__icon--teal { background: #134e4a; color: #5eead4; }
.service__icon--blue { background: #1e3a8a; color: #93c5fd; }
.service__icon--green { background: #14532d; color: #86efac; }
.service__icon--sky { background: #0c4a6e; color: #7dd3fc; }
.service__icon--purple { background: #581c87; color: #d8b4fe; }
.service__link { color: var(--x-link); font-weight: 600; text-decoration: none; font-size: 15px; }
.service__link:hover { text-decoration: underline; }
.service__soon { display: inline-block; font-size: 13px; color: var(--x-muted); border: 1px solid var(--x-card-border); border-radius: 999px; padding: 2px 12px; }

.cta-x { background: var(--x-grad); color: #fff; text-align: center; padding: 80px 0; }
.cta-x h2 { font-size: 32px; margin: 0 0 14px; }
.cta-x p { font-size: 18px; color: #dbe4ff; margin: 0 auto 32px; max-width: 640px; }

/* ---------- ফুটার ---------- */
.site-footer { background: var(--x-darker); color: #9ca3af; font-size: 13px; }
.site-footer__inner { max-width: 1100px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- ভেতরের পেজ ---------- */
.main { padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }

.hero h1 { font-size: 24px; line-height: 1.3; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0 0 20px; }
.hero--sm h1 { font-size: 21px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card__head { display: flex; flex-direction: column; margin-bottom: 12px; }
.holding-no { font-size: 22px; }

.form label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
.form label:first-child { margin-top: 0; }
.form input, .form select {
    width: 100%; font: inherit; color: inherit; background: var(--bg);
    border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.form input:focus, .form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.otp { font-size: 26px; letter-spacing: 10px; text-align: center; }

.btn {
    display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
    background: #2563eb; color: #fff; border-radius: 999px; padding: 12px 22px; text-decoration: none; text-align: center;
}
.btn:hover { background: #1d4ed8; }
.btn--block { width: 100%; margin-top: 18px; }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn--ghost:hover { background: var(--primary-soft); }
.linkbtn { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: 0; }

.err { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.back { display: inline-block; margin-bottom: 12px; font-size: 14px; text-decoration: none; }

.notice { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.notice--ok { background: var(--primary-soft); color: var(--primary); }

.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

.due { background: var(--primary-soft); border-color: transparent; }
.due__amount { display: block; font-size: 30px; color: var(--danger); }
.due--clear .due__amount { color: var(--ok); }
.due__list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.due__list li { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px dashed var(--border); }

.pay h2 { font-size: 17px; margin: 0 0 8px; }
.steps { padding-left: 20px; margin: 0 0 10px; }
.steps li { margin: 6px 0; }
.copy { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 17px; }
.copy button { font: inherit; font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 999px; padding: 2px 10px; cursor: pointer; }

.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.row > div:first-child { display: flex; flex-direction: column; }
.row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.amount-due { color: var(--danger); }
.amount-clear { color: var(--ok); }

/* ---------- মোবাইল ---------- */
@media (max-width: 900px) {
    .search-x__card { grid-template-columns: 1fr; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .container, .nav__inner { padding: 0 16px; }
    .nav__brand span { font-size: 16px; }
    .nav__links a, .nav__link-btn { padding: 6px 8px; font-size: 14px; }
    .hero-x { padding: 56px 0 80px; }
    .hero-x__lead { font-size: 18px; }
    .hero-x__actions .btn-x { flex: 1 1 100%; }
    .search-x__card { padding: 20px; }
    .search-x__fields { grid-template-columns: 1fr; }
    .section-x { padding: 56px 0; }
    .section-x__title, .cta-x h2 { font-size: 26px; }
    .section-x__sub { font-size: 16px; margin-bottom: 32px; }
    .feature-grid, .service-grid { grid-template-columns: 1fr; gap: 16px; }
    .site-footer__inner { flex-direction: column; }
}

/* ভাষা বদলের বাটন */
.nav__links a.nav__lang { display: inline-flex; align-items: center; gap: 6px; color: #d1d5db; }
.nav__links a.nav__lang:hover { color: #fff; }
@media (max-width: 640px) {
    .nav__links a.nav__lang span { display: none; }
    .nav__links a.nav__login { display: none; }
}
