/* E-FRP — Dark professional theme (shared across all pages) */
:root {
  /* Brand palette matched to EFT Pro Dongle (eftprodongle.com): red on near-black slate */
  --bg: #030712;
  --bg-soft: #0b1120;
  --card: #111827;
  --card-hover: #18202f;
  --border: #293244;
  --border-soft: #1c2434;
  --primary: #dc2626;
  --primary-light: #ef4444;
  --primary-dark: #991b1b;
  --accent: #ea580c;
  --success: #15803d;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --shadow: 0 1px 2px rgba(0,0,0,0.45);
  --shadow-hover: 0 8px 24px rgba(220,38,38,0.28);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, rgba(220,38,38,0.10), transparent 45%),
                     radial-gradient(circle at 90% 20%, rgba(234,88,12,0.07), transparent 40%);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .navbar {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(239,68,68,0.4);
  flex-shrink: 0;
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-prefix { font-size: 9px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-dim); }
.brand-name {
  font-size: 19px; font-weight: 800; letter-spacing: 0.4px;
  background: linear-gradient(90deg, #fff 0%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff;
}
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
  display: none;
}
@media (min-width: 640px) { .nav-links a { display: inline-flex; align-items: center; gap: 6px; } }
.nav-links a:hover { color: var(--primary-light); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer;
}
@media (min-width: 640px) { .nav-toggle { display: none; } }

/* mobile dropdown */
.nav-drawer {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-soft); border-bottom: 1px solid var(--border-soft);
  padding: 8px 16px 14px;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: flex; align-items: center; gap: 10px; padding: 11px 4px; color: var(--text-muted);
  text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border-soft);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--primary-light); }

/* ---------- Layout ---------- */
.main { padding: 20px 14px 48px; max-width: 880px; margin: 0 auto; }
.page-main { padding: 36px 16px 56px; max-width: 760px; margin: 0 auto; }

/* ---------- Hero / page title ---------- */
.hero-title {
  font-size: 17px; font-weight: 700; color: var(--text); text-align: center;
  margin: 0 0 18px; padding: 16px 14px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); letter-spacing: 0.3px; line-height: 1.4;
}
.page-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.3px; }
.page-subtitle { color: var(--text-muted); font-size: 15px; margin: 0 0 32px; line-height: 1.7; }

/* ---------- Recommended tool banner ---------- */
.reco-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(220,38,38,0.16), rgba(234,88,12,0.12));
  border: 1px solid rgba(239,68,68,0.38);
  border-radius: var(--radius);
  padding: 22px 18px 18px 16px;
  margin: 16px 0 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.reco-banner .reco-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  box-shadow: 0 3px 10px rgba(220,38,38,0.45);
}
.reco-banner .reco-body { flex: 1; min-width: 0; }
.reco-banner .reco-tag {
  position: absolute; top: -11px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 4px 11px; border-radius: 7px; margin: 0;
  box-shadow: 0 3px 10px rgba(220,38,38,0.45);
}
.reco-banner h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.reco-banner p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.55; }
.reco-banner .btn-reco {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff;
  padding: 9px 16px; border-radius: 9px; font-size: 13.5px; font-weight: 700; text-decoration: none;
  box-shadow: 0 3px 10px rgba(220,38,38,0.4);
}
.reco-banner .btn-reco:hover { background: var(--primary-light); }

/* Compact recommended banner on phones */
@media (max-width: 600px) {
  .reco-banner {
    padding: 16px 11px 10px; gap: 10px; margin: 14px 0; align-items: center;
  }
  .reco-banner .reco-logo { width: 44px; }
  .reco-banner .reco-body { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
  .reco-banner .reco-tag { top: -10px; font-size: 8.5px; padding: 3px 9px; letter-spacing: .8px; }
  .reco-banner h3 { font-size: 12px; margin: 0; flex: 1; min-width: 0; }
  .reco-banner .btn-reco { padding: 6px 11px; font-size: 11.5px; border-radius: 8px; }
}

/* ---------- Risk / info notes ---------- */
.note {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6;
  color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0 18px;
}
.note i { color: var(--warning); margin-top: 1px; flex-shrink: 0; }
.note.note-info i { color: var(--primary-light); }
.note.note-success i { color: var(--success); }
.note strong { color: var(--text); }

/* ---------- Steps (numbered buttons) ---------- */
.steps-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; margin: 0 0 18px;
}
.steps-card .steps-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 14px; display: flex; align-items: center; gap: 9px;
}
.apple-badge { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }

