/* ------------------------------------------------------------------ */
/*  Forex Lead Capture — landing page styles                           */
/* ------------------------------------------------------------------ */
:root {
  --navy:    #0b1437;
  --navy-2:  #121c4e;
  --gold:    #f5b014;
  --gold-dk: #d99900;
  --green:   #25d366;
  --blue:    #229ed9;
  --ink:     #1a1f36;
  --muted:   #5a6076;
  --line:    #e4e7f0;
  --bg:      #f6f8fc;
  --white:   #ffffff;
  --radius:  14px;
  --shadow:  0 18px 50px rgba(11, 20, 55, .14);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer: fill at least the viewport and stack top-to-bottom so the
     footer can be pushed to the bottom on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }

/* ---------- Nav ---------- */
.nav { background: var(--navy); color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 800; font-size: 1.28rem; letter-spacing: .3px; color: #fff;
}
.logo-mark {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #ffd56b, var(--gold) 45%, var(--gold-dk));
  color: var(--navy); display: grid; place-items: center;
  box-shadow: 0 5px 16px rgba(245, 176, 20, .45);
}
.logo-text {
  background: linear-gradient(90deg, #ffffff 40%, #ffdd8a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
}
.logo:hover .logo-mark { filter: brightness(1.06); transform: translateY(-1px); }
.logo-mark { transition: transform .15s, filter .15s; }
.nav-badge {
  background: var(--gold); color: var(--navy); font-weight: 700;
  font-size: .75rem; padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--navy-2), var(--navy));
  color: #fff;
  padding: 56px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700;
  letter-spacing: 1.5px; font-size: .78rem; margin-bottom: 14px;
}
.pitch h1 { font-size: 2.7rem; line-height: 1.1; font-weight: 800; margin-bottom: 16px; }
.pitch .sub { font-size: 1.1rem; color: #c7cde4; margin-bottom: 26px; max-width: 46ch; }

.benefits { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.benefits li { position: relative; padding-left: 34px; color: #e7eaf6; }
.benefits li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800;
  display: grid; place-items: center; font-size: .8rem;
}

.social-proof { display: flex; align-items: center; gap: 12px; color: #c7cde4; }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 26px;
}
.form-card-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card-head p { color: var(--muted); margin-bottom: 20px; font-size: .95rem; }

form label { display: block; font-weight: 600; font-size: .88rem; margin: 14px 0 6px; }
form input {
  width: 100%; padding: 13px 14px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcff;
  transition: border-color .15s, box-shadow .15s;
}
form input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 176, 20, .2);
}

.privacy { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 14px; }

