/* ============================================================
   BIZPORT — Design System
   Korean B2B Transaction Platform
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #1A2B4B;
  --primary-light:  #2D4270;
  --primary-faint:  #EDF0F7;
  --success:        #28A745;
  --success-bg:     #EAF6EC;
  --warning:        #E5A000;
  --warning-bg:     #FFF8E1;
  --danger:         #DC3545;
  --danger-bg:      #FDECEA;
  --info:           #1976D2;
  --info-bg:        #E3F0FB;
  --neutral:        #718096;
  --neutral-bg:     #F1F3F7;

  --bg:             #F4F7F9;
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-dark:    #CBD5E0;

  --text-dark:      #1A2B4B;
  --text-medium:    #4A5568;
  --text-light:     #718096;
  --text-faint:     #A0AEC0;

  --shadow-xs:      0 1px 2px rgba(26,43,75,.06);
  --shadow-sm:      0 1px 4px rgba(26,43,75,.08);
  --shadow-md:      0 4px 16px rgba(26,43,75,.10);
  --shadow-lg:      0 8px 32px rgba(26,43,75,.13);

  --radius-sm:      4px;
  --radius:         6px;
  --radius-md:      8px;
  --radius-lg:      12px;

  --container:      1100px;
  --header-h:       64px;

  --transition:     150ms ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
               'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.625rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
h5 { font-size: .9375rem; }

p { color: var(--text-medium); }
small { font-size: .8125rem; color: var(--text-light); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.page-body {
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 80px;
}

/* ── Header / Navigation ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  font-size: .8125rem;
  font-weight: 900;
  border-radius: var(--radius-sm);
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-medium);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover { color: var(--primary); background: var(--primary-faint); }
.nav-link.active { color: var(--primary); font-weight: 600; }

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-toggle span {
  color: var(--text-light);
  font-size: .75rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: flex;
  visibility: hidden;
  width: 220px;
  padding: 7px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text-medium);
  font-size: .82rem;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: var(--primary-faint);
  color: var(--primary);
}

.nav-dropdown-menu strong,
.nav-dropdown-menu small { display: block; }
.nav-dropdown-menu strong { color: var(--primary); font-size: .84rem; }
.nav-dropdown-menu small { margin-top: 2px; font-size: .7rem; }

.nav-cta {
  margin-left: 8px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--primary-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  z-index: 190;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-nav .nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.mobile-nav .nav-cta {
  margin: 16px 0 0;
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 1rem;
}

body.nav-open .mobile-nav { display: flex; }

.mobile-nav-group {
  margin-top: 6px;
  padding: 6px 0 9px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-group a {
  display: block;
  min-height: 40px;
  padding: 9px 16px 9px 28px;
  color: var(--text-light);
  font-size: .88rem;
}

.mobile-nav-group .mobile-nav-heading {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #1e3358;
  color: rgba(255,255,255,.75);
  padding: 0 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 28px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo-mark { background: rgba(255,255,255,.15); }
.footer-brand p {
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.footer-col h5 {
  color: rgba(255,255,255,.95);
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul li + li { margin-top: 10px; }

.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.footer-biz-wrap {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin-left: -43px;
}
.footer-biz-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
  align-self: center;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
.footer-biz-divider {
  width: 1px;
  background: rgba(255,255,255,.18);
  flex: 0 0 auto;
  align-self: stretch;
}
.footer-biz {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  flex: 1;
}
.footer-biz-name {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  margin-bottom: 6px;
}
.footer-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 32px;
}
.footer-biz-entry {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: .875rem;
  line-height: 1.55;
}
.footer-biz-entry--full { grid-column: 1 / -1; }
.footer-biz-key {
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  font-size: .8rem;
}
.footer-biz-val { color: rgba(255,255,255,.58); }

.footer-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.02em;
}

.trust-badge svg { opacity: .8; }

/* ── Footer Ops Guide ────────────────────────────────────────── */
.footer-ops {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  width: 100%;
}

.footer-ops-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}

.footer-ops-item:last-child { border-right: none; }
.footer-ops-item:hover { background: rgba(255,255,255,.05); }
button.footer-ops-item { background: none; border-top: none; border-bottom: none; border-left: none; cursor: pointer; font: inherit; width: 100%; }

.footer-ops-label {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  text-align: center;
}

.footer-ops-desc {
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  text-align: center;
  line-height: 1.3;
}

.contact-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-popup-overlay[hidden] { display: none; }
.contact-popup {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.contact-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
}
.contact-popup-close:hover { color: #334155; }
.contact-popup-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px;
}
.contact-popup-items { display: flex; flex-direction: column; gap: 10px; }
.contact-popup-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #1e293b;
  transition: background .15s, border-color .15s;
}
.contact-popup-item:hover { background: #f8fafc; border-color: #cbd5e1; }
.contact-popup-icon { width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto; }
.contact-popup-method { font-size: .8rem; font-weight: 600; color: #64748b; min-width: 52px; }
.contact-popup-value { font-size: .875rem; font-weight: 500; color: #0f172a; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-faint);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-medium);
}
.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--border-dark);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.btn-success:hover { opacity: .9; }

.btn-lg { min-height: 56px; font-size: 1.0625rem; padding: 14px 36px; }
.btn-sm { min-height: 36px; font-size: .8125rem; padding: 7px 16px; }

.btn-block { width: 100%; }

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Status Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

.badge-pending   { background: var(--warning-bg); color: var(--warning); }
.badge-active    { background: var(--info-bg);    color: var(--info); }
.badge-complete  { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: var(--neutral-bg); color: var(--neutral); }
.badge-review    { background: #EEE5FF;            color: #6B3FA0; }

/* ── Section utilities ───────────────────────────────────────── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-faint);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.section-title { margin-bottom: 12px; }
.section-sub { color: var(--text-light); font-size: 1.0625rem; margin-bottom: 0; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--primary);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}

.hero-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-ctas .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.hero-ctas .btn-primary:hover { background: rgba(255,255,255,.9); }

.hero-ctas .btn-outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.hero-ctas .btn-outline:hover { background: rgba(255,255,255,.08); }

/* Hero card panel */
.hero-panel {
  background: none;
  border: none;
  padding: 0;
}

.hero-panel-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}

.hero-stat-list { display: flex; flex-direction: column; gap: 16px; }

.hero-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
}

.hero-stat-label {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}

.hero-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Flow Steps ──────────────────────────────────────────────── */
.flow-section { background: var(--surface); }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.flow-step {
  padding: 36px 28px;
  position: relative;
  border-right: 1px solid var(--border);
  text-align: center;
}
.flow-step:last-child { border-right: none; }

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-faint);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.flow-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.flow-step h4 {
  font-size: .9375rem;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: .8125rem;
  color: var(--text-light);
  line-height: 1.6;
}

.flow-arrow {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .75rem;
  z-index: 1;
}
.flow-step:last-child .flow-arrow { display: none; }

/* ── Value Blocks ────────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.value-card-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.value-card.buyer .value-card-type {
  background: var(--info-bg);
  color: var(--info);
}
.value-card.seller .value-card-type {
  background: var(--success-bg);
  color: var(--success);
}

.value-card h3 { margin-bottom: 12px; }

.value-card p {
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.value-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.value-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-medium);
}

.value-feature-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .625rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.buyer .value-feature-dot { background: var(--info-bg); color: var(--info); }
.seller .value-feature-dot { background: var(--success-bg); color: var(--success); }

/* ── Trust / Policy strip ────────────────────────────────────── */
.trust-strip {
  background: var(--primary);
  padding: 48px 0;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.trust-item:last-child { border-right: none; }

.trust-item-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.trust-item h4 {
  color: #fff;
  font-size: .9375rem;
  margin-bottom: 6px;
}

.trust-item p {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

/* ── Cards (surface) ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-sm { padding: 20px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Page header (inner pages) ───────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb span { color: var(--text-faint); }

/* ── Transaction List Page ───────────────────────────────────── */
.tx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.tx-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-input {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .875rem;
  color: var(--text-dark);
  background: var(--surface);
  min-width: 200px;
  transition: border-color var(--transition);
}
.filter-input:focus {
  outline: none;
  border-color: var(--primary);
}
.filter-input::placeholder { color: var(--text-faint); }

.filter-select {
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .875rem;
  color: var(--text-dark);
  background: var(--surface);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--primary); }

/* Status Tabs */
.status-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-tabs::-webkit-scrollbar { display: none; }

.status-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-light);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--transition);
  cursor: pointer;
}

.status-tab:hover { color: var(--text-dark); }

.status-tab.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--primary-faint);
  color: var(--primary);
  border-radius: 99px;
  font-size: .6875rem;
  font-weight: 700;
}

.status-tab.active .tab-count { background: var(--primary); color: #fff; }

/* Transaction Table */
.tx-table-wrap { overflow-x: auto; }

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.tx-table th {
  text-align: left;
  padding: 11px 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tx-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.tx-table tbody tr { transition: background var(--transition); }
.tx-table tbody tr:hover { background: var(--bg); }
.tx-table tbody tr:last-child td { border-bottom: none; }

.tx-table .tx-name { font-weight: 600; color: var(--text-dark); }
.tx-table .tx-id { font-size: .8125rem; color: var(--text-faint); margin-top: 2px; }
.tx-table .tx-amount { font-weight: 700; font-size: 1rem; text-align: right; }
.tx-table .tx-party { font-size: .875rem; color: var(--text-medium); }
.tx-table .tx-date { font-size: .8125rem; color: var(--text-light); white-space: nowrap; }

.tx-table a.tx-row-link { display: contents; color: inherit; }

.tx-action-link {
  font-size: .8125rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 0;
  display: inline-block;
}
.tx-action-link:hover { text-decoration: underline; }

/* Transaction Cards (mobile) */
.tx-cards { display: none; }

.tx-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 10px;
  display: block;
  color: inherit;
}

.tx-card:hover { border-color: var(--primary); }

.tx-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tx-card-title {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.tx-card-sub {
  font-size: .8125rem;
  color: var(--text-light);
  margin-top: 3px;
}

.tx-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-card-party { font-size: .8125rem; color: var(--text-medium); }

.tx-card-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ── App-page header (authenticated pages) ──────────────────── */
.app-page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.app-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.app-page-subtitle {
  font-size: .8125rem;
  color: var(--text-light);
  margin: 3px 0 0;
}

/* ── Transaction stats strip ─────────────────────────────────── */
.tx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 24px;
}

.tx-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: box-shadow var(--transition);
}

.tx-stat-card:hover { box-shadow: var(--shadow-sm); }

.tx-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tx-stat-label {
  font-size: .8125rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.tx-stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.tx-stat-sub {
  font-size: .8125rem;
  color: var(--text-faint);
}

/* ── Transaction controls row ────────────────────────────────── */
.tx-controls-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tx-controls-row .status-tabs {
  border-bottom: none;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.tx-search-form { margin-bottom: 0; }

.tx-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
}

.tx-controls-border {
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

/* ── Party avatar + cell ─────────────────────────────────────── */
.tx-party-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
}

.tx-party-name {
  font-size: .875rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.3;
}

.tx-role-pill {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: .6875rem;
  font-weight: 600;
  background: var(--neutral-bg);
  color: var(--neutral);
  margin-top: 3px;
}

.tx-role-pill.is-seller {
  background: var(--primary-faint);
  color: var(--primary);
}

.tx-role-pill.is-buyer {
  background: var(--info-bg);
  color: var(--info);
}

/* ── Clickable rows + arrow cell ─────────────────────────────── */
.tx-table tbody tr[data-href] { cursor: pointer; }

.tx-link-cell { width: 44px; text-align: center; }

.tx-row-arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-faint);
  transition: background var(--transition), color var(--transition);
}

.tx-table tbody tr:hover .tx-row-arrow {
  background: var(--primary-faint);
  color: var(--primary);
}

/* ── Empty state (transactions) ──────────────────────────────── */
.tx-empty-state {
  text-align: center;
  padding: 56px 32px;
}

.tx-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tx-empty-state h3 { margin-bottom: 8px; }

.tx-empty-state p {
  max-width: 360px;
  margin: 0 auto 24px;
  color: var(--text-light);
  font-size: .9375rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tx-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .tx-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tx-stat-value { font-size: 1.5rem; }
  .tx-stat-icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .tx-controls-row { flex-direction: column; align-items: stretch; }
  .tx-search-inner { padding-bottom: 0; }
  .tx-controls-border { margin-top: 12px; }
}

/* ── Transaction Detail ──────────────────────────────────────── */

/* Pipeline Timeline */
.tx-pipeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.pipeline-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.pipeline-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.pipeline-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.pipeline-step:last-child::before { display: none; }

.pipeline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-faint);
  font-size: .875rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.pipeline-step.done .pipeline-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.pipeline-step.done::before { background: var(--success); }

.pipeline-step.active .pipeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26,43,75,.12);
}

.pipeline-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.4;
}

.pipeline-step.done .pipeline-label,
.pipeline-step.active .pipeline-label {
  color: var(--text-dark);
  font-weight: 600;
}

.pipeline-date {
  font-size: .6875rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-card h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.detail-row:last-child { border-bottom: none; }

.detail-label { color: var(--text-light); flex-shrink: 0; }
.detail-value { color: var(--text-dark); font-weight: 500; text-align: right; }

/* Amount summary */
.amount-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: .9375rem;
  border-bottom: 1px solid var(--border);
}
.amount-row:last-child { border-bottom: none; }

.amount-row.total {
  padding-top: 16px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.amount-label { color: var(--text-medium); }
.amount-value { font-weight: 600; color: var(--text-dark); }
.amount-row.total .amount-value { font-size: 1.375rem; color: var(--primary); }

/* Guides */
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
}
.guide-card h4 { font-size: .875rem; margin-bottom: 12px; }
.guide-card ul { display: flex; flex-direction: column; gap: 8px; }
.guide-card li {
  padding-left: 16px;
  position: relative;
  font-size: .875rem;
  color: var(--text-medium);
  line-height: 1.5;
}
.guide-card li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text-faint);
}

/* ── Mock Notice ─────────────────────────────────────────────── */
.mock-notice {
  background: var(--warning-bg);
  border: 1px solid rgba(229,160,0,.25);
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.mock-notice-title {
  font-size: .75rem;
  font-weight: 700;
  color: #7A5500;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.mock-notice p {
  font-size: .875rem;
  color: #5C3D00;
  line-height: 1.6;
  margin: 0;
}

/* Sidebar layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

/* ── Login ───────────────────────────────────────────────────── */
.login-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-logo {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.login-card h2 { font-size: 1.375rem; margin-bottom: 8px; }
.login-card .login-sub {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 20px;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-kakao:hover { opacity: .92; }

.btn-kakao:active { transform: translateY(1px); }

.btn-kakao img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.kakao-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.login-notice {
  padding: 14px 16px;
  background: var(--warning-bg);
  border: 1px solid rgba(229,160,0,.25);
  border-radius: var(--radius);
  font-size: .8125rem;
  color: #7A5500;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 24px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: .8125rem;
  margin-bottom: 16px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-dev-form {
  margin-bottom: 20px;
}

.btn-dev-login {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.btn-dev-login:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
}

.btn-dev-login:active {
  transform: translateY(1px);
}

.login-note {
  font-size: .8rem;
  color: var(--text-faint);
  line-height: 1.6;
}
.login-note a { color: var(--text-light); text-decoration: underline; }

/* ── Policy Pages ────────────────────────────────────────────── */
.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0 80px;
}

.policy-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.policy-toc h5 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.toc-link {
  display: block;
  padding: 8px 10px;
  font-size: .8125rem;
  color: var(--text-medium);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
}
.toc-link:hover { background: var(--bg); color: var(--primary); }

.policy-content { min-width: 0; }

.policy-header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 { font-size: 1.75rem; margin-bottom: 8px; }
.policy-meta { font-size: .8125rem; color: var(--text-light); }

.policy-content article { margin-bottom: 40px; }

.policy-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 14px;
  padding-top: 4px;
  color: var(--text-dark);
}

.policy-content h4 {
  font-size: .9375rem;
  margin: 20px 0 10px;
  color: var(--text-medium);
}

.policy-content p {
  font-size: .9375rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-content ol,
.policy-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.policy-content ol { list-style: decimal; }
.policy-content ul { list-style: disc; }

.policy-content li {
  font-size: .9375rem;
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: 6px;
}

.policy-box {
  background: var(--bg);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: .9rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ── Misc utilities ──────────────────────────────────────────── */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }

.divider { height: 1px; background: var(--border); margin: 24px 0; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}
.empty-state p { font-size: .9375rem; }

/* ── Hero stat note ──────────────────────────────────────────── */
.hero-stat-note {
  font-size: .6875rem;
  color: rgba(255,255,255,.38);
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  line-height: 1.4;
}

/* ── Process Rail ────────────────────────────────────────────── */
.proc-section { background: var(--surface); }

.proc-rail {
  display: flex;
  align-items: flex-start;
  margin-top: 36px;
}

.proc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.proc-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.proc-step--done .proc-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.proc-step--active .proc-dot {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,43,75,.10);
}

.proc-body { min-width: 0; }

.proc-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  word-break: keep-all;
}

.proc-step:not(.proc-step--done):not(.proc-step--active) .proc-name {
  color: var(--text-light);
}

.proc-desc {
  font-size: .75rem;
  color: var(--text-faint);
  line-height: 1.4;
  word-break: keep-all;
}

.proc-connector {
  flex: 0 0 auto;
  width: 32px;
  height: 2px;
  background: var(--border);
  margin-top: 19px;
  align-self: flex-start;
}

.proc-connector--done { background: var(--primary); }

.proc-note {
  margin-top: 24px;
  font-size: .8125rem;
  color: var(--text-faint);
  text-align: center;
  padding: 10px 20px;
  background: var(--bg);
  border-radius: var(--radius);
}

/* ── Product Preview Panel ───────────────────────────────────── */
.preview-section { background: var(--bg); }

.preview-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.preview-badge {
  font-size: .75rem;
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-bg);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(229,160,0,.2);
}

.preview-panel {
  display: grid;
  grid-template-columns: 1fr 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
}

.preview-main {
  padding: 32px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.preview-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.preview-txid {
  font-size: .75rem;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.preview-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
}

.preview-pipeline {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.preview-pipeline::-webkit-scrollbar { display: none; }

.preview-pipe-step {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.preview-pipe-step span {
  font-size: .6875rem;
  color: var(--text-faint);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
}

.preview-pipe-step.done span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.preview-pipe-step.active span {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.preview-pipe-conn {
  width: 20px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.preview-pipe-conn.done { background: var(--primary); }
.preview-pipe-conn.active { background: var(--border-dark); }

.preview-parties {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
}

.preview-party {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.preview-party-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
}

.preview-party-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
  word-break: keep-all;
}

.preview-party-div {
  font-size: 1.125rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

.preview-sidebar {
  padding: 32px 24px;
  background: var(--bg);
}

.preview-amount-block { margin-bottom: 20px; }

.preview-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-medium);
  gap: 8px;
}

.preview-amount-row:last-child { border-bottom: none; }

.preview-amount-fee { color: var(--text-faint); font-style: italic; }

.preview-amount-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  padding-top: 14px;
}

.preview-inert-note {
  font-size: .75rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 8px;
}

/* ── Operational Strip ───────────────────────────────────────── */
.ops-strip {
  background: var(--primary);
  padding: 0;
}

.ops-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ops-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,.1);
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}

.ops-item:last-child { border-right: none; }
.ops-item:hover { background: rgba(255,255,255,.07); }

.ops-item-label {
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.ops-item-desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.52);
  line-height: 1.4;
}