/* ---------- Platform collapsible sections (iOS / Android) ---------- */
.platform-sect { margin: 0 0 18px; }
#android-sect {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); padding: 0;
}
#android-sect .platform-body { padding: 4px 14px 16px; }
.platform-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; cursor: pointer; color: inherit;
  padding: 16px 16px; text-align: left; font: inherit;
}
.steps-card .platform-head { padding: 0 0 8px; }
.platform-head .ph-chevron { color: var(--text-dim); transition: transform .25s; font-size: 14px; flex-shrink: 0; }
.platform-sect.collapsed .platform-head .ph-chevron { transform: rotate(-90deg); }
.platform-head .steps-label { margin-bottom: 0; cursor: pointer; }
#android-sect .platform-head .steps-label { color: #3ddc84; font-size: 13px; }
.platform-body { overflow: hidden; transition: max-height .3s ease, opacity .2s ease; max-height: 20000px; opacity: 1; }
.platform-sect.collapsed .platform-body { max-height: 0 !important; opacity: 0; }
.step-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step-row:last-child { margin-bottom: 0; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
  flex-shrink: 0;
}
.step-btn {
  flex: 1; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; transition: border-color .15s, transform .15s;
}
.step-btn:hover { border-color: var(--primary); transform: translateY(-1px); color: var(--text); }
.step-btn .icon-badge { color: var(--primary-light); }

/* ---------- Group panel (fieldset-style, title notched into the border) ---------- */
.group {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px 18px;
  margin: 30px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 120px);
}
.group + .group { margin-top: 30px; }