form input.has-error { border-color: #e0474c; background: #fff6f6; }
.field-err { display: block; color: #c0272d; font-size: .82rem; margin-top: 5px; }

/* ---------- Password show/hide (eye) toggle ---------- */
.pw-wrap { position: relative; }
.pw-wrap > input { padding-right: 44px; }
.pw-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 44px;
  display: grid; place-items: center; padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer; color: var(--muted);
}
.pw-toggle:hover { color: var(--navy); }
.pw-toggle svg { width: 19px; height: 19px; display: block; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.on .eye-open { display: none; }
.pw-toggle.on .eye-off { display: block; }
/* Dark bottom "float form": lighten the icon and tighten spacing. */
.float-form .pw-wrap > input { padding-right: 40px; }
.float-form .pw-toggle { width: 40px; color: rgba(255, 255, 255, .72); }
.float-form .pw-toggle:hover { color: #fff; }

.alert {
  background: #fff3f3; border: 1px solid #ffd1d1; color: #b32424;
  padding: 11px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; width: 100%; text-align: center; cursor: pointer;
  border: none; border-radius: 10px; font-size: 1.02rem; font-weight: 700;
  padding: 15px 18px; text-decoration: none; transition: transform .08s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); margin-top: 20px; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-lg { font-size: 1.12rem; padding: 17px 20px; }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-telegram { background: var(--blue); color: #fff; }

/* ---------- Thank you ---------- */
.thanks { padding: 70px 0; }
.thanks-card {
  background: #fff; color: var(--ink); max-width: 560px; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 32px; text-align: center;
}
.check {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--green); color: #fff; font-size: 2rem; font-weight: 800;
  display: grid; place-items: center;
}
.thanks-card h1 { font-size: 2rem; margin-bottom: 10px; }
.thanks-card .sub { color: var(--muted); margin-bottom: 26px; }
.divider { position: relative; text-align: center; margin: 32px 0 18px; color: var(--muted); }
.divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.divider span { position: relative; background: #fff; padding: 0 14px; font-size: .88rem; }
.community-note { color: var(--muted); margin-bottom: 16px; font-size: .95rem; }
.community-btns { display: grid; gap: 12px; }

/* ---------- Admin ---------- */
.admin { padding: 40px 0 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.admin-head h1 { font-size: 1.8rem; }
.admin-head .btn { width: auto; }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line); padding: 13px 18px;
}
.btn-ghost:hover { background: #f0f3fb; }
.count {
  background: var(--navy); color: #fff; font-size: 1rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { background: #f0f3fb; font-weight: 700; color: var(--navy); white-space: nowrap; }
tbody tr:hover { background: #fafbff; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.settings-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 26px; max-width: 460px;
}
.settings-card .btn { margin-top: 20px; }
.alert-ok {
  background: #effaf1; border: 1px solid #b7e4c2; color: #1b7a39;
}
.guide-status {
  background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 20px; font-size: .95rem; line-height: 1.7;
}
.guide-status .muted { color: var(--muted); font-size: .85rem; }
form input[type="file"] {
  width: 100%; padding: 10px; border: 1.5px dashed var(--line);
  border-radius: 10px; background: #fbfcff; font-size: .9rem;
}
.hint { color: var(--muted); font-size: .82rem; margin: 8px 0 0; }

/* ---------- Login ---------- */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 500px at 80% -10%, var(--navy-2), var(--navy));
  padding: 24px 16px;
}
.login-wrap { width: 100%; max-width: 410px; }
.login-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 30px 28px;
}
.login-brand {
  font-weight: 800; font-size: 1.05rem; color: var(--navy);
  text-align: center; letter-spacing: .3px; margin-bottom: 22px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.login-title { font-size: 1.5rem; text-align: center; margin-bottom: 4px; }
.login-sub { color: var(--muted); text-align: center; font-size: .92rem; margin-bottom: 20px; }
.login-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 18px; }

/* ---------- Nav links / customer header ---------- */
.nav-link { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; opacity: .9; }
.nav-link:hover { opacity: 1; text-decoration: underline; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-hi { color: #c7cde4; font-size: .9rem; }
.inline-link { color: var(--gold-dk); font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* ---------- Customer dashboard (the page that replaces the PDF) ---------- */
.dash { padding: 36px 0 60px; background: var(--bg); min-height: 60vh; }
/* Prominent brand lockup at the top of the customer portal */
.portal-brand {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  max-width: 760px; margin: 0 auto 26px; text-align: left;
}
.brand-badge {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd56b, var(--gold) 45%, var(--gold-dk));
  color: var(--navy); box-shadow: 0 12px 30px rgba(245, 176, 20, .5);
}
.brand-words { display: flex; flex-direction: column; }
.brand-name {
  font-size: 2.1rem; font-weight: 800; letter-spacing: .3px;
  color: var(--navy); line-height: 1.08;
}
.brand-tag { font-size: .98rem; color: var(--muted); margin-top: 3px; }
@media (max-width: 560px) {
  .portal-brand { flex-direction: column; text-align: center; gap: 12px; }
  .brand-words { align-items: center; }
  .brand-name { font-size: 1.7rem; }
}
.welcome {
  background: #effaf1; border: 1px solid #b7e4c2; color: #1b7a39;
  padding: 12px 16px; border-radius: 10px; font-weight: 600;
  max-width: 760px; margin: 0 auto 20px; text-align: center;
}
.dash-card {
  background: #fff; max-width: 760px; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 38px;
}
.dash-title {
  font-size: 1.9rem; color: var(--navy); line-height: 1.15;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 3px solid var(--gold);
}
.dash-content { color: var(--ink); font-size: 1.02rem; }
.dash-content .lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 22px; }
.dash-content h2, .dash-content h3 { color: var(--navy); margin: 22px 0 6px; }
.dash-content p { margin-bottom: 14px; }
.dash-content a { color: var(--gold-dk); font-weight: 600; }
.dash-content ul { margin: 0 0 16px 22px; }
.dash-content ul li { margin-bottom: 8px; }
.dash-content .note {
  background: #f6f8fc; border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 12px 16px; color: var(--muted); font-size: .95rem;
}
/* Numbered steps rendered as cards with a gold badge */
.dash-content ol.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin: 8px 0 8px; }
.dash-content ol.steps > li {
  counter-increment: step; position: relative;
  background: #fbfcff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px 16px 62px;
}
.dash-content ol.steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 800;
  display: grid; place-items: center; font-size: .95rem;
}
.dash-content ol.steps > li h3 { margin: 0 0 4px; font-size: 1.1rem; }
.dash-content ol.steps > li p { margin: 0; color: var(--muted); }
/* Numbered sub-steps inside a step (e.g. how to place a trade) */
.dash-content ol.substeps { margin: 11px 0 2px; padding: 0 0 0 20px; display: grid; gap: 8px; }
.dash-content ol.substeps li { color: var(--ink); line-height: 1.5; font-size: .98rem; padding-left: 4px; }
.dash-content ol.substeps li::marker { color: var(--gold-dk); font-weight: 700; }
.dash-content ol.steps > li p.note { margin-top: 12px; }
.dash-cta { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.dash-cta .community-note { text-align: center; }

/* "Need help?" bar — direct WhatsApp + book-a-meeting */
.help-bar {
  margin-top: 28px; padding: 20px 22px; border-radius: 14px;
  background: linear-gradient(135deg, #0b1437, #121c4e); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.help-bar .help-text { margin: 0; font-weight: 600; font-size: 1.02rem; }
.help-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.help-btns .btn { width: auto; }
.btn-book { background: var(--gold); color: var(--navy); }
.btn-book:hover { filter: brightness(1.05); }

/* Rich media inside the customer dashboard (added via the WYSIWYG editor) */
.dash-content img { max-width: 100%; height: auto; border-radius: 10px; }
.dash-content video { max-width: 100%; border-radius: 12px; display: block; margin: 12px 0; }
.dash-content iframe { max-width: 100%; border: 0; border-radius: 12px; }
.dash-content h4 { color: var(--navy); margin: 18px 0 6px; font-size: 1.08rem; }
.dash-content blockquote {
  margin: 14px 0; padding: 10px 18px; border-left: 4px solid var(--gold);
  background: #f6f8fc; border-radius: 8px; color: var(--muted);
}
.dash-content table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.dash-content table td, .dash-content table th { border: 1px solid var(--line); padding: 8px 10px; }

/* The customer dashboard is English-only. The public landing page keeps its own
   bilingual spans, so the Bengali web-font rule stays global. */
[lang="bn"] {
  font-family: "Noto Sans Bengali", "Hind Siliguri", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Safety net: never render any Bengali-tagged markup inside the dashboard
   (older saved dashboard content may still contain a hidden Bengali block). */
.dash-card [lang="bn"] { display: none; }

/* Download card for PDF / Excel / document files (editor + dashboard) */
.dash-content .file-card, .file-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  background: #fbfcff; margin: 10px 0; transition: box-shadow .15s, border-color .15s;
}
.dash-content .file-card:hover, .file-card:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(11,20,55,.08); }
.file-card .file-ico {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 10px;
  background: var(--navy); color: var(--gold); font-weight: 800; font-size: .78rem;
  display: grid; place-items: center;
}
.file-card .file-meta small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- Admin: leads search + bulk select/delete ---------- */
.lead-search { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.lead-search input[type="search"] {
  flex: 1 1 280px; padding: 12px 14px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.lead-search input[type="search"]:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,176,20,.2);
}
.lead-search .btn { width: auto; }
.search-info { color: var(--muted); font-size: .9rem; margin: -6px 0 16px; }
.search-info a { color: var(--gold-dk); font-weight: 600; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sel-all { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.bulk-bar .btn-mini { font-size: .85rem; padding: 9px 14px; }
.btn-mini[disabled] { opacity: .5; cursor: not-allowed; }
.chk-col { width: 36px; }
table th.chk-col, table td.chk-col { text-align: center; }
.row-chk, #select-all { width: 16px; height: 16px; cursor: pointer; }
a.btn-mini { display: inline-block; text-decoration: none; }
.danger-form { margin-top: 18px; }
.danger-form .btn-mini { width: auto; }
.muted-row { color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* ---------- Admin: WYSIWYG editor + media manager ---------- */
.editor-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 24px 28px; margin-bottom: 22px;
}
.editor-card .hint { margin: 0 0 18px; font-size: .9rem; line-height: 1.6; }
.editor-card label { display: block; font-weight: 600; font-size: .88rem; margin: 6px 0 6px; }
.editor-card input[type="text"] {
  width: 100%; padding: 12px 14px; font-size: 1.05rem; font-weight: 600;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcff; margin-bottom: 16px;
}
.editor-card input[type="text"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,176,20,.2); }
.editor-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.editor-actions .btn { width: auto; }
.save-note { color: var(--muted); font-size: .85rem; }
.help-fields { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 8px; margin-top: 22px; }
.help-fields legend { font-weight: 700; color: var(--navy); font-size: .9rem; padding: 0 8px; }
.help-fields label { margin-top: 8px; }
.help-fields .hint { margin-top: 10px; }
label .muted, .help-fields .muted { color: var(--muted); font-weight: 400; font-size: .8rem; }

.media-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 24px 24px;
}
.media-card > summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.media-card .hint { margin: 10px 0 16px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fbfcff; }
.media-item img { width: 100%; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.media-thumb {
  width: 100%; height: 96px; border-radius: 8px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.media-name { font-size: .82rem; font-weight: 600; margin: 8px 0 2px; word-break: break-all; }
.media-sub { font-size: .76rem; color: var(--muted); margin-bottom: 8px; }
.media-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.media-row form { margin: 0; }

/* ---------- Admin: customer table actions + wide settings card ---------- */
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.btn-mini {
  cursor: pointer; border: 1.5px solid var(--line); background: #f0f3fb;
  color: var(--navy); font-weight: 600; font-size: .8rem;
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
}
.btn-mini:hover { background: #e6ebf8; }
.btn-mini-danger { color: #b32424; border-color: #ffd1d1; background: #fff3f3; }
.btn-mini-danger:hover { background: #ffe8e8; }
.settings-wide { max-width: 780px; }
.code-area {
  width: 100%; padding: 14px; font-size: .9rem; line-height: 1.5;
  font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcff;
  resize: vertical;
}
.code-area:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,176,20,.2); }
.settings-card textarea + .btn, .settings-card input + label { margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #aeb5d6; text-align: center; padding: 28px 20px; font-size: .85rem; margin-top: auto; }
.footer .disclaimer { max-width: 680px; margin: 10px auto 0; opacity: .75; font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pitch h1 { font-size: 2.1rem; }
  .hero { padding: 36px 0 48px; }
  .admin-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .admin-actions { flex-wrap: wrap; }
  .admin-actions .btn { flex: 1 1 140px; text-align: center; }
}

/* Phones: turn the leads table into stacked cards (no sideways scroll). */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .pitch h1 { font-size: 1.95rem; }
  .form-card, .thanks-card, .login-card { padding-left: 20px; padding-right: 20px; }

  .table-wrap { box-shadow: none; background: transparent; overflow: visible; }
  table { min-width: 0; }
  table thead { display: none; }
  table, table tbody, table tr, table td { display: block; width: 100%; }
  table tr {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); margin-bottom: 14px; padding: 4px 2px; overflow: hidden;
  }
  table td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    text-align: right; padding: 10px 16px; border-bottom: 1px solid #f0f2f8;
  }
  table tr td:last-child { border-bottom: none; }
  table td::before {
    content: attr(data-label); font-weight: 700; color: var(--navy);
    text-align: left; flex: 0 0 auto;
  }
  table td a { word-break: break-all; }
}

/* ================================================================== */
/*  Animated workflow: Telegram signal -> Auto-Copier -> MT5 -> profit */
/*  Pure CSS; one synchronised 16s loop = four trades (3 win, 1 loss)  */
/* ================================================================== */
.flow {
  background:
    radial-gradient(900px 420px at 15% -10%, #16215c, transparent),
    radial-gradient(900px 420px at 95% 110%, #10184a, transparent),
    var(--navy);
  color: #fff;
  padding: 64px 0 72px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.flow .eyebrow { color: var(--gold); }
.flow-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.flow-head h2 { font-size: 2rem; line-height: 1.15; font-weight: 800; margin: 6px 0 12px; }
.flow-head p { color: #c2c9e6; font-size: 1.04rem; }

/* ---- Pipeline (3 nodes + 2 wires with a travelling packet) ---- */
.flow-pipe {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 0 auto 30px; max-width: 760px;
}
.node {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 150px; padding: 18px 10px; text-align: center;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 16px;
  animation: node-glow 4s ease-in-out infinite;
}
.node-tg  { animation-delay: 0s;   }
.node-cp  { animation-delay: 1.4s; }
.node-mt5 { animation-delay: 2.9s; }
.node-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.06);
}
.node-tg  .node-ico { color: #38b0e3; }
.node-cp  .node-ico { color: var(--gold); }
.node-mt5 .node-ico { color: var(--green); }
.node-label { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.node-label small { display: block; color: #9aa3c9; font-weight: 500; font-size: .74rem; margin-top: 3px; }

.wire {
  position: relative; flex: 1 1 40px; min-width: 30px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.22), rgba(255,255,255,.08));
}
.packet {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px 3px rgba(245,176,20,.75);
  opacity: 0;
}
.packet.p1 { animation: packet-1 4s linear infinite; }
.packet.p2 { animation: packet-2 4s linear infinite; }

@keyframes node-glow {
  0%,  20%, 100% { box-shadow: 0 0 0 0 rgba(245,176,20,0); border-color: rgba(255,255,255,.12); }
  5%            { box-shadow: 0 0 0 7px rgba(245,176,20,.16); border-color: var(--gold); }
  12%           { box-shadow: 0 0 22px 2px rgba(245,176,20,.25); border-color: var(--gold); }
}
@keyframes packet-1 {
  0%   { left: 0; opacity: 0; }
  6%   { opacity: 1; }
  38%  { left: calc(100% - 12px); opacity: 1; }
  44%, 100% { left: calc(100% - 12px); opacity: 0; }
}
@keyframes packet-2 {
  0%, 44% { left: 0; opacity: 0; }
  50%     { left: 0; opacity: 1; }
  82%     { left: calc(100% - 12px); opacity: 1; }
  88%, 100% { left: calc(100% - 12px); opacity: 0; }
}

/* ---- Cards: incoming signal + MT5 ticket (4 trades cycle) ---- */
.flow-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto 22px; }
.panel {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 16px 18px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-weight: 700; font-size: .9rem; color: #dfe4f6; margin-bottom: 12px;
}
.panel-head .dot { width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; display: inline-block; }
.dot-tg  { background: #38b0e3; box-shadow: 0 0 8px #38b0e3; }
.dot-mt5 { background: var(--green); box-shadow: 0 0 8px var(--green); }

.stage { position: relative; height: 162px; }
.sig-card, .ticket, .tg-msg {
  position: absolute; inset: 0; opacity: 0;
  animation: trade-slot 16s ease-in-out infinite both;
}
.c0, .t0 { animation-delay: 0s;  }
.c1, .t1 { animation-delay: 4s;  }
.c2, .t2 { animation-delay: 8s;  }
.c3, .t3 { animation-delay: 12s; }

@keyframes trade-slot {
  0%   { opacity: 0; transform: translateY(12px) scale(.97); }
  3%   { opacity: 1; transform: translateY(0)    scale(1);   }
  22%  { opacity: 1; transform: translateY(0)    scale(1);   }
  25%  { opacity: 0; transform: translateY(-10px) scale(.99); }
  100% { opacity: 0; }
}

/* signal card body */
.sig-dir { font-weight: 800; font-size: .95rem; letter-spacing: .3px; }
.sig-dir.buy  { color: var(--green); }
.sig-dir.sell { color: #ff6b6b; }
.sig-card b { font-size: 1rem; }
.sig-row {
  display: flex; justify-content: space-between; font-size: .9rem; color: #b9c0e0;
  padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.08);
}
.sig-row:first-of-type { margin-top: 10px; }
.sig-row b { color: #fff; font-variant-numeric: tabular-nums; }
.sig-row b.up { color: var(--green); }
.sig-row b.dn { color: #ff6b6b; }

/* ticket body */
.tkt-top { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; }
.tag { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .5px; }
.tag.win  { background: rgba(37,211,102,.16); color: var(--green); }
.tag.loss { background: rgba(224,71,76,.18); color: #ff6b6b; }
.tkt-row { display: flex; justify-content: space-between; font-size: .86rem; color: #b9c0e0; margin: 14px 0; font-variant-numeric: tabular-nums; }
.tkt-pl { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tkt-pl small { display: block; font-size: .72rem; font-weight: 600; color: #9aa3c9; margin-top: 2px; }
.tkt-pl.up { color: var(--green); }
.tkt-pl.dn { color: #ff6b6b; }

/* ---- Track record: ledger + equity curve ---- */
.flow-results { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; max-width: 760px; margin: 0 auto; }
.led-net { font-size: .9rem; }
.up { color: var(--green); }
.dn { color: #ff6b6b; }

.led-row {
  display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; margin-bottom: 8px;
  border-left: 3px solid transparent; background: rgba(255,255,255,.03);
  animation: row-pulse 16s ease-in-out infinite;
}
.led-row:last-child { margin-bottom: 0; }
.led-row.win  { border-left-color: var(--green); }
.led-row.loss { border-left-color: #ff6b6b; }
.r0 { animation-delay: 0s;  }
.r1 { animation-delay: 4s;  }
.r2 { animation-delay: 8s;  }
.r3 { animation-delay: 12s; }
.led-side { font-weight: 800; font-size: .74rem; text-align: center; padding: 3px 0; border-radius: 6px; }
.led-side.buy  { background: rgba(37,211,102,.15); color: var(--green); }
.led-side.sell { background: rgba(224,71,76,.15);  color: #ff6b6b; }
.led-sym { font-size: .88rem; color: #dfe4f6; font-variant-numeric: tabular-nums; }
.led-pl { font-weight: 800; font-variant-numeric: tabular-nums; }

@keyframes row-pulse {
  0%, 25%, 100% { background: rgba(255,255,255,.03); box-shadow: none; }
  4%            { background: rgba(245,176,20,.16); box-shadow: 0 0 0 1px rgba(245,176,20,.35) inset; }
  20%           { background: rgba(245,176,20,.10); }
}

/* equity curve */
.equity { display: flex; flex-direction: column; }
.eq-svg { width: 100%; height: 120px; margin: 4px 0 10px; overflow: visible; animation: eq-fade 16s linear infinite; }
.eq-line {
  stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 360; stroke-dashoffset: 360;
  filter: drop-shadow(0 0 4px rgba(37,211,102,.5));
  animation: eq-draw 16s ease-in-out infinite;
}
.eq-area { opacity: 0; animation: eq-area 16s ease-in-out infinite; }
.eq-dot { fill: var(--green); opacity: 0; filter: drop-shadow(0 0 4px rgba(37,211,102,.8)); }
.eq-dot.is-loss { fill: #ff6b6b; filter: drop-shadow(0 0 4px rgba(255,107,107,.8)); }
.d0 { animation: eq-pop 16s ease-in-out infinite; animation-delay: 0s;   }
.d1 { animation: eq-pop 16s ease-in-out infinite; animation-delay: 4s;   }
.d2 { animation: eq-pop 16s ease-in-out infinite; animation-delay: 8s;   }
.d3 { animation: eq-pop 16s ease-in-out infinite; animation-delay: 12s;  }
.eq-foot { font-size: .82rem; color: #9aa3c9; margin-top: auto; }
.eq-foot .ok  { color: var(--green); font-weight: 700; }
.eq-foot .bad { color: #ff6b6b; font-weight: 700; }

@keyframes eq-draw {
  0%  { stroke-dashoffset: 360; }
  85% { stroke-dashoffset: 0; }
  96% { stroke-dashoffset: 0; }
  100%{ stroke-dashoffset: 360; }
}
@keyframes eq-area { 0% { opacity: 0; } 20%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes eq-fade { 0%, 3% { opacity: 0; } 8%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes eq-pop {
  0%, 3%  { opacity: 0; transform: scale(0); }
  8%      { opacity: 1; transform: scale(1.5); }
  14%, 94%{ opacity: 1; transform: scale(1); }
  100%    { opacity: 0; }
}

.flow-note {
  text-align: center; font-size: 1.4rem; font-weight: 800;
  max-width: 700px; margin: 30px auto 0; line-height: 1.5; letter-spacing: .3px;
  background: linear-gradient(90deg, #f5b014, #25d366, #38b0e3, #a07bff, #ff6b6b, #f5b014);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fn-shimmer 9s linear infinite;
}
@keyframes fn-shimmer { to { background-position: 240% 0; } }
@media (max-width: 640px) { .flow-note { font-size: 1.14rem; } }
@media (prefers-reduced-motion: reduce) { .flow-note { animation: none; } }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .flow-cards, .flow-results { grid-template-columns: 1fr; }
  .flow-head h2 { font-size: 1.6rem; }
  .node { width: auto; flex: 1 1 0; padding: 14px 6px; }
  .node-ico { width: 44px; height: 44px; }
  .node-label { font-size: .82rem; }
  .node-label small { font-size: .66rem; }
  .wire { min-width: 16px; flex-basis: 16px; }
  .stage { height: 172px; }
}

/* Respect users who prefer reduced motion: show first trade + full ledger, no looping */
@media (prefers-reduced-motion: reduce) {
  .node, .packet, .sig-card, .ticket, .tg-msg, .led-row, .tg-live i,
  .eq-svg, .eq-line, .eq-area, .eq-dot { animation: none !important; }
  .packet { display: none; }
  .c0, .t0 { opacity: 1; }
  .eq-line { stroke-dashoffset: 0; }
  .eq-area, .eq-dot { opacity: 1; }
}

/* ---- Telegram channel chat styling for the incoming-signal panel ---- */
.tg-chat { padding: 0; overflow: hidden; background: #0e1621; border-color: rgba(255,255,255,.08); }
.tg-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #17212b; border-bottom: 1px solid rgba(255,255,255,.05);
}
.tg-ava {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #0e1621;
  background: linear-gradient(135deg, var(--gold), var(--gold-dk));
}
.tg-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tg-meta b { display: flex; align-items: center; gap: 5px; font-size: .92rem; color: #fff; }
.tg-meta small { color: #6d7f8f; font-size: .74rem; }
.tg-verif { flex: 0 0 auto; }
.tg-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .5px; color: #7fd1a0;
}
.tg-live i {
  width: 7px; height: 7px; border-radius: 50%; background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71; animation: tg-blink 1.4s ease-in-out infinite;
}
@keyframes tg-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.tg-body {
  padding: 0;
  background:
    radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 18px 18px,
    #0e1621;
}
.tg-msg { display: flex; align-items: flex-start; padding: 16px 14px; }
.tg-bubble {
  position: relative; max-width: 88%;
  background: #182533; color: #e8eef3;
  border-radius: 14px 14px 14px 5px;
  padding: 9px 13px 7px; box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tg-bubble::before {
  content: ""; position: absolute; left: -6px; bottom: 0;
  border: 7px solid transparent; border-right-color: #182533;
  border-bottom: 0; border-left: 0;
}
.tg-line { display: block; font-size: .9rem; line-height: 1.65; }
.tg-line.head { font-size: .96rem; font-weight: 600; margin-bottom: 2px; color: #fff; }
.tg-line b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.tg-line b.up { color: #3dd68c; }
.tg-line b.dn { color: #ff6b6b; }
.tg-foot {
  display: block; text-align: right; font-size: .68rem; color: #7a8b9a; margin-top: 4px;
}
.tg-foot .tg-time { margin-left: 8px; }

/* ---- Execution mode line (auto or manual) ---- */
.flow-modes { display: flex; align-items: center; justify-content: center; gap: 12px; margin: -6px auto 30px; flex-wrap: wrap; }
.flow-modes .mode { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); }
.flow-modes .mode.auto   { color: var(--gold); background: rgba(245,176,20,.1);  border-color: rgba(245,176,20,.32); }
.flow-modes .mode.manual { color: #8fd3ff;    background: rgba(56,176,227,.1); border-color: rgba(56,176,227,.32); }
.flow-modes .mode-or { color: #8a92b8; font-size: .8rem; font-style: italic; }

/* ================================================================== */
/*  Member reviews slider (Bengali) — privately collected feedback     */
/* ================================================================== */
.reviews { background: var(--bg); padding: 64px 0 74px; }
.rv-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.rv-head .eyebrow { color: var(--gold-dk); }
.rv-head h2 { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.15; margin: 6px 0 10px; }
.rv-head p { color: var(--muted); font-size: 1.04rem; }

.rv-slider { position: relative; max-width: 1120px; margin: 0 auto; }
.rv-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 6px 2px 16px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.rv-track::-webkit-scrollbar { display: none; }
.rv-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 16px; }

.rv-card {
  flex: 0 0 322px; max-width: 322px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(11, 20, 55, .07);
  padding: 22px 22px 24px; display: flex; flex-direction: column;
}
.rv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rv-ava {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem;
  font-family: "Noto Sans Bengali", sans-serif; background: var(--navy);
}
.rv-who b { display: block; color: var(--navy); font-size: .98rem; line-height: 1.2; }
.rv-who small { color: var(--muted); font-size: .8rem; }
.rv-stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; margin-bottom: 9px; }
.rv-stars .rv-dim { color: #d9deea; }
.rv-text { color: #2b3350; font-size: .97rem; line-height: 1.8; }

/* avatar colour variety */
.rv-card:nth-child(6n+1) .rv-ava { background: #2b6cb0; }
.rv-card:nth-child(6n+2) .rv-ava { background: #2f855a; }
.rv-card:nth-child(6n+3) .rv-ava { background: #b7791f; }
.rv-card:nth-child(6n+4) .rv-ava { background: #7c53d4; }
.rv-card:nth-child(6n+5) .rv-ava { background: #c05621; }
.rv-card:nth-child(6n+6) .rv-ava { background: #2c7a7b; }

/* edge fades */
.rv-slider::before, .rv-slider::after {
  content: ""; position: absolute; top: 0; bottom: 16px; width: 44px; z-index: 2; pointer-events: none;
}
.rv-slider::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.rv-slider::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

/* nav buttons */
.rv-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 20, 55, .12); display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.rv-nav:hover { background: var(--navy); color: #fff; }
.rv-nav.prev { left: -8px; }
.rv-nav.next { right: -8px; }

.rv-priv { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 16px; }

@media (max-width: 820px) {
  .rv-head h2 { font-size: 1.6rem; }
  .rv-nav { display: none; }
  .rv-slider::before, .rv-slider::after { width: 20px; }
}
@media (max-width: 640px) {
  .rv-card { flex-basis: 82%; max-width: 82%; }
}

/* ---- Floating / sticky signup form ---- */
html { scroll-behavior: smooth; }
@media (min-width: 821px) {
  .hero-grid { align-items: start; }
  /* Form floats with the pitch while the hero is on screen. */
  .form-card { position: sticky; top: 16px; }
}
/* Semi-transparent (glass) floating signup form shown while scrolling */
.float-form {
  position: fixed; z-index: 60; right: 24px; bottom: 24px; width: 324px;
  background: rgba(13, 22, 59, .68);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  padding: 15px 16px 17px; color: #fff;
  opacity: 0; transform: translateY(18px) scale(.98); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.float-form.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.ff-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .96rem; margin-bottom: 12px; }
.ff-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.ff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.float-form input[type="text"], .float-form input[type="email"],
.float-form input[type="tel"], .float-form input[type="password"] {
  width: 100%; padding: 10px 11px; font-size: .9rem; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.float-form input::placeholder { color: rgba(255, 255, 255, .62); font-size: .84rem; }
.float-form input:focus {
  outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .15);
  box-shadow: 0 0 0 3px rgba(245, 176, 20, .25);
}
.ff-btn { width: 100%; margin-top: 11px; padding: 12px; font-size: .98rem; }
/* Tablet / phone: dock as a full-width translucent bar at the bottom */
@media (max-width: 900px) {
  .float-form {
    right: 10px; left: 10px; bottom: 10px; width: auto;
    padding: 12px 12px 14px; border-radius: 14px;
  }
  .ff-head { font-size: .9rem; margin-bottom: 9px; }
  .ff-grid { gap: 8px; }
  .float-form input[type="text"], .float-form input[type="email"],
  .float-form input[type="tel"], .float-form input[type="password"] { padding: 11px 11px; font-size: 16px; }
  .ff-btn { margin-top: 9px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .float-form { transition: opacity .3s ease; } }

/* ---- Hero pitch refresh (badge, highlight, chips, CTA) ---- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,176,20,.12); border: 1px solid rgba(245,176,20,.38);
  color: var(--gold); font-weight: 700; font-size: .76rem; letter-spacing: .6px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; text-transform: uppercase;
}
.badge-pill i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: tg-blink 1.4s ease-in-out infinite;
}
.pitch h1 .hl {
  background: linear-gradient(90deg, var(--gold), #ffd36b);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #e7eaf6; font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 12px;
}
.hero-cta {
  width: auto; display: inline-block; margin: 0 0 24px;
  padding: 15px 30px; font-size: 1.05rem;
  box-shadow: 0 14px 34px rgba(245,176,20,.3);
}
.hero-cta:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .hero-cta { width: 100%; text-align: center; } }

/* ---- Signup form: 2-column, compact ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .field { display: flex; flex-direction: column; min-width: 0; }
.form-grid .field label { margin: 0 0 6px; }
.form-grid .field input { padding: 12px 13px; }
.form-card-head h2 { font-size: 1.4rem; }
.form-card-head p { margin-bottom: 16px; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }

/* Keep placeholders inside the (narrower) 2-column inputs */
.form-card input::placeholder { font-size: .9rem; text-overflow: ellipsis; opacity: .7; }

/* ---- Footer legal links ---- */
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: #c7cde4; text-decoration: none; font-size: .88rem; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---- Legal pages (privacy / terms / disclaimer) ---- */
.legal { background: var(--bg); padding: 44px 0 64px; min-height: 60vh; }
.legal-wrap {
  max-width: 820px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 46px;
}
.legal-wrap h1 { color: var(--navy); font-size: 2rem; margin-bottom: 6px; }
.legal-updated {
  color: var(--muted); font-size: .9rem; margin-bottom: 24px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.legal-wrap h2 { color: var(--navy); font-size: 1.2rem; margin: 26px 0 8px; }
.legal-wrap p { color: var(--ink); line-height: 1.75; margin-bottom: 12px; }
.legal-wrap ul { margin: 0 0 14px 20px; color: var(--ink); line-height: 1.7; }
.legal-wrap ul li { margin-bottom: 7px; }
.legal-wrap a { color: var(--gold-dk); font-weight: 600; }
.legal-wrap a:hover { text-decoration: underline; }
.legal-callout {
  background: #fff6e8; border: 1px solid #f3d79a; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 14px 18px; margin: 18px 0 24px;
  color: #5a4a1e; line-height: 1.7;
}
.legal-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .legal-wrap { padding: 28px 22px; }
  .legal-wrap h1 { font-size: 1.6rem; }
}

/* ================================================================== */
/*  Floating "Request a Gold EA" card (customer dashboard)            */
/* ================================================================== */
/* On small / medium screens the card sits inline, below the tutorial. */
.ea-fab { max-width: 760px; margin: 4px auto 28px; padding: 0 20px; }
.ea-card {
  --ea-accent: #ffc23d;                 /* default theme = gold (EA card) */
  --ea-soft: rgba(255, 194, 61, .15);
  position: relative; overflow: hidden;
  background:
    radial-gradient(130% 80% at 100% 0%, rgba(255, 255, 255, .06), transparent 55%),
    linear-gradient(165deg, #142361, var(--navy) 72%);
  color: #e7ecfb; border-radius: 18px; padding: 22px 20px 20px;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 50px rgba(7, 13, 40, .55);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ea-card::before {                       /* accent hairline across the top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--ea-accent), transparent 78%);
}
.ea-card:hover {
  transform: translateY(-3px); border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 28px 64px rgba(7, 13, 40, .62);
}
.ea-card--tg { --ea-accent: #37b2ff; --ea-soft: rgba(55, 178, 255, .16); } /* Telegram = blue */

.ea-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.ea-ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  background: var(--ea-soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.ea-badge {
  display: inline-block; background: var(--ea-soft); color: var(--ea-accent);
  font-weight: 800; font-size: .62rem; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .06);
}
.ea-title { color: #fff; font-size: 1.16rem; line-height: 1.2; margin: 0 0 7px; letter-spacing: .2px; }
.ea-desc { font-size: .87rem; line-height: 1.55; color: #b7c0dd; margin: 0 0 14px; }
.ea-desc strong, .ea-points strong { color: #fff; }
.ea-points { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.ea-points li { position: relative; padding-left: 28px; font-size: .85rem; color: #d7dcf0; line-height: 1.35; }
.ea-points li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 800; color: var(--ea-accent); background: var(--ea-soft);
}
/* WhatsApp call-to-action (refined, gradient + real glyph) */
.ea-cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px 16px; border: 0; border-radius: 12px; cursor: pointer;
  font-size: .95rem; font-weight: 800; text-decoration: none; color: #ffffff;
  background: linear-gradient(180deg, #25d366, #12a150);
  box-shadow: 0 10px 22px rgba(18, 161, 80, .4);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ea-cta:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(18, 161, 80, .55); filter: brightness(1.04); }
.ea-cta:active { transform: translateY(0); }
.ea-cta svg { width: 19px; height: 19px; flex: 0 0 auto; }
.ea-form textarea {
  width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: #fff; padding: 10px 12px;
  font: inherit; font-size: .88rem; resize: vertical; margin-bottom: 10px;
}
.ea-form textarea::placeholder { color: rgba(255, 255, 255, .5); }
.ea-form textarea:focus { outline: none; border-color: var(--ea-accent); box-shadow: 0 0 0 3px var(--ea-soft); }
.ea-submit { width: 100%; margin: 0; }
.ea-hint { font-size: .76rem; color: #9aa4c6; text-align: center; margin: 10px 0 0; line-height: 1.45; }
.ea-done {
  background: rgba(37, 211, 102, .14); border: 1px solid rgba(37, 211, 102, .4);
  color: #c9f7d8; border-radius: 12px; padding: 12px 14px; font-size: .88rem; line-height: 1.5;
}
/* language visibility inside the widget (mirrors the dashboard toggle) */
.ea-fab [lang="bn"] { display: none; }

/* Wide screens: float the card beside the tutorial, vertically centered.
   The tutorial is 760px wide and centred, so it only floats once the side
   gutter is wide enough to hold the card without overlapping it. */
@media (min-width: 1340px) {
  .ea-fab {
    position: fixed; top: 50%; right: 24px; transform: translateY(-50%);
    width: 250px; max-width: 250px; margin: 0; padding: 0; z-index: 70;
    max-height: calc(100vh - 32px); overflow-y: auto;
  }
  /* The automation card floats on the LEFT gutter instead. */
  .ea-fab.ea-left { right: auto; left: 24px; }
}

/* ================================================================== */
/*  Admin shell — sidebar + topbar layout                             */
/* ================================================================== */
.adm-body { flex-direction: row; background: var(--bg); min-height: 100vh; }
.adm-nav-toggle { display: none; }

/* ---- Sidebar ---- */
.adm-sidebar {
  width: 250px; flex: 0 0 250px; align-self: stretch;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #cdd3e6; display: flex; flex-direction: column;
  padding: 20px 14px; z-index: 60;
}
.adm-brand {
  display: flex; align-items: center; gap: 11px; color: #fff;
  font-weight: 800; font-size: 1.1rem; letter-spacing: .2px;
  padding: 4px 8px 18px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.adm-brand .adm-logo {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #ffd56b, var(--gold) 45%, var(--gold-dk));
  color: var(--navy); display: grid; place-items: center; font-weight: 900;
  box-shadow: 0 5px 16px rgba(245, 176, 20, .4);
}
.adm-brand .adm-brand-sub { display: block; font-size: .68rem; font-weight: 600; color: #8f99bd; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 1px; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; }
.adm-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 10px; color: #cdd3e6;
  text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: background .15s, color .15s;
}
.adm-nav a .ico { flex: 0 0 20px; text-align: center; font-size: 1rem; opacity: .85; }
.adm-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-nav a.active { background: var(--gold); color: var(--navy); box-shadow: 0 6px 16px rgba(245, 176, 20, .28); }
.adm-nav a.active .ico { opacity: 1; }
.adm-nav-fill { flex: 1 1 auto; min-height: 16px; }
.adm-foot { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 14px; padding-top: 10px; }

/* ---- Main column ---- */
.adm-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.adm-topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 26px; display: flex; align-items: center; gap: 14px;
}
.adm-title { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 0; flex: 1 1 auto; line-height: 1.2; }
.adm-title .count {
  background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.adm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-actions .btn { width: auto; margin: 0; padding: 10px 16px; font-size: .9rem; }
.adm-content { padding: 26px; width: 100%; max-width: 1120px; }
.adm-burger { display: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--navy); user-select: none; }
.adm-overlay { display: none; }

@media (max-width: 880px) {
  .adm-sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .22s ease; box-shadow: 0 0 44px rgba(0, 0, 0, .45);
  }
  .adm-nav-toggle:checked ~ .adm-sidebar { transform: translateX(0); }
  .adm-nav-toggle:checked ~ .adm-overlay {
    display: block; position: fixed; inset: 0; z-index: 50;
    background: rgba(11, 20, 55, .55);
  }
  .adm-burger { display: inline-block; }
  .adm-topbar { padding: 12px 16px; }
  .adm-title { font-size: 1.12rem; }
  .adm-content { padding: 18px 15px; }
}
