/* ============================================================
   PAYLAX · brand palette
   ------------------------------------------------------------
   Blue-and-green fintech palette — primary blue for CTAs/links,
   deep navy for the marketing hero, green for confirmation
   ticks and trust signals. Light grey page background.
   ============================================================ */
:root{
  --brand-primary:  #3D5AFE;   /* PAYLAX blue — buttons, links, chat bubble */
  --brand-dark:     #1F2D5C;   /* deep navy — hero bg, headings, hover */
  --brand-accent:   #2EB872;   /* green — confirmation ticks, accents */
  --brand-page-bg:  #F7F8FA;   /* body background */
  --brand-card-bg:  #ffffff;
  --brand-subtle:   #fafbfc;   /* alt backgrounds */
  --text-body:      #1F2D5C;   /* navy body text */
  --text-muted:     #6b7280;
  --border-soft:    #e5e7eb;
}


*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;line-height:1.55;color:#2a2e4c;
  background:var(--brand-page-bg);min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--brand-dark)}
button{font-family:inherit;cursor:pointer}
strong,b{font-weight:700}

/* ==========================================================
   TOP BAR
   ========================================================== */
.topbar{
  background:var(--brand-primary);color:#fff;padding:14px 28px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  flex-wrap:wrap;box-shadow:0 2px 10px rgba(53,60,95,.12)
}
.topbar .brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:700;font-size:19px;letter-spacing:-.01em}
.topbar .brand .brand-logo{
  height:46px;width:auto;display:block;background:transparent;
  image-rendering:-webkit-optimize-contrast;
}
.topbar .brand .brandmark{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;background:#fff;color:var(--brand-primary);
  border-radius:50%;font-weight:800;font-size:15px;letter-spacing:-.03em;
}
.topbar .brand .brandmark-img{
  width:36px;height:36px;display:block;background:#fff;border-radius:50%;padding:3px;
}
.topbar .brand-sub{font-weight:400;font-size:11.5px;opacity:.78;margin-left:10px;padding-left:10px;border-left:1px solid rgba(255,255,255,.25)}
.topbar nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.topbar nav a,.topbar nav form button{color:#fff;text-decoration:none;font-size:13px;opacity:.92;padding:6px 0;background:none;border:none;font-family:inherit;font-weight:500}
.topbar nav a:hover,.topbar nav form button:hover{opacity:1;text-decoration:underline}
.topbar .userpill{background:rgba(255,255,255,.12);border-radius:999px;padding:5px 12px;font-size:12px;display:inline-flex;align-items:center;gap:8px}
.topbar .userpill .role{font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-size:9.5px;background:var(--brand-accent);color:#000040;padding:2px 8px;border-radius:999px}

/* ==========================================================
   PAGE
   ========================================================== */
.page{max-width:960px;margin:28px auto 64px;padding:0 20px}
.page.narrow{max-width:560px}
.page.wide{max-width:1120px}

/* ==========================================================
   HERO — gradient card (from invoice-bim)
   ========================================================== */
.hero{
  background:linear-gradient(135deg,var(--brand-dark) 0%,var(--brand-primary) 100%);
  color:#fff;border-radius:14px;
  padding:28px 32px;
  box-shadow:0 10px 30px rgba(53,60,95,.18);
  margin-bottom:18px;
  position:relative;overflow:hidden;
}
.hero::after{
  content:'';position:absolute;right:-80px;top:-80px;
  width:240px;height:240px;border-radius:50%;
  background:radial-gradient(circle,rgba(246,195,68,.18) 0%,rgba(246,195,68,0) 70%);pointer-events:none;
}
.hero .eyebrow{
  display:inline-block;font-size:11px;font-weight:800;letter-spacing:.1em;
  text-transform:uppercase;color:#000040;background:var(--brand-accent);
  padding:4px 10px;border-radius:999px;margin-bottom:10px;
}
.hero h1{font-size:26px;font-weight:800;letter-spacing:-.01em;margin:0 0 8px;color:#fff;line-height:1.2}
.hero h1.big{font-size:32px}
.hero .sub{font-size:14px;opacity:.9;max-width:640px;line-height:1.55}
.hero .sub a{color:var(--brand-accent)}
.hero .hero-meta{display:flex;gap:22px;flex-wrap:wrap;margin-top:16px;font-size:12.5px;color:#c9d0e5}
.hero .hero-meta b{color:#fff;display:block;font-size:16px;font-weight:800;margin-top:2px}
.hero .hero-cta{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:620px){
  .hero{padding:22px 20px}
  .hero h1{font-size:21px}
  .hero h1.big{font-size:24px}
}

/* ==========================================================
   CARDS
   ========================================================== */
.card{
  background:#fff;border-radius:12px;padding:22px 26px;
  box-shadow:0 4px 20px rgba(31,41,55,.06);
  border:1px solid #edf0f5;margin-bottom:16px;
}
.card h2{
  margin:0 0 4px;font-size:14px;font-weight:800;color:var(--brand-dark);
  letter-spacing:.08em;text-transform:uppercase;
}
.card h2.normal{text-transform:none;letter-spacing:-.01em;font-size:18px;font-weight:700;margin-bottom:6px}
.card .hint{font-size:13.5px;color:#6b7280;margin-bottom:14px;line-height:1.6}
.card.accent{
  border-color:var(--brand-dark);
  box-shadow:0 10px 32px rgba(53,60,95,.14);
}
.card.sepa-card{border-color:var(--brand-accent);box-shadow:0 10px 32px rgba(246,195,68,.18)}
.card.success{border-color:#86efac;background:#f0fdf4}
.card.success h2{color:#166534}
.card-sub{
  display:inline-block;font-size:11px;font-weight:800;letter-spacing:.1em;
  color:#6b7280;text-transform:uppercase;margin-bottom:10px
}

/* ==========================================================
   TABLES
   ========================================================== */
table.data{width:100%;border-collapse:collapse;font-size:13.5px}
table.data th,table.data td{padding:12px 10px;border-bottom:1px solid #edf0f5;text-align:left;vertical-align:top}
table.data thead th{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#6b7280;background:#f9fafb}
table.data tr:last-child td{border-bottom:none}
table.data td.num,table.data th.num{text-align:right;white-space:nowrap}
table.data .ref{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:600;color:var(--brand-dark)}
table.data a.ref{color:var(--brand-dark);text-decoration:none}
table.data a.ref:hover{text-decoration:underline}
table.data tr:hover td{background:#fafbfc}

/* Items table variant (invoice style) */
table.items{width:100%;border-collapse:collapse;font-size:14px}
table.items th,table.items td{text-align:left;padding:12px 8px;border-bottom:1px solid #edf0f5}
table.items thead th{font-size:11px;font-weight:700;letter-spacing:.1em;color:#6b7280;text-transform:uppercase}
table.items td.num,table.items th.num{text-align:right;white-space:nowrap}
table.items .desc strong{display:block;color:#111827;margin-bottom:2px}
table.items .desc span{color:#6b7280;font-size:13px}
table.items tfoot td{border-bottom:none;padding:6px 8px}
table.items tfoot .total td{
  font-size:18px;font-weight:800;color:var(--brand-dark);
  border-top:2px solid var(--brand-dark);padding-top:10px
}

/* ==========================================================
   BADGES
   ========================================================== */
.badge{
  display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;padding:4px 10px;border-radius:999px;white-space:nowrap;
}
.badge-await{background:#fef3c7;color:#854d0e}
.badge-held{background:#dbeafe;color:#1e40af}
.badge-ok{background:#dcfce7;color:#166534}
.badge-warn{background:#fee2e2;color:#991b1b}
.badge-muted{background:#f3f4f6;color:#4b5563}
.badge.xl{font-size:12px;padding:6px 14px}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:44px;padding:0 20px;border-radius:8px;
  font-family:inherit;font-size:14px;font-weight:700;letter-spacing:.02em;
  text-decoration:none;cursor:pointer;border:1px solid transparent;
  transition:filter .15s,background .15s,color .15s,transform .05s,box-shadow .15s;
  background:var(--brand-dark);color:#fff
}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn.primary{
  background:var(--brand-accent);color:#000040;border-color:var(--brand-accent);
  box-shadow:0 4px 12px rgba(246,195,68,.3);
}
.btn.primary:hover{filter:brightness(1.05)}
.btn.secondary{background:#fff;color:var(--brand-dark);border-color:var(--brand-dark)}
.btn.secondary:hover{background:var(--brand-dark);color:#fff}
.btn.danger{background:#fff;color:#991b1b;border-color:#fca5a5}
.btn.danger:hover{background:#fee2e2}
.btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.btn.ghost:hover{background:rgba(255,255,255,.1)}
.btn.sm{height:34px;padding:0 14px;font-size:12px}
.btn.lg{height:52px;padding:0 28px;font-size:15px}
.btn.block{width:100%}

.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

/* Invoice-actions card (2-column button row as its own card) */
.invoice-actions{
  background:#fff;border-radius:12px;padding:20px 24px;
  box-shadow:0 4px 20px rgba(31,41,55,.06);border:1px solid #edf0f5;
  display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 16px
}
@media(max-width:560px){.invoice-actions{grid-template-columns:1fr}}

/* ==========================================================
   FORMS
   ========================================================== */
.field{margin-bottom:14px}
.field label{
  display:block;font-size:12px;font-weight:800;color:var(--brand-dark);
  letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px
}
.field input[type=text],.field input[type=email],.field input[type=tel],
.field input[type=number],.field input[type=password],.field select,.field textarea{
  width:100%;padding:11px 13px;font:inherit;font-size:14px;color:#111827;
  background:#fff;border:1px solid #cbd2d9;border-radius:6px;outline:none;
  transition:border-color .15s,box-shadow .15s
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--brand-primary);box-shadow:0 0 0 3px rgba(72,82,128,.18)
}
.field textarea{min-height:96px;resize:vertical;line-height:1.5}
.field .hint{font-size:12px;color:#6b7280;margin-top:6px;line-height:1.5}
.field.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:600px){.field.row{grid-template-columns:1fr}}
.checkbox{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--brand-dark);font-weight:500}
.checkbox input{margin:0}

/* ==========================================================
   ALERTS
   ========================================================== */
.alert{
  padding:13px 16px;border-radius:8px;margin-bottom:14px;
  font-size:13.5px;line-height:1.55;border:1px solid transparent;display:flex;gap:10px;align-items:flex-start;
}
.alert svg{flex-shrink:0;width:20px;height:20px;margin-top:1px}
.alert.success{background:#ecfdf5;border-color:#86efac;color:#166534}
.alert.success svg{fill:#15803d}
.alert.error{background:#fef2f2;border-color:#fca5a5;color:#7f1d1d}
.alert.error svg{fill:#b91c1c}
.alert.warn{background:#fff6ed;border-color:#f6ad55;color:#7b341e}
.alert.warn svg{fill:#dd6b20}
.alert.info{background:#eff6ff;border-color:#93c5fd;color:#1e40af}
.alert.info svg{fill:#2563eb}

/* ==========================================================
   STATS
   ========================================================== */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
@media(max-width:780px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat{
  background:#fff;border:1px solid #edf0f5;border-radius:10px;
  padding:16px 18px;text-decoration:none;color:inherit;display:block;
  transition:border-color .15s,box-shadow .15s,transform .08s
}
.stat:hover{border-color:var(--brand-primary);box-shadow:0 4px 12px rgba(72,82,128,.08);transform:translateY(-1px)}
.stat .k{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6b7280;margin-bottom:6px;display:flex;align-items:center;gap:6px}
.stat .k svg{width:14px;height:14px;fill:currentColor}
.stat .v{font-size:24px;font-weight:800;color:var(--brand-dark);line-height:1.1}
.stat .vv{font-size:11px;color:#6b7280;margin-top:3px}
.stat.active{border-color:var(--brand-dark);box-shadow:0 6px 14px rgba(53,60,95,.14)}

/* ==========================================================
   KV (key-value grid — SEPA style)
   ========================================================== */
dl.kv{
  display:grid;grid-template-columns:max-content 1fr;gap:8px 22px;
  margin:0;padding:16px 18px;
  border:1px solid #e5e7eb;border-radius:10px;background:#fafbfc
}
dl.kv dt{font-weight:700;color:var(--brand-dark);font-size:13px}
dl.kv dd{
  margin:0;color:#111827;font-size:14px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  word-break:break-word;display:flex;align-items:center;gap:8px
}
dl.kv dd .copy{
  border:1px solid #cbd2d9;background:#fff;color:var(--brand-dark);
  font-family:Roboto,Arial,sans-serif;font-size:11px;font-weight:700;
  padding:3px 10px;border-radius:5px;cursor:pointer;
  letter-spacing:.04em;text-transform:uppercase;transition:all .15s
}
dl.kv dd .copy:hover{background:var(--brand-dark);color:#fff}
dl.kv dd .copy.ok{background:#dcfce7;border-color:#86efac;color:#166534}
@media(max-width:600px){
  dl.kv{grid-template-columns:1fr;gap:2px}
  dl.kv dt{color:#6b7280;font-size:12px;margin-top:8px}
  dl.kv dt:first-of-type{margin-top:0}
}

/* ==========================================================
   TIMELINE (activity) + 5-STEP VISUAL (how it works)
   ========================================================== */
.timeline{list-style:none;padding:0;margin:0}
.timeline li{
  position:relative;padding:10px 0 10px 24px;
  border-left:2px solid #e5e7eb;margin-left:6px
}
.timeline li::before{
  content:'';position:absolute;left:-8px;top:16px;
  width:14px;height:14px;background:var(--brand-accent);
  border:2px solid #fff;border-radius:50%;
  box-shadow:0 0 0 2px #e5e7eb
}
.timeline li.done::before{background:#22c55e;box-shadow:0 0 0 2px #bbf7d0}
.timeline .when{font-size:11px;color:#6b7280}
.timeline .what{font-weight:700;color:var(--brand-dark);font-size:13.5px;margin:2px 0}
.timeline .note{font-size:13px;color:#4b5563;white-space:pre-wrap}

/* Step visual — horizontal cards. Default 5; use .steps-7 for 7-column.*/
.steps{
  display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:8px
}
.steps-7{grid-template-columns:repeat(7,1fr)}
@media(max-width:1100px){.steps-7{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.steps{grid-template-columns:repeat(2,1fr)} .steps-7{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.steps,.steps-7{grid-template-columns:repeat(2,1fr)}}
@media(max-width:380px){.steps,.steps-7{grid-template-columns:1fr}}
.step{
  background:#fafbfc;border:1px solid #e5e7eb;border-radius:10px;padding:16px 14px;
  position:relative
}
.step .n{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;background:var(--brand-primary);color:#fff;
  border-radius:50%;font-weight:800;font-size:13px;margin-bottom:10px
}
.step h4{font-size:13px;font-weight:800;color:var(--brand-dark);letter-spacing:-.01em;margin:0 0 5px}
.step p{font-size:12.5px;color:#4b5563;line-height:1.55;margin:0}
.step.active{border-color:var(--brand-accent);background:#fffbeb;box-shadow:0 4px 12px rgba(246,195,68,.15)}
.step.active .n{background:var(--brand-accent);color:#000040}
.step.done{background:#f0fdf4;border-color:#86efac}
.step.done .n{background:#22c55e}
.step.done .n::after{content:'✓'}
.step.done .n>span{display:none}

/* ==========================================================
   TRUST ROW — icon + text columns
   ========================================================== */
.trust-row{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
  background:#fafbfc;border:1px solid #e5e7eb;border-radius:12px;
  padding:18px 20px
}
@media(max-width:820px){.trust-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.trust-row{grid-template-columns:1fr}}
.trust{display:flex;gap:12px;align-items:flex-start}
.trust .ico{
  flex-shrink:0;width:36px;height:36px;background:#fff;
  border:1px solid #e5e7eb;border-radius:8px;
  display:flex;align-items:center;justify-content:center;color:var(--brand-primary)
}
.trust .ico svg{width:20px;height:20px;fill:currentColor}
.trust h5{font-size:12.5px;font-weight:800;color:var(--brand-dark);margin:0 0 3px;letter-spacing:-.01em}
.trust p{font-size:12px;color:#6b7280;margin:0;line-height:1.5}

/* ==========================================================
   CHAT / MESSAGES
   ========================================================== */
.chat{
  display:flex;flex-direction:column;gap:10px;margin-bottom:14px;
  max-height:340px;overflow-y:auto;padding:4px 6px 4px 0
}
.chat .msg{
  background:#f4f6fb;border:1px solid #e5e7eb;border-radius:12px;
  padding:11px 15px;font-size:13.5px;color:#2a2e4c;line-height:1.55;max-width:86%
}
.chat .msg.mine{align-self:flex-end;background:#fff4d4;border-color:var(--brand-accent)}
.chat .msg .who{
  font-weight:800;color:var(--brand-dark);font-size:11px;
  letter-spacing:.05em;text-transform:uppercase;margin-bottom:3px
}
.chat .msg .when{font-size:11px;color:#9ca3af;margin-top:5px}
.chat .empty{color:#6b7280;font-size:13px;text-align:center;padding:22px}

/* ==========================================================
   PAY-WARNING — orange, icon on left (from invoice-bim)
   ========================================================== */
.pay-warning{
  display:flex;gap:12px;background:#fff6ed;border:1px solid #f6ad55;
  color:#7b341e;border-radius:10px;padding:14px 16px;
  line-height:1.55;font-size:13.5px;margin-bottom:16px
}
.pay-warning svg{flex-shrink:0;width:22px;height:22px;fill:#dd6b20;margin-top:1px}
.pay-warning strong{color:#7b341e}
.pay-warning a{color:#7b341e;text-decoration:underline}

/* ==========================================================
   PARTIES BLOCK (from invoice)
   ========================================================== */
.parties{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:680px){.parties{grid-template-columns:1fr 1fr}}
.party h3{
  margin:0 0 6px;font-size:11px;font-weight:800;letter-spacing:.12em;
  color:#9ca3af;text-transform:uppercase
}
.party p{margin:0;line-height:1.6;font-size:14px;color:#374151}
.party strong{color:#111827}
.party .party-ico{
  float:left;width:36px;height:36px;background:#f3f4f6;border-radius:50%;
  display:flex;align-items:center;justify-content:center;margin-right:12px;
  color:var(--brand-primary)
}
.party .party-ico svg{width:18px;height:18px;fill:currentColor}

/* ==========================================================
   FAQ
   ========================================================== */
.faq details{
  border:1px solid #e5e7eb;border-radius:8px;padding:0;margin-bottom:8px;
  background:#fff;transition:border-color .15s
}
.faq details[open]{border-color:var(--brand-primary)}
.faq summary{
  padding:12px 16px;font-weight:700;color:var(--brand-dark);font-size:13.5px;
  cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';color:#6b7280;font-size:18px;font-weight:700;margin-left:10px}
.faq details[open] summary::after{content:'–'}
.faq details > div{
  padding:4px 16px 14px;color:#4b5563;font-size:13px;line-height:1.6
}

/* ==========================================================
   LOGIN CARD
   ========================================================== */
.login-wrap{
  min-height:calc(100vh - 76px);
  display:flex;align-items:center;justify-content:center;padding:40px 16px
}
.login-card{
  background:#fff;border-radius:14px;
  box-shadow:0 10px 32px rgba(53,60,95,.14);
  max-width:460px;width:100%;overflow:hidden
}
.login-head{
  background:linear-gradient(135deg,var(--brand-dark) 0%,var(--brand-primary) 100%);
  color:#fff;padding:24px 28px
}
.login-head .brandmark{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;background:#fff;color:var(--brand-primary);
  border-radius:50%;font-weight:800;font-size:16px;margin-bottom:12px
}
.login-head .login-logo{height:32px;display:block;margin-bottom:14px;background:#fff;padding:6px 10px;border-radius:8px}
.login-head h1{font-size:20px;font-weight:800;color:#fff;margin:0;letter-spacing:-.01em}
.login-head p{font-size:13px;color:#d4d7eb;margin-top:4px}
.login-body{padding:26px 28px 22px}
.login-body .subtitle{
  font-size:13px;color:#6b7280;line-height:1.6;margin-bottom:20px
}
.login-trust{
  display:flex;align-items:center;gap:8px;color:#6b7280;font-size:11.5px;
  padding:8px 0;border-top:1px solid #f0f1f4;margin-top:12px
}
.login-trust svg{width:14px;height:14px;fill:#22c55e;flex-shrink:0}
.login-foot{
  background:#fafbfc;border-top:1px solid #e5e7eb;
  padding:14px 24px;font-size:11.5px;color:#6b7280;text-align:center;line-height:1.55
}
.devlink{
  background:#fffbeb;border:1px dashed var(--brand-accent);border-radius:8px;
  padding:14px 16px;margin-top:14px;font-size:12.5px;color:#7b341e;line-height:1.55
}
.devlink b{display:block;margin-bottom:6px;color:#7b341e;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase}
.devlink a.go{
  display:inline-block;margin-top:8px;background:var(--brand-accent);color:#000040;
  font-weight:800;padding:9px 16px;border-radius:6px;text-decoration:none;font-size:13px
}
.devlink a.go:hover{filter:brightness(1.05)}
.devlink code{display:block;background:#fff;border:1px solid var(--brand-accent);border-radius:6px;padding:8px 10px;margin-top:6px;font-size:11px;word-break:break-all;color:#7b341e}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer{
  background:var(--brand-dark);color:#dcdde0;padding:28px 20px;
  font-size:12.5px;text-align:center;margin-top:40px;line-height:1.7
}
.footer a{color:var(--brand-accent);text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer .row{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-bottom:8px;padding-bottom:14px;border-bottom:1px solid var(--brand-primary);max-width:720px;margin-left:auto;margin-right:auto}
.footer .copy{opacity:.65;font-size:11px;margin-top:10px}

/* ==========================================================
   BREADCRUMBS (Escrow marketplace style)
   ========================================================== */
.breadcrumbs{
  display:flex;gap:6px;align-items:center;flex-wrap:wrap;
  font-size:13px;color:#6b7280;margin:0 0 18px;padding:0 4px
}
.breadcrumbs a{color:#6b7280;text-decoration:none}
.breadcrumbs a:hover{color:var(--brand-dark);text-decoration:underline}
.breadcrumbs .sep{color:#cbd2d9;padding:0 2px}
.breadcrumbs .current{color:var(--brand-dark);font-weight:600}
.breadcrumbs .home svg{width:16px;height:16px;fill:currentColor;vertical-align:-3px}

/* ==========================================================
   APP SHELL — sidebar + main (My Escrow style)
   ========================================================== */
.shell{
  display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;
  max-width:1240px;margin:28px auto 64px;padding:0 20px;align-items:flex-start
}
@media(max-width:980px){.shell{grid-template-columns:1fr}}
.sidebar{
  background:#fff;border:1px solid #edf0f5;border-radius:14px;
  padding:20px 18px;box-shadow:0 4px 20px rgba(31,41,55,.04);
  position:sticky;top:24px
}
/* On mobile, don't pin the sidebar — it just flows at the top of the page. */
@media(max-width:980px){
  .sidebar{position:static;top:auto}
}
.sidebar h3{font-size:15px;font-weight:800;color:var(--brand-dark);margin:0 0 14px;padding:0 6px;letter-spacing:-.01em}
.sidebar .me{
  display:flex;gap:10px;align-items:center;padding:10px 8px 14px;
  border-bottom:1px solid #edf0f5;margin-bottom:10px
}
.sidebar .me .avatar{
  width:38px;height:38px;border-radius:50%;background:var(--brand-primary);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;flex-shrink:0
}
.sidebar .me .who{font-weight:700;font-size:13px;color:var(--brand-dark);line-height:1.2}
.sidebar .me .sub{font-size:11px;color:#6b7280;margin-top:2px}
.sidebar nav{display:flex;flex-direction:column;gap:2px}
.sidebar nav a{
  display:flex;align-items:center;gap:10px;padding:10px 12px;
  font-size:13.5px;color:#4b5563;text-decoration:none;border-radius:8px;font-weight:500
}
.sidebar nav a svg{width:16px;height:16px;fill:currentColor;flex-shrink:0;opacity:.7}
.sidebar nav a:hover{background:#fafbfc;color:var(--brand-dark)}
.sidebar nav a.active{background:#f1f2f7;color:var(--brand-dark);font-weight:700}
.sidebar nav a.active svg{opacity:1;fill:var(--brand-primary)}
.sidebar nav a .count{margin-left:auto;font-size:11px;background:var(--brand-accent);color:#000040;padding:2px 7px;border-radius:999px;font-weight:800}
.sidebar .cta{margin-top:14px;padding:0 4px}
.sidebar .cta .btn{width:100%}

.main{min-width:0}

/* ==========================================================
   LISTING CARD (marketplace-style product header)
   ========================================================== */
.listing{
  display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:28px;
  background:#fff;border:1px solid #edf0f5;border-radius:14px;
  padding:24px;box-shadow:0 4px 20px rgba(31,41,55,.06);margin-bottom:18px
}
@media(max-width:760px){.listing{grid-template-columns:1fr}}
.listing .photo{
  position:relative;background:#fafbfc;border-radius:10px;overflow:hidden;
  aspect-ratio:4/3;display:flex;align-items:center;justify-content:center
}
.listing .photo img{width:100%;height:100%;object-fit:contain;display:block}
.listing .photo .flag{
  position:absolute;top:16px;left:-6px;background:var(--brand-dark);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:.1em;padding:6px 14px 6px 12px;
  clip-path:polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%);
  text-transform:uppercase
}
.listing .photo .flag::after{
  content:'';position:absolute;left:0;bottom:-6px;width:6px;height:6px;
  background:#000040;clip-path:polygon(0 0,100% 0,100% 100%)
}
.listing .photo .noimg{color:#cbd2d9;font-size:40px}
.listing .photo .zoom{
  position:absolute;right:10px;bottom:10px;width:32px;height:32px;
  background:rgba(255,255,255,.9);border:1px solid #e5e7eb;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:var(--brand-dark);cursor:pointer
}
.listing .info h1{
  font-size:26px;font-weight:800;color:var(--brand-dark);letter-spacing:-.01em;
  line-height:1.22;margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid #edf0f5
}
@media(max-width:760px){.listing .info h1{font-size:20px}}
.listing dl.spec{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px;margin:0 0 16px}
.listing dl.spec dt{font-size:13px;color:#6b7280}
.listing dl.spec dd{font-size:13.5px;color:var(--brand-dark);margin:0;font-weight:600}
.listing .fav{
  float:right;font-size:12px;color:#6b7280;display:flex;gap:6px;align-items:center
}
.listing .fav svg{width:16px;height:16px;fill:#cbd2d9}
.listing .price{font-size:34px;font-weight:800;color:var(--brand-dark);letter-spacing:-.02em;margin:6px 0 14px}
@media(max-width:760px){.listing .price{font-size:26px}}
.listing .price .cur{font-size:24px;color:#6b7280;font-weight:700;margin-left:6px}
.listing .price .unit{font-size:13px;color:#6b7280;font-weight:500;margin-left:10px}
.listing .report{float:right;font-size:12px;color:#6b7280;text-decoration:none;display:inline-flex;align-items:center;gap:4px;margin-top:10px}
.listing .report svg{width:14px;height:14px;fill:currentColor}

/* ==========================================================
   SECURE TRANSACTION STRIP (inspired by us listing)
   ========================================================== */
.secure-strip{
  background:#fff;border:1px solid #cbd2d9;border-left:3px solid var(--brand-primary);
  border-radius:12px;padding:18px 22px;margin-bottom:16px
}
.secure-strip .hdr{
  display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px
}
.secure-strip h3{font-size:14px;font-weight:800;color:var(--brand-dark);margin:0;letter-spacing:-.01em}
.secure-strip .more{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--brand-primary);text-decoration:underline;font-weight:800;cursor:pointer;background:none;border:none;padding:0;font-family:inherit}
.secure-strip .items{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:700px){.secure-strip .items{grid-template-columns:1fr}}
.secure-strip .it{display:flex;gap:10px;align-items:flex-start}
.secure-strip .it .ico{
  flex-shrink:0;width:32px;height:32px;background:#f1f2f7;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:var(--brand-primary)
}
.secure-strip .it .ico svg{width:16px;height:16px;fill:currentColor}
.secure-strip .it .t{font-size:13px;font-weight:700;color:var(--brand-dark);line-height:1.35}
.secure-strip .it .d{font-size:11.5px;color:#6b7280;line-height:1.4;margin-top:2px}

/* ==========================================================
   SELLER CARD (right-column style)
   ========================================================== */
.seller-card{
  background:#fff;border:1px solid #edf0f5;border-radius:12px;
  padding:18px 20px;box-shadow:0 4px 20px rgba(31,41,55,.04);margin-bottom:14px
}
.seller-card h3{font-size:12px;font-weight:800;color:var(--brand-dark);letter-spacing:.12em;text-transform:uppercase;margin:0 0 12px;padding-bottom:10px;border-bottom:2px solid var(--brand-primary)}
.seller-card .row{font-size:13px;color:#4b5563;margin:7px 0;line-height:1.45}
.seller-card .row b{color:var(--brand-dark)}
.seller-card .country{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--brand-dark);font-weight:700;margin-bottom:10px}
.seller-card .country .fl{font-size:18px}
.seller-card .note{
  background:#eff6ff;border:1px solid #93c5fd;color:#1e40af;
  border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.5;margin:12px 0
}
.seller-card .how-to-buy{
  display:block;width:100%;text-align:center;background:var(--brand-dark);color:#fff;
  padding:12px 16px;border-radius:8px;text-decoration:none;font-weight:800;
  letter-spacing:.04em;font-size:12px;text-transform:uppercase;margin-top:10px;
  border:none;cursor:pointer;font-family:inherit
}
.seller-card .how-to-buy:hover{filter:brightness(1.1)}

/* ==========================================================
   CHAT enhancements — avatars + read receipts + attach
   ========================================================== */
.chat .msg{position:relative}
.chat .msg .meta{
  display:flex;justify-content:space-between;align-items:center;
  gap:6px;margin-top:6px;font-size:11px;color:#9ca3af
}
.chat .msg .meta .read{display:inline-flex;align-items:center;gap:3px}
.chat .msg .meta .read svg{width:13px;height:13px;fill:#60a5fa}
.chat .msg .meta .read.seen svg{fill:#22c55e}
.chat .msg .ava{
  position:absolute;top:10px;left:-44px;width:32px;height:32px;border-radius:50%;
  background:var(--brand-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px
}
.chat .msg.mine .ava{left:auto;right:-44px;background:var(--brand-accent);color:#000040}
@media(max-width:600px){.chat .msg .ava{display:none}}
.chat.has-avatars{padding-left:48px;padding-right:48px}
@media(max-width:600px){.chat.has-avatars{padding-left:6px;padding-right:6px}}

.chat-form{display:flex;gap:10px;align-items:center}
.chat-form .attach{
  width:42px;height:42px;border:1px solid #cbd2d9;background:#fff;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#6b7280;cursor:pointer;flex-shrink:0
}
.chat-form .attach:hover{background:#f1f2f7;color:var(--brand-dark)}
.chat-form .attach svg{width:18px;height:18px;fill:currentColor}
.chat-form .ta{flex:1;min-width:0}
.chat-form textarea{min-height:42px;padding:10px 14px;border-radius:22px;resize:none}
.chat-form .btn{flex-shrink:0}
.chat-help{font-size:11px;color:#9ca3af;margin-top:6px;line-height:1.4}

/* ==========================================================
   MODAL (for "HOW TO BUY?" help)
   ========================================================== */
.modal-shade{
  position:fixed;inset:0;background:rgba(20,25,50,.55);
  display:none;align-items:center;justify-content:center;
  z-index:200;padding:20px
}
.modal-shade.open{display:flex}
.modal{
  background:#fff;border-radius:14px;max-width:560px;width:100%;
  max-height:88vh;overflow-y:auto;box-shadow:0 20px 60px rgba(20,25,50,.4)
}
.modal .head{
  background:linear-gradient(135deg,var(--brand-dark) 0%,var(--brand-primary) 100%);color:#fff;
  padding:18px 22px;border-radius:14px 14px 0 0;
  display:flex;justify-content:space-between;align-items:center;gap:12px
}
.modal .head h3{font-size:17px;font-weight:800;margin:0;color:#fff}
.modal .head button{
  background:none;border:none;color:#fff;font-size:22px;font-weight:700;
  cursor:pointer;padding:0 4px;line-height:1;opacity:.8
}
.modal .head button:hover{opacity:1}
.modal .body{padding:22px 24px}
.modal .body h4{font-size:13px;font-weight:800;color:var(--brand-dark);margin:14px 0 4px;letter-spacing:-.01em}
.modal .body h4:first-child{margin-top:0}
.modal .body p{font-size:13px;color:#4b5563;line-height:1.6;margin:0 0 6px}
.modal .body ol{margin:6px 0 10px 20px;color:#4b5563;font-size:13px;line-height:1.65}

/* ---- Secure Deal modal (matches the screenshot exactly) ---- */
.modal-secure .head{background:#fafbfc;color:var(--brand-dark);border-bottom:1px solid #edf0f5}
.modal-secure .head h3{color:var(--brand-dark);font-weight:800;font-size:22px;letter-spacing:-.01em}
.modal-secure .head button{color:var(--brand-dark)}
.modal-secure .body{padding:26px 28px 22px;text-align:center}
.modal-secure .body .intro{
  font-size:14.5px;color:var(--brand-dark);line-height:1.7;margin:0 0 20px;
  text-align:center;max-width:480px;margin-left:auto;margin-right:auto
}
.modal-secure .body .intro strong{color:var(--brand-dark);font-weight:700}
.modal-secure ol.secure-steps{
  list-style:none;margin:0 auto 22px;padding:0;
  display:flex;flex-direction:column;gap:14px;max-width:480px;text-align:left
}
.modal-secure ol.secure-steps li{
  display:flex;gap:12px;align-items:flex-start;
  font-size:14.5px;color:var(--brand-dark);line-height:1.55
}
.modal-secure ol.secure-steps li .n{
  flex-shrink:0;width:28px;height:28px;background:var(--brand-primary);color:#fff;
  border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;font-size:13px;margin-top:2px
}
.modal-secure ol.secure-steps li strong{color:#000040;font-weight:700}
.modal-secure .safe-line{
  display:flex;gap:10px;align-items:center;justify-content:center;
  background:#ecfdf5;border:1px solid #86efac;color:#166534;
  border-radius:10px;padding:14px 18px;margin:0 auto 22px;max-width:480px;
  font-size:14.5px
}
.modal-secure .secure-cta{max-width:480px;margin:0 auto}
.modal-secure .secure-cta .btn{height:52px;font-size:14px;letter-spacing:.08em;text-transform:uppercase}

/* ==========================================================
   PHOTO LIGHTBOX (when clicking product photo)
   ========================================================== */
.lightbox{
  position:fixed;inset:0;background:rgba(10,14,28,.85);
  display:none;align-items:center;justify-content:center;z-index:300;padding:30px
}
.lightbox.open{display:flex}
.lightbox img{max-width:100%;max-height:100%;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lightbox .x{position:absolute;top:20px;right:24px;color:#fff;font-size:32px;cursor:pointer;background:none;border:none;opacity:.8}
.lightbox .x:hover{opacity:1}

/* ==========================================================
   FOR-SALE ribbon (used in listing card + mini items)
   ========================================================== */
.for-sale-chip{
  display:inline-block;background:var(--brand-dark);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  padding:4px 14px 4px 12px;border-radius:4px;position:relative
}

/* ==========================================================
   SKIP LINK (a11y)
   ========================================================== */
.skip-link{
  position:absolute;left:-999px;top:0;background:var(--brand-accent);color:#000040;
  padding:10px 16px;font-weight:800;border-radius:0 0 8px 0;z-index:500
}
.skip-link:focus{left:0}

/* ========================================================== */
/* SHIPMENT PROGRESS BAR (DHL-style, Escrow palette)          */
/* ========================================================== */
.ship-prog{
  background:#fff;border:1px solid #edf0f5;border-radius:12px;
  padding:18px 22px;box-shadow:0 4px 20px rgba(31,41,55,.05);
}
.ship-prog-exception{border-color:#f6ad55;background:#fff9f0}

.ship-prog-head{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:12px;flex-wrap:wrap;margin-bottom:14px
}
.ship-prog-status{display:flex;align-items:center;gap:8px}
.ship-prog-status-dot{
  width:10px;height:10px;border-radius:50%;background:var(--brand-accent);
  box-shadow:0 0 0 4px rgba(246,195,68,.25);
  animation:ship-prog-pulse 2s ease-in-out infinite
}
.ship-prog-exception .ship-prog-status-dot{background:#dd6b20;box-shadow:0 0 0 4px rgba(221,107,32,.25)}
@keyframes ship-prog-pulse{0%,100%{box-shadow:0 0 0 4px rgba(246,195,68,.25)}50%{box-shadow:0 0 0 8px rgba(246,195,68,.08)}}
.ship-prog-status-text{
  font-size:15px;font-weight:800;color:var(--brand-dark);letter-spacing:-.01em
}
.ship-prog-meta{
  display:flex;align-items:center;gap:14px;font-size:12.5px;color:#6b7280;flex-wrap:wrap
}
.ship-prog-loc{display:inline-flex;align-items:center;gap:4px;color:var(--brand-primary);font-weight:600}
.ship-prog-when{color:#9ca3af}

/* Track + fill */
.ship-prog-track{
  position:relative;margin:24px 10px 14px;height:2px;background:#e5e7eb
}
.ship-prog-fill{
  position:absolute;top:0;left:0;height:100%;
  background:linear-gradient(90deg,var(--brand-primary) 0%,var(--brand-accent) 100%);
  border-radius:2px;
  transition:width .6s ease
}
.ship-prog-exception .ship-prog-fill{background:#dd6b20}

/* 5 steps along the track */
.ship-prog-steps{
  list-style:none;margin:0;padding:0;
  display:flex;justify-content:space-between;
  position:relative;top:-11px
}
.ship-prog-step{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  flex:1;text-align:center;position:relative
}
.ship-prog-dot{
  width:24px;height:24px;border-radius:50%;
  background:#fff;border:2px solid #e5e7eb;color:#9ca3af;
  display:flex;align-items:center;justify-content:center;
  position:relative;z-index:2;transition:all .25s ease
}
.ship-prog-num{font-size:11px;font-weight:800;line-height:1}
.ship-prog-label{
  font-size:11px;font-weight:700;color:#9ca3af;
  letter-spacing:.02em;line-height:1.25;max-width:90px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
/* Done state — green tick */
.ship-prog-step-done .ship-prog-dot{
  background:#22c55e;border-color:#22c55e;color:#fff
}
.ship-prog-step-done .ship-prog-label{color:#166534}
/* Current state — yellow pulse */
.ship-prog-step-current .ship-prog-dot{
  background:var(--brand-accent);border-color:var(--brand-accent);color:#000040;
  box-shadow:0 0 0 4px rgba(246,195,68,.25);
  animation:ship-prog-pulse 2s ease-in-out infinite
}
.ship-prog-step-current .ship-prog-label{color:#000040;font-weight:800}
/* Upcoming: default grey */

/* Footer row */
.ship-prog-foot{
  display:flex;gap:16px;flex-wrap:wrap;align-items:center;
  padding-top:12px;border-top:1px solid #edf0f5;
  font-size:12.5px;color:#6b7280
}
.ship-prog-carrier{display:inline-flex;align-items:center;gap:6px;color:var(--brand-dark);font-weight:600}
.ship-prog-carrier code{font-size:11.5px;background:#fafbfc;border:1px solid #e5e7eb;border-radius:4px;padding:1px 6px}
.ship-prog-track-link{font-size:12.5px;color:var(--brand-primary);font-weight:700;text-decoration:none}
.ship-prog-track-link:hover{text-decoration:underline}
.ship-prog-eta{margin-left:auto;color:var(--brand-dark)}

.ship-prog-note{
  margin-top:10px;padding:10px 14px;
  background:#fafbfc;border:1px solid #e5e7eb;border-radius:8px;
  font-size:13px;color:#4b5563;line-height:1.5;font-style:italic
}
.ship-prog-note-warn{background:#fff6ed;border-color:#f6ad55;color:#7b341e}

/* Mini variant used inside the shipments list table */
.ship-prog-mini{padding:8px 0 10px}
.ship-prog-mini .ship-prog-track{margin:16px 6px 8px;height:2px}
.ship-prog-mini .ship-prog-dot{width:14px;height:14px;border-width:2px}
.ship-prog-mini .ship-prog-num{font-size:8px}
.ship-prog-mini .ship-prog-dot svg{width:8px;height:8px}
.ship-prog-mini .ship-prog-label{font-size:10px;max-width:70px}
.ship-prog-mini .ship-prog-steps{top:-7px}
.ship-prog-mini .ship-prog-head,
.ship-prog-mini .ship-prog-foot,
.ship-prog-mini .ship-prog-note{display:none}

/* Mobile: stack labels below dots, let the bar flow horizontally */
@media(max-width:620px){
  .ship-prog-label{font-size:10px;max-width:60px;white-space:normal}
  .ship-prog-track{margin:24px 6px 14px}
  .ship-prog-foot{font-size:12px;gap:10px}
  .ship-prog-eta{margin-left:0;width:100%}
}

/* ============================================================
   SUPPORT CHAT WIDGET — floating bubble + panel
   Design mirrors the screenshot: purple outlined bubbles for the
   visitor, filled lilac bubbles for the admin, date-separator pill,
   yellow "SEND" button.
   ============================================================ */
#bim-support{position:fixed;right:20px;bottom:20px;z-index:1000;font-family:Roboto,Arial,sans-serif;color:#2a2e4c}
#bim-support-bubble{background:var(--brand-primary);color:#fff;border:none;width:58px;height:58px;border-radius:50%;
    box-shadow:0 6px 22px rgba(72,82,128,.35);cursor:pointer;display:flex;align-items:center;justify-content:center;
    position:relative;transition:transform .18s ease,background .18s ease}
#bim-support-bubble:hover{transform:scale(1.06);background:var(--brand-dark)}
#bim-support-bubble:focus-visible{outline:3px solid var(--brand-accent);outline-offset:3px}
#bim-support-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:999px;
    background:#dc2626;color:#fff;font-size:11px;font-weight:700;line-height:18px;padding:0 5px;box-sizing:border-box}

#bim-support-panel{position:absolute;right:0;bottom:70px;width:380px;max-width:calc(100vw - 32px);
    height:min(600px,calc(100vh - 110px));background:#eef0f5;border-radius:16px;
    box-shadow:0 14px 44px rgba(15,23,42,.22);display:flex;flex-direction:column;overflow:hidden;
    animation:bim-sup-pop .18s ease-out}
/* The panel's #id selector beats the user-agent [hidden]{display:none}, so we
   re-state hidden here. Without this, the X close button does nothing. */
#bim-support-panel[hidden],
#bim-support [hidden]{display:none !important}
@keyframes bim-sup-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.bim-sup-hd{background:var(--brand-primary);color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.bim-sup-hd-title{display:flex;flex-direction:column;gap:2px;line-height:1.2}
.bim-sup-hd-title strong{font-size:15px;font-weight:700}
.bim-sup-hd-sub{font-size:11.5px;color:#c9d0e5}
#bim-support-close{background:transparent;color:#fff;border:none;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
#bim-support-close:hover{opacity:.8}

#bim-support-log{flex:1;overflow-y:auto;padding:14px 14px 6px;background:#eef0f5;display:flex;flex-direction:column;gap:10px}
.bim-sup-msg{max-width:82%;padding:10px 14px;border-radius:12px;font-size:13.5px;line-height:1.5;word-wrap:break-word;position:relative}
.bim-sup-msg .bim-sup-ts{display:block;font-size:11px;color:#6b7280;margin-bottom:3px;text-align:right}
.bim-sup-msg p{margin:0;white-space:pre-wrap}
/* Visitor (right, white bubble, purple outline, matches screenshot) */
.bim-sup-msg.mine{align-self:flex-end;background:#fff;border:1.5px solid var(--brand-primary);border-radius:12px;color:#2a2e4c}
.bim-sup-msg.mine .bim-sup-ts{text-align:right;color:#6b7280}
/* Admin (left, filled lilac bubble) */
.bim-sup-msg.theirs{align-self:flex-start;background:#c9cde2;border:1.5px solid #aeb5d1;color:#2a2e4c}
.bim-sup-msg.theirs .bim-sup-ts{text-align:left;color:var(--brand-primary)}
/* System line */
.bim-sup-msg.sys{align-self:center;background:transparent;font-size:11px;color:#6b7280;border:none;padding:4px 0;max-width:100%}
.bim-sup-msg.sys p{text-align:center}
/* Read ticks on my messages */
.bim-sup-read{display:inline-flex;align-items:center;gap:2px;font-size:11px;color:#6b7280;margin-top:4px;float:right}
.bim-sup-read.read{color:var(--brand-primary);font-weight:600}
.bim-sup-read svg{width:14px;height:14px;fill:currentColor}
/* Attachments */
.bim-sup-attachlist{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.bim-sup-attachlist a{display:inline-flex;gap:6px;align-items:center;color:var(--brand-primary);text-decoration:underline;font-size:12px;word-break:break-all}
.bim-sup-attachlist a::before{content:"📎";font-size:11px}
/* Date separator pill */
.bim-sup-sep{align-self:center;background:transparent;color:var(--brand-primary);font-size:11px;font-weight:600;padding:2px 12px;border-top:1px solid #cfd3e0;border-bottom:1px solid #cfd3e0;margin:8px 0;min-width:80px;text-align:center;letter-spacing:.03em}

#bim-support-form{background:#eef0f5;padding:0 12px 12px;border-top:1px solid rgba(0,0,0,0)}
.bim-sup-identify{display:grid;gap:8px;padding:10px 4px 12px;border-bottom:1px solid #d7dae5;margin-bottom:10px}
.bim-sup-identify label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#4b5563;font-weight:500}
.bim-sup-identify input{padding:8px 10px;border:1px solid #cbd2d9;border-radius:8px;font-size:13px;background:#fff}
.bim-sup-compose{display:flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:6px 6px 6px 12px;border:1px solid #d7dae5}
.bim-sup-compose textarea{flex:1;border:none;outline:none;resize:none;font:inherit;font-size:13.5px;line-height:1.5;
    padding:6px 0;max-height:110px;min-height:22px;background:transparent;color:#2a2e4c}
.bim-sup-attach{cursor:pointer;color:var(--brand-primary);padding:4px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
.bim-sup-attach:hover{background:#eef0f5}
.bim-sup-attach input{display:none}
.bim-sup-send{background:var(--brand-accent);color:var(--brand-dark);font-weight:700;letter-spacing:.06em;font-size:12.5px;
    border:none;padding:10px 16px;border-radius:999px;cursor:pointer}
.bim-sup-send:hover{background:#f3b724}
.bim-sup-send:disabled{opacity:.5;cursor:not-allowed}
.bim-sup-hint{font-size:10.5px;color:#6b7280;padding:6px 4px 0;line-height:1.5}
.bim-sup-files{padding:4px;display:flex;flex-wrap:wrap;gap:6px}
.bim-sup-files .chip{background:#fff;border:1px solid #d7dae5;border-radius:999px;padding:4px 10px;font-size:11px;color:var(--brand-primary);display:inline-flex;gap:4px;align-items:center}
.bim-sup-files .chip button{background:transparent;border:none;color:#9ca3af;font-size:13px;cursor:pointer;line-height:1;padding:0}
.bim-sup-error{background:#fef2f2;border:1px solid #fca5a5;color:#991b1b;font-size:12px;padding:8px 10px;border-radius:8px;margin:0 4px 8px}

/* Mobile */
@media(max-width:480px){
  #bim-support-panel{right:-8px;bottom:72px;width:calc(100vw - 16px);height:calc(100vh - 96px);max-height:none;border-radius:12px}
  #bim-support{right:12px;bottom:12px}
}

/* ADMIN SUPPORT INBOX — thread list + thread view */
.sup-thread-list{display:flex;flex-direction:column;gap:10px}
.sup-thread-card{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:14px 18px;
    background:#fff;border:1px solid #e5e7eb;border-radius:10px;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s}
.sup-thread-card:hover{border-color:var(--brand-primary);box-shadow:0 2px 12px rgba(72,82,128,.1)}
.sup-thread-card.unread{border-left:4px solid var(--brand-accent);background:#fffdf7}
.sup-thread-card .who{font-weight:600;color:var(--brand-dark);margin-bottom:4px}
.sup-thread-card .preview{color:#4b5563;font-size:13px;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sup-thread-card .meta{font-size:11.5px;color:#6b7280;margin-top:6px;display:flex;gap:10px;flex-wrap:wrap}
.sup-thread-card .badge-unread{background:#dc2626;color:#fff;font-size:11px;padding:2px 8px;border-radius:999px;font-weight:700;margin-left:6px}

.sup-thread-meta-card{background:#fafbfc;border:1px solid #e5e7eb;border-radius:10px;padding:14px 18px;font-size:13px;color:#4b5563;line-height:1.7}
.sup-thread-meta-card strong{color:var(--brand-dark)}
.sup-thread-meta-card dl{display:grid;grid-template-columns:130px 1fr;gap:4px 14px;margin:0}
.sup-thread-meta-card dt{color:#6b7280;font-weight:500}
.sup-thread-meta-card dd{margin:0;word-break:break-word}
.sup-thread-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}

.sup-thread-log{display:flex;flex-direction:column;gap:10px;background:#eef0f5;border-radius:10px;padding:14px;border:1px solid #d7dae5;max-height:60vh;overflow-y:auto}
.sup-thread-log .bim-sup-msg{max-width:78%}


/* ============================================================
   PAYLAX public/marketing chrome
   Used on landing, marketing pages, and the sign-up wizard.
   The dashboard topbar above is reused unchanged for the
   authenticated app.
   ============================================================ */

/* White public top nav */
.public-nav{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--border-soft);padding:14px 28px}
.public-nav-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1200px;margin:0 auto;flex-wrap:wrap}
.public-brand{display:inline-flex;align-items:center;gap:10px;color:var(--brand-dark);text-decoration:none}
.paylax-logo{height:32px;width:auto;display:block}
.paylax-logo.small{height:20px}
/* Legacy ring helpers — kept harmless in case any partial still uses them */
.paylax-ring{display:inline-flex;align-items:center;justify-content:center}
.paylax-ring.small{width:20px;height:20px}
.paylax-word sup{font-size:10px;color:var(--brand-primary);vertical-align:super;font-weight:700}
.public-nav-links{display:flex;gap:28px;flex-wrap:wrap}
.public-nav-links a{color:var(--brand-dark);text-decoration:none;font-size:15px;font-weight:500;padding:6px 0}
.public-nav-links a:hover{color:var(--brand-primary)}
.public-nav-cta{display:flex;align-items:center;gap:14px}
.public-nav-cta .lang{color:var(--text-muted);text-decoration:none;font-size:13px;font-weight:500}
@media(max-width:760px){
    .public-nav{padding:10px 14px}
    .public-nav-links{order:3;width:100%;gap:14px;font-size:13px}
    .public-nav-links a{font-size:13px}
}

/* Hero deep navy white text big CTA */
.paylax-hero{background:linear-gradient(135deg,var(--brand-dark) 0%,#142046 100%);color:#fff;padding:80px 32px 96px;position:relative;overflow:hidden}
.paylax-hero::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 80% 30%,rgba(61,90,254,.25) 0%,transparent 50%);pointer-events:none}
.paylax-hero-inner{max-width:760px;margin:0 auto;position:relative;z-index:1;text-align:center}
.paylax-hero h1{font-size:42px;font-weight:300;letter-spacing:.05em;text-transform:uppercase;line-height:1.18;margin:0 0 20px;color:#fff}
.paylax-hero .hero-sub{font-size:17px;line-height:1.6;color:#cfd6f3;max-width:600px;margin:0 auto 28px}
.paylax-hero .hero-sub b{color:#fff}
.hero-list{list-style:none;padding:0;margin:0 auto 28px;display:inline-block;text-align:left;color:#fff;font-size:15px;line-height:2}
.hero-list li{display:flex;align-items:center;gap:10px}
.hero-bullet{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--brand-primary)}
.hero-list li::after{content:'\2713';color:var(--brand-accent);margin-left:8px;font-weight:700}
.hero-cta-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.btn.lg{height:54px;padding:0 32px;font-size:15px;border-radius:8px}
.btn.ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4)}
.btn.ghost:hover{background:rgba(255,255,255,.08);border-color:#fff}
@media(max-width:680px){
    .paylax-hero{padding:48px 18px 60px}
    .paylax-hero h1{font-size:28px;letter-spacing:.03em}
    .paylax-hero .hero-sub{font-size:15px}
}

/* Marketing blocks */
.marketing-block{padding:72px 24px;background:#fff}
.marketing-block.subtle{background:var(--brand-page-bg)}
.marketing-inner{max-width:1100px;margin:0 auto}
.marketing-inner.narrow{max-width:880px}
.marketing-block .eyebrow{display:block;text-align:center;font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-primary);margin-bottom:8px}
.marketing-block h2.big{text-align:center;font-size:32px;font-weight:700;color:var(--brand-dark);letter-spacing:.04em;text-transform:uppercase;margin:0 0 40px;line-height:1.2}
.marketing-block h3{font-size:18px;color:var(--brand-primary);font-weight:700;margin:0 0 10px;letter-spacing:.02em;text-transform:uppercase}
.marketing-block p{color:var(--text-body);font-size:15.5px;line-height:1.7;margin:0 0 14px;max-width:62ch}
.two-col{display:grid;grid-template-columns:280px 1fr;gap:48px;align-items:center}
@media(max-width:780px){.two-col{grid-template-columns:1fr;gap:24px}}

/* Phone mockup pure CSS */
.phone-mock{display:flex;justify-content:center}
.phone-shell{width:220px;height:380px;border:8px solid #e5e7eb;border-radius:32px;background:#fff;box-shadow:0 12px 40px rgba(31,45,92,.18);padding:14px;display:flex;flex-direction:column}
.phone-screen{flex:1;display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--text-body)}
.phone-line.muted{color:var(--text-muted);font-size:10px}
.phone-line.strong{font-weight:700;font-size:13px;color:var(--brand-dark)}
.phone-img{flex:1;background:linear-gradient(135deg,#cfd6f3,#e5e7eb);border-radius:8px;min-height:90px}
.phone-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--text-muted)}
.phone-row b{color:var(--brand-dark);font-size:12px}
.phone-btn{background:var(--brand-primary);color:#fff;border-radius:6px;padding:8px;text-align:center;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.phone-link{text-align:center;font-size:10px;color:var(--brand-primary);text-decoration:underline}

/* 4-step vertical timeline */
.steps-vertical{list-style:none;padding:0;margin:0;position:relative}
.steps-vertical::before{content:'';position:absolute;left:32px;top:32px;bottom:32px;width:1px;background:var(--border-soft)}
.steps-vertical li{display:grid;grid-template-columns:64px 1fr;gap:22px;padding:22px 0;position:relative;align-items:flex-start}
.sv-icon{width:64px;height:64px;border-radius:50%;background:#fff;border:1.5px solid var(--border-soft);display:inline-flex;align-items:center;justify-content:center;color:var(--brand-primary);position:relative;z-index:1}
.sv-icon svg{stroke:currentColor}
.steps-vertical li:nth-child(2) .sv-icon{color:var(--brand-accent)}
.steps-vertical li:nth-child(3) .sv-icon{color:#fb7185}
.steps-vertical li:nth-child(4) .sv-icon{color:var(--brand-accent)}
.sv-body h3{margin:8px 0 6px}

/* Buyer/Seller protection cards */
.protection-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:920px;margin:0 auto}
@media(max-width:760px){.protection-grid{grid-template-columns:1fr}}
.protection-card{background:var(--brand-dark);color:#fff;border-radius:12px;padding:36px 32px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.protection-card .protection-icon{color:#fff}
.protection-card h3{color:#fff;font-size:20px;letter-spacing:.04em;margin:6px 0}
.protection-card p{color:rgba(255,255,255,.85);font-size:14.5px;line-height:1.65;max-width:none}
.protection-link{color:#9aa9f3;font-size:13.5px;text-decoration:underline;margin-top:auto}
.protection-link:hover{color:#fff}

/* Trust strip */
.trust-strip{background:#f1f3f9;padding:32px 24px;border-top:1px solid var(--border-soft)}
.trust-strip-inner{max-width:1100px;margin:0 auto;display:flex;justify-content:space-around;align-items:center;gap:24px;flex-wrap:wrap}
.trust-pill{display:inline-flex;align-items:center;gap:12px;color:var(--brand-primary);font-size:14px;line-height:1.4;font-weight:500}
.trust-pill svg{flex-shrink:0;color:var(--brand-primary)}

/* Public footer */
.public-footer{background:#fff;border-top:1px solid var(--border-soft);padding:24px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;font-size:13.5px;color:var(--text-muted);max-width:1200px;margin:0 auto}
.public-footer-row{display:flex;align-items:center;gap:32px;flex-wrap:wrap}
.powered-by{display:inline-flex;align-items:center;gap:8px;color:var(--text-muted)}
.powered-by strong{color:var(--brand-dark)}
.public-footer-links{display:flex;gap:28px}
.public-footer-links a{color:var(--text-muted);text-decoration:none}
.public-footer-links a:hover{color:var(--brand-primary)}

/* Sign-up wizard 2-column shell */
.signup-shell{display:grid;grid-template-columns:1fr 1fr;min-height:calc(100vh - 180px)}
@media(max-width:880px){.signup-shell{grid-template-columns:1fr}}
.signup-aside{background:linear-gradient(135deg,var(--brand-dark) 0%,#142046 100%);color:#fff;padding:80px 56px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.signup-aside::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 30% 70%,rgba(61,90,254,.2) 0%,transparent 60%);pointer-events:none}
.signup-aside-inner{position:relative;z-index:1;max-width:380px}
.signup-aside .ring-mark{margin-bottom:32px}
.signup-aside h2{font-size:36px;font-weight:300;letter-spacing:.04em;color:#fff;line-height:1.2;text-transform:uppercase}
.signup-aside p{color:#cfd6f3;font-size:15px;line-height:1.6;margin-top:14px}
.signup-aside .feature-tags{margin-top:20px;font-size:13px;color:var(--brand-accent);letter-spacing:.05em;font-weight:500;text-transform:uppercase}

.signup-main{padding:48px 56px;background:#fff;display:flex;flex-direction:column}
@media(max-width:880px){.signup-main{padding:32px 22px}}
.signup-stepper{display:flex;flex-direction:column;gap:8px;color:var(--text-muted);margin-bottom:36px;max-width:280px}
.signup-step{display:flex;align-items:center;gap:14px;font-size:14px}
.signup-step .ss-num{width:28px;height:28px;border-radius:50%;background:#cfd6f3;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}
.signup-step.active{color:var(--brand-dark);font-weight:600}
.signup-step.active .ss-num{background:var(--brand-primary)}
.signup-step.done{color:var(--brand-accent)}
.signup-step.done .ss-num{background:var(--brand-accent)}
.signup-step.done .ss-num::after{content:'\2713';color:#fff}
.signup-step.done .ss-num span{display:none}

.signup-form{max-width:520px}
.signup-form h1{font-size:26px;color:var(--brand-dark);margin-bottom:24px;font-weight:600}
.signup-form .field{margin-bottom:18px}
.signup-form label{display:block;font-size:13px;color:var(--text-muted);margin-bottom:6px;font-weight:500}
.signup-form label .req{color:#dc2626}
.signup-form input[type=text],.signup-form input[type=email],.signup-form select{
    width:100%;height:46px;padding:0 14px;font:inherit;font-size:14.5px;
    border:1px solid var(--border-soft);border-radius:6px;background:#fff;color:var(--text-body);
}
.signup-form input:focus,.signup-form select:focus{outline:none;border-color:var(--brand-primary);box-shadow:0 0 0 3px rgba(61,90,254,.12)}
.signup-form input.error,.signup-form select.error{border-color:#dc2626}
.signup-form .field-error{color:#dc2626;font-size:12.5px;margin-top:4px}
.signup-form .help{font-size:12px;color:var(--text-muted);margin-top:4px}
.signup-form .checkbox-row{display:flex;align-items:flex-start;gap:10px;margin:12px 0;font-size:13.5px;color:var(--text-body);line-height:1.5}
.signup-form .checkbox-row input[type=checkbox]{margin-top:3px;accent-color:var(--brand-primary)}
.signup-form .button-row{display:flex;justify-content:space-between;margin-top:28px;gap:14px}
.signup-form .button-row .btn-text{background:transparent;border:none;color:var(--brand-primary);font-weight:600;cursor:pointer;font-size:14px;padding:12px 0}
.got-account{text-align:right;font-size:13.5px;color:var(--text-muted);margin-bottom:18px}
.got-account a{color:var(--brand-primary);text-decoration:none;font-weight:600}

/* Faq accordion */
.faq-list{max-width:760px;margin:0 auto}
.faq-item{border-bottom:1px solid var(--border-soft);padding:18px 0}
.faq-item summary{cursor:pointer;font-weight:600;font-size:16px;color:var(--brand-dark);list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';color:var(--brand-primary);font-size:22px;font-weight:300}
.faq-item[open] summary::after{content:'\2212'}
.faq-item p{margin-top:10px;color:var(--text-body);font-size:14.5px;line-height:1.7}

/* Pricing table */
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1000px;margin:0 auto}
@media(max-width:780px){.pricing-grid{grid-template-columns:1fr}}
.pricing-card{background:#fff;border:1px solid var(--border-soft);border-radius:12px;padding:32px 24px;text-align:center;display:flex;flex-direction:column;gap:12px}
.pricing-card.highlight{border:2px solid var(--brand-primary);box-shadow:0 12px 36px rgba(61,90,254,.16)}
.pricing-card .tier{font-size:13px;text-transform:uppercase;letter-spacing:.16em;color:var(--brand-primary);font-weight:700}
.pricing-card .price{font-size:36px;font-weight:700;color:var(--brand-dark)}
.pricing-card .price small{font-size:14px;color:var(--text-muted);font-weight:400}
.pricing-card ul{list-style:none;padding:0;margin:14px 0;font-size:14px;color:var(--text-body);line-height:1.9;text-align:left}
.pricing-card ul li::before{content:'\2713';color:var(--brand-accent);margin-right:8px;font-weight:700}

/* Marketplace logos placeholder */
.logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;max-width:880px;margin:0 auto}
.logo-cell{background:#fff;border:1px solid var(--border-soft);border-radius:8px;padding:18px;text-align:center;color:var(--text-muted);font-size:13px}

/* Imprint/about/privacy/terms — simple long-form */
.legal-page{max-width:760px;margin:0 auto;padding:48px 24px}
.legal-page h1{font-size:30px;color:var(--brand-dark);margin-bottom:24px}
.legal-page h2{font-size:18px;color:var(--brand-primary);margin:24px 0 8px;letter-spacing:.04em;text-transform:uppercase}
.legal-page p{font-size:14.5px;line-height:1.7;color:var(--text-body);margin-bottom:14px}
.legal-page ul{font-size:14.5px;line-height:1.8;color:var(--text-body);padding-left:22px;margin-bottom:14px}