/* Subtle per-category tint */
.group.g-red    { background: rgba(220,38,38,0.055);  border-color: rgba(220,38,38,0.30); }
.group.g-orange { background: rgba(234,88,12,0.055);  border-color: rgba(234,88,12,0.30); }
.group.g-blue   { background: rgba(59,130,246,0.055); border-color: rgba(59,130,246,0.30); }
.group.g-green  { background: rgba(16,185,129,0.055); border-color: rgba(16,185,129,0.28); }
.group.g-purple { background: rgba(139,92,246,0.055); border-color: rgba(139,92,246,0.30); }
.group.g-amber  { background: rgba(245,158,11,0.055); border-color: rgba(245,158,11,0.30); }
.group.g-slate  { background: rgba(148,163,184,0.05); border-color: rgba(148,163,184,0.26); }
.group.g-red    .group-title .icon-badge { background: linear-gradient(135deg,#ef4444,#991b1b); }
.group.g-orange .group-title .icon-badge { background: linear-gradient(135deg,#fb923c,#c2410c); }
.group.g-blue   .group-title .icon-badge { background: linear-gradient(135deg,#60a5fa,#1d4ed8); }
.group.g-green  .group-title .icon-badge { background: linear-gradient(135deg,#34d399,#047857); }
.group.g-purple .group-title .icon-badge { background: linear-gradient(135deg,#a78bfa,#6d28d9); }
.group.g-amber  .group-title .icon-badge { background: linear-gradient(135deg,#fbbf24,#b45309); }
.group.g-slate  .group-title .icon-badge { background: linear-gradient(135deg,#cbd5e1,#64748b); }
.group-title {
  position: absolute;
  top: -13px; left: 16px;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg);
  padding: 0 12px 0 8px;
  height: 26px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text);
  border-radius: 8px;
}
.group-title .icon-badge {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* ---------- Section headings (standalone, e.g. Need More Help) ---------- */
.section-heading {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); margin: 28px 0 12px; padding: 0 2px;
}
.section-heading .icon-badge {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.section-intro { font-size: 13px; color: var(--text-muted); margin: -4px 2px 12px; line-height: 1.6; }

/* ---------- Icon badges (category colors) ---------- */
.icon-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.ib-blue   { background: rgba(220,38,38,0.15); color: var(--primary-light); }
.ib-purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.ib-green  { background: rgba(16,185,129,0.15); color: #34d399; }
.ib-amber  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ib-red    { background: rgba(239,68,68,0.15); color: #f87171; }
.ib-slate  { background: rgba(148,163,184,0.15); color: #cbd5e1; }

/* ---------- File / link rows ---------- */
.link-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .link-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.file-card {
  display: flex !important; align-items: center; gap: 12px; min-height: 52px;
  padding: 11px 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text) !important; font-weight: 500; font-size: 14.5px;
  text-decoration: none !important; transition: transform .15s, border-color .15s, box-shadow .15s;
  word-break: break-word; line-height: 1.35;
}
.file-card:hover, .file-card:focus { transform: translateY(-1px); border-color: var(--primary); box-shadow: var(--shadow-hover); color: var(--text); }
.file-card .icon-badge { width: 34px; height: 34px; font-size: 15px; flex-shrink: 0; }
/* Real app-icon images — shown as-is like Android home-screen icons (no background box) */
.app-icon {
  width: 44px; height: 44px; flex-shrink: 0; object-fit: cover;
  border-radius: 23%; background: none; padding: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
.step-btn .app-icon { width: 30px; height: 30px; }
.guide-card .app-icon { width: 46px; height: 46px; margin-bottom: 12px; }
/* EFT PRO logo in the recommended banner */
.reco-logo { width: 92px; height: auto; flex-shrink: 0; align-self: center; }
.file-card .fc-title { flex: 1; min-width: 0; }
.file-card .fc-main { display: block; color: var(--text); }
.file-card .fc-sub { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }
.file-card .fc-arrow { color: var(--text-dim); font-size: 13px; flex-shrink: 0; }

.custom-divider { border: none; border-top: 1px solid var(--border-soft); margin: 24px 0; }

/* ---------- Guide cards (articles) ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-decoration: none; display: block; transition: border-color .15s, transform .15s;
}
.guide-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.guide-card .icon-badge { width: 38px; height: 38px; font-size: 16px; margin-bottom: 12px; }
.guide-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.guide-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  padding: 15px 16px; font-weight: 600; font-size: 14.5px; color: var(--text);
}
.faq-q i { color: var(--text-dim); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .2s ease, padding .2s ease; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }
.faq-item.open .faq-a { padding: 0 16px 16px; max-height: 400px; }

/* ---------- Simple content (legal pages) ---------- */
.content-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; }
.content-block h2 { font-size: 16px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.content-block h2:first-child { margin-top: 0; }
.content-block p, .content-block li { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.content-block ul { padding-right: 0; padding-left: 20px; margin: 8px 0; }
.content-block strong { color: var(--text); }

/* breadcrumbs */
.crumbs { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--primary-light); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg-soft); padding: 32px 16px 28px; margin-top: 48px; border-top: 1px solid var(--border-soft);
}
.footer-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: var(--primary-light); }
.footer-disclaimer { font-size: 12px; color: var(--text-dim); max-width: 560px; margin: 0 auto 14px; line-height: 1.6; }
.copyright { font-size: 12.5px; color: var(--text-dim); margin: 0; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; background: var(--primary);
  color: #fff !important; border-radius: 50%; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(220,38,38,0.5); z-index: 999; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
#back-to-top.show { display: flex; }
#back-to-top:hover { transform: translateY(-3px); color: #fff; }

/* ---------- Focus accessibility ---------- */
.file-card:focus-visible, .step-btn:focus-visible, .btn-reco:focus-visible, #back-to-top:focus-visible, .guide-card:focus-visible {
  outline: 2px solid var(--primary-light); outline-offset: 2px;
}
