
body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial;
  margin:24px;
  padding-top:88px;

  background: #f8fbff url("bg-bank2csv.svg") no-repeat center top;
  background-size: cover;
}


.wrap {
  max-width:1200px;
  margin:0 auto;
}


.box {
  border:1px solid rgba(15,23,42,0.08);
  border-radius:12px;
  padding:16px;
  margin-top:16px;

  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
}



.step-grid {
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:18px;
  align-items:start;
}

@media (max-width: 900px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}

button {
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #ccc;
  background:#fff;
  cursor:pointer;
}

button.primary { background:#2b6cb0; border-color:#2b6cb0; color:#fff; }
button.secondary { background:#2f855a; border-color:#2f855a; color:#fff; }
button.tertiary { background:#805ad5; border-color:#805ad5; color:#fff; }
button:disabled { opacity:0.6; cursor:not-allowed; }

pre {
  white-space:pre-wrap;
  background:#111;
  color:#eee;
  padding:12px;
  border-radius:8px;
  min-height:180px;
  margin:0;
  overflow:auto;
}

.muted {
  color:#666;
  font-size:13px;
}

.hidden {
  display:none;
}

h3 {
  margin-top:0;
}

input[type="file"] {
  margin-top:8px;
}

.links p {
  margin:8px 0;
}

.side-title {
  font-weight:600;
  margin-bottom:8px;
}

.result-box {
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid #e7e7e7;
}

.site-help {
  margin:20px 0;
  border:1px solid #ccc;
  border-radius:6px;
  overflow:hidden;
}

.site-help-header {
  background:#f5f5f5;
  padding:12px;
  cursor:pointer;
  font-weight:bold;
}

.site-help-header:hover {
  background:#ececec;
}

.site-help-content {
  display:none;
  padding:15px;
  line-height:1.5;
  background:white;
}

.section {
  margin:25px 0;
}

.section-title {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:bold;
  font-size:18px;
  cursor:pointer;
  background:#f5f5f5;
  padding:12px 14px;
  border-radius:8px;
  transition:background 0.2s ease;
  user-select:none;
}

.section-title:hover {
  background:#ebebeb;
}

.section-arrow {
  display:inline-block;
  transition:transform 0.2s ease;
  font-size:13px;
}

.section-title.open .section-arrow {
  transform:rotate(90deg);
}

.section-help {
  display:none;
  margin-top:10px;
  padding:14px 16px;
  background:#fafafa;
  border-left:4px solid #999;
  border-radius:6px;
  line-height:1.6;
}

.section-content {
  margin-top:15px;
}

.session-bar {
  position:fixed;
  top:12px;
  left:12px;
  right:12px;
  z-index:9999;
  min-height:54px;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(255, 255, 255, 0.96);
  border:1px solid rgba(15, 23, 42, 0.08);
  border-radius:14px;
  box-shadow:0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter:blur(10px);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color:#0f172a;
}

.session-bar-left {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  flex-wrap:wrap;
}

.session-pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  flex-shrink:0;
}

.session-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34, 197, 94, 0.12);
}

.session-label {
  font-size:13px;
  font-weight:600;
  color:#0f172a;
}

.session-metrics {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.session-metric {
  display:flex;
  align-items:baseline;
  gap:8px;
  white-space:nowrap;
}

.session-metric-label {
  font-size:12px;
  color:#64748b;
}

.session-metric-value {
  font-size:14px;
  font-weight:700;
  color:#0f172a;
  font-variant-numeric:tabular-nums;
}

.session-divider {
  width:1px;
  height:18px;
  background:#e2e8f0;
}

.session-warning {
  font-size:12px;
  font-weight:600;
  color:#b91c1c;
  white-space:nowrap;
}

.session-bar-right {
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.session-logout-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid #e2e8f0;
  background:#ffffff;
  color:#0f172a;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:all 0.18s ease;
}

.session-logout-btn:hover {
  background:#0f172a;
  color:#ffffff;
  border-color:#0f172a;
}

.session-bar.is-warning {
  border-color:rgba(185, 28, 28, 0.18);
  box-shadow:0 8px 30px rgba(185, 28, 28, 0.10);
}

.session-bar.is-warning .session-pill {
  background:#fef2f2;
  border-color:#fecaca;
}

.session-bar.is-warning .session-dot {
  background:#ef4444;
  box-shadow:0 0 0 4px rgba(239, 68, 68, 0.12);
}

.session-admin-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  margin-right:10px;
  border-radius:10px;
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:all 0.18s ease;
}