/* ── Workflow Split ──────────────────────────────────────────── */
.workflow-section { background: var(--surface); }

.workflow-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 8px;
}

.workflow-divider {
  background: var(--border);
  align-self: stretch;
}

.workflow-role-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.workflow-col--seller .workflow-role-tag {
  background: var(--info-bg);
  color: var(--info);
}

.workflow-col--buyer .workflow-role-tag {
  background: var(--success-bg);
  color: var(--success);
}

.workflow-col h3 { margin-bottom: 20px; }

.workflow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.workflow-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  color: var(--text-medium);
  line-height: 1.5;
  word-break: keep-all;
}

.wf-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  font-size: .6875rem;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.workflow-note {
  font-size: .8125rem;
  color: var(--text-faint);
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--border-dark);
  line-height: 1.6;
}

/* ── CTA Bar ─────────────────────────────────────────────────── */
.cta-section { background: var(--bg); }

.cta-bar {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-bar h2 { color: #fff; margin-bottom: 8px; }
.cta-bar p { color: rgba(255,255,255,.7); font-size: 1rem; }

.cta-bar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cta-bar .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.cta-bar .btn-primary:hover { background: rgba(255,255,255,.9); }

.cta-bar .btn-outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

.cta-bar .btn-outline:hover { background: rgba(255,255,255,.08); }

/* ── Hero Policy Link ────────────────────────────────────────── */
.hero-policy-link {
  display: inline-block;
  margin-top: 14px;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.hero-policy-link:hover { color: rgba(255,255,255,.9); }

/* ── Hero Dashboard Panel ────────────────────────────────────── */
.hero-db {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
}

.hero-db-head {
  background: #0F1E38;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-db-title {
  font-size: .6875rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-db-badge {
  font-size: .625rem;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.07);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.1);
}

.hero-db-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-db-stat {
  padding: 12px 14px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.hero-db-stat:last-child { border-right: none; }

.hero-db-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 3px;
  letter-spacing: -.02em;
}

.hero-db-stat-label {
  font-size: .625rem;
  color: var(--text-faint);
  line-height: 1.3;
}

.hero-db-rows { padding: 4px 0; }

.hero-db-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.hero-db-row:last-child { border-bottom: none; }

.hero-db-row-left { min-width: 0; flex: 1; }

.hero-db-row-id {
  font-size: .625rem;
  color: var(--text-faint);
  margin-bottom: 1px;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero-db-row-name {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-db-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.hero-db-badge-inline {
  font-size: .625rem !important;
  padding: 2px 7px !important;
}

.hero-db-row-amt {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.hero-db-footer {
  padding: 7px 16px;
  font-size: .625rem;
  color: var(--text-faint);
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ── Feature Section ─────────────────────────────────────────── */
.feature-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.feature-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 20px 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover { background: var(--bg); }

.feature-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-faint);
  text-align: center;
  letter-spacing: -.04em;
  line-height: 1;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.feature-link {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 36px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}
.feature-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Transaction Showcase ────────────────────────────────────── */
.tx-showcase-section { background: var(--bg); }

.tx-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.showcase-badge {
  font-size: .75rem;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 99px;
  flex-shrink: 0;
  white-space: nowrap;
}

.tx-showcase-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tx-showcase-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface);
}
.tx-showcase-tabs::-webkit-scrollbar { display: none; }

.tx-stab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: default;
  white-space: nowrap;
}

.tx-stab--active {
  color: var(--primary);
  font-weight: 700;
  border-bottom-color: var(--primary);
}

.tx-stab-count {
  font-size: .6875rem;
  background: var(--primary-faint);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 700;
}

.tx-stab--active .tx-stab-count {
  background: var(--primary);
  color: #fff;
}

.tx-showcase-table {
  width: 100%;
  border-collapse: collapse;
}

.tx-showcase-table th {
  text-align: left;
  padding: 10px 20px;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tx-showcase-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.tx-showcase-table tbody tr:last-child td { border-bottom: none; }
.tx-showcase-table tbody tr:hover { background: var(--bg); }

.tx-sc-id {
  font-size: .75rem;
  color: var(--text-faint);
  font-weight: 600;
  white-space: nowrap;
}

.tx-sc-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.tx-sc-date {
  font-size: .75rem;
  color: var(--text-faint);
}

.tx-sc-party {
  font-size: .875rem;
  color: var(--text-medium);
  white-space: nowrap;
}

.tx-sc-role {
  font-size: .75rem;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tx-sc-amt {
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
  white-space: nowrap;
  font-size: .9375rem;
}

.tx-sc-cards { display: none; }

.tx-sc-card {
  display: block;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.tx-sc-card:last-child { border-bottom: none; }
.tx-sc-card:hover { background: var(--bg); }

.tx-sc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.tx-sc-card-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: var(--text-light);
}

.tx-sc-card-bot strong {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-dark);
}

.tx-showcase-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
}

/* ── Dual View Section ───────────────────────────────────────── */
.dualview-section { background: var(--surface); }

.dualview-intro {
  text-align: center;
  margin-bottom: 40px;
}

.dualview {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dualview-col {
  padding: 28px;
}

.dualview-col--seller { background: var(--surface); }

.dualview-col--buyer {
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.dualview-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 20px 8px;
  gap: 8px;
  align-self: stretch;
}

.dualview-center-icon {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}

.dualview-center-text {
  font-size: .625rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
  word-break: keep-all;
}

.dualview-role-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.dualview-role-tag--seller {
  background: var(--info-bg);
  color: var(--info);
}

.dualview-role-tag--buyer {
  background: var(--success-bg);
  color: var(--success);
}

.dualview-tx-id {
  font-size: .6875rem;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.dualview-tx-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.4;
  word-break: keep-all;
}

.dualview-rows {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.dualview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  font-size: .875rem;
}
.dualview-row:last-child { border-bottom: none; }

.dualview-label { color: var(--text-light); flex-shrink: 0; }

.dualview-val {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

.dualview-next {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  border-left: 3px solid var(--border-dark);
}

.dualview-next-label {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.dualview-next-val {
  font-size: .875rem;
  color: var(--text-medium);
  line-height: 1.4;
}

.dualview-note {
  text-align: center;
  font-size: .8125rem;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ── 768px tablet adjustments ────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-panel { display: none; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  /* Feature list at 768px: hide link, show below */
  .feature-item { grid-template-columns: 52px 1fr; }
  .feature-link { display: none; }
  /* Dual view at 768px: stack */
  .dualview { grid-template-columns: 1fr; }
  .dualview-center {
    flex-direction: row;
    gap: 12px;
    padding: 14px 20px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    justify-content: center;
  }
  .dualview-col--buyer { border-left: none; border-top: 1px solid var(--border); }
  /* Showcase table scrollable at tablet */
  .tx-showcase-wrap { overflow-x: auto; }
  .footer-ops { grid-template-columns: repeat(3, 1fr); }
  .footer-ops-item:nth-child(3) { border-right: none; }
  .footer-ops-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-ops-item:nth-child(4),
  .footer-ops-item:nth-child(5) { border-bottom: none; }
  .footer-ops-item:nth-child(5) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
}

/* ── 430px Mobile ────────────────────────────────────────────── */
@media (max-width: 430px) {
  html { font-size: 15px; }

  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-lg { padding: 64px 0; }

  /* Header */
  .site-nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero h1 { font-size: 1.75rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-panel { display: none; }

  /* Flow */
  .flow-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }
  .flow-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }
  .flow-step:last-child { border-bottom: none; }
  .flow-step-num { margin: 0; flex-shrink: 0; }
  .flow-arrow { display: none; }

  /* Value */
  .value-grid { grid-template-columns: 1fr; }
  .value-card { padding: 28px 20px; }

  /* Trust strip */
  .trust-strip-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .trust-item {
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .trust-item:nth-child(even) { border-right: none; }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4) { border-bottom: none; }

  /* Footer */
  .footer-ops { grid-template-columns: 1fr 1fr; }
  .footer-ops-item { border-bottom: 1px solid rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.08); }
  .footer-ops-item:nth-child(even) { border-right: none; }
  .footer-ops-item:nth-child(4),
  .footer-ops-item:nth-child(5) { border-bottom: none; }
  .footer-ops-item:nth-child(5) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-trust { flex-wrap: wrap; }

  /* Status tabs — 44px touch target */
  .status-tab { min-height: 44px; padding: 10px 12px; font-size: .8125rem; }

  /* Table → Cards */
  .tx-table-wrap { display: none; }
  .tx-cards { display: block; }

  /* Transaction filters — 44px touch targets */
  .tx-header { flex-direction: column; align-items: stretch; }
  .tx-filters { flex-direction: column; }
  .filter-input { min-width: unset; height: 44px; }
  .filter-select { height: 44px; }

  /* btn-sm touch target on mobile */
  .btn-sm { min-height: 44px; }

  /* Detail layout */
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-grid { grid-template-columns: 1fr; }

  /* Pipeline — vertical layout, no horizontal scroll */
  .tx-pipeline { padding: 20px 16px; overflow-x: visible; }
  .pipeline {
    flex-direction: column;
    gap: 0;
    min-width: unset;
  }
  .pipeline-step {
    flex: none;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
  }
  .pipeline-step::before {
    top: 36px;
    left: 17px;
    width: 2px;
    height: calc(100% - 18px);
  }
  .pipeline-step:last-child { padding-bottom: 0; }
  .pipeline-dot { margin-bottom: 0; flex-shrink: 0; }
  .pipeline-label { font-size: .875rem; }
  .pipeline-date { font-size: .75rem; margin-top: 2px; }

  /* Login */
  .login-card {
    padding: 32px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  .login-page { padding: 0; align-items: flex-start; }

  /* Policy */
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }

  /* Feature section */
  .feature-section { padding: 32px 0; }
  .feature-item {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    padding: 18px 16px;
  }
  .feature-link {
    grid-column: 2;
    align-self: start;
    min-height: 44px;
    width: fit-content;
  }
  .feature-num { font-size: 1.125rem; }

  /* Transaction showcase */
  .tx-showcase-table { display: none; }
  .tx-sc-cards { display: block; }
  .tx-showcase-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tx-sc-card { min-height: 44px; }

  /* Dual view */
  .dualview {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .dualview-center {
    flex-direction: row;
    gap: 12px;
    padding: 14px 20px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    justify-content: center;
  }
  .dualview-col--buyer { border-left: none; border-top: 1px solid var(--border); }
  .dualview-col { padding: 20px 16px; }

  /* Process Rail — vertical stack */
  .proc-rail { flex-direction: column; gap: 0; }
  .proc-connector {
    width: 2px;
    height: 24px;
    margin-top: 0;
    margin-left: 19px;
    align-self: auto;
  }
  .proc-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding-bottom: 4px;
  }
  .proc-dot { margin-bottom: 0; }
  .proc-body { padding-bottom: 8px; }

  /* Preview panel — stack */
  .preview-panel { grid-template-columns: 1fr; }
  .preview-main {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }
  .preview-sidebar { padding: 20px; }
  .preview-label-row { gap: 8px; }

  /* Ops strip — 2 columns */
  .ops-strip-inner { grid-template-columns: 1fr 1fr; }
  .ops-item {
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .ops-item:nth-child(even) { border-right: none; }
  .ops-item:nth-child(3),
  .ops-item:nth-child(4) { border-bottom: none; }

  /* Workflow — stack */
  .workflow-split { grid-template-columns: 1fr; gap: 28px; }
  .workflow-divider { display: none; }

  /* CTA bar — stack */
  .cta-bar { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .cta-bar-actions { width: 100%; flex-direction: column; }
  .cta-bar-actions .btn { width: 100%; }
}

/* ============================================================
   Guide / Support Pages
   ============================================================ */
.info-page { background: #fff; }

.info-eyebrow {
  color: #1761b0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.info-hero,
.support-hero {
  padding: 76px 0;
  border-bottom: 1px solid #e3eaf2;
  background: #f6f9fc;
}

.info-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: center;
}

.info-hero h1,
.support-hero h1,
.contact-copy h1 {
  margin: 11px 0 17px;
  color: #0d294e;
  font-size: 2.35rem;
  letter-spacing: -.045em;
  line-height: 1.22;
}

.info-hero p:not(.info-eyebrow),
.support-hero p:not(.info-eyebrow),
.contact-copy p {
  max-width: 600px;
  color: #64758a;
  font-size: .97rem;
  line-height: 1.78;
  word-break: keep-all;
}

.info-hero .btn { margin-top: 26px; }

.guide-summary {
  padding: 20px;
  border: 1px solid #dae5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24,61,99,.06);
}

.guide-summary > small {
  color: #8595a6;
  font-size: .68rem;
  font-weight: 700;
}

.guide-summary ol { margin-top: 10px; }

.guide-summary li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e7edf3;
}

.guide-summary li > span {
  color: #4381bb;
  font-size: .68rem;
  font-weight: 800;
}

.guide-summary strong,
.guide-summary small { display: block; }
.guide-summary strong { color: #284563; font-size: .83rem; }
.guide-summary small { margin-top: 2px; color: #8996a4; font-size: .68rem; }

.guide-steps,
.support-docs,
.contact-help { padding: 82px 0; }

.info-section-head { margin-bottom: 27px; }
.info-section-head h2 {
  margin-top: 8px;
  color: #15345a;
  font-size: 1.65rem;
  letter-spacing: -.035em;
}

.guide-step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #dce5ed;
  border-bottom: 1px solid #dce5ed;
}

.guide-step-list li {
  min-height: 220px;
  padding: 22px 19px;
  border-left: 1px solid #e3eaf1;
}

.guide-step-list li:last-child { border-right: 1px solid #e3eaf1; }
.guide-step-list li > span { color: #4280ba; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.guide-step-list small { display: block; margin-top: 24px; color: #7b90a5; font-size: .68rem; font-weight: 700; }
.guide-step-list h3 { margin-top: 7px; color: #244361; font-size: .95rem; }
.guide-step-list p { margin-top: 9px; color: #7b8998; font-size: .78rem; line-height: 1.7; word-break: keep-all; }

.info-note { padding: 48px 0; border-top: 1px solid #e5ebf1; background: #f7f9fc; }

.info-note-inner,
.support-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.info-note h2,
.support-contact h2 { margin: 8px 0 6px; color: #17375c; font-size: 1.35rem; letter-spacing: -.03em; }
.info-note p:not(.info-eyebrow),
.support-contact p:not(.info-eyebrow) { color: #748496; font-size: .86rem; }

.support-hero { padding-bottom: 69px; }

.support-doc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #d7e1ea;
}

.support-doc-list a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 13px;
  min-height: 119px;
  padding: 23px 18px;
  border-right: 1px solid #e1e8ef;
  border-bottom: 1px solid #e1e8ef;
  transition: background var(--transition);
}

.support-doc-list a:nth-child(odd) { border-left: 1px solid #e1e8ef; }
.support-doc-list a:hover { background: #f7f9fc; }
.support-doc-list span { color: #4381bb; font-size: .68rem; font-weight: 800; }
.support-doc-list h3 { color: #264562; font-size: .93rem; }
.support-doc-list p { margin-top: 6px; color: #7c8b9a; font-size: .76rem; line-height: 1.6; }
.support-doc-list b { color: #1761b0; }

.support-contact { padding: 50px 0; border-top: 1px solid #e2e9f0; background: #f6f9fc; }
.support-contact-actions { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.support-mail { color: #1761b0; font-size: .84rem; font-weight: 700; }

.contact-page { padding: 82px 0; background: #f6f9fc; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 68px;
  align-items: center;
}

.contact-copy .btn { margin-top: 27px; }

.contact-panel {
  padding: 25px;
  border: 1px solid #dce5ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24,61,99,.05);
}

.contact-panel > small { display: block; color: #8a98a6; font-size: .7rem; }
.contact-panel > a { display: block; margin-top: 7px; color: #1761b0; font-size: 1.05rem; font-weight: 800; }
.contact-panel dl { margin-top: 20px; border-top: 1px solid #e4eaf0; }
.contact-panel dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8edf2; font-size: .75rem; }
.contact-panel dt { color: #8896a4; }
.contact-panel dd { color: #435972; font-weight: 700; }

.contact-help-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #dce5ed;
}

.contact-help-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  min-height: 102px;
  padding: 20px 17px;
  border-right: 1px solid #e3eaf1;
  border-bottom: 1px solid #e3eaf1;
}

.contact-help-links a:first-child { border-left: 1px solid #e3eaf1; }
.contact-help-links strong,
.contact-help-links span { display: block; }
.contact-help-links strong { color: #294765; font-size: .86rem; }
.contact-help-links span { color: #8492a0; font-size: .72rem; }
.contact-help-links b { color: #1761b0; }

@media (max-width: 768px) {
  .info-hero-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .guide-step-list { grid-template-columns: 1fr 1fr; }
  .guide-step-list li { min-height: 185px; border-bottom: 1px solid #e3eaf1; }
  .guide-step-list li:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 430px) {
  .info-hero,
  .support-hero,
  .contact-page { padding: 52px 0; }
  .info-hero h1,
  .support-hero h1,
  .contact-copy h1 { font-size: 1.85rem; }
  .guide-steps,
  .support-docs,
  .contact-help { padding: 58px 0; }
  .guide-step-list,
  .support-doc-list,
  .contact-help-links { grid-template-columns: 1fr; }
  .guide-step-list li { min-height: 0; border-right: 1px solid #e3eaf1; }
  .guide-step-list li:nth-last-child(2) { border-bottom: 1px solid #e3eaf1; }
  .support-doc-list a { min-height: 104px; border-left: 1px solid #e1e8ef; }
  .info-note-inner,
  .support-contact-inner { align-items: stretch; flex-direction: column; }
  .info-note .btn { width: 100%; }
  .support-contact-actions { align-items: stretch; flex-direction: column; }
  .support-contact-actions .btn { width: 100%; }
  .contact-copy .btn { width: 100%; }
  .contact-help-links a { border-left: 1px solid #e3eaf1; }
}

/* ============================================================
   Transaction MVP Forms / DB Views
   ============================================================ */
.page-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-header-desc {
  margin-top: 5px;
  color: var(--text-light);
  font-size: .92rem;
}

.tx-create-container,
.tx-list-container,
.detail-page-container { padding-top: 30px; }

.form-alert {
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .88rem;
}

.form-alert-error {
  border-color: rgba(220,53,69,.25);
  background: var(--danger-bg);
  color: #a5222f;
}

.tx-create-form {
  display: flex;
  max-width: 820px;
  margin: 0 auto;
  flex-direction: column;
  gap: 18px;
}

.tx-form-section { padding: 25px; }

.tx-form-heading {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.tx-form-heading p {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
}

.tx-form-heading span {
  display: block;
  margin-top: 3px;
  color: var(--text-light);
  font-size: .78rem;
}

.tx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field-full { grid-column: 1 / -1; }

.form-field > span {
  color: var(--text-medium);
  font-size: .82rem;
  font-weight: 700;
}

.form-field b { color: var(--danger); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-dark);
  font: inherit;
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,43,75,.08);
  outline: 0;
}

.form-field small {
  color: var(--text-faint);
  font-size: .72rem;
  text-align: right;
}

.tx-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tx-search-form {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 22px 0 17px;
}

.tx-reset-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-light);
  font-size: .78rem;
  font-weight: 700;
}

.tx-list-card { overflow: hidden; padding: 0; }
.tx-role { color: var(--text-light); font-size: .82rem; }
.tx-card-payment { margin-top: 10px; color: var(--text-light); font-size: .75rem; }

.empty-state h3 { margin-bottom: 7px; }
.empty-state .btn { margin-top: 18px; }

.detail-status-badge { padding: 7px 16px; font-size: .88rem; }
.btn-tx-delete {
  padding: 7px 16px;
  font-size: .88rem;
  font-weight: 700;
  color: #c0392b;
  background: #fff;
  border: 1px solid #e8b4b0;
  border-radius: 8px;
  cursor: pointer;
  opacity: 1;
}
.btn-tx-delete:disabled { cursor: not-allowed; opacity: 0.55; }
.detail-section-card { margin-bottom: 16px; }

.detail-value-text {
  max-width: 520px;
  line-height: 1.7;
  white-space: normal;
}

.guide-card-text {
  margin-bottom: 14px;
  color: var(--text-medium);
  font-size: .86rem;
  line-height: 1.7;
}

.detail-sidebar-title {
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-sidebar-card { margin-bottom: 14px; }
.detail-sidebar-card h4 { margin-bottom: 11px; font-size: .88rem; }
.detail-sidebar-card p { margin: 11px 0 14px; color: var(--text-light); font-size: .8rem; line-height: 1.65; }

.linkpay-url-box { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.linkpay-url-input { width: 100%; padding: 8px 10px; font-size: .78rem; color: var(--text-light); background: var(--bg-subtle, #f8f9fa); border: 1px solid var(--border, #e2e8f0); border-radius: 6px; cursor: text; user-select: all; }
.linkpay-feedback { display: none; margin: 6px 0 0; font-size: .8rem; line-height: 1.5; }
.linkpay-feedback--success { color: var(--color-success, #22c55e); }
.linkpay-feedback--error { color: var(--color-danger, #ef4444); }
.terms-check { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; color: var(--text-light); font-size: .8rem; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.terms-check input { flex: 0 0 auto; margin-top: 3px; }
.requested-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.requested-code-form { display: grid; gap: 12px; }
.requested-code-form label { display: grid; gap: 7px; color: var(--text-light); font-size: .84rem; }
.requested-code-form input { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; }
.requested-help { margin: 12px 0 0; color: var(--text-light); font-size: .82rem; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
.requested-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.requested-summary div { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle, #f8f9fa); min-width: 0; }
.requested-summary span { display: block; margin-bottom: 5px; color: var(--text-light); font-size: .76rem; }
.requested-summary strong { display: block; color: var(--text-main); font-size: .88rem; line-height: 1.45; word-break: keep-all; overflow-wrap: break-word; }
.requested-summary-wide { grid-column: 1 / -1; }

@media (max-width: 430px) {
  .page-header-actions { align-items: stretch; flex-direction: column; }
  .page-header-actions .btn { width: 100%; }
  .requested-layout { grid-template-columns: 1fr; }
  .requested-summary { grid-template-columns: 1fr; }
  .tx-create-container,
  .tx-list-container,
  .detail-page-container { padding-top: 20px; }
  .tx-form-section { padding: 18px 15px; }
  .tx-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-field-full { grid-column: auto; }
  .tx-form-actions { flex-direction: column-reverse; }
  .tx-form-actions .btn { width: 100%; }
  .tx-search-form { align-items: stretch; flex-direction: column; }
  .tx-search-form .filter-input,
  .tx-search-form .btn { width: 100%; }
  .detail-value-text { max-width: 64%; }
}

/* ============================================================
   Homepage Product Landing
   ============================================================ */
.hp {
  background: #fff;
  overflow: hidden;
}

.hp h1,
.hp h2,
.hp h3 { letter-spacing: -.045em; }

.hp p { word-break: keep-all; }

.hp-kicker,
.hp-eyebrow {
  color: #1761b0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hp-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.hp-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8ad8;
  box-shadow: 0 0 0 5px rgba(47,138,216,.11);
}

.hp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #12345f;
  font-size: .88rem;
  font-weight: 700;
  transition: color var(--transition);
}

.hp-text-link:hover { color: #1761b0; }
.hp-text-link span { font-size: 1.05rem; }

.hp-section-head h2 {
  margin: 9px 0 13px;
  color: #0d2547;
  font-size: 2rem;
  line-height: 1.2;
}

.hp-section-head p:not(.hp-eyebrow) {
  max-width: 610px;
  color: #66768b;
  font-size: .98rem;
  line-height: 1.75;
}

.hp-section-head--center {
  margin: 0 auto 36px;
  text-align: center;
}

.hp-section-head--center p:not(.hp-eyebrow) { margin: 0 auto; }

.hp-section-head--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

/* Hero */
.hp-hero {
  position: relative;
  padding: 82px 0 72px;
  background: linear-gradient(135deg, #f7fbff 0%, #fff 58%, #f2f7fc 100%);
  border-bottom: 1px solid #e5edf5;
}

.hp-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(135deg, rgba(28,104,177,.045), rgba(28,104,177,0));
  content: '';
}

.hp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr);
  gap: 45px;
  align-items: center;
}

.hp-hero h1 {
  color: #081f40;
  font-size: 3.55rem;
  line-height: 1.08;
}

.hp-hero h1 em {
  color: #1761b0;
  font-style: normal;
}

.hp-hero-desc {
  max-width: 540px;
  margin-top: 22px;
  color: #53667e;
  font-size: 1.02rem;
  line-height: 1.82;
}

.hp-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.hp-hero-notes {
  display: flex;
  gap: 0;
  margin-top: 52px;
}

.hp-hero-notes div {
  padding: 0 22px;
  border-left: 1px solid #d9e4ef;
}

.hp-hero-notes div:first-child { padding-left: 0; border-left: 0; }

.hp-hero-notes dt {
  margin-bottom: 4px;
  color: #6a91bb;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.hp-hero-notes dd {
  color: #5c6d81;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Homepage dashboard mockup */
.hp-app {
  overflow: hidden;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(18,52,95,.12);
}

.hp-app--hero { transform: perspective(1200px) rotateY(-3deg); transform-origin: right center; }

.hp-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 16px;
  background: #0c294e;
  color: rgba(255,255,255,.95);
}

.hp-app-bar strong { font-size: .75rem; letter-spacing: .04em; }

.hp-app-bar span {
  color: rgba(255,255,255,.5);
  font-size: .62rem;
}

.hp-app-body {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 142px;
  min-height: 348px;
}

.hp-app-nav {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  padding-top: 15px;
  background: #102d53;
}

.hp-app-nav b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: #12345f;
  font-size: .57rem;
}

.hp-app-nav i {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 5px;
}

.hp-app-nav i.is-active { background: #317fc4; border-color: #65a6dc; }

.hp-app-main { min-width: 0; padding: 21px 17px; }

.hp-app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.hp-app-heading small,
.hp-app-side small {
  display: block;
  color: #8190a2;
  font-size: .62rem;
}

.hp-app-heading h3 {
  margin-top: 3px;
  color: #0d2547;
  font-size: 1.02rem;
}

.hp-screen-chip {
  padding: 5px 9px;
  border: 1px solid #dbe4ed;
  border-radius: 4px;
  color: #60728a;
  font-size: .58rem;
  font-weight: 700;
}

.hp-app-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 15px;
}

.hp-app-summary div {
  padding: 10px;
  border: 1px solid #e4ebf1;
  border-radius: 6px;
}

.hp-app-summary span,
.hp-app-summary strong { display: block; }
.hp-app-summary span { color: #7c8c9d; font-size: .6rem; }
.hp-app-summary strong { margin-top: 5px; color: #12345f; font-size: 1rem; }

.hp-app-table { border: 1px solid #e4ebf1; border-radius: 6px; }

.hp-app-tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 89px 57px;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 7px 9px;
  border-top: 1px solid #e7edf3;
}

.hp-app-tr:first-child { border-top: 0; }

.hp-app-th {
  min-height: 28px;
  background: #f7f9fc;
  color: #8b98a7;
  font-size: .57rem;
  font-weight: 800;
}

.hp-app-tr b,
.hp-app-tr small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-app-tr b { color: #233b5b; font-size: .67rem; }
.hp-app-tr small { margin-top: 2px; color: #8b98a7; font-size: .57rem; }
.hp-app-tr > strong { color: #223b5b; font-size: .65rem; text-align: right; }

.hp-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: .67rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.hp-status--active { background: #e9f2ff; color: #1761b0; }
.hp-status--review { background: #e8f7ef; color: #218757; }
.hp-status--pending { background: #fff4dd; color: #ad7000; }
.hp-status--done { background: #eef1f5; color: #64758b; }

.hp-app-side {
  padding: 22px 13px;
  border-left: 1px solid #e2eaf1;
  background: #f8fafc;
}

.hp-app-side > strong {
  display: block;
  margin: 5px 0 20px;
  color: #12345f;
  font-size: .75rem;
}

.hp-side-row {
  padding: 10px 0;
  border-top: 1px solid #e0e7ef;
}

.hp-side-row span,
.hp-side-row b { display: block; }
.hp-side-row span { color: #8a98a7; font-size: .57rem; }
.hp-side-row b { margin-top: 3px; color: #41556f; font-size: .65rem; }

.hp-app-side a {
  display: block;
  margin-top: 16px;
  color: #1761b0;
  font-size: .64rem;
  font-weight: 800;
}

/* Shared transaction perspective */
.hp-perspective { padding: 104px 0 94px; }

.hp-dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  max-width: 1020px;
  margin: 0 auto;
}

.hp-deal {
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(24,61,99,.07);
}

.hp-deal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #102f59;
  color: #fff;
}

.hp-deal--buyer header { background: #174c78; }
.hp-deal header span { color: rgba(255,255,255,.64); font-size: .73rem; }
.hp-deal header strong { font-size: .82rem; }

.hp-deal-id {
  padding: 20px 22px 0;
  color: #8291a1;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.hp-deal h3 {
  padding: 5px 22px 14px;
  color: #132e52;
  font-size: 1.05rem;
}

.hp-deal dl { border-top: 1px solid #e5ebf1; }

.hp-deal dl div {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid #e8eef3;
  font-size: .79rem;
}

.hp-deal dt { color: #788797; }
.hp-deal dd { color: #203b5d; font-weight: 700; text-align: right; }

.hp-deal > p {
  margin: 14px 22px 18px;
  color: #748498;
  font-size: .74rem;
}

.hp-dual-link { position: relative; display: grid; place-items: center; z-index: 1; }

.hp-dual-link span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #1761b0;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 0 0 7px #eef5fb;
}

.hp-dual-link i {
  position: absolute;
  width: 110px;
  height: 1px;
  background: #9dbbd6;
  z-index: -1;
}

.hp-dual-link small {
  position: absolute;
  top: 57px;
  color: #7890a6;
  font-size: .63rem;
  font-weight: 700;
  white-space: nowrap;
}

.hp-example-note {
  margin-top: 24px;
  color: #9aa6b2;
  font-size: .72rem;
  text-align: center;
}

/* Status flow */
.hp-flow {
  padding: 94px 0;
  background: #f4f8fc;
  border-top: 1px solid #e2eaf2;
  border-bottom: 1px solid #e2eaf2;
}

.hp-flow-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.hp-flow .hp-text-link { margin-top: 21px; }

.hp-detail-preview {
  overflow: hidden;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24,61,99,.06);
}

.hp-detail-preview > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 24px;
  border-bottom: 1px solid #e5ebf1;
}

.hp-detail-preview small { color: #8291a0; font-size: .68rem; }
.hp-detail-preview h3 { margin-top: 3px; color: #12345f; font-size: 1.06rem; }

.hp-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 214px;
}

.hp-status-rail { padding: 24px 27px; }

.hp-status-rail li {
  position: relative;
  display: flex;
  gap: 15px;
  min-height: 70px;
}

.hp-status-rail li:not(:last-child)::before {
  position: absolute;
  top: 25px;
  left: 12px;
  width: 1px;
  height: calc(100% - 3px);
  background: #d9e2eb;
  content: '';
}

.hp-status-rail li.is-done:not(:last-child)::before { background: #5b8ec4; }

.hp-status-rail i {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid #ccd8e4;
  border-radius: 50%;
  background: #fff;
  color: #8d9cac;
  font-size: .7rem;
  font-style: normal;
  font-weight: 800;
  z-index: 1;
}

.hp-status-rail .is-done i { background: #174f87; border-color: #174f87; color: #fff; }
.hp-status-rail .is-current i { border: 2px solid #1761b0; color: #1761b0; box-shadow: 0 0 0 5px #eaf3fb; }
.hp-status-rail strong,
.hp-status-rail span { display: block; }
.hp-status-rail strong { color: #25405f; font-size: .84rem; }
.hp-status-rail span { margin-top: 3px; color: #8794a2; font-size: .72rem; }

.hp-detail-aside {
  padding: 24px 19px;
  border-left: 1px solid #e3eaf1;
  background: #f8fafc;
}

.hp-detail-aside strong {
  display: block;
  margin: 7px 0 9px;
  color: #15365f;
  font-size: .88rem;
  line-height: 1.45;
}

.hp-detail-aside p { color: #7c8c9c; font-size: .73rem; line-height: 1.65; }

.hp-detail-aside a {
  display: inline-flex;
  gap: 5px;
  margin-top: 38px;
  color: #1761b0;
  font-size: .7rem;
  font-weight: 800;
}

/* Transaction workspace */
.hp-workspace { padding: 102px 0; background: #fff; }

.hp-workspace-panel {
  overflow: hidden;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(24,61,99,.06);
}

.hp-workspace-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 59px;
  padding: 0 19px;
  border-bottom: 1px solid #e1e9f0;
}

.hp-workspace-panel nav { display: flex; gap: 7px; height: 59px; }

.hp-workspace-panel nav b,
.hp-workspace-panel nav > span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #7a8897;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

.hp-workspace-panel nav b {
  border-bottom: 2px solid #1761b0;
  color: #16436f;
}

.hp-workspace-panel nav span span,
.hp-workspace-panel nav i,
.hp-workspace-panel nav b span {
  padding: 1px 6px;
  border-radius: 11px;
  background: #eef3f8;
  color: #637a92;
  font-size: .62rem;
  font-style: normal;
}

.hp-workspace-panel > header small { color: #9aa6b2; font-size: .68rem; }

.hp-workspace table { width: 100%; border-collapse: collapse; }

.hp-workspace th {
  padding: 10px 16px;
  border-bottom: 1px solid #e3eaf1;
  background: #f7f9fc;
  color: #8493a3;
  font-size: .67rem;
  letter-spacing: .06em;
  text-align: left;
}

.hp-workspace td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9eef3;
  color: #607188;
  font-size: .76rem;
  white-space: nowrap;
}

.hp-workspace tr:last-child td { border-bottom: 0; }
.hp-workspace td:first-child { color: #8593a1; font-size: .69rem; font-weight: 700; }
.hp-workspace td:nth-child(5) { color: #233d5d; font-size: .81rem; font-weight: 800; }
.hp-workspace td strong,
.hp-workspace td small { display: block; }
.hp-workspace td strong { color: #233d5d; font-size: .8rem; }
.hp-workspace td small { margin-top: 3px; color: #9aa6b1; font-size: .66rem; }
.hp-workspace-cards { display: none; }

/* Operation guide and final CTA */
.hp-guide { padding: 92px 0; background: #f6f9fc; border-top: 1px solid #e3eaf2; }

.hp-guide-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.hp-guide-list { border-top: 1px solid #cfdbe6; }

.hp-guide-list a {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 69px;
  padding: 12px 6px;
  border-bottom: 1px solid #dce5ed;
  transition: padding var(--transition), background var(--transition);
}

.hp-guide-list a:hover { padding-right: 13px; padding-left: 13px; background: #fff; }
.hp-guide-list span { color: #8aa1b8; font-size: .68rem; font-weight: 800; }
.hp-guide-list strong,
.hp-guide-list small { display: block; }
.hp-guide-list strong { color: #26415f; font-size: .87rem; }
.hp-guide-list small { margin-top: 3px; color: #8190a0; font-size: .72rem; }
.hp-guide-list b { color: #1761b0; font-size: 1rem; }

.hp-final { padding: 66px 0; background: #0c294e; }

.hp-final-inner {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 70px;
  align-items: center;
}

.hp-final .hp-eyebrow { color: #70a3d1; }
.hp-final h2 { margin-top: 10px; color: #fff; font-size: 2.05rem; line-height: 1.25; }
.hp-final p:not(.hp-eyebrow) { margin-bottom: 18px; color: rgba(255,255,255,.63); font-size: .88rem; line-height: 1.7; }
.hp-final .btn-primary { background: #fff; border-color: #fff; color: #12345f; }

@media (max-width: 980px) {
  .hp-hero-grid { grid-template-columns: 1fr; }
  .hp-hero-copy { max-width: 700px; }
  .hp-app--hero { transform: none; }
  .hp-flow-grid { grid-template-columns: 1fr; gap: 28px; }
  .hp-flow .hp-section-head h2 br { display: none; }
  .hp-guide-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 42px; }
  .hp-workspace-panel { overflow-x: auto; }
  .hp-workspace table { min-width: 900px; }
}

@media (max-width: 700px) {
  .hp-hero { padding: 60px 0 54px; }
  .hp-hero h1 { font-size: 2.65rem; }
  .hp-app-body { grid-template-columns: 39px minmax(0, 1fr); min-height: 0; }
  .hp-app-side { display: none; }
  .hp-dual { grid-template-columns: 1fr; gap: 0; }
  .hp-dual-link { height: 66px; }
  .hp-dual-link i { width: 1px; height: 66px; }
  .hp-dual-link small { top: 43px; padding: 2px 8px; background: #fff; }
  .hp-detail-layout { grid-template-columns: 1fr; }
  .hp-detail-aside { border-top: 1px solid #e3eaf1; border-left: 0; }
  .hp-detail-aside a { margin-top: 18px; }
  .hp-section-head--split { align-items: start; flex-direction: column; }
  .hp-workspace table { display: none; }
  .hp-workspace-cards { display: block; }
  .hp-guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .hp-final-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 430px) {
  .hp-section-head h2 { font-size: 1.65rem; }
  .hp-section-head p:not(.hp-eyebrow) { font-size: .9rem; }

  .hp-hero { padding: 47px 0 46px; }
  .hp-hero h1 { font-size: 2.28rem; }
  .hp-hero-desc { margin-top: 18px; font-size: .94rem; line-height: 1.75; }
  .hp-actions { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 24px; }
  .hp-actions .btn { width: 100%; min-height: 48px; }
  .hp-actions .hp-text-link { min-height: 44px; }
  .hp-hero-notes { gap: 0; margin-top: 31px; }
  .hp-hero-notes div { padding: 0 9px; }
  .hp-hero-notes dd { font-size: .66rem; white-space: normal; }

  .hp-app--hero { margin-top: 4px; }
  .hp-app-body { grid-template-columns: 32px minmax(0, 1fr); }
  .hp-app-nav { gap: 14px; padding-top: 11px; }
  .hp-app-nav b { width: 23px; height: 23px; }
  .hp-app-nav i { width: 14px; height: 14px; }
  .hp-app-main { padding: 14px 10px; }
  .hp-app-summary div { padding: 8px; }
  .hp-app-tr { grid-template-columns: minmax(0, 1fr) 72px 49px; gap: 4px; padding: 6px; }
  .hp-app-tr > strong { font-size: .58rem; }
  .hp-app-tr b { font-size: .62rem; }
  .hp-app-th { min-height: 25px; }
  .hp-app .hp-status { padding: 3px 5px; font-size: .55rem; }

  .hp-perspective { padding: 68px 0 62px; }
  .hp-section-head--center { margin-bottom: 25px; text-align: left; }
  .hp-dual-link span { width: 38px; height: 38px; }
  .hp-deal dl div { grid-template-columns: 94px 1fr; padding: 9px 16px; }
  .hp-deal-id { padding: 16px 16px 0; }
  .hp-deal h3 { padding: 5px 16px 12px; }
  .hp-deal > p { margin: 13px 16px 16px; }

  .hp-flow { padding: 62px 0; }
  .hp-detail-preview > header { padding: 16px; }
  .hp-detail-preview h3 { max-width: 185px; font-size: .96rem; }
  .hp-status-rail { padding: 20px 16px; }
  .hp-status-rail li { min-height: 72px; gap: 12px; }
  .hp-status-rail span { max-width: 225px; line-height: 1.55; }
  .hp-detail-aside { padding: 18px 16px; }

  .hp-workspace { padding: 68px 0; }
  .hp-section-head--split { gap: 14px; margin-bottom: 20px; }
  .hp-section-head--split .btn { width: 100%; min-height: 44px; }
  .hp-workspace-panel > header { min-height: 48px; padding: 0 9px; overflow: hidden; }
  .hp-workspace-panel nav { height: 48px; }
  .hp-workspace-panel nav b,
  .hp-workspace-panel nav > span { padding: 0 6px; font-size: .7rem; }
  .hp-workspace-panel nav > span:nth-of-type(2),
  .hp-workspace-panel nav > span:nth-of-type(3),
  .hp-workspace-panel > header small { display: none; }
  .hp-workspace-cards article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 15px 14px;
    border-top: 1px solid #e7edf3;
  }
  .hp-workspace-cards article:first-child { border-top: 0; }
  .hp-workspace-cards strong,
  .hp-workspace-cards small { display: block; }
  .hp-workspace-cards strong { color: #243e5e; font-size: .81rem; }
  .hp-workspace-cards small { margin-top: 4px; color: #8d99a6; font-size: .67rem; }
  .hp-workspace-cards footer {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid #edf1f4;
    color: #7b8997;
    font-size: .69rem;
  }
  .hp-workspace-cards footer b { color: #294362; font-size: .76rem; }

  .hp-guide { padding: 62px 0; }
  .hp-guide-list a { min-height: 65px; }
  .hp-guide-list small { max-width: 240px; line-height: 1.4; }
  .hp-final { padding: 50px 0; }
  .hp-final h2 { font-size: 1.66rem; }
  .hp-final .btn { width: 100%; min-height: 48px; }
}

/* Homepage full-landing composition */
.hp-capabilities {
  border-bottom: 1px solid #e3eaf1;
  background: #fff;
}

.hp-capabilities-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hp-capabilities-inner div {
  min-height: 92px;
  padding: 20px 18px;
  border-left: 1px solid #e5ebf1;
}

.hp-capabilities-inner div:last-child { border-right: 1px solid #e5ebf1; }

.hp-capabilities span {
  display: block;
  margin-bottom: 5px;
  color: #6f9cc6;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.hp-capabilities strong,
.hp-capabilities small { display: block; }

.hp-capabilities strong {
  color: #21405f;
  font-size: .8rem;
}

.hp-capabilities small {
  margin-top: 4px;
  color: #8492a0;
  font-size: .67rem;
  line-height: 1.45;
}

.hp-lifecycle { padding: 88px 0 93px; background: #fff; }

.hp-lifecycle-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1040px;
  margin: 39px auto 0;
}

.hp-lifecycle-rail li {
  position: relative;
  padding: 0 16px;
  text-align: center;
}

.hp-lifecycle-rail li::after {
  position: absolute;
  top: 19px;
  right: -50%;
  width: 100%;
  height: 1px;
  background: #c9d7e5;
  content: '';
}

.hp-lifecycle-rail li:last-child::after { display: none; }

.hp-lifecycle-rail i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 39px;
  height: 39px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid #b8cde0;
  border-radius: 50%;
  background: #fff;
  color: #1761b0;
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 0 0 7px #fff;
}

.hp-lifecycle-rail strong,
.hp-lifecycle-rail span { display: block; }

.hp-lifecycle-rail strong { color: #234363; font-size: .83rem; }

.hp-lifecycle-rail span {
  margin-top: 6px;
  color: #8492a0;
  font-size: .71rem;
  line-height: 1.55;
  word-break: keep-all;
}

.hp-perspective {
  background: #f5f8fc;
  border-top: 1px solid #e4ebf2;
  border-bottom: 1px solid #e4ebf2;
}

.hp-workspace { background: #f6f9fc; }

.hp-workspace-grid {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.hp-workspace-copy .hp-section-head h2 { font-size: 1.8rem; }

.hp-workspace-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 24px;
}

.hp-workspace-points li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #61748a;
  font-size: .77rem;
  line-height: 1.45;
}

.hp-workspace-points span {
  color: #4381bb;
  font-size: .63rem;
  font-weight: 800;
}

.hp-workspace-copy .btn { min-height: 44px; padding: 10px 18px; font-size: .82rem; }

@media (max-width: 980px) {
  .hp-workspace-grid { grid-template-columns: 1fr; gap: 23px; }
  .hp-workspace-copy .hp-section-head h2 br { display: none; }
  .hp-workspace-points { flex-flow: row wrap; gap: 8px 18px; margin: 18px 0 20px; }
}

@media (max-width: 700px) {
  .hp-capabilities-inner { grid-template-columns: 1fr 1fr; }
  .hp-capabilities-inner div:nth-child(odd) { border-left: 0; }
  .hp-capabilities-inner div { border-bottom: 1px solid #e5ebf1; }
  .hp-capabilities-inner div:nth-last-child(-n+2) { border-bottom: 0; }
  .hp-capabilities-inner div:last-child { border-right: 0; }

  .hp-lifecycle { padding: 65px 0 68px; }
  .hp-lifecycle-rail { grid-template-columns: 1fr; max-width: 420px; margin-top: 29px; }
  .hp-lifecycle-rail li { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 3px 13px; min-height: 73px; padding: 0; text-align: left; }
  .hp-lifecycle-rail li::after { top: 37px; left: 19px; width: 1px; height: 36px; }
  .hp-lifecycle-rail i { grid-row: 1 / 3; margin: 0; box-shadow: 0 0 0 5px #fff; }
  .hp-lifecycle-rail strong { padding-top: 4px; }
  .hp-lifecycle-rail span { margin-top: 0; }
}

@media (max-width: 430px) {
  .hp-capabilities-inner div { min-height: 101px; padding: 16px 13px; }
  .hp-capabilities strong { font-size: .75rem; }
  .hp-capabilities small { font-size: .64rem; }

  .hp-lifecycle .hp-section-head--center { text-align: left; }
  .hp-workspace-copy .hp-section-head h2 { font-size: 1.62rem; }
  .hp-workspace-points { flex-direction: column; gap: 8px; }
  .hp-workspace-copy .btn { width: 100%; }

}

/* =========================================================
   BIZPORT One Page Home
   ========================================================= */

.home-onepage {
  min-height: calc(100vh - 1px);
  background:
    radial-gradient(circle at 88% 18%, rgba(43, 116, 255, .12), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  color: #071735;
}

.home-hero {
  min-height: calc(100vh - 260px);
  padding: 62px 0 58px;
  display: flex;
  align-items: center;
}

.home-wrap {
  width: min(1600px, calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(460px, .82fr) minmax(720px, 1.18fr);
  gap: 72px;
  align-items: center;
}

.home-copy {
  min-width: 0;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 34px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1264e8;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-kicker-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: #1264e8;
  font-size: 13px;
}

.home-copy h1 {
  margin: 0;
  color: #061633;
  font-size: clamp(54px, 5.2vw, 92px);
  line-height: 1.15;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.home-copy h1 em {
  color: #1264e8;
  font-style: normal;
}

.home-desc {
  max-width: 660px;
  margin: 34px 0 0;
  color: #34445e;
  font-size: 24px;
  line-height: 1.72;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.home-actions {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 44px;
}

.home-btn {
  min-height: 64px;
  padding: 0 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #1167f2 0%, #0456d9 100%);
  box-shadow: 0 16px 30px rgba(17, 103, 242, .22);
}

.home-btn-outline {
  color: #075ee9;
  background: rgba(255,255,255,.9);
  border: 2px solid #1167f2;
}

.home-points {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 72px;
}

.home-point {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #15233f;
}

.home-point-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #061633;
  font-size: 25px;
  line-height: 1;
}

.home-point strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Dashboard mockup */

.home-visual {
  min-width: 0;
}

.home-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #dce5f3;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 32px 80px rgba(5, 22, 52, .14),
    0 2px 8px rgba(5, 22, 52, .05);
}

.home-dashboard::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.8);
}

.home-dash-sidebar {
  position: relative;
  z-index: 1;
  padding: 34px 22px;
  background: linear-gradient(180deg, #08264f 0%, #041936 100%);
  color: #ffffff;
}

.home-dash-logo {
  height: 42px;
  display: flex;
  align-items: center;
  margin-bottom: 34px;
}

.home-dash-logo img {
  max-width: 150px;
  max-height: 42px;
  object-fit: contain;
}

.home-dash-logo strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.home-dash-nav {
  display: grid;
  gap: 8px;
}

.home-dash-nav span {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-dash-nav span.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #1e75f5 0%, #105bd4 100%);
}

.home-dash-help {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

.home-dash-help small,
.home-dash-help strong {
  display: block;
}

.home-dash-help small {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  margin-bottom: 5px;
}

.home-dash-help strong {
  color: #ffffff;
  font-size: 14px;
}

.home-dash-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 36px 34px 30px;
}

.home-dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
}

.home-dash-top p {
  margin: 0 0 5px;
  color: #6b7890;
  font-size: 13px;
  font-weight: 800;
}

.home-dash-top h2 {
  margin: 0;
  color: #071735;
  font-size: 29px;
  letter-spacing: -0.05em;
}

.home-dash-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.home-dash-user span {
  color: #6b7890;
  font-size: 13px;
}

.home-dash-user b {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f6f8fb;
  color: #23304a;
  font-size: 13px;
}

.home-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.home-dash-stats article {
  min-height: 118px;
  padding: 20px 18px;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  background: #ffffff;
}

.home-dash-stats span,
.home-dash-stats small {
  display: block;
  color: #69758b;
  font-size: 13px;
  font-weight: 700;
}

.home-dash-stats strong {
  display: block;
  margin: 15px 0 4px;
  color: #071735;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-dash-table {
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.home-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
}

.home-table-head h3 {
  margin: 0;
  color: #071735;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.home-table-head a {
  color: #1264e8;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-table {
  width: 100%;
}

.home-tr {
  min-height: 54px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1fr .85fr 1fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #edf1f7;
  color: #15233f;
  text-decoration: none;
}

.home-tr:hover {
  background: #fbfdff;
}

.home-th {
  min-height: 44px;
  background: #f8fafc;
  color: #718097;
  font-size: 12px;
  font-weight: 800;
}

.home-tr span,
.home-tr strong,
.home-tr b,
.home-tr small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tr strong {
  font-size: 14px;
  font-weight: 800;
}

.home-tr b {
  font-size: 14px;
  font-weight: 900;
}

.home-tr small {
  color: #647189;
  font-size: 13px;
}

.home-badge {
  width: fit-content;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.home-badge-blue {
  color: #1264e8;
  background: #eaf2ff;
}

.home-badge-orange {
  color: #d86d00;
  background: #fff0db;
}

.home-badge-green {
  color: #0f8b4d;
  background: #e4f7ed;
}

/* Compact footer transition support */
.home-onepage + .site-footer,
.home-onepage + footer {
  margin-top: 0;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 1100px) {
  .home-wrap {
    width: min(100% - 48px, 900px);
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-hero {
    padding-top: 38px;
  }

  .home-copy h1 {
    font-size: clamp(48px, 9vw, 72px);
  }

  .home-desc {
    font-size: 21px;
  }

  .home-dashboard {
    grid-template-columns: 190px 1fr;
  }
}

@media (max-width: 760px) {
  .home-wrap {
    width: min(100% - 32px, 520px);
  }

  .home-hero {
    min-height: auto;
    padding: 32px 0 42px;
  }

  .home-kicker {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .home-copy h1 {
    font-size: 42px;
    line-height: 1.18;
    letter-spacing: -0.055em;
  }

  .home-desc {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.65;
  }

  .home-actions {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .home-points {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .home-point {
    gap: 8px;
  }

  .home-point-icon {
    width: 28px;
    height: 28px;
    font-size: 20px;
  }

  .home-point strong {
    font-size: 14px;
  }

  .home-dashboard {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 18px;
  }

  .home-dash-sidebar {
    display: none;
  }

  .home-dash-main {
    padding: 24px 18px 20px;
  }

  .home-dash-top {
    margin-bottom: 20px;
  }

  .home-dash-top h2 {
    font-size: 23px;
  }

  .home-dash-user {
    display: none;
  }

  .home-dash-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .home-dash-stats article {
    min-height: 92px;
    padding: 16px 14px;
  }

  .home-dash-stats strong {
    margin-top: 10px;
    font-size: 25px;
  }

  .home-table-head {
    padding: 18px 16px 14px;
  }

  .home-tr {
    min-height: auto;
    padding: 14px 16px;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .home-th {
    display: none;
  }

  .home-tr span {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #6d7890;
  }

  .home-tr strong {
    grid-column: 1 / 2;
    font-size: 15px;
  }

  .home-tr b {
    grid-column: 1 / 2;
    font-size: 15px;
  }

  .home-tr .home-badge {
    grid-column: 2 / 3;
    grid-row: 2 / span 2;
    align-self: center;
  }

  .home-tr small {
    grid-column: 1 / 2;
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .home-wrap {
    width: calc(100% - 28px);
  }

  .home-copy h1 {
    font-size: 38px;
  }

  .home-desc {
    font-size: 16px;
  }

  .home-points {
    grid-template-columns: 1fr;
  }

  .home-dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .home-dash-stats article {
    min-height: 84px;
  }

  .home-table-head a {
    display: none;
  }
}

/* =========================================================
   Final Simplified BizPort UI
   ========================================================= */

:root {
  --bp-blue: #075dcc;
  --bp-blue-dark: #04216c;
  --bp-ink: #091326;
  --bp-muted: #657086;
  --bp-line: #dfe6f0;
  --bp-soft: #f6f9fd;
  --bp-soft-blue: #edf5ff;
  --bp-card-shadow: 0 8px 24px rgba(15, 35, 70, .06);
}

body { background: #fff; color: var(--bp-ink); }

.site-header {
  height: 72px;
  background: rgba(255,255,255,.96);
  box-shadow: none;
}

.site-header .container { max-width: 1440px; }
.site-header .logo {
  font-size: 28px;
  color: #061744;
  letter-spacing: -.04em;
}

.site-header .logo-img {
  margin-left: 52px;
}

.logo-image {
  display: block;
  height: 40px;
  width: auto;
}
.site-header .logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(145deg, #0b68e0, #38bdf8);
  font-size: 0;
  transform: rotate(30deg);
}

.landing-nav {
  gap: 24px;
}
.landing-nav .nav-link {
  color: #0f172a;
  font-weight: 700;
  padding: 8px 10px;
}
.landing-nav .nav-link:hover,
.landing-nav .nav-link.active {
  color: var(--bp-blue);
  background: transparent;
}
.nav-login {
  margin-left: 36px;
  min-width: 92px;
  padding: 13px 24px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  color: #071a55;
  font-weight: 800;
  text-align: center;
}
.nav-login:hover { border-color: var(--bp-blue); color: var(--bp-blue); }
.landing-nav .nav-cta {
  margin-left: 0;
  min-width: 146px;
  padding: 13px 24px;
  border-radius: 7px;
  background: #051b66;
  box-shadow: 0 8px 18px rgba(5, 27, 102, .18);
}

/* ── Public nav (new) ────────────────────────────────────────── */
.pub-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 36px;
  flex: 1;
}

.pub-nav-item {
  position: relative;
}

.pub-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2b4b;
  border-radius: 6px;
  letter-spacing: -0.01em;
  transition: color 120ms ease, background 120ms ease;
  white-space: nowrap;
}

.pub-nav-link:hover,
.pub-nav-link.is-active {
  color: var(--bp-blue);
  background: #f0f5ff;
}

.pub-nav-caret {
  flex-shrink: 0;
  opacity: .55;
  transition: transform 150ms ease;
}

.pub-nav-has-drop:hover .pub-nav-caret {
  transform: rotate(180deg);
  opacity: .8;
}

/* Dropdown panel */
.pub-nav-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 192px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(10, 30, 80, .10);
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 200;
}

.pub-nav-has-drop:hover .pub-nav-drop,
.pub-nav-has-drop:focus-within .pub-nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.pub-nav-drop a {
  display: block;
  padding: 9px 12px;
  font-size: .875rem;
  font-weight: 500;
  color: #2d3a55;
  border-radius: 6px;
  letter-spacing: -0.01em;
  transition: background 110ms ease, color 110ms ease;
}

.pub-nav-drop a:hover {
  background: #f0f5ff;
  color: var(--bp-blue);
}

/* CTA buttons */
.pub-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pub-cta-login {
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 700;
  color: #1a2b4b;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  letter-spacing: -0.01em;
  transition: border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}

.pub-cta-login:hover {
  border-color: var(--bp-blue);
  color: var(--bp-blue);
}

.pub-cta-start {
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 800;
  color: #fff;
  background: #051b66;
  border-radius: 7px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(5, 27, 102, .18);
  transition: background 120ms ease;
  white-space: nowrap;
}

.pub-cta-start:hover { background: #07143e; }

/* Hide old landing-nav on public pages that use pub-nav */
.site-header .landing-nav { display: none; }

/* Responsive: hide pub-nav on mobile */
@media (max-width: 900px) {
  .pub-nav,
  .pub-nav-cta { display: none; }
}

/* ── End public nav ──────────────────────────────────────────── */

.landing-page {
  background: #fff;
  overflow: hidden;
}
.landing-wrap {
  width: min(100% - 48px, 1260px);
  margin: 0 auto;
}
.landing-hero {
  position: relative;
  padding: 34px 0 0;
  background: linear-gradient(90deg, #fff 0%, #fff 43%, #edf5ff 43%, #eaf3ff 100%);
}
.landing-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 74px;
  width: 520px;
  height: 310px;
  border-radius: 260px 0 0 260px;
  background: #dcecff;
  z-index: 0;
}
.landing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 26px;
}
.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: 99px;
  background: #eaf3ff;
  color: #075dcc;
  font-size: 14px;
  font-weight: 800;
}
.landing-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1268d9;
}
.landing-copy h1 {
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.15;
  letter-spacing: -.045em;
  color: #07143e;
}
.landing-copy h1 em {
  color: #075dcc;
  font-style: normal;
}
.landing-desc {
  width: min(100%, 520px);
  margin-top: 26px;
  color: #17213a;
  font-size: 21px;
  line-height: 1.72;
  font-weight: 600;
}
.landing-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.landing-btn {
  min-height: 58px;
  padding: 0 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
}
.landing-btn-primary {
  background: linear-gradient(180deg, #1268dc, #061e81);
  color: #fff;
  box-shadow: 0 12px 24px rgba(5, 38, 130, .18);
}
.landing-btn-outline {
  color: #12306b;
  background: #fff;
  border: 1px solid #c6d2e5;
}
.landing-rocket::before { content: "↗"; }
.landing-play::before { content: "▶"; font-size: 12px; }
.landing-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 620px);
  margin-top: 34px;
}
.landing-points div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.landing-points strong {
  color: #07143e;
  font-size: 16px;
  line-height: 1.4;
}
.lp-icon,
.summary-icon,
.standard-icon,
.role-icon,
.side-icon,
.settings-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #075dcc;
  background: #eaf3ff;
}
.lp-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 900;
}
.lp-icon.shield::before { content: "✓"; }
.lp-icon.people::before { content: "∞"; }
.lp-icon.lock::before { content: "□"; }
.lp-icon.doc::before { content: "▤"; }
.lp-icon.board::before { content: "↻"; }
.lp-icon.folder::before { content: "▱"; }
.lp-icon.card::before { content: "▭"; }

.landing-product {
  position: relative;
  min-height: 500px;
  padding-top: 18px;
}
.landing-laptop {
  width: min(100%, 760px);
  margin-left: auto;
  padding: 14px 14px 26px;
  border-radius: 26px 26px 18px 18px;
  background: #0a0f1c;
  box-shadow: 0 24px 42px rgba(6, 24, 75, .24);
}
.landing-laptop::after {
  content: "";
  display: block;
  width: 34%;
  height: 18px;
  margin: 12px auto -18px;
  border-radius: 0 0 18px 18px;
  background: #aab4c3;
}
.landing-screen {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 400px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.landing-screen aside {
  padding: 26px 18px;
  border-right: 1px solid #e4eaf2;
  background: #fbfdff;
}
.landing-screen aside strong {
  display: block;
  margin-bottom: 24px;
  color: #07143e;
  font-size: 19px;
  font-weight: 900;
}
.landing-screen aside span {
  display: block;
  margin-bottom: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #28344d;
  font-size: 13px;
  font-weight: 700;
}
.landing-screen aside span.active {
  background: #edf4ff;
  color: #075dcc;
}
.landing-screen section { padding: 32px; min-width: 0; }
.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.mock-top b { font-size: 24px; }
.mock-top i {
  width: 170px;
  height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 17px;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.mock-stats div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid #dfe6f0;
  border-radius: 9px;
}
.mock-stats span {
  display: block;
  color: #4d5a70;
  font-size: 12px;
  font-weight: 700;
}
.mock-stats strong {
  display: block;
  margin-top: 4px;
  color: #07143e;
  font-size: 26px;
}
.mock-table {
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  overflow: hidden;
}
.mock-table > div {
  display: grid;
  grid-template-columns: 1.5fr .7fr .8fr 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #e8edf5;
  font-size: 12px;
}
.mock-table > div:last-child { border-bottom: 0; }
.mock-table .head { color: #657086; font-weight: 800; }
.mock-table b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-table em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 99px;
  font-style: normal;
  font-weight: 800;
}
.mock-table .orange { color: #db7200; background: #fff1df; }
.mock-table .blue { color: #075dcc; background: #eaf3ff; }
.mock-table .green { color: #0f8b4d; background: #e4f6ed; }
.landing-phone {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: 176px;
  padding: 24px 14px 16px;
  border: 8px solid #0a0f1c;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 28px rgba(6, 24, 75, .18);
  font-size: 12px;
}
.landing-phone strong { display: block; margin-bottom: 12px; font-size: 15px; }
.phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-stats span,
.landing-phone div:not(.phone-stats) {
  display: block;
  padding: 9px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  color: #37445a;
}
.phone-stats b { color: #07143e; font-size: 18px; }
.landing-phone p { margin: 12px 0 6px; color: #07143e; font-weight: 900; }
.landing-phone div:not(.phone-stats) { margin-top: 6px; display: flex; justify-content: space-between; }

.landing-feature-strip {
  position: relative;
  z-index: 2;
  margin-top: -8px;
}
.landing-feature-card {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 24px 28px;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--bp-card-shadow);
}
.landing-feature-card article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 10px 20px;
  border-right: 1px solid #e5ebf4;
}
.landing-feature-card article:last-child { border-right: 0; }
.landing-feature-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}
.landing-feature-card p {
  color: #28344d;
  font-size: 14px;
  line-height: 1.55;
}
.landing-flow { padding: 44px 0 36px; }
.landing-flow-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 46px;
  align-items: start;
}
.landing-flow h2 {
  margin-bottom: 26px;
  text-align: center;
  font-size: 28px;
}
.flow-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.flow-cards article {
  min-height: 102px;
  padding: 20px;
  border: 1px solid #bcd4f6;
  border-radius: 10px;
  background: #f7fbff;
}
.flow-cards article:nth-child(2) { background: #f2fbf5; border-color: #c5e8d1; }
.flow-cards article:nth-child(3) { background: #f8f4ff; border-color: #dcc8ff; }
.flow-cards article:nth-child(4) { background: #fff8ed; border-color: #ffd99c; }
.flow-cards span {
  color: #075dcc;
  font-weight: 900;
}
.flow-cards strong {
  display: block;
  margin: 3px 0 6px;
  font-size: 16px;
}
.flow-cards p { color: #28344d; font-size: 13px; line-height: 1.5; }
.landing-flow aside {
  padding-left: 34px;
  border-left: 1px solid #dfe6f0;
}
.landing-flow aside h3 {
  margin-bottom: 18px;
  font-size: 22px;
}
.landing-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
}
.landing-audience span {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e7edf5;
  border-bottom: 1px solid #e7edf5;
  color: #07143e;
  font-weight: 800;
}
.landing-audience span:nth-child(3n) { border-right: 0; }
.landing-audience span:nth-last-child(-n+3) { border-bottom: 0; }
.landing-final-cta { padding: 0 0 28px; }
.landing-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 10px;
  background: #061b66;
  color: #fff;
}
.landing-cta-bar h2 { color: #fff; font-size: 24px; }
.landing-cta-bar p { color: rgba(255,255,255,.8); }
.landing-cta-bar a {
  min-width: 185px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  background: #fff;
  color: #061b66;
  font-weight: 900;
}

/* App shell */
.app-shell-body {
  --header-h: 80px;
  background: #fff;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bp-line);
  background: #fff;
  z-index: 30;
}
.app-brand {
  display: flex;
  align-items: center;
  height: 82px;
  padding: 0 28px 0 52px;
  color: var(--bp-blue);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.app-brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.app-nav-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.55;
}
.summary-icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.summary-icon-sm {
  width: 24px;
  height: 24px;
}
.quick-action-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.role-icon-img {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  object-fit: contain;
  align-self: center;
  justify-self: center;
}
.side-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.app-nav-link.active .app-nav-img {
  opacity: 1;
}
.app-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 14px;
}
.app-nav-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  border-radius: 8px;
  color: #263247;
  font-size: 17px;
  font-weight: 800;
}
.app-nav-link.active {
  background: #edf5ff;
  color: var(--bp-blue);
}
.app-nav-icon {
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 5px;
  position: relative;
}
.app-icon-home { border-radius: 4px 4px 6px 6px; transform: rotate(45deg); }
.app-icon-home + span { margin-left: 0; }
.app-icon-plus::before,
.app-icon-plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  inset: 10px 5px auto 5px;
  height: 2px;
}
.app-icon-plus::after { transform: rotate(90deg); }
.app-icon-shield { border-radius: 8px 8px 12px 12px; }
.app-icon-settings { border-radius: 50%; }
.app-icon-settings::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.app-sidebar-account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 18px 28px;
  padding: 14px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
}
.app-sidebar-logout {
  display: block;
  margin: auto 14px 48px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #17213a;
  text-decoration: none;
  text-align: center;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  background: #fff;
  transition: background .12s, color .12s, border-color .12s;
}
.app-sidebar-logout:hover { background: #f0f5ff; color: #075dcc; border-color: #c7d9f5; }
.app-sidebar-logout-icon { display: none; }
.app-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2d3f5f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.app-sidebar-account strong,
.app-sidebar-account span {
  display: block;
  line-height: 1.35;
}
.app-sidebar-account strong { font-size: 14px; }
.app-sidebar-account span { color: var(--bp-muted); font-size: 12px; }
.app-workspace { min-width: 0; }
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 0 34px;
  border-bottom: 1px solid var(--bp-line);
  background: rgba(255,255,255,.97);
}
.app-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
}
.app-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #1c2940;
}
.app-search,
.app-filter-panel .filter-search {
  position: relative;
  display: flex;
  align-items: center;
}
.app-search {
  position: absolute;
  left: 44%;
  transform: translateX(-50%);
  width: min(100%, 480px);
}
.app-search input,
.app-filter-panel input,
.app-filter-panel select,
.settings-fields input,
.settings-fields select,
.start-fields input,
.start-fields textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--bp-line);
  border-radius: 7px;
  background: #fff;
  color: var(--bp-ink);
  font: inherit;
  font-size: 15px;
}
.app-search input {
  padding: 0 46px;
}
.app-search-icon {
  position: absolute;
  left: 17px;
  width: 16px;
  height: 16px;
  border: 2px solid #43516a;
  border-radius: 50%;
}
.app-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #43516a;
  transform: rotate(45deg);
}
.app-top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.app-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e0e8f2;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  color: #43516a;
}
.app-bell b {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bp-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.app-bell:hover,
.app-bell:focus-visible {
  border-color: #c8d6e8;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.app-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #7c8798 0 18%, transparent 19%), radial-gradient(circle at 50% 83%, #7c8798 0 34%, transparent 35%), #eef2f7;
}
.app-profile strong,
.app-profile span {
  display: block;
  line-height: 1.3;
}
.app-profile strong { font-size: 16px; }
.app-profile span { color: var(--bp-muted); font-size: 13px; }
.app-profile i {
  width: 9px;
  height: 9px;
  border-right: 2px solid #263247;
  border-bottom: 2px solid #263247;
  transform: rotate(45deg);
}
.app-profile-toggle {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.app-profile-drop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(7,20,62,.1);
  z-index: 100;
  overflow: hidden;
}
.app-profile-toggle.is-open .app-profile-drop {
  display: block;
}
.app-profile-drop a {
  display: block;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #17213a;
  text-decoration: none;
  transition: background 0.12s;
}
.app-profile-drop a:hover {
  background: #f0f5ff;
  color: #075dcc;
}
.app-profile-drop a + a {
  border-top: 1px solid #e0e8f2;
}
.app-main { min-width: 0; }
.app-content {
  width: min(100% - 64px, 1360px);
  margin: 0 auto;
  padding: 34px 0 42px;
}
.app-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.app-page-heading h1 {
  margin: 0 0 10px;
  color: var(--bp-ink);
  font-size: 36px;
  letter-spacing: -.035em;
}
.app-page-heading p {
  color: var(--bp-muted);
  font-size: 17px;
  font-weight: 600;
}
.app-primary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  border-radius: 7px;
  background: var(--bp-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.app-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}
.app-single-column {
  grid-template-columns: 1fr;
}
.app-main-column,
.app-side-column { min-width: 0; }
.app-side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.app-summary-card,
.app-panel {
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--bp-card-shadow);
}
.app-summary-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
}
.summary-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #edf5ff;
  color: #075dcc;
}
.summary-icon.doc { background: #edf5ff; color: #075dcc; }
.summary-icon.sync { background: #edf5ff; color: #075dcc; }
.summary-icon.clock { background: #fff4e6; color: #c96b00; }
.summary-icon.check { background: #e8f6ee; color: #0a7d48; }
.summary-icon.doc::before { content: "📄"; font-size: 20px; }
.summary-icon.sync::before { content: "↺"; font-size: 24px; }
.summary-icon.clock::before { content: "⏱"; font-size: 20px; }
.summary-icon.check::before { content: "✓"; font-size: 22px; font-weight: 900; }
.app-summary-card p {
  margin: 0 0 4px;
  color: #2a354a;
  font-size: 15px;
  font-weight: 800;
}
.app-summary-card strong {
  display: block;
  color: var(--bp-ink);
  font-size: 30px;
  line-height: 1.05;
}
.app-summary-card small {
  display: block;
  color: var(--bp-muted);
  font-size: 14px;
}
.app-panel { padding: 0; overflow: hidden; }
.app-panel h2 {
  margin: 0;
  color: var(--bp-ink);
  font-size: 20px;
  letter-spacing: -.02em;
}
.app-panel-header,
.app-panel-title {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--bp-line);
}
.app-panel-header a {
  color: var(--bp-blue);
  font-weight: 800;
}
.app-table-wrap { overflow-x: auto; }
.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.app-table th,
.app-table td {
  height: 62px;
  padding: 0 26px;
  border-bottom: 1px solid #e6ecf4;
  text-align: left;
  white-space: nowrap;
}
.app-table th {
  height: 54px;
  color: #5e697d;
  background: #fbfcfe;
  font-weight: 800;
}
.app-table tbody tr {
  cursor: pointer;
  transition: background .15s ease;
}
.app-table tbody tr:hover { background: #f8fbff; }
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-table td strong { color: var(--bp-ink); font-weight: 800; }
.app-table .right { text-align: right; }
.row-chevron {
  color: #304057;
  font-size: 28px;
  line-height: 1;
}
.badge {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}
.badge::before { display: none; }
.badge-pending { background: #fff0df; color: #df7800; }
.badge-active { background: #eaf3ff; color: #075dcc; }
.badge-complete { background: #e7f6ee; color: #0d8a4f; }
.badge-cancelled { background: #f1f4f8; color: #657086; }

/* Dashboard panel footer */
.app-panel-footer {
  display: flex;
  justify-content: center;
  padding: 16px 26px;
  border-top: 1px solid #e6ecf4;
}
.app-panel-footer a {
  font-size: 14px;
  font-weight: 700;
  color: #075dcc;
}
.app-panel-footer a:hover { text-decoration: underline; }

/* Dashboard recent list (right sidebar) */
.dash-recent-panel h2 { font-size: 16px; }
.dash-recent-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.dash-recent-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  color: #243047;
  text-decoration: none;
  transition: background .12s;
  border-bottom: 1px solid #f0f4f9;
}
.dash-recent-list li:last-child a { border-bottom: none; }
.dash-recent-list li a:hover { background: #f6f9ff; }
.dash-recent-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8d4e4;
}
.dash-recent-dot.badge-active { background: #075dcc; }
.dash-recent-dot.badge-pending { background: #df7800; }
.dash-recent-dot.badge-complete { background: #0d8a4f; }
.dash-recent-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-recent-amount {
  flex-shrink: 0;
  font-size: 13px;
  color: #5e6f87;
}

.selected-summary h2,
.tx-side-summary h2,
.quick-actions h2,
.standards-faq h2,
.contact-panel h2,
.settings-summary h2,
.start-side-panel h2 {
  padding: 26px 26px 18px;
}
.progress-list {
  padding: 0 28px 24px;
}
.progress-list div {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding-bottom: 20px;
}
.progress-list div::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: #cdd6e4;
}
.progress-list div:last-child::before { display: none; }
.progress-list span {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid #c7d0de;
  border-radius: 50%;
  background: #fff;
}
.progress-list .done span,
.progress-list .active span {
  border-color: var(--bp-blue);
  background: var(--bp-blue);
}
.progress-list strong { color: #243047; }
.progress-list small {
  grid-column: 2;
  color: var(--bp-muted);
}
.summary-list,
.metric-list {
  padding: 0 26px 26px;
}
.summary-list div,
.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid #e7edf5;
}
.summary-list dt,
.metric-list dt { color: #263247; font-weight: 800; }
.summary-list dd,
.metric-list dd {
  margin: 0;
  color: #3b485f;
  text-align: right;
}
.metric-list dt {
  display: flex;
  align-items: center;
  gap: 12px;
}
.metric-list .summary-icon {
  width: 30px;
  height: 30px;
  font-size: 14px;
}
.quick-actions {
  padding-bottom: 24px;
}
.tx-quick-tall {
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.tx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "summary quick"
    "filter quick"
    "list list";
  column-gap: 20px;
  row-gap: 20px;
  align-items: start;
}
.tx-filter {
  grid-area: filter;
  width: 100%;
  margin: 0;
}
.tx-layout .app-summary-grid {
  grid-area: summary;
  margin-bottom: 0;
}
.tx-layout .tx-quick-compact {
  grid-area: quick;
  align-self: start;
}
.tx-list {
  grid-area: list;
  width: 100%;
  margin-bottom: 0;
}
.tx-quick-compact {
  min-height: 0 !important;
}
.quick-actions a {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 22px 16px;
  padding: 0 18px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  color: #17213a;
  font-size: 17px;
  font-weight: 800;
}
.quick-actions i {
  margin-left: auto;
  font-style: normal;
  font-size: 26px;
}
.quick-plus,
.quick-send {
  width: 28px;
  height: 28px;
  border: 2px solid var(--bp-blue);
  border-radius: 50%;
  position: relative;
}
.quick-plus::before,
.quick-plus::after {
  content: "";
  position: absolute;
  background: var(--bp-blue);
  left: 7px;
  right: 7px;
  top: 12px;
  height: 2px;
}
.quick-plus::after { transform: rotate(90deg); }
.quick-send {
  border-radius: 4px;
  transform: rotate(-30deg);
}
.app-filter-panel {
  display: grid;
  grid-template-columns: auto auto auto minmax(200px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  background: #fff;
}
.app-filter-panel label { position: relative; }
.app-filter-panel select {
  padding: 0 28px 0 12px;
  appearance: none;
  width: auto;
  min-width: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235e697d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.app-filter-panel input {
  padding: 0 16px 0 46px;
  appearance: none;
}
.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--bp-line);
  border-radius: 7px;
  color: var(--bp-ink);
  font-size: 14px;
  font-weight: 700;
  background: #f8fafc;
  white-space: nowrap;
  text-decoration: none;
}
.filter-reset-btn:hover { background: #edf5ff; border-color: var(--bp-blue); color: var(--bp-blue); }
.app-filter-panel button {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  background: var(--bp-blue);
  color: #fff;
  font-weight: 900;
}
.calendar-icon,
.user-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  border: 2px solid #526078;
  border-radius: 3px;
  z-index: 1;
}
.user-icon {
  border-radius: 50%;
}
.app-empty {
  padding: 44px 26px;
  color: var(--bp-muted);
  text-align: center;
}
.app-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bp-ink);
  font-size: 18px;
}
.app-alert {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #ffd7d7;
  border-radius: 8px;
  background: #fff7f7;
  color: #a92222;
}
.app-alert-success {
  border-color: #cfe2ff;
  background: #f5f9ff;
  color: #1f5fbf;
}

/* Start page */
.role-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.role-card {
  position: relative;
  min-height: 130px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 12px;
  padding: 24px 28px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--bp-card-shadow);
  transition: border-color 0.15s;
}
.role-card:hover {
  border-color: #a8c4ef;
}
.role-card.active {
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 1px var(--bp-blue);
}
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-icon {
  grid-column: 1;
  grid-row: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 34px;
}
.role-icon.cart::before { content: "⌁"; }
.role-icon.bag::before { content: "▢"; }
.role-icon-img {
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}
.role-card-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  word-break: keep-all;
  white-space: normal;
}
.role-card strong {
  display: block;
  color: var(--bp-ink);
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}
.role-card p {
  margin: 4px 0 0;
  color: #3a465d;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  white-space: normal;
  word-break: keep-all;
}
.role-card i {
  grid-column: 3;
  grid-row: 1;
  width: 26px;
  height: 26px;
  border: 2px solid #c5cfdd;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  justify-self: center;
}
.role-card.active i {
  border-color: var(--bp-blue);
  background: radial-gradient(circle, #fff 0 28%, var(--bp-blue) 30%);
}
.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 20px;
}
.start-main-panel,
.start-side-panel { overflow: hidden; }
.start-fields {
  display: grid;
  gap: 18px;
  padding: 28px;
}
.start-fields label {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: start;
  gap: 16px;
}
.start-fields label > span {
  padding-top: 12px;
  color: #243047;
  font-weight: 800;
}
.start-fields input,
.start-fields textarea {
  padding: 0 16px;
}
.start-fields textarea {
  min-height: 130px;
  padding-top: 14px;
  resize: vertical;
}
.amount-field div {
  display: grid;
  grid-template-columns: 1fr 112px;
}
.amount-field input {
  border-radius: 7px 0 0 7px;
}
.amount-field b {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bp-line);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  color: #17213a;
  font-size: 14px;
}
.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.date-row label {
  grid-template-columns: 140px 1fr;
}
.date-row label + label {
  grid-template-columns: 0 1fr;
  gap: 0;
}
.start-side-panel {
  padding-bottom: 28px;
}
.start-side-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 32px;
  padding: 24px 0;
  border-top: 1px solid #e7edf5;
}
.side-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: 900;
}
.side-icon.doc::before { content: "▤"; }
.side-icon.memo {
  background: #fff0df;
  color: #de7900;
}
.side-icon.memo::before { content: "…"; }
.side-icon.flag {
  background: #e7f6ee;
  color: #0d8a4f;
}
.side-icon.flag::before { content: "⚑"; }
.start-side-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.start-side-item p {
  color: var(--bp-muted);
  font-weight: 600;
}
.start-side-item button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--bp-line);
  border-radius: 7px;
  background: #fff;
  color: #243047;
  font-weight: 800;
}
.app-bottom-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: 16px -32px -42px;
  padding: 10px 32px;
  border-top: 1px solid var(--bp-line);
  background: rgba(255,255,255,.97);
}
.app-bottom-actions a,
.app-bottom-actions button {
  min-width: 188px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
}
.app-bottom-actions a {
  border: 1px solid var(--bp-line);
  color: #243047;
  background: #fff;
}
.app-bottom-actions button {
  border: 0;
  background: var(--bp-blue);
  color: #fff;
}

/* Standards */
.standards-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
  border-bottom: 1px solid var(--bp-line);
}
.standards-tabs a,
.standards-tabs button {
  padding: 18px 10px;
  border: 0;
  color: #3b465b;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  border-bottom: 3px solid transparent;
}
.standards-tabs a.active,
.standards-tabs button.is-active {
  color: var(--bp-blue);
  border-bottom-color: var(--bp-blue);
}
.standards-tab-panels {
  display: grid;
  gap: 22px;
}
.standards-panel[hidden] {
  display: none;
}
.standards-focus-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 28px;
}
.standards-focus-card .standard-icon {
  width: 68px;
  height: 68px;
  font-size: 28px;
}
.standards-focus-card p {
  margin-bottom: 4px;
  color: var(--bp-blue);
  font-size: 14px;
  font-weight: 900;
}
.standards-focus-card h2 {
  margin: 0 0 8px;
  color: var(--bp-ink);
  font-size: 26px;
}
.standards-focus-card strong {
  display: block;
  color: #3b465b;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.standards-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.standards-overview-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 22px;
}
.standards-overview-card .standard-icon {
  width: 52px;
  height: 52px;
  font-size: 22px;
}
.standards-overview-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.standards-overview-card p {
  color: #3b465b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.standards-stage-panel {
  margin-bottom: 22px;
}
.standards-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--bp-line);
  background: var(--bp-line);
}
.standards-stage-grid article {
  min-height: 154px;
  padding: 22px;
  background: #fff;
}
.standards-stage-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--bp-blue);
  font-size: 13px;
  font-weight: 900;
}
.standards-stage-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bp-ink);
  font-size: 17px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.standards-stage-grid p {
  color: #3b465b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.standards-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.standards-detail-card {
  padding: 26px;
}
.standards-detail-card h2 {
  margin: 0 0 10px;
  font-size: 21px;
}
.standards-detail-card p {
  margin-bottom: 18px;
  color: #3b465b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.standards-detail-card li {
  position: relative;
  margin-top: 10px;
  padding-left: 24px;
  color: #243047;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.standards-detail-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bp-blue);
}
.standards-quick-panel {
  padding-bottom: 10px;
}
.standards-quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--bp-line);
}
.standards-quick-list a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  border-right: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
  color: #243047;
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.standards-quick-list a:nth-child(even) {
  border-right: 0;
}
.standards-quick-list-single {
  grid-template-columns: 1fr;
}
.standards-quick-list-single a {
  border-right: 0;
}
.standards-quick-list span {
  color: var(--bp-blue);
  font-size: 24px;
}
.standard-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.standard-card {
  min-height: 270px;
  display: grid;
  grid-template-columns: 86px 1fr 30px;
  gap: 20px;
  padding: 30px;
}
.standard-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 900;
}
.standard-icon.doc::before { content: "▤"; }
.standard-icon.sync::before { content: "↻"; }
.standard-icon.back::before { content: "↩"; }
.standard-icon.won::before { content: "₩"; }
.standard-card h2 {
  margin: 2px 0 12px;
  font-size: 23px;
}
.standard-card p {
  margin-bottom: 20px;
  color: #3b465b;
  font-size: 17px;
  line-height: 1.6;
}
.standard-card li {
  position: relative;
  margin-top: 12px;
  padding-left: 26px;
  color: #243047;
  font-size: 16px;
  font-weight: 700;
}
.standard-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bp-blue);
}
.standard-card > a {
  color: #17213a;
  font-size: 38px;
  line-height: 1;
}
.standards-faq,
.contact-panel { padding-bottom: 26px; }
.standards-faq a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 26px;
  border-bottom: 1px solid #edf1f6;
  color: #243047;
  font-weight: 700;
}
.standards-faq a.more {
  margin-top: 16px;
  color: var(--bp-blue);
  border-bottom: 0;
  font-weight: 900;
}
.contact-panel p {
  padding: 0 26px 18px;
  color: #3b465b;
  font-size: 16px;
  line-height: 1.7;
}
.contact-panel a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 26px 22px;
  border: 1px solid var(--bp-blue);
  border-radius: 6px;
  color: var(--bp-blue);
  font-weight: 900;
}
.contact-phone {
  margin: 0 26px 8px;
  padding-top: 20px;
  border-top: 1px solid #e7edf5;
  color: #243047;
  font-size: 18px;
  font-weight: 900;
}
.contact-panel small {
  display: block;
  margin: 0 26px;
  color: var(--bp-muted);
}

/* Settings */
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}
.settings-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.settings-card-title {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--bp-line);
}
.settings-icon {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: #243047;
  font-size: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}
.settings-fields {
  display: grid;
  gap: 16px;
  padding: 18px 18px 22px;
}
.settings-fields label {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 14px;
}
.settings-fields span {
  color: #3b465b;
  font-weight: 800;
}
.settings-fields .settings-input-wrap {
  display: grid;
  gap: 7px;
  color: inherit;
  font-weight: inherit;
}
.settings-fields input,
.settings-fields select {
  min-height: 40px;
  padding: 0 14px;
}
.settings-fields input.input-error {
  border-color: #e5484d;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}
.settings-fields input.input-valid {
  border-color: #2f6fed;
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .12);
}
.business-number-feedback {
  min-height: 18px;
  color: var(--bp-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.business-number-feedback:empty {
  min-height: 0;
}
.business-number-feedback--error {
  color: #d92d20;
}
.business-number-feedback--success {
  color: #1f6feb;
}
.settings-summary {
  align-self: start;
}
.summary-section {
  border-top: 1px solid var(--bp-line);
  padding: 24px 26px;
}
.summary-section h3 {
  margin-bottom: 18px;
  font-size: 15px;
}
.summary-section dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.summary-section dt {
  color: var(--bp-muted);
  font-weight: 800;
}
.summary-section dd {
  margin: 0;
  color: #17213a;
  font-weight: 700;
  line-height: 1.7;
}
.settings-actions {
  margin-top: 28px;
}
.settings-withdrawal-panel {
  padding: 0 24px 24px;
  text-align: right;
}
.settings-withdrawal-open {
  border: 0;
  background: transparent;
  color: #9aa4b2;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.settings-withdrawal-open:hover,
.settings-withdrawal-open:focus-visible {
  color: #5f6b7a;
}
.btn-withdraw {
  width: 100%;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d43c3c;
  border-radius: 8px;
  background: #d43c3c;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}
.withdrawal-modal[hidden] {
  display: none;
}
.withdrawal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.withdrawal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 38, .42);
}
.withdrawal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(9, 18, 38, .24);
}
.withdrawal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #f4f7f9;
  color: #5f6b7a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.withdrawal-dialog h2 {
  margin: 0 0 12px;
  color: #17213a;
  font-size: 22px;
  font-weight: 900;
}
.withdrawal-dialog p {
  margin: 0 0 18px;
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  word-break: keep-all;
}
.withdrawal-form {
  display: grid;
  gap: 14px;
}
.withdrawal-form label {
  display: grid;
  gap: 8px;
}
.withdrawal-form span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}
.withdrawal-form input {
  min-height: 42px;
  padding: 0 14px;
}
body.modal-open {
  overflow: hidden;
}

/* Detail page alignment */
.detail-app-page .tx-pipeline,
.detail-app-page .card,
.detail-app-page .amount-summary,
.detail-app-page .guide-card {
  box-shadow: var(--bp-card-shadow);
  border-color: var(--bp-line);
}
.detail-app-page .detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.detail-app-page .detail-sidebar {
  top: 100px;
}

@media (max-width: 1180px) {
  .landing-hero-grid,
  .landing-flow-grid,
  .app-two-column,
  .settings-layout,
  .start-layout {
    grid-template-columns: 1fr;
  }
  .landing-hero { background: #fff; }
  .landing-feature-card { grid-template-columns: 1fr 1fr; }
  .landing-feature-card article { border-right: 0; border-bottom: 1px solid #e5ebf4; }
  .app-side-column { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .landing-product { min-height: auto; }
  .landing-phone { display: none; }
  .landing-screen { grid-template-columns: 1fr; }
  .landing-screen aside { display: none; }
  .landing-feature-card,
  .flow-cards,
  .app-summary-grid,
  .role-choice-grid,
  .standards-overview,
  .standards-stage-grid,
  .standard-card-grid,
  .standards-detail-grid,
  .settings-main,
  .app-side-column {
    grid-template-columns: 1fr 1fr;
  }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100dvh;
    width: min(280px, 84vw);
    transform: translateX(-100%);
    transition: transform .22s cubic-bezier(.16, 1, .3, 1);
    overflow-y: auto;
  }
  body.app-nav-open .app-sidebar {
    transform: translateX(0);
    box-shadow: 0 12px 40px rgba(13, 23, 41, .25);
  }
  body.app-nav-open { overflow: hidden; }
  body.app-nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(13, 23, 41, .45);
  }
  .app-menu-button { display: block; flex-shrink: 0; }
  @media (prefers-reduced-motion: reduce) {
    .app-sidebar { transition: none; }
  }
  .app-topbar { justify-content: space-between; gap: 14px; }
  .app-search { width: min(100%, 360px); }
  .tx-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "filter"
      "list"
      "quick";
  }
  .app-filter-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .landing-wrap,
  .app-content {
    width: calc(100% - 28px);
  }
  .landing-hero { padding-top: 28px; }
  .landing-copy h1 { font-size: 40px; }
  .landing-desc { font-size: 17px; }
  .landing-actions,
  .landing-cta-bar,
  .app-page-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .landing-btn,
  .landing-cta-bar a,
  .app-primary-action { width: 100%; }
  .landing-points,
  .landing-feature-card,
  .flow-cards,
  .landing-audience,
  .standards-overview,
  .standards-stage-grid,
  .standard-card-grid,
  .standards-detail-grid,
  .standards-quick-list,
  .settings-main,
  .app-side-column,
  .app-filter-panel {
    grid-template-columns: 1fr;
  }
  .app-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .role-choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .standards-focus-card {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 118px;
    padding: 20px;
  }
  .standards-focus-card .standard-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .standards-focus-card h2 {
    font-size: 21px;
  }
  .landing-laptop {
    padding: 8px;
    border-radius: 16px;
  }
  .landing-screen section { padding: 18px; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .mock-table > div { grid-template-columns: 1fr auto; }
  .mock-table > div span:nth-child(2),
  .mock-table > div span:nth-child(4) { display: none; }
  .landing-feature-card { padding: 14px; }
  .landing-feature-card article {
    grid-template-columns: 42px 1fr;
    padding: 16px 8px;
  }
  .landing-flow aside {
    padding-left: 0;
    border-left: 0;
  }
  .app-topbar {
    height: auto;
    min-height: 82px;
    flex-wrap: wrap;
    padding: 14px;
  }
  .app-search {
    order: 3;
    width: 100%;
    position: static;
    transform: none;
    left: auto;
  }
  .app-profile div,
  .app-profile i { display: none; }
  .app-content { padding-top: 24px; }
  /* iOS Safari는 16px 미만 입력 포커스 시 강제 확대됨 */
  input, select, textarea { font-size: max(16px, 1em); }
  .app-page-heading h1 { font-size: 30px; }
  .app-summary-card { min-height: 98px; padding: 18px; }
  .summary-icon { width: 52px; height: 52px; }
  .app-table th,
  .app-table td { padding: 0 16px; }
  .role-card {
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    padding: 18px;
    min-height: auto;
  }
  .role-icon { width: 54px; height: 54px; }
  .role-icon-img { width: 32px; height: 32px; }
  .role-card strong { font-size: 17px; }
  .role-card p { font-size: 13px; }
  .start-fields label,
  .date-row,
  .date-row label {
    grid-template-columns: 1fr;
  }
  .date-row label + label {
    grid-template-columns: 1fr;
  }
  .start-fields label > span {
    padding-top: 0;
  }
  .start-side-item {
    grid-template-columns: 48px 1fr;
    margin: 0 20px;
  }
  .start-side-item button {
    grid-column: 2;
    width: fit-content;
  }
  .app-bottom-actions {
    margin-left: -14px;
    margin-right: -14px;
    flex-direction: row;
  }
  .app-bottom-actions a,
  .app-bottom-actions button {
    flex: 1;
    min-width: 0;
  }
  .standard-card {
    grid-template-columns: 60px 1fr 24px;
    padding: 22px;
  }
  .standard-icon { width: 52px; height: 52px; }
  .settings-fields label {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .detail-app-page .detail-layout,
  .detail-app-page .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-app-page .detail-sidebar {
    position: static;
  }
}

@media (max-width: 430px) {
  .landing-copy h1 { font-size: 37px; }
  .landing-desc,
  .app-page-heading p { font-size: 15px; }
  .role-choice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .role-card {
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    min-height: 78px;
    padding: 14px 16px;
    column-gap: 10px;
  }
  .role-icon-img {
    width: 30px;
    height: 30px;
  }
  .role-card strong {
    font-size: 16px;
  }
  .role-card p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
  }
  .transactions-page .tx-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .transactions-page .tx-filter .filter-reset-btn,
  .transactions-page .tx-filter .filter-search,
  .transactions-page .tx-filter button {
    grid-column: 1 / -1;
  }
  .transactions-page .tx-filter select {
    width: 100%;
  }
  .transactions-page .tx-quick-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
  }
  .transactions-page .tx-quick-compact h2 {
    grid-column: 1 / -1;
    padding: 20px 0 8px;
  }
  .transactions-page .tx-quick-compact a {
    min-height: 58px;
    margin: 0;
    padding: 0 10px;
    gap: 8px;
    font-size: 14px;
  }
  .transactions-page .tx-quick-compact .quick-action-img {
    width: 28px;
    height: 28px;
  }
  .transactions-page .tx-quick-compact i {
    font-size: 20px;
  }
  .app-summary-card { gap: 14px; }
  .app-summary-card strong { font-size: 26px; }
  .app-table { font-size: 14px; }
  .standards-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .standards-tabs a,
  .standards-tabs button {
    font-size: 15px;
    padding: 14px 6px;
  }
  .amount-field div {
    grid-template-columns: 1fr;
  }
  .amount-field input,
  .amount-field b {
    border-radius: 7px;
    border: 1px solid var(--bp-line);
  }
  .amount-field b {
    border-top: 0;
  }
}

/* =========================================================
   Landing Asset Composition
   Final image-based homepage layout
   ========================================================= */

.landing-asset-page {
  --landing-blue: #075dcc;
  --landing-navy: #07143e;
  --landing-soft: #edf5ff;
  --landing-line: #e0e8f2;

  background: #fff;
  color: var(--landing-navy);
  overflow-x: hidden;
}

.landing-asset-page .landing-asset {
  display: block;
  height: auto;
  max-width: 100%;
}

.landing-asset-page .landing-asset-wrap {
  width: min(100% - 56px, 1290px);
  margin: 0 auto;
}

/* Hero */

.landing-asset-page .landing-asset-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 48px 0 96px;
  background: #fff;
}

.landing-asset-page .landing-asset-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: 66px;
  width: 760px;
  height: 356px;
  border-radius: 360px 0 0 360px;
  background: #dcecff;
  pointer-events: none;
}

.landing-asset-page .landing-asset-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 0;
  align-items: center;
}

.landing-asset-page .landing-asset-copy {
  min-width: 0;
  padding: 8px 32px 16px 56px;
}

.landing-asset-page .landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 22px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--landing-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-asset-page .landing-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-blue);
  flex: 0 0 auto;
}

.landing-asset-page .landing-asset-copy h1 {
  margin: 0;
  color: var(--landing-navy);
  font-size: clamp(38px, 3.9vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.06em;
  max-width: 640px;
}

.landing-asset-page .landing-asset-copy h1 em {
  color: var(--landing-blue);
  font-style: normal;
  white-space: nowrap;
}

.landing-asset-page .landing-desc {
  max-width: 480px;
  margin: 20px 0 0;
  color: #3a4e72;
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.landing-asset-page .landing-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.landing-asset-page .landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.landing-asset-page .landing-btn-primary {
  background: var(--landing-blue);
  color: #fff;
  border: 1px solid var(--landing-blue);
  box-shadow: 0 16px 28px rgba(7, 93, 204, .25);
}

.landing-asset-page .landing-btn-outline {
  background: #fff;
  color: var(--landing-navy);
  border: 1px solid #b8c9df;
}

.landing-asset-page .landing-rocket,
.landing-asset-page .landing-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.landing-asset-page .landing-rocket::before {
  content: "↗";
  font-weight: 900;
}

.landing-asset-page .landing-play::before {
  content: "▶";
  font-size: 12px;
  font-weight: 900;
}

.landing-asset-page .landing-hero-benefits {
  width: 520px;
  max-width: 100%;
  margin: 22px 0 0 -56px;
}

.landing-asset-page .landing-asset-visual {
  position: relative;
  min-width: 0;
  margin-right: -80px;
  padding: 8px 0 12px;
}

.landing-asset-page .landing-asset-visual::before {
  display: none;
}

.landing-asset-page .landing-asset-visual::after {
  display: none;
}

.landing-asset-page .landing-dashboard-asset {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 0 0 -48px;
}

/* Feature strip */

.landing-asset-page .landing-feature-assets {
  position: relative;
  z-index: 4;
  margin-top: -56px;
  padding: 0 0 52px;
  background: transparent;
}

.landing-asset-page .landing-feature-assets .landing-asset-wrap {
  width: min(100% - 56px, 1290px);
}

.landing-asset-page .landing-wide-asset {
  width: 1290px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(15, 35, 70, .08));
}

/* Lower: process + target users */

.landing-asset-page .landing-lower-assets {
  padding: 24px 0 48px;
  background: #fff;
}

.landing-asset-page .landing-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(0, .78fr);
  column-gap: 32px;
  row-gap: 8px;
  align-items: start;
}

.landing-asset-page .landing-lower-card {
  min-width: 0;
}

.landing-asset-page .landing-target-assets {
  border-left: 1px solid #e2eaf4;
  padding-left: 32px;
  grid-column: 2;
  grid-row: 1 / 3;
}

.landing-asset-page .landing-process-assets {
  grid-column: 1;
  grid-row: 1;
}

.landing-asset-page .landing-cta-wrap {
  grid-column: 1;
  grid-row: 2;
}

.landing-asset-page .landing-process-asset {
  width: 100%;
  max-width: 820px;
  margin: -6px 0 -8px;
}

.landing-asset-page .landing-target-asset {
  width: 100%;
  max-width: 420px;
  margin: -6px 0 -8px;
}

/* ── Landing HTML sections (lp-*) ───────────────────────────── */

/* Benefit strip (hero bottom, icons 1-3) */
.landing-asset-page .landing-hero-benefits.lp-benefits {
  width: auto;
  max-width: 560px;
  margin: 22px 0 0 -4px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  row-gap: 12px;
}

.lp-benefit-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.lp-benefit-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.lp-benefit-item span {
  font-size: .875rem;
  font-weight: 700;
  color: #1a2b4b;
  letter-spacing: -0.02em;
  line-height: 1.38;
  white-space: normal;
  max-width: 108px;
}

.lp-benefit-sep { display: none; }

/* Feature strip (icons 4-8) */
.lp-feature-strip {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(10, 30, 80, .10);
  display: flex;
  border: 1px solid #e4ecf5;
  overflow: hidden;
}

.lp-feature-item {
  flex: 1;
  padding: 22px 18px;
  border-right: 1px solid #e8edf5;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 3px;
  align-items: start;
}

.lp-feature-item:last-child { border-right: 0; }

.lp-feature-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.lp-feature-title {
  font-size: .9rem;
  font-weight: 800;
  color: #07143e;
  letter-spacing: -0.025em;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.lp-feature-desc {
  font-size: .8125rem;
  color: #4a5568;
  line-height: 1.55;
  margin: 0;
  grid-column: 2;
  grid-row: 2;
}

/* Section heading */
.lp-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #07143e;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

@media (min-width: 761px) {
  .landing-asset-page .lp-section-title {
    text-align: center;
  }
}

/* Process steps (icons 9-12) */
.lp-steps-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.lp-step-card {
  flex: 1;
  border-radius: 10px;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
}

.lp-step-blue   { background: #eef5ff; }
.lp-step-green  { background: #eafaf2; }
.lp-step-purple { background: #f0edff; }
.lp-step-amber  { background: #fff7ee; }

.lp-step-num { display: none; }

.lp-step-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.lp-step-card strong {
  display: block;
  font-size: .8125rem;
  font-weight: 800;
  color: #07143e;
  letter-spacing: -0.02em;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.lp-step-card p {
  font-size: .75rem;
  color: #344563;
  line-height: 1.5;
  margin: 0;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.lp-step-arrow {
  flex-shrink: 0;
  color: #b0bdd0;
  font-size: 1.375rem;
  padding-top: 36px;
  align-self: flex-start;
}

/* Target users (icons 13-18) */
.lp-targets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lp-target-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2eaf4;
  text-align: center;
}

.lp-target-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.lp-target-item span {
  font-size: .8125rem;
  font-weight: 600;
  color: #2d3a55;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* lp-* responsive */
@media (max-width: 1180px) {
  .lp-step-card { padding: 14px 12px; }
  .lp-step-icon { width: 44px; height: 44px; }
}

@media (max-width: 900px) {
  .lp-feature-strip { flex-wrap: wrap; }
  .lp-feature-item { flex: 0 0 33.333%; }
  .lp-feature-item:nth-child(3) { border-right: 0; }
  .lp-feature-item:nth-child(n+4) { border-top: 1px solid #e8edf5; }
  .lp-steps-row { flex-wrap: wrap; gap: 10px; }
  .lp-step-card { flex: 0 0 calc(50% - 5px); }
  .lp-step-arrow { display: none; }
  .lp-targets-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .lp-feature-item { flex: 0 0 50%; }
  .lp-feature-item:nth-child(3) { border-right: 1px solid #e8edf5; }
  .lp-feature-item:nth-child(2n) { border-right: 0; }
  .lp-feature-item:nth-child(n+3) { border-top: 1px solid #e8edf5; }
  .lp-feature-item:nth-last-child(1):nth-child(odd) { flex: 0 0 100%; border-right: 0; }
}

@media (max-width: 430px) {
  .lp-benefit-sep { display: none; }
  .lp-benefit-item { padding-right: 10px; }
  .lp-benefit-item span { white-space: normal; }
  .lp-feature-item { flex: 0 0 100%; border-right: 0; border-bottom: 1px solid #e8edf5; }
  .lp-feature-item:last-child { border-bottom: 0; }
  .lp-step-card { flex: 0 0 100%; }
  .lp-targets-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-target-icon { width: 52px; height: 52px; }
}

/* ── Bottom CTA */

.landing-asset-page .landing-cta-wrap {
  grid-column: 1;
}

.landing-asset-page .landing-cta-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--landing-navy);
  border-radius: 16px;
  color: #fff;
}

.landing-asset-page .landing-cta-shield {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin-left: 28px;
}

.landing-asset-page .landing-cta-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.landing-asset-page .landing-cta-text strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.3;
}

.landing-asset-page .landing-cta-text p {
  font-size: 14.5px;
  color: rgba(255,255,255,.65);
  margin: 5px 0 0;
  letter-spacing: -0.01em;
}

.landing-asset-page .landing-cta-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #fff;
  color: var(--landing-navy);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.landing-asset-page .landing-cta-btn:hover { opacity: .85; }

/* Responsive */

@media (max-width: 1180px) {
  .landing-asset-page .landing-asset-wrap,
  .landing-asset-page .landing-feature-assets .landing-asset-wrap {
    width: min(100% - 40px, 960px);
  }

  .landing-asset-page .landing-bottom-asset-section .landing-asset-wrap {
    width: min(100% - 40px, 820px);
  }

  .landing-asset-page .landing-asset-hero {
    min-height: auto;
    padding: 34px 0 64px;
    background: #fff;
  }

  .landing-asset-page .landing-asset-hero::after {
    display: none;
  }

  .landing-asset-page .landing-asset-visual::before,
  .landing-asset-page .landing-asset-visual::after {
    display: none;
  }

  .landing-asset-page .landing-asset-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .landing-asset-page .landing-hero-benefits {
    width: min(650px, 100%);
    margin-left: 0;
  }

  .landing-asset-page .landing-asset-visual {
    margin-right: 0;
    padding-top: 0;
  }

  .landing-asset-page .landing-dashboard-asset {
    width: 100%;
    margin: 0 auto;
  }

  .landing-asset-page .landing-feature-assets {
    margin-top: -34px;
  }

  .landing-asset-page .landing-wide-asset {
    width: 100%;
  }

  .landing-asset-page .landing-lower-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .landing-asset-page .landing-target-assets {
    border-left: 0;
    padding-left: 0;
    grid-column: 1;
    grid-row: auto;
  }

  .landing-asset-page .landing-process-assets {
    grid-column: 1;
    grid-row: auto;
  }

  .landing-asset-page .landing-cta-wrap {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }

  .landing-asset-page .landing-cta-block {
    padding: 10px 14px;
    gap: 10px;
    margin-top: 0;
  }

  .landing-asset-page .landing-cta-shield {
    width: 44px;
    height: 44px;
    margin-left: 0;
  }

  .landing-asset-page .landing-cta-text strong { font-size: 14px; }
  .landing-asset-page .landing-cta-text p { font-size: 12px; }

  .landing-asset-page .landing-cta-btn {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .landing-asset-page .landing-process-asset {
    width: min(820px, 100%);
    margin: -6px auto -10px;
  }

  .landing-asset-page .landing-target-asset {
    width: min(520px, 100%);
    margin: -4px auto -10px;
  }

  .landing-asset-page .landing-bottom-asset {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .landing-asset-page .landing-asset-wrap,
  .landing-asset-page .landing-feature-assets .landing-asset-wrap {
    width: calc(100% - 30px);
  }

  .landing-asset-page .landing-bottom-asset-section .landing-asset-wrap {
    width: calc(100% - 24px);
  }

  .landing-asset-page .landing-asset-hero {
    padding: 28px 0 46px;
  }

  .landing-asset-page .landing-asset-visual {
    display: none;
  }

  .landing-asset-page .landing-asset-hero-grid {
    grid-template-columns: 1fr;
  }

  .landing-asset-page .landing-asset-copy {
    padding-left: 10px;
  }

  .landing-asset-page .landing-asset-copy h1 {
    font-size: 42px;
  }

  .landing-asset-page .landing-desc {
    font-size: 16px;
    line-height: 1.65;
  }

  .landing-asset-page .landing-actions {
    gap: 10px;
  }

  .landing-asset-page .landing-btn {
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
  }

  .landing-asset-page .landing-hero-benefits {
    width: 100%;
    max-width: none;
    margin: 18px 0 0;
    transform: scaleX(1.05);
    transform-origin: left center;
  }

  .landing-asset-page .landing-dashboard-asset {
    width: 100%;
    margin-left: 0;
  }

  .landing-asset-page .landing-feature-assets {
    margin-top: -18px;
    padding-bottom: 28px;
  }

  .landing-asset-page .landing-wide-asset {
    width: 100%;
    margin-left: 0;
  }

  .landing-asset-page .landing-lower-assets {
    padding-bottom: 34px;
  }

  .landing-asset-page .landing-lower-grid {
    gap: 14px;
  }

  .landing-asset-page .landing-process-asset {
    width: 100%;
    margin: -18px 0 -20px;
  }

  .landing-asset-page .landing-target-asset {
    width: 100%;
    margin: -18px auto -20px;
  }

  .landing-asset-page .landing-bottom-asset {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 430px) {
  .landing-asset-page .landing-asset-wrap,
  .landing-asset-page .landing-feature-assets .landing-asset-wrap,
  .landing-asset-page .landing-bottom-asset-section .landing-asset-wrap {
    width: calc(100% - 24px);
  }

  .landing-asset-page .landing-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  .landing-asset-page .landing-asset-copy h1 {
    font-size: 37px;
  }

  .landing-asset-page .landing-desc br {
    display: inline;
  }

  .landing-asset-page .landing-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .landing-asset-page .landing-hero-benefits {
    width: 100%;
    margin-left: 0;
  }

  .landing-asset-page .landing-dashboard-asset {
    width: 100%;
    margin-left: 0;
  }

  .landing-asset-page .landing-wide-asset,
  .landing-asset-page .landing-bottom-asset {
    width: 100%;
    margin-left: 0;
  }

  .landing-asset-page .landing-process-asset {
    width: 100%;
    margin-left: 0;
  }

  .landing-asset-page .landing-target-asset {
    width: 100%;
    margin-left: 0;
  }
}

/* =========================================================
   Flow Page  (flow.php)  — reference: references/homepage/flow.png
   ========================================================= */

.flow-page { background: #fff; }

.flow-wrap {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

/* ── ① 소개 섹션 ──────────────────────────────────────────── */
.flow-intro {
  padding: 72px 0 64px;
  background: #f8fafc;
  border-bottom: 1px solid #e6ecf5;
  text-align: center;
}

.flow-intro h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #07143e;
  margin: 0 0 16px;
  line-height: 1.2;
}

.flow-intro p {
  font-size: 1rem;
  color: #4a5876;
  line-height: 1.7;
  margin: 0;
}

/* ── ② 6단계 타임라인 ─────────────────────────────────────── */
.flow-timeline-section {
  padding: 72px 0 80px;
  background: #fff;
}

.flow-timeline {
  display: flex;
  align-items: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: #d4dff0;
  z-index: 0;
}

.flow-tl-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.flow-step-icon-img {
  width: 96px;
  height: auto;
  margin-bottom: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: block;
}

.flow-tl-num {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #075dcc;
  margin-bottom: 10px;
}

.flow-tl-num-last { color: #07143e; }

.flow-tl-text { padding: 0 4px; }

.flow-tl-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 800;
  color: #07143e;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.flow-tl-text p {
  font-size: .8125rem;
  color: #5a6a88;
  line-height: 1.58;
  margin: 0;
}

/* ── ③ 구매자/판매자 카드 ────────────────────────────────── */
.flow-parties-section {
  padding: 72px 0;
  background: #f8fafc;
}

.flow-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.flow-party-card {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 30, 80, .05);
}

.flow-party-content {
  flex: 1;
  padding: 36px 32px;
  min-width: 0;
}

.flow-party-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.flow-badge-buyer { background: #eef5ff; color: #075dcc; }
.flow-badge-seller { background: #eaf6f0; color: #1a7a45; }

.flow-party-content h2 {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #07143e;
  line-height: 1.35;
  margin: 0 0 14px;
}

.flow-party-content p {
  font-size: .875rem;
  color: #3d4e6e;
  line-height: 1.72;
  margin: 0 0 20px;
}

.flow-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  font-weight: 600;
  color: #2d3a55;
}

.flow-checklist li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef5ff;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23075dcc' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Illustration panel */
.flow-party-illust {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 20px 8px;
}

.flow-party-illust-img {
  width: 200px;
  height: auto;
  display: block;
}

/* ── ④ BizPort가 정리해주는 것 ──────────────────────────── */
.flow-summary-section {
  padding: 72px 0 80px;
  background: #fff;
}

.flow-summary-header {
  text-align: center;
  margin-bottom: 48px;
}

.flow-summary-header h2 {
  font-size: 1.625rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #07143e;
  margin: 0 0 12px;
}

.flow-summary-header p {
  font-size: .9375rem;
  color: #4a5876;
  line-height: 1.65;
  margin: 0;
}

.flow-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flow-summary-card {
  background: #f8fafc;
  border: 1px solid #e2eaf4;
  border-radius: 12px;
  padding: 28px 26px;
}

.flow-summary-icon-img {
  width: 84px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.flow-summary-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #07143e;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.flow-summary-card p {
  font-size: .875rem;
  color: #4a5876;
  line-height: 1.65;
  margin: 0;
}

/* ── ⑤ 하단 CTA ─────────────────────────────────────────── */
.flow-cta-section {
  padding: 0 0 80px;
  background: #fff;
}

.flow-cta-box {
  background: #07143e;
  border-radius: 16px;
  padding: 56px 60px;
  text-align: center;
}

.flow-cta-box h2 {
  font-size: 1.625rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #fff;
  margin: 0 0 14px;
}

.flow-cta-box p {
  font-size: .9375rem;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  margin: 0 0 32px;
}

.flow-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.flow-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  border-radius: 7px;
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: background 130ms ease, border-color 130ms ease, color 130ms ease, opacity 130ms ease;
}

.flow-btn-white {
  background: #fff;
  color: #07143e;
}
.flow-btn-white:hover { opacity: .9; }

.flow-btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.3);
}
.flow-btn-outline-white:hover {
  border-color: rgba(255,255,255,.65);
  color: #fff;
}

/* ── 반응형 ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .flow-intro { padding: 52px 0 48px; }
  .flow-timeline-section,
  .flow-parties-section,
  .flow-summary-section { padding: 56px 0; }
  .flow-cta-section { padding: 0 0 60px; }

  /* 타임라인: 3+3 두 줄 그리드 */
  .flow-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 16px;
  }
  .flow-timeline::before { display: none; }

  .flow-parties { grid-template-columns: 1fr; gap: 16px; }

  .flow-summary-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .flow-cta-box { padding: 40px 32px; }
}

@media (max-width: 560px) {
  .flow-wrap { width: calc(100% - 32px); }
  .flow-intro h1 { font-size: 1.625rem; }
  .flow-timeline { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .flow-step-icon-img { width: 80px; }
  .flow-party-illust-img { width: 160px; }
  .flow-summary-icon-img { width: 72px; }
  .flow-summary-grid { grid-template-columns: 1fr; }
  .flow-cta-box { padding: 32px 20px; border-radius: 12px; }
  .flow-cta-box h2 { font-size: 1.3rem; }
}

@media (max-width: 430px) {
  .flow-timeline { grid-template-columns: 1fr; }
  .flow-tl-step { flex-direction: row; text-align: left; gap: 16px; }
  .flow-step-icon-img { width: 72px; margin-bottom: 0; flex-shrink: 0; }
  .flow-tl-step .flow-tl-num { display: none; }
  .flow-timeline::before { display: none; }
  .flow-party-illust { display: none; }
  .flow-summary-icon-img { width: 64px; }
}

/* ══════════════════════════════════════════════════════════════
   Support page  (support-)
   ══════════════════════════════════════════════════════════════ */

.support-page {
  background: #fff;
  color: #07143e;
}

.support-wrap {
  width: min(100% - 56px, 1100px);
  margin: 0 auto;
}

/* ── Hero */
.support-hero {
  background:
    url('/images/support/support-bg.png') center / 100% 100% no-repeat;
  padding: 44px 0 40px;
  border-bottom: 1px solid #e0e8f2;
  position: relative;
  overflow: hidden;
}

.support-hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #07143e;
  margin: 0 0 10px;
}

.support-hero-desc {
  font-size: 0.9375rem;
  color: #5a6a88;
  margin: 0;
}

/* ── Tab bar */
.support-tab-bar {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #e0e8f2;
}

.support-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid #e0e8f2;
  border-radius: 12px;
  overflow: hidden;
}

.support-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #8898b2;
  background: #f8fafd;
  text-decoration: none;
  border-right: 1px solid #e0e8f2;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.support-tab:last-child {
  border-right: none;
}

.support-tab:hover {
  background: #f0f5ff;
  color: #07143e;
}

.support-tab.is-active {
  background: #fff;
  color: #075dcc;
  border-bottom-color: #075dcc;
}

.support-tab-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  opacity: 0.55;
}

.support-tab.is-active .support-tab-icon {
  opacity: 1;
}

/* ── Content area */
.support-content {
  padding: 48px 0 64px;
  min-height: 400px;
}

.support-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #07143e;
  margin: 0 0 28px;
}

/* ── Notice list */
.support-notice-list {
  border-top: 1px solid #e0e8f2;
}

.support-notice-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  border-bottom: 1px solid #e0e8f2;
  transition: background 0.12s;
}

.support-notice-row:hover {
  background: #f6f9ff;
}

.support-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0;
}

.support-badge-notice {
  background: #075dcc;
  color: #fff;
}

.support-badge-info {
  background: #e0e8f2;
  color: #5a6a88;
}

.support-notice-link {
  flex: 1;
  font-size: 0.9375rem;
  color: #07143e;
  text-decoration: none;
  font-weight: 500;
}

.support-notice-link:hover {
  color: #075dcc;
  text-decoration: underline;
}

.support-notice-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: #8898b2;
}

/* ── FAQ category pills */
.support-faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.support-faq-cat {
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5a6a88;
  background: #f6f9ff;
  border: 1px solid #e0e8f2;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.support-faq-cat:hover {
  color: #075dcc;
  border-color: #075dcc;
}

.support-faq-cat.is-active {
  background: #075dcc;
  color: #fff;
  border-color: #075dcc;
}

/* ── FAQ accordion (details/summary) */
.support-faq-list {
  border-top: 1px solid #e0e8f2;
}

.support-faq-item {
  border-bottom: 1px solid #e0e8f2;
}

.support-faq-item[hidden] {
  display: none;
}

.support-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #07143e;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.support-faq-q::-webkit-details-marker { display: none; }

.support-faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 7l5 5 5-5' stroke='%238898b2' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s;
}

.support-faq-item[open] > .support-faq-q::after {
  transform: rotate(180deg);
}

.support-faq-item[open] > .support-faq-q {
  color: #075dcc;
}

.support-faq-a {
  padding: 0 12px 18px 12px;
  font-size: 0.9rem;
  color: #4a5a78;
  line-height: 1.7;
}

.support-faq-a a {
  color: #075dcc;
  text-decoration: underline;
}

/* ── Contact form */
.support-contact-desc {
  font-size: 0.9375rem;
  color: #5a6a88;
  margin: -12px 0 28px;
}

.support-contact-form {
  max-width: 640px;
}

.support-form-row {
  margin-bottom: 20px;
}

.support-form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.support-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #07143e;
  margin-bottom: 7px;
}

.support-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: #07143e;
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}

.support-input:focus {
  outline: none;
  border-color: #075dcc;
  box-shadow: 0 0 0 3px rgba(7, 93, 204, 0.12);
}

.support-input::placeholder { color: #b0bdd4; }

.support-textarea {
  resize: vertical;
  min-height: 140px;
}

select.support-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%238898b2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.support-form-agree {
  margin-bottom: 24px;
}

.support-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #5a6a88;
  cursor: pointer;
}

.support-agree-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #075dcc;
}

.support-agree-label a {
  color: #075dcc;
  text-decoration: underline;
}

.support-form-submit { margin-top: 4px; }

.support-submit-btn {
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: #075dcc;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.support-submit-btn:hover { opacity: 0.88; }

/* ── CTA section */
.support-cta-section {
  padding: 0 0 64px;
}

.support-cta-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #07143e;
  border-radius: 16px;
  color: #fff;
}

.support-cta-shield {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin-left: 28px;
}

.support-cta-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.support-cta-text strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.3;
}

.support-cta-text p {
  font-size: 14.5px;
  color: rgba(255,255,255,.65);
  margin: 5px 0 0;
  letter-spacing: -0.01em;
}

.support-cta-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #fff;
  color: #07143e;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.support-cta-btn:hover { opacity: 0.85; }

/* ── Responsive */

@media (max-width: 760px) {
  .support-wrap {
    width: calc(100% - 32px);
  }

  .support-hero {
    padding: 36px 0 32px;
    background-image: url('/images/support/support-bg-m.png');
  }

  .support-hero-title {
    font-size: 1.625rem;
  }

  .support-tab-bar {
    padding: 16px 0;
  }

  .support-tab {
    padding: 14px 16px;
    font-size: 0.875rem;
    gap: 8px;
  }

  .support-content {
    padding: 36px 0 48px;
  }

  .support-form-row--half {
    grid-template-columns: 1fr;
  }

  .support-cta-block {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 14px;
  }

  .support-cta-shield {
    width: 52px;
    height: 52px;
    margin-left: 0;
  }

  .support-cta-text {
    text-align: center;
  }

  .support-cta-text strong {
    font-size: 16px;
  }

  .support-cta-text p {
    font-size: 13px;
  }

  .support-cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

@media (max-width: 430px) {
  .support-wrap {
    width: calc(100% - 24px);
  }

  .support-tabs {
    grid-template-columns: 1fr 1fr 1fr;
    border-radius: 10px;
  }

  .support-tab {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    font-size: 0.75rem;
    border-right: 1px solid #e0e8f2;
    border-bottom: 3px solid transparent;
    text-align: center;
  }

  .support-tab:last-child {
    border-right: none;
  }

  .support-tab.is-active {
    border-bottom-color: #075dcc;
    border-left: none;
    padding-left: 6px;
  }

  .support-tab-icon {
    display: flex;
  }

  .support-notice-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .support-notice-date {
    flex-basis: 100%;
    padding-left: 0;
  }

  .support-cta-section {
    padding-bottom: 40px;
  }
}

/* =========================================================
   Create Transaction — 2-step redesign
   ========================================================= */

/* Step indicator */
.tx-step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.tx-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bp-muted);
  font-size: 14px;
  font-weight: 700;
}
.tx-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bp-line);
  background: #fff;
  color: var(--bp-muted);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.tx-step-label {
  white-space: nowrap;
}
.tx-step--active .tx-step-num {
  background: var(--bp-blue);
  border-color: var(--bp-blue);
  color: #fff;
}
.tx-step--active .tx-step-label {
  color: var(--bp-ink);
}
.tx-step--done .tx-step-num {
  background: #e7f6ee;
  border-color: #0d8a4f;
  color: #0d8a4f;
  font-size: 12px;
}
.tx-step--done .tx-step-label {
  color: var(--bp-muted);
}
.tx-step-connector {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--bp-line);
  margin: 0 12px;
}

/* Transaction type row */
.tx-type-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
}
.tx-type-label {
  font-size: 14px;
  font-weight: 800;
  color: #243047;
  white-space: nowrap;
  flex-shrink: 0;
}
.tx-type-select-wrap {
  position: relative;
  flex: 1;
  max-width: 260px;
}
.tx-type-select {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 16px;
  border: 1.5px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bp-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23657086' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color .15s;
}
.tx-type-select:focus {
  outline: none;
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px rgba(7,93,204,.08);
}

/* Step 1 layout: narrow right policy panel */
.start-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

/* Policy panel */
.start-policy-panel {
  display: flex;
  flex-direction: column;
}
/* Field-level validation errors */
.start-fields label.has-error > span {
  color: #c93438;
}
input.is-error,
select.is-error,
textarea.is-error {
  border-color: #e5484d !important;
  background-color: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(229,72,77,.08) !important;
}
.field-error-message {
  display: block;
  margin: 7px 0 0;
  color: #c93438;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
  /* align under input column, not label text column */
  grid-column: 2;
}

.policy-notice {
  margin: 0 20px 14px;
  padding: 12px 14px;
  background: #edf5ff;
  border-radius: 8px;
  font-size: 12px;
  color: #243047;
  line-height: 1.6;
}
.policy-notice strong {
  color: var(--bp-blue);
}
.policy-type-badge {
  display: inline-block;
  margin: 0 28px 16px;
  padding: 4px 12px;
  background: var(--bp-soft-blue);
  color: var(--bp-blue);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.policy-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 20px 20px;
}
.policy-item {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  padding: 13px 8px 13px 36px;
  border-bottom: 1px solid var(--bp-line);
  position: relative;
}
.policy-item:last-child { border-bottom: none; }
.policy-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.policy-item--ok::before   { background: #0d8a4f; }
.policy-item--warn::before { background: #de7900; }
.policy-item--no::before   { background: #a92222; }
.policy-item--info::before { background: #657086; }
.policy-item strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--bp-ink);
}
.policy-item span {
  font-size: 12px;
  color: var(--bp-muted);
  line-height: 1.5;
}
.policy-footer {
  margin: auto 28px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bp-line);
  font-size: 11px;
  color: var(--bp-muted);
  line-height: 1.5;
}

/* Date row — both labels visible */
.date-row--both label {
  grid-template-columns: 140px 1fr;
  gap: 16px;
}
.date-row--both label + label {
  grid-template-columns: 140px 1fr;
  gap: 16px;
}
.start-fields input[type="date"] {
  padding: 0 14px;
  cursor: pointer;
}
.start-fields input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .5;
  cursor: pointer;
}

/* Phone input */
input[data-phone-input] {
  letter-spacing: .04em;
}

/* ── Step 2 ─────────────────────────────────────────────── */

/* Transaction summary */
.tx-summary-card {
  margin-bottom: 18px;
}
.tx-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 4px 28px 20px;
}
.tx-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 16px 0;
  min-width: 160px;
  border-right: 1px solid var(--bp-line);
  margin-right: 24px;
}
.tx-summary-item:last-child {
  border-right: none;
  margin-right: 0;
}
.tx-summary-item--wide {
  flex: 1;
  min-width: 240px;
}
.tx-summary-item > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--bp-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tx-summary-item > strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--bp-ink);
}

/* Contract card */
.start-step2-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contract-card-wrap {
  padding: 20px 28px 28px;
}
.contract-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  background: var(--bp-soft);
}
.contract-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bp-line);
  overflow: hidden;
}
.contract-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.contract-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contract-card-info strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--bp-ink);
}
.contract-card-info span {
  font-size: 12px;
  color: var(--bp-muted);
  font-weight: 600;
}
.contract-card-info p {
  font-size: 13px;
  color: var(--bp-muted);
  margin-top: 2px;
}
.contract-card-btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bp-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: not-allowed;
  line-height: 1.4;
  text-align: center;
}
.contract-card-btn small {
  display: block;
  font-size: 11px;
  color: #aab8cc;
  font-weight: 600;
}

/* Attachment + memo row */
.step2-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.step2-attach-body {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 28px 28px;
}
.step2-attach-body p {
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-ink);
  margin-bottom: 2px;
}
.step2-attach-body small {
  font-size: 12px;
  color: var(--bp-muted);
}
.step2-attach-body button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--bp-line);
  border-radius: 7px;
  background: #fff;
  color: var(--bp-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: not-allowed;
}
.step2-memo-body {
  padding: 8px 28px 28px;
}
.step2-memo-body textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid var(--bp-line);
  border-radius: 7px;
  background: #fff;
  color: var(--bp-ink);
  font: inherit;
  font-size: 15px;
  resize: vertical;
}
.step2-memo-body textarea:focus {
  outline: none;
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px rgba(7,93,204,.08);
}

/* Back button */
.btn-prev {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
  color: #243047;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s;
}
.btn-prev:hover {
  border-color: #243047;
}

/* Responsive */
@media (max-width: 900px) {
  .tx-type-select-wrap { max-width: 100%; }
  .step2-bottom-panels { grid-template-columns: 1fr; }
  .tx-summary-grid { gap: 0; }
  .tx-summary-item {
    min-width: 120px;
    padding: 12px 16px 12px 0;
    margin-right: 16px;
  }
  .contract-card { grid-template-columns: 52px 1fr; }
  .contract-card-btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 600px) {
  .tx-step-bar { gap: 0; }
  .tx-step-connector { max-width: 24px; margin: 0 6px; }
  .tx-type-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .date-row--both { grid-template-columns: 1fr; }
  .date-row--both label,
  .date-row--both label + label { grid-template-columns: 140px 1fr; }
  .step2-attach-body { grid-template-columns: 52px 1fr; }
  .step2-attach-body button { grid-column: 1 / -1; }
  .tx-summary-grid { flex-direction: column; }
  .tx-summary-item { border-right: none; margin-right: 0; border-bottom: 1px solid var(--bp-line); }
  .tx-summary-item:last-child { border-bottom: none; }
}

/* ─── Admin ───────────────────────────────────────────────── */
.admin-sidebar { background: #0e1e38; border-right-color: #1a2f52; }
.admin-sidebar .app-brand { color: #fff; }
.admin-sidebar .app-brand-logo { filter: brightness(0) invert(1); }
.admin-sidebar .app-nav-link { color: #a8bcd6; }
.admin-sidebar .app-nav-link svg { stroke: currentColor; }
.admin-sidebar .app-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-sidebar .app-nav-link.active { background: rgba(47,130,237,.18); color: #6db3ff; }
.admin-sidebar .app-sidebar-logout { color: #a8bcd6; border-color: #1e3356; background: transparent; }
.admin-sidebar .app-sidebar-logout:hover { background: rgba(255,255,255,.07); color: #fff; border-color: #2d4a72; }

.admin-sidebar-badge {
  margin: -10px 18px 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(47,130,237,.22);
  color: #6db3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.admin-topbar { justify-content: space-between; }
.admin-topbar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--bp-ink);
  margin: 0;
}
.admin-topbar-logout {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-muted);
  background: #fff;
  text-decoration: none;
  transition: border-color .12s, color .12s;
}
.admin-topbar-logout:hover { border-color: #c8d6e8; color: var(--bp-ink); }

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  box-shadow: var(--bp-card-shadow);
}
.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.admin-stat-icon--blue   { background: #edf5ff; color: var(--bp-blue); }
.admin-stat-icon--green  { background: #eafaf2; color: #1a9e5f; }
.admin-stat-icon--purple { background: #f4eeff; color: #7c3aed; }
.admin-stat-icon--orange { background: #fff4e5; color: #d97706; }
.admin-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-stat-label { font-size: 13px; color: var(--bp-muted); font-weight: 500; }
.admin-stat-value { font-size: 24px; font-weight: 900; color: var(--bp-ink); line-height: 1.1; }
.admin-stat-sub { font-size: 12px; color: var(--bp-muted); }

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-filter-input {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--bp-ink);
  background: #fff;
  min-width: 200px;
  outline: none;
  transition: border-color .12s;
}
.admin-filter-input:focus { border-color: var(--bp-blue); }
.admin-filter-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--bp-ink);
  background: #fff;
  outline: none;
  cursor: pointer;
}
.admin-filter-reset {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  color: var(--bp-muted);
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: color .12s, border-color .12s;
}
.admin-filter-reset:hover { color: var(--bp-ink); border-color: #c8d6e8; }

.admin-td-muted { color: var(--bp-muted); font-size: 13px; }
.admin-table-actions { display: flex; gap: 6px; align-items: center; }
.admin-btn-sm {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bp-muted);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.admin-btn-sm:hover { border-color: #c8d6e8; color: var(--bp-ink); }
.admin-btn-sm--danger { color: #c0392b; border-color: #f5c6c2; }
.admin-btn-sm--danger:hover { background: #fff5f4; border-color: #e8a09a; }

.admin-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-status--active,
.admin-status--closed   { background: #eafaf2; color: #1a9e5f; }
.admin-status--pending  { background: #fff4e5; color: #d97706; }
.admin-status--confirmed{ background: #edf5ff; color: var(--bp-blue); }
.admin-status--canceled,
.admin-status--blocked,
.admin-status--suspended{ background: #fef2f2; color: #c0392b; }
.admin-status--withdrawn{ background: #f1f5f9; color: #64748b; }
.admin-status--pay-paid     { background: #eafaf2; color: #1a9e5f; }
.admin-status--pay-waiting  { background: #fff4e5; color: #d97706; }
.admin-status--pay-failed   { background: #fef2f2; color: #c0392b; }
.admin-status--pay-refunded { background: #f4eeff; color: #7c3aed; }
.admin-status--pay-none     { background: #f1f5f9; color: #64748b; }
.admin-status--inq-received { background: #fff4e5; color: #d97706; }
.admin-status--inq-answered { background: #eafaf2; color: #1a9e5f; }
.admin-status--inq-closed   { background: #f1f5f9; color: #64748b; }

.admin-panel-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-blue);
  text-decoration: none;
}
.admin-panel-more:hover { text-decoration: underline; }

.admin-back-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-muted);
  background: #fff;
  text-decoration: none;
  transition: color .12s, border-color .12s;
}
.admin-back-btn:hover { color: var(--bp-ink); border-color: #c8d6e8; }

.admin-notice-form { display: flex; flex-direction: column; gap: 20px; padding: 8px 0; }
.admin-form-row { display: flex; align-items: center; gap: 14px; }
.admin-form-row--top { align-items: flex-start; }
.admin-form-label {
  width: 80px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--bp-ink);
}
.admin-textarea {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--bp-ink);
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color .12s;
}
.admin-textarea:focus { border-color: var(--bp-blue); }
.admin-toggle-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.admin-form-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; padding-top: 8px; }
.admin-inline-select,
.admin-status-control select {
  min-height: 34px;
  border: 1px solid #d8e2ee;
  border-radius: 7px;
  background: #fff;
  color: #243047;
  font-size: 13px;
  font-weight: 800;
}
.admin-inline-select {
  padding: 0 28px 0 10px;
}
.admin-status-control {
  display: grid;
  gap: 8px;
}
.admin-status-control span {
  color: #5c6678;
  font-size: 13px;
  font-weight: 900;
}
.admin-status-control select {
  width: 100%;
  padding: 0 12px;
}

.admin-notice-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bp-soft-blue);
  color: var(--bp-blue);
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  justify-content: center;
}
.admin-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-muted);
  background: #fff;
  text-decoration: none;
  transition: border-color .12s, color .12s;
}
.admin-page-btn:hover { border-color: #c8d6e8; color: var(--bp-ink); }
.admin-page-btn.active { background: var(--bp-blue); border-color: var(--bp-blue); color: #fff; }

.app-alert--ok { background: #eafaf2; color: #1a9e5f; border-color: #b2e8ce; }

@media (max-width: 900px) {
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-filter-bar { flex-direction: column; align-items: stretch; }
  .admin-filter-input { min-width: 0; }
}

/* ─── Admin Login ─────────────────────────────────────────── */
.admin-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e1e38;
}
.admin-login-wrap {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
}
.admin-login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.admin-login-logo { display: flex; align-items: center; }
.admin-login-logo-img { height: 36px; width: auto; }
.admin-login-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(7,93,204,.12);
  color: var(--bp-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.admin-login-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--bp-ink);
  margin: 0;
}
.admin-login-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.admin-login-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.admin-login-label { font-size: 13px; font-weight: 700; color: var(--bp-ink); }
.admin-login-back {
  font-size: 13px;
  color: var(--bp-muted);
  text-decoration: none;
  margin-top: 4px;
}
.admin-login-back:hover { color: var(--bp-ink); }

/* ---------- 로그아웃 폼/버튼 (POST + CSRF 전환) ---------- */
.app-logout-form { margin: auto 14px 48px; }
.app-logout-form .app-sidebar-logout { width: 100%; margin: 0; cursor: pointer; font-family: inherit; }
.admin-logout-form { display: inline-flex; margin: 0; }
.admin-topbar-logout { cursor: pointer; font-family: inherit; }
.app-drop-logout-form { margin: 0; border-top: 1px solid #e0e8f2; }
.app-drop-logout {
  display: block;
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #17213a;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s;
}
.app-drop-logout:hover { background: #f0f5ff; color: #075dcc; }
.pub-logout-form { display: inline-flex; margin: 0; }
.pub-cta-logout-btn { background: transparent; cursor: pointer; font-family: inherit; }
.mobile-logout-form { margin: 0; }
.mobile-logout-btn { display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border); text-align: left; cursor: pointer; font-family: inherit; color: inherit; }

/* ---------- 통신판매중개자 고지 ---------- */
.footer-biz-notice {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8a97ab;
}
.intermediary-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #5c6b80;
  background: #f4f7fb;
  border-radius: 8px;
}

/* ---------- 전화번호 매칭 거래 요청 ---------- */
.requested-matched-panel { margin-bottom: 20px; }
.matched-invite-list { display: grid; gap: 16px; }
.matched-invite-item {
  padding: 16px;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #fbfdff;
}
.matched-invite-item .requested-claim-form { margin-top: 12px; }
.invite-banner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #bcd6f7;
  border-radius: 10px;
  background: #eef5ff;
  color: #0d4d9e;
  text-decoration: none;
  transition: border-color .12s, background .12s;
}
.invite-banner:hover { background: #e2eefc; border-color: #9cc2ef; }
.invite-banner span { font-size: 13px; color: #3c6ea8; }

.requested-layout--single { grid-template-columns: 1fr; }

@media (max-width: 430px) {
  .matched-invite-item { padding: 14px; }
  .invite-banner { padding: 12px 14px; }
}

/* .start-layout 기본 규칙(9570행대)이 미디어쿼리보다 뒤에 선언돼 모바일 1열 전환을 덮어쓰던 문제 보정 */
@media (max-width: 1180px) {
  .start-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-error-message { grid-column: 1; }
}

/* ---------- 모바일 헤더/푸터 보정 ---------- */
@media (max-width: 900px) {
  /* 데스크톱용 로고 들여쓰기 해제 — 모바일에선 왼쪽 정렬 */
  .site-header .logo-img { margin-left: 0; }
}

@media (max-width: 640px) {
  .footer-biz-wrap {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-biz-divider { display: none; }
  .footer-biz-logo { height: 56px; padding: 5px 8px; }
  .footer-biz-grid { grid-template-columns: 1fr; gap: 4px; }
  .footer-biz-entry { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .footer-ops-item:nth-child(5) { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); }
}