.session-admin-btn:hover {
  background:#1d4ed8;
  color:#ffffff;
  border-color:#1d4ed8;
}

.session-secondary-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 14px;
  margin-right:10px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#111827;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:all 0.18s ease;
}

.session-secondary-btn:hover {
  background:#111827;
  color:#ffffff;
  border-color:#111827;
}

@media (max-width: 980px) {
  body {
    padding-top:110px;
  }

  .session-bar {
    align-items:flex-start;
    flex-direction:column;
  }

  .session-bar-right {
    width:100%;
  }

  .session-logout-btn {
    width:100%;
  }

  .session-divider {
    display:none;
  }
}



body {
  padding-top: 86px;
}

.top-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 9999;

  min-height: 54px;
  padding: 10px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.top-header-left,
.top-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.top-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.top-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.top-logout-btn:hover {
  background: #dc2626;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 9997;
  display: none;
}

.side-menu-overlay.open {
  display: block;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: 8px 0 30px rgba(0,0,0,0.12);
  z-index: 9998;
  transition: left 0.2s ease;
}

.side-menu.open {
  left: 0;
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.side-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.side-menu-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 22px;
  cursor: pointer;
}

.side-menu-links {
  padding: 16px;
}

.side-menu-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  background: #fff;
  border: 1px solid #edf0f3;
}

.side-menu-link:hover {
  background: #f9fafb;
}

.side-menu-link.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

@media (max-width: 700px) {
  body {
    padding-top: 96px;
  }

  .top-header {
    flex-wrap: wrap;
  }

  .top-user-name {
    display: none;
  }
}


body {
  padding-top: 88px;
}

.top-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 9999;

  min-height: 58px;
  padding: 10px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.top-header-left,
.top-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-header-left {
  min-width: 0;
  flex-wrap: wrap;
}

.top-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.top-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.top-logout-btn:hover {
  background: #dc2626;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

.top-session-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.top-session-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.top-session-label {
  font-size: 12px;
  color: #64748b;
}

.top-session-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.top-session-sep {
  color: #cbd5e1;
  font-weight: 700;
}

.top-session-warning {
  font-size: 12px;
  font-weight: 700;
  color: #b91c1c;
}

.top-header.is-warning {
  border-color: rgba(185, 28, 28, 0.18);
  box-shadow: 0 8px 30px rgba(185, 28, 28, 0.10);
}

.side-menu-overlay {
  position: fixed;
  top: var(--top-header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 9997;
  display: none;
}

.side-menu-overlay.open {
  display: block;
}


.side-menu {
  position: fixed;
  top: var(--top-header-offset);
  left: -320px;
  width: 300px;
  height: calc(100dvh - var(--top-header-offset));
  background: #fff;
  box-shadow: 8px 0 30px rgba(0,0,0,0.12);
  z-index: 9998;
  transition: left 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


.side-menu.open {
  left: 0;
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.side-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.side-menu-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 22px;
  cursor: pointer;
}

.side-menu-links {
  padding: 16px;
}

.side-menu-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  background: #fff;
  border: 1px solid #edf0f3;
}

.side-menu-link:hover {
  background: #f9fafb;
}

.side-menu-link.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

@media (max-width: 980px) {
  body {
    padding-top: 118px;
  }

  .top-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-header-right {
    width: 100%;
  }

  .top-logout-btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .top-session-label,
  .top-session-sep {
    display: none;
  }

  .top-session-inline {
    gap: 8px;
  }

  .top-session-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    border-radius: 999px;
  }
}

:root {
  --top-header-offset: 88px;
}

.side-menu-overlay {
  position: fixed;
  top: var(--top-header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 9997;
  display: none;
}

.side-menu-overlay.open {
  display: block;
}

.side-menu {
  position: fixed;
  top: var(--top-header-offset);
  left: -320px;
  width: 300px;
  height: calc(100dvh - var(--top-header-offset));
  background: #fff;
  box-shadow: 8px 0 30px rgba(0,0,0,0.12);
  z-index: 9998;
  transition: left 0.2s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.side-menu.open {
  left: 0;
}

.login-page {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;

  background:#f8fbff url("bg-bank2csv.svg") no-repeat center top;
  background-size:cover;
}

.login-card {
  width:360px;
  padding:32px;

  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(8px);

  border-radius:16px;
  border:1px solid rgba(15,23,42,0.08);
  box-shadow:0 20px 60px rgba(15,23,42,0.08);
}

.login-card h1 {
  margin-top:0;
  font-size:22px;
}

.login-card input {
  width:100%;
  padding:10px;
  margin-top:8px;
  border-radius:8px;
  border:1px solid #d1d5db;
}

.login-card button {
  width:100%;
  margin-top:14px;
}

.landing {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 24px 40px;

  background-color: #f8fbff;
  background-image: url("bg-bank2csv.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1400px auto;
}

.landing-card {
  width: 100%;
  max-width: 760px;
  padding: 48px 56px;
  text-align: center;

  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(8px);

  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}

.landing-card h1 {
  margin: 0 0 18px;
  font-size: 64px;
  line-height: 1.05;
  color: #0f172a;
}

.landing-card p {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: 21px;
  line-height: 1.45;
  color: #475569;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 22px;

  border-radius: 14px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}

.landing-btn:hover {
  filter: brightness(1.03);
}

@media (max-width: 900px) {
  .landing {
    padding-top: 72px;
    background-size: 1100px auto;
  }

  .landing-card {
    max-width: 640px;
    padding: 34px 26px;
    border-radius: 20px;
  }

  .landing-card h1 {
    font-size: 46px;
  }

  .landing-card p {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .landing {
    padding: 36px 16px 24px;
    background-size: 850px auto;
    background-position: center -20px;
  }

  .landing-card h1 {
    font-size: 36px;
  }

  .landing-card p {
    font-size: 17px;
  }

  .landing-btn {
    width: 100%;
  }
}


/* =========================
   LANDING PAGE
========================= */

body.landing-page {
  margin: 0;
  padding-top: 0;
  min-height: 100vh;
  background: #f8fbff;
}

.landing {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px 24px;

  background-color: #f8fbff;
  background-image: url("bg-bank2csv.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: clamp(820px, 140vw, 1600px) auto;
}

.landing-card {
  width: 100%;
  max-width: 760px;
  margin-top: 10px;
  padding: 42px 32px;
  text-align: center;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
  box-sizing: border-box;
}

.landing-card h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  color: #0f172a;
}

.landing-card p {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.45;
  color: #475569;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  max-width: 100%;
  min-height: 52px;
  padding: 0 22px;

  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
  box-sizing: border-box;
  text-align: center;
}

.landing-btn:hover {
  filter: brightness(1.03);
}

@media (max-width: 560px) {
  .landing {
    padding: 32px 14px 20px;
    background-size: 1100px auto;
    background-position: center -10px;
  }

  .landing-card {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .landing-btn {
    width: 100%;
    min-width: 0;
  }
}


/* =========================
   LOGIN PAGE
========================= */

body.login-page {
  margin: 0;
  padding-top: 0;
  min-height: 100vh;
  background: #f8fbff;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px 24px;

  background-color: #f8fbff;
  background-image: url("bg-bank2csv.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: clamp(820px, 140vw, 1600px) auto;
}

.login-card {
  width: 100%;
  max-width: 460px;
  margin-top: 10px;
  padding: 32px 24px;

  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15,23,42,0.10);
  box-sizing: border-box;
}

.login-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 10px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
  color: #0f172a;
}

.login-subtitle {
  margin: 0 0 20px;
  color: #475569;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  background: rgba(255,255,255,0.96);
  box-sizing: border-box;
  font-size: 16px;
  color: #0f172a;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.10);
}

.login-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

.login-submit:hover {
  filter: brightness(1.03);
}

.login-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .login-shell {
    padding: 32px 14px 20px;
    background-size: 1100px auto;
    background-position: center -10px;
  }

  .login-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .login-card h1 {
    font-size: 28px;
  }
}


