:root{
  --bg:#f7f8fb;
  --bg-2:#edf1f7;
  --text:#0f172a;
  --muted:#7a8496;
  --muted-2:#a8b0bf;
  --line:#e4e8f0;
  --card:#ffffff;
  --accent:#0f172a;
  --accent-2:#2563eb;
  --green:#16a34a;
  --orange:#f59e0b;
  --rose:#e11d48;
  --violet:#7c3aed;
  --cyan:#0891b2;
  --shadow:0 26px 80px rgba(15,23,42,.10);
  --shadow-soft:0 12px 36px rgba(15,23,42,.06);
  --radius:24px;
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{
  margin:0;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.95) 0, rgba(255,255,255,.55) 28%, transparent 58%),
    linear-gradient(180deg,#fbfcff 0%,var(--bg) 58%,var(--bg-2) 100%);
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a{color:inherit}
button,input,textarea,select{font:inherit}
button{touch-action:manipulation}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* HOME */
.home-main{
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:clamp(28px,7vh,76px) 18px 28px;
  transition:padding .24s ease;
}
.search-stage{
  position:relative;
  width:min(860px,100%);
  min-height:clamp(420px,68svh,760px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:26px;
  padding-top:clamp(22px,4vh,52px);
  isolation:isolate;
  transition:min-height .24s ease, transform .24s ease;
}
.globe-stage{
  position:relative;
  width:min(540px,92vw);
  height:min(540px,48vh);
  min-height:260px;
  display:grid;
  place-items:center;
  margin:0 auto;
  opacity:1;
  transition:opacity .24s ease, transform .24s ease, visibility .24s ease;
}
.globe-stage.hidden{opacity:0;visibility:hidden;transform:translateY(-8px) scale(.98);pointer-events:none}
.word-globe{
  position:relative;
  width:min(500px,84vw);
  aspect-ratio:1/1;
  border-radius:50%;
  touch-action:none;
  user-select:none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.78) 40%, rgba(255,255,255,.16) 72%, rgba(255,255,255,0) 82%),
    radial-gradient(circle at 50% 50%, rgba(99,102,241,.045), rgba(99,102,241,0) 68%);
  box-shadow: inset 0 -28px 64px rgba(255,255,255,.22), 0 14px 54px rgba(15,23,42,.05);
}
.word-globe::after{
  content:'';
  position:absolute;
  inset:auto 18% 6% 18%;
  height:12%;
  border-radius:999px;
  background:radial-gradient(circle, rgba(15,23,42,.10) 0, rgba(15,23,42,.04) 45%, rgba(15,23,42,0) 78%);
  filter:blur(12px);
  z-index:0;
}
.globe-word{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  transform-origin:center center;
  white-space:nowrap;
  padding:5px 12px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.56);
  background:rgba(255,255,255,.22);
  box-shadow:0 8px 22px rgba(15,23,42,.04);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:transform .16s ease, opacity .16s ease, filter .16s ease, background .16s ease;
}
.globe-word:hover{background:rgba(255,255,255,.65);filter:saturate(1.05)}
.globe-word.active{background:rgba(255,255,255,.75)}
.search-box{
  position:relative;
  z-index:5;
  width:min(760px,100%);
  min-height:74px;
  margin:-8px auto 0;
  padding:8px 9px 8px 22px;
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid rgba(199,207,220,.86);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transition:box-shadow .22s ease, border-color .22s ease, transform .22s ease, background .22s ease;
}
.search-box:focus-within{border-color:rgba(151,163,184,.92);background:rgba(255,255,255,.97);box-shadow:0 34px 96px rgba(15,23,42,.13)}
.search-icon{flex:0 0 auto;display:grid;place-items:center;color:#a6afbd}
#searchInput{
  width:100%;
  min-width:0;
  flex:1;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:clamp(18px,2.2vw,24px);
  line-height:1.2;
  padding:17px 0;
  -webkit-appearance:none;
}
#searchInput::placeholder{color:#b6bdc9;opacity:1}
.search-button{
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  min-height:50px;
  padding:0 24px;
  background:linear-gradient(135deg,#111827,#1f2937);
  color:#fff;
  font-size:15px;
  font-weight:850;
  letter-spacing:-.01em;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(15,23,42,.20);
}
.search-button:hover{transform:translateY(-1px)}
.search-button[hidden]{display:none}
.results{width:min(900px,100%);margin:-22px auto 36px;padding:0;display:grid;gap:14px}
.results[hidden]{display:none}
.results-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:0 6px;color:#172033;font-size:22px;font-weight:900;letter-spacing:-.04em}
.results-head small{display:block;margin-top:4px;color:#99a2b1;font-size:13px;font-weight:600;letter-spacing:0}
.text-button{border:0;background:transparent;color:#8d96a7;font-size:13px;font-weight:800;cursor:pointer;padding:8px 4px}.text-button:hover{color:#0f172a}
.result-list{display:grid;gap:12px}.empty-state{border:1px dashed var(--line);border-radius:22px;padding:22px;color:#798397;background:rgba(255,255,255,.62);font-weight:650}
.tender-card{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:18px;border:1px solid rgba(226,232,240,.9);border-radius:22px;background:rgba(255,255,255,.86);box-shadow:var(--shadow-soft);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.card-icon{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;color:#2563eb;background:#eff6ff}.card-title{display:block;margin:0 0 7px;font-size:16px;line-height:1.35;font-weight:900;letter-spacing:-.02em}.card-meta{margin:0;color:#7f8a9d;font-size:13px;line-height:1.3}.card-tags{display:flex;gap:7px;flex-wrap:wrap}.card-tag{display:inline-flex;align-items:center;width:max-content;margin-top:10px;padding:5px 10px;border-radius:999px;color:#2867b2;background:#e8f2ff;font-size:12px;font-weight:800}.card-side{display:grid;gap:8px;justify-items:end;text-align:right;white-space:nowrap}.status,.status-pill{border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;color:#157348;background:#dcfce7}.status.soon,.status-pill.warn{color:#a56809;background:#fef3c7}.status-pill.blue{color:#2256b9;background:#dbeafe}.status-pill.red{color:#be123c;background:#ffe4e6}.amount,.price{font-weight:950;letter-spacing:-.03em}.deadline{color:#8d96a7;font-size:13px;font-weight:650}
.footer{width:100%;padding:18px max(18px,env(safe-area-inset-left)) calc(16px + env(safe-area-inset-bottom));border-top:1px solid rgba(226,232,240,.72);background:rgba(255,255,255,.58);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:opacity .18s ease, visibility .18s ease, transform .18s ease}
.footer-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.footer-action{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 12px;border:1px solid rgba(226,232,240,.95);border-radius:999px;background:rgba(255,255,255,.62);color:#182133;text-decoration:none;font-size:13px;box-shadow:0 8px 24px rgba(15,23,42,.035)}.footer-action span{display:grid;place-items:center;width:21px;height:21px;border-radius:999px;color:#2563eb;background:#eff6ff;font-weight:950;font-size:11px}.footer-action b{font-weight:800}.footer-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:0 0 13px}.footer-links a{color:#7c8494;font-size:12px;text-decoration:none;font-weight:700}.footer a:hover{color:#0f172a}.copyright{display:flex;align-items:center;justify-content:center;gap:11px;color:#9aa3b2;font-size:12px;line-height:1.2;flex-wrap:wrap}.language-switch{display:inline-flex;align-items:center;gap:10px}.language-switch button{border:0;padding:0;background:transparent;color:#8e97a8;font-size:12px;font-weight:700;cursor:pointer}.language-switch button:hover,.language-switch button.active{color:#2563eb}
body.search-mode{overflow:hidden}body.search-mode .home-main{padding:0 18px;min-height:var(--vvh,100dvh);justify-content:center}body.search-mode .search-stage{width:min(790px,100%);min-height:min(var(--vvh,100dvh),720px)}body.search-mode .suggestion-cloud{display:block;opacity:1;transform:scale(1)}body.search-mode .footer,body.search-mode .results{display:none}body.has-results .search-stage{min-height:clamp(170px,28svh,260px)}body.has-results .search-box{box-shadow:0 14px 46px rgba(15,23,42,.08)}

/* SIMPLE FORMS */
.simple-shell{width:min(820px,100%);margin:0 auto;padding:52px 18px 72px}.back-link{display:inline-flex;align-items:center;margin-bottom:18px;color:#7d8696;text-decoration:none;font-size:13px;font-weight:800}.simple-card{border:1px solid rgba(226,232,240,.9);border-radius:28px;padding:clamp(22px,4vw,34px);background:rgba(255,255,255,.88);box-shadow:var(--shadow-soft);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.simple-card h1{margin:0 0 10px;font-size:clamp(28px,5vw,44px);line-height:1.04;letter-spacing:-.055em}.simple-card p{margin:0 0 20px;color:#707b90;line-height:1.65}.form-grid{display:grid;gap:14px}.field{display:grid;gap:7px}.field label{font-size:12px;color:#707b90;font-weight:850}.field input,.field textarea,.field select{width:100%;border:1px solid rgba(213,219,229,.95);border-radius:16px;padding:14px 15px;background:#fff;color:#0f172a;outline:0}.field textarea{min-height:120px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#9db7ed;box-shadow:0 0 0 4px rgba(37,99,235,.08)}.primary-button,.primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:4px;border:0;border-radius:16px;padding:0 18px;background:#0f172a;color:#fff;font-weight:900;text-decoration:none;cursor:pointer}.mini-list{display:grid;gap:10px;margin:18px 0 22px}.mini-list>div{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#64748b}.role-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.role-card{display:grid;gap:10px;align-content:start;min-height:170px;padding:20px;border:1px solid var(--line);border-radius:22px;background:#fff;text-decoration:none;box-shadow:0 10px 30px rgba(15,23,42,.04)}.role-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}.role-card .role-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#eff6ff;color:#2563eb;font-weight:950}.role-card strong{font-size:18px;letter-spacing:-.02em}.role-card span:last-child{color:#738096;font-size:13px;line-height:1.45}

/* DASHBOARDS */
.dashboard-body{display:block;min-height:100vh;background:linear-gradient(180deg,#fbfcff 0%,#f4f7fb 100%)}.dashboard-shell{width:min(1180px,100%);margin:0 auto;padding:20px 18px 54px}.dashboard-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-20px -18px 18px;padding:16px 18px;border-bottom:1px solid rgba(226,232,240,.82);background:rgba(255,255,255,.78);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.brand-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:950;letter-spacing:-.03em}.brand-mark{width:28px;height:28px;border-radius:9px;background:linear-gradient(135deg,#2563eb,#ef4444);box-shadow:0 10px 24px rgba(37,99,235,.18)}.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.top-actions a{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;text-decoration:none;color:#536076;font-size:12px;font-weight:850}.top-actions a.active{background:#0f172a;color:#fff;border-color:#0f172a}.dashboard-hero{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;margin:22px 0}.dashboard-hero h1{margin:0;font-size:clamp(30px,4vw,52px);letter-spacing:-.06em;line-height:1.02}.dashboard-hero p{margin:10px 0 0;color:#718096;font-weight:650;line-height:1.55}.role-badge{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-bottom:10px;padding:7px 10px;border-radius:999px;background:#eef2ff;color:#3346a6;font-size:12px;font-weight:950}.hero-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#142033;text-decoration:none;font-weight:900}.dashboard-grid{display:grid;grid-template-columns:252px 1fr;gap:18px}.side-panel,.dash-panel{border:1px solid rgba(226,232,240,.92);border-radius:26px;background:rgba(255,255,255,.86);box-shadow:var(--shadow-soft);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.side-panel{padding:14px;align-self:start;position:sticky;top:88px}.side-menu{display:grid;gap:6px}.side-menu a,.side-menu button{display:flex;align-items:center;gap:9px;min-height:42px;width:100%;border:0;border-radius:14px;padding:0 12px;background:transparent;text-decoration:none;color:#667085;font-weight:850;text-align:left;cursor:pointer}.side-menu a.active,.side-menu button.active,.side-menu a:hover,.side-menu button:hover{background:#f1f5fb;color:#0f172a}.side-note{margin:14px 0 0;padding:14px;border-radius:18px;background:#f8fafc;color:#718096;font-size:12px;line-height:1.55}.dash-content{display:grid;gap:18px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat-card{border:1px solid rgba(226,232,240,.92);border-radius:22px;background:rgba(255,255,255,.9);padding:18px;box-shadow:0 10px 28px rgba(15,23,42,.035)}.stat-card small{display:block;color:#7c8798;font-size:12px;font-weight:850}.stat-card strong{display:block;margin-top:7px;font-size:28px;letter-spacing:-.04em}.stat-card span{display:block;margin-top:6px;color:#8d96a7;font-size:12px;font-weight:700}.dash-panel{padding:18px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.panel-head h2{margin:0;font-size:20px;letter-spacing:-.035em}.panel-head p{margin:5px 0 0;color:#7d8798;font-size:13px;line-height:1.45}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff}.dash-table{width:100%;border-collapse:collapse;min-width:660px}.dash-table th,.dash-table td{padding:14px;text-align:left;border-bottom:1px solid #edf1f6;vertical-align:middle}.dash-table th{font-size:11px;color:#7a8496;text-transform:uppercase;letter-spacing:.05em;background:#f8fafc}.dash-table td{font-size:13px;color:#243044;font-weight:650}.dash-table tr:last-child td{border-bottom:0}.table-title{display:grid;gap:3px}.table-title strong{font-size:14px;color:#0f172a}.table-title small{font-size:12px;color:#7a8496}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:0;border-radius:12px;padding:0 12px;background:#eff6ff;color:#2256b9;font-weight:900;cursor:pointer}.split-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.task-list,.activity-list,.doc-list{display:grid;gap:10px}.task-item,.activity-item,.doc-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:16px;background:#fff}.dot{width:10px;height:10px;border-radius:999px;background:#2563eb}.dot.green{background:#16a34a}.dot.orange{background:#f59e0b}.dot.rose{background:#e11d48}.task-item strong,.activity-item strong,.doc-item strong{font-size:14px}.task-item small,.activity-item small,.doc-item small{display:block;margin-top:3px;color:#8490a3;font-size:12px}.workflow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.step{padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}.step b{display:grid;place-items:center;width:28px;height:28px;margin-bottom:10px;border-radius:999px;background:#0f172a;color:#fff}.step strong{display:block;font-size:14px}.step span{display:block;margin-top:5px;color:#7a8496;font-size:12px;line-height:1.35}.matching-list{display:grid;gap:12px}.match-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:20px;background:#fff}.match-card h3{margin:0 0 6px;font-size:16px;letter-spacing:-.02em}.match-card p{margin:0;color:#7a8496;font-size:13px}.match-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.match-meta span{padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#607089;font-size:11px;font-weight:850}.match-score{display:grid;place-items:center;width:68px;height:68px;border-radius:20px;background:#ecfdf5;color:#15803d;font-weight:950}.dashboard-footer{margin-top:26px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:#8a94a6;font-size:12px}.dashboard-footer a{text-decoration:none;font-weight:850}.dashboard-footer a:hover{color:#0f172a}

@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.side-panel{position:static}.side-menu{grid-template-columns:repeat(2,1fr)}.stat-grid{grid-template-columns:repeat(2,1fr)}.split-grid{grid-template-columns:1fr}.workflow{grid-template-columns:repeat(2,1fr)}.dashboard-hero{grid-template-columns:1fr}.hero-buttons{justify-content:flex-start}.role-cards{grid-template-columns:1fr}}
@media(max-width:760px){.home-main{padding-top:28px;padding-bottom:18px}.search-stage{min-height:58svh;width:100%}.search-box{min-height:70px;padding-left:18px;gap:10px;border-radius:28px}#searchInput{font-size:18px;padding:16px 0}.search-button{min-height:46px;padding:0 18px;font-size:14px}.suggestion-chip{font-size:12px;padding:7px 12px;max-width:168px;overflow:hidden;text-overflow:ellipsis}.suggestion-chip.pos-1{--x:-126px;--y:-172px}.suggestion-chip.pos-2{--x:38px;--y:-205px}.suggestion-chip.pos-3{--x:142px;--y:-146px}.suggestion-chip.pos-4{--x:-142px;--y:-82px}.suggestion-chip.pos-5{--x:148px;--y:-78px}.suggestion-chip.pos-6{--x:-128px;--y:118px}.suggestion-chip.pos-7{--x:6px;--y:154px}.suggestion-chip.pos-8{--x:126px;--y:118px}.suggestion-chip.pos-9{--x:-62px;--y:198px}.suggestion-chip.pos-10{--x:70px;--y:198px}body.search-mode .search-stage{min-height:var(--vvh,100dvh)}.footer-actions{gap:8px;margin-bottom:11px}.footer-action{font-size:12px;padding:7px 10px}.footer-links{gap:14px}.tender-card{grid-template-columns:1fr;gap:12px;padding:16px}.card-icon{display:none}.card-side{justify-items:start;text-align:left;white-space:normal}.results{margin-top:-10px}.results-head{font-size:20px}.dashboard-shell{padding:16px 12px 40px}.dashboard-topbar{margin:-16px -12px 16px;padding:13px 12px;align-items:flex-start}.top-actions{justify-content:flex-end}.top-actions a{font-size:11px;padding:0 10px}.side-menu{grid-template-columns:1fr}.stat-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:15px}.stat-card strong{font-size:24px}.dashboard-hero h1{font-size:34px}.dash-panel{padding:14px}.workflow{grid-template-columns:1fr}.task-item,.activity-item,.doc-item{grid-template-columns:auto 1fr}.task-item .status-pill,.activity-item .status-pill,.doc-item .status-pill{grid-column:2;justify-self:start}.match-card{grid-template-columns:1fr}.match-score{width:max-content;height:auto;padding:8px 12px;border-radius:999px}.simple-shell{padding-top:34px}.simple-card h1{font-size:30px}}
@media(max-width:430px){.search-box{min-height:66px;padding:7px 8px 7px 16px;border-radius:26px}.search-icon svg{width:20px;height:20px}#searchInput{font-size:16px}.search-button{padding:0 14px}.suggestion-chip{font-size:11px;min-height:30px;opacity:.58}.suggestion-chip.pos-1{--x:-112px;--y:-164px}.suggestion-chip.pos-2{--x:0px;--y:-196px}.suggestion-chip.pos-3{--x:112px;--y:-160px}.suggestion-chip.pos-4{--x:-116px;--y:-78px}.suggestion-chip.pos-5{--x:116px;--y:-76px}.suggestion-chip.pos-6{--x:-112px;--y:108px}.suggestion-chip.pos-7{--x:0px;--y:142px}.suggestion-chip.pos-8{--x:112px;--y:108px}.suggestion-chip.pos-9{display:none}.suggestion-chip.pos-10{display:none}.copyright{gap:9px}.footer-action span{display:none}.footer-actions{gap:6px}.footer-action{padding:7px 9px}.brand-link span:last-child{display:none}.top-actions{gap:5px}.stat-grid{grid-template-columns:1fr}.panel-head{display:grid}.dash-table{min-width:560px}}
@media(max-height:620px){.search-stage{min-height:430px}body.search-mode .search-stage{min-height:var(--vvh,100dvh)}.suggestion-chip.pos-1{--y:-132px}.suggestion-chip.pos-2{--y:-158px}.suggestion-chip.pos-3{--y:-128px}.suggestion-chip.pos-4{--y:-52px}.suggestion-chip.pos-5{--y:-50px}.suggestion-chip.pos-6{--y:100px}.suggestion-chip.pos-7{--y:128px}.suggestion-chip.pos-8{--y:100px}}

/* Auth and personal account */
.auth-shell{width:min(620px,100%)}
.auth-card{padding:clamp(24px,5vw,38px)}
.auth-head{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;margin-bottom:22px}
.auth-head h1{margin-top:0}
.auth-mark{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#2563eb,#ef4444);box-shadow:0 14px 32px rgba(37,99,235,.18)}
.auth-form{gap:15px}
.full-button{width:100%}
.form-message{min-height:18px;margin:-2px 0 0;color:#dc2626;font-size:12px;font-weight:800}
.form-message.success{color:#15803d}
.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0 16px;color:#9aa3b2;font-size:12px;font-weight:850}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:var(--line)}
.auth-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.auth-links a{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#536076;text-decoration:none;font-size:12px;font-weight:850}
.auth-links a:hover{color:#0f172a;border-color:#cbd5e1}

.signature-button{width:100%;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;text-align:left;min-height:64px;border:1px solid rgba(203,213,225,.95);border-radius:18px;padding:12px 14px;background:#fff;color:#142033;cursor:pointer;box-shadow:0 10px 30px rgba(15,23,42,.035)}
.signature-button:hover{border-color:#9db7ed;box-shadow:0 16px 42px rgba(37,99,235,.08);transform:translateY(-1px)}
.signature-button:disabled{cursor:wait;opacity:.72;transform:none}
.signature-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:#ecfdf5;color:#15803d;font-weight:950}
.signature-button strong{display:block;font-size:14px;letter-spacing:-.01em}
.signature-button small{display:block;margin-top:3px;color:#7d8798;font-size:12px;font-weight:750}
.signature-message{margin:8px 0 0}

.account-grid{grid-template-columns:252px 1fr}
.three-stats{grid-template-columns:repeat(3,1fr)}
.account-role-cards{grid-template-columns:repeat(2,1fr);margin-top:0}
.profile-list{display:grid;gap:10px}
.profile-list>div{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}
.profile-list span{color:#7a8496;font-size:13px;font-weight:800}
.profile-list strong{font-size:14px;text-align:right}
.top-actions a[data-logout]{color:#dc2626;background:#fff5f5;border-color:#fee2e2}
.top-actions a[data-logout]:hover{background:#fee2e2;color:#991b1b}
@media(max-width:900px){.account-grid{grid-template-columns:1fr}.three-stats{grid-template-columns:repeat(2,1fr)}.account-role-cards{grid-template-columns:1fr}}
@media(max-width:560px){.auth-head{grid-template-columns:1fr}.auth-mark{width:40px;height:40px}.three-stats{grid-template-columns:1fr}.auth-links{justify-content:stretch}.auth-links a{justify-content:center;flex:1 1 100%}.profile-list>div{display:grid}.profile-list strong{text-align:left}}

/* Mobile publication polish: no horizontal overflow, clean role dashboards */
html, body{width:100%;max-width:100%;overflow-x:hidden}
.dashboard-body{width:100%;overflow-x:hidden;background:linear-gradient(180deg,#fbfcff 0%,#f5f7fb 100%)}
.dashboard-shell{max-width:1180px;width:100%;overflow:visible}
.dashboard-topbar,.dashboard-hero,.dashboard-grid,.dash-content,.dash-panel,.side-panel,.stat-grid,.split-grid,.table-wrap{min-width:0}
.dashboard-topbar{width:auto}
.brand-link,.top-actions{min-width:0}
.top-actions a{white-space:nowrap;flex:0 0 auto}
.side-menu a{min-width:0;overflow:hidden;text-overflow:ellipsis}
.dash-content{width:100%;max-width:100%}
.dash-panel,.side-panel,.stat-card,.match-card,.task-item,.activity-item,.doc-item{max-width:100%}
.table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}

@media(max-width:760px){
  .dashboard-shell{padding:14px 12px 42px;max-width:100vw}
  .dashboard-topbar{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:10px;
    margin:-14px -12px 16px;
    padding:12px;
  }
  .brand-link{width:38px;min-width:38px;max-width:38px;overflow:hidden}
  .brand-mark{width:32px;height:32px;border-radius:12px}
  .top-actions{
    display:flex;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:7px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 2px 4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .top-actions::-webkit-scrollbar{display:none}
  .top-actions a{min-height:36px;padding:0 12px;font-size:12px;border-radius:999px;background:rgba(255,255,255,.78)}
  .top-actions a.active{background:#0f172a;color:#fff;box-shadow:0 10px 24px rgba(15,23,42,.14)}
  .top-actions a[data-logout]{color:#dc2626;background:#fff7f7;border-color:#fee2e2}

  .dashboard-hero{margin:20px 0 16px;gap:16px}
  .role-badge{font-size:12px;padding:7px 10px;background:#eef2ff;color:#3446a6}
  .dashboard-hero h1{font-size:clamp(34px,9vw,44px);line-height:1.02;letter-spacing:-.065em}
  .dashboard-hero p{font-size:15px;line-height:1.45;color:#7a8496;max-width:34em}
  .hero-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
  .hero-buttons .primary-button,.hero-buttons .secondary-button{min-height:48px;border-radius:16px;padding:0 12px;text-align:center;font-size:14px}

  .dashboard-grid{gap:14px;width:100%}
  .side-panel,.dash-panel{border-radius:24px;background:rgba(255,255,255,.9)}
  .side-panel{padding:12px;box-shadow:0 16px 44px rgba(15,23,42,.06)}
  .side-menu{gap:8px}
  .side-menu a,.side-menu button{min-height:44px;border-radius:16px;padding:0 14px;font-size:15px;color:#778197}
  .side-menu a.active,.side-menu button.active{background:#f1f5fb;color:#101827}
  .side-note{margin-top:12px;padding:14px;border-radius:18px;background:#f8fafc;font-size:12px}

  .stat-grid{grid-template-columns:1fr;gap:12px}
  .stat-card{border-radius:22px;padding:18px;background:#fff}
  .stat-card small{font-size:19px;letter-spacing:-.035em;color:#80899a;text-transform:none}
  .stat-card strong{font-size:28px;margin-top:8px;color:#0f172a}
  .stat-card span{font-size:15px;color:#8a94a6}
  .dash-panel{padding:16px}
  .panel-head{display:grid;gap:10px;margin-bottom:14px}
  .panel-head h2{font-size:22px}
  .panel-head p{font-size:13px}
  .workflow,.split-grid{grid-template-columns:1fr;gap:12px}
  .task-item,.activity-item,.doc-item{grid-template-columns:auto 1fr;gap:12px;border-radius:18px}
  .task-item .status-pill,.activity-item .status-pill,.doc-item .status-pill{grid-column:2;justify-self:start}
  .match-card{grid-template-columns:1fr;gap:12px;border-radius:20px}
  .match-score{width:max-content;height:auto;padding:8px 12px;border-radius:999px}
  .dashboard-footer{display:grid;text-align:center;justify-content:center;gap:10px;padding-bottom:12px}
}

@media(max-width:430px){
  .dashboard-shell{padding-left:10px;padding-right:10px}
  .dashboard-topbar{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}
  .hero-buttons{grid-template-columns:1fr 1fr}
  .hero-buttons .primary-button,.hero-buttons .secondary-button{font-size:13px;min-height:46px}
  .dashboard-hero h1{font-size:39px}
  .simple-shell{padding-left:12px;padding-right:12px}
  .simple-card{border-radius:24px;padding:22px 16px}
  .auth-card{padding:22px 16px}
  .field input,.field textarea,.field select{border-radius:15px}
}
/* Production PHP/MySQL additions */
.flash-stack{position:fixed;z-index:1000;left:50%;top:16px;transform:translateX(-50%);display:grid;gap:8px;width:min(560px,calc(100% - 28px))}.flash{padding:12px 14px;border-radius:16px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 14px 34px rgba(15,23,42,.12);font-weight:800;color:#111827}.flash.success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.flash.error,.alert.danger{border-color:#fecdd3;background:#fff1f2;color:#9f1239}.alert{padding:12px 14px;border-radius:16px;margin:10px 0}.alert p{margin:0 0 6px}.alert p:last-child{margin-bottom:0}.codebox{width:100%;min-height:210px;border:1px solid #e2e8f0;border-radius:14px;padding:12px;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:12px;color:#334155;background:#f8fafc}.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(16px,env(safe-area-inset-left));background:rgba(255,255,255,.78);border-bottom:1px solid rgba(226,232,240,.72);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:950;letter-spacing:-.03em}.brand-mark{width:26px;height:26px;border-radius:8px;background:linear-gradient(135deg,#2563eb,#f97316);display:inline-block}.topnav{display:flex;align-items:center;gap:8px;overflow-x:auto}.topnav a{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border-radius:999px;text-decoration:none;color:#667085;font-weight:850;font-size:13px;white-space:nowrap}.topnav a.active,.topnav a:hover{color:#0f172a;background:#eef2ff}.topnav a.logout{background:#fff1f2;color:#be123c}.dashboard-shell{width:min(1120px,100%);margin:0 auto;padding:30px 16px 80px}.hero-card{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:end;margin-bottom:18px}.hero-card h1{margin:0;font-size:clamp(30px,7vw,54px);letter-spacing:-.06em;line-height:.98}.hero-card p{margin:12px 0 0;color:#758195;line-height:1.55;font-weight:650}.panel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.stat-card,.panel-card{border:1px solid rgba(226,232,240,.92);border-radius:24px;padding:20px;background:rgba(255,255,255,.88);box-shadow:var(--shadow-soft)}.stat-card b{display:block;font-size:34px;letter-spacing:-.06em}.stat-card span{display:block;margin-top:6px;color:#7b8496;font-weight:800}.panel-card h2{margin:0 0 12px;font-size:22px;letter-spacing:-.04em}.table-wrap{width:100%;overflow:auto;border:1px solid rgba(226,232,240,.88);border-radius:20px;background:#fff}.table{width:100%;border-collapse:collapse;min-width:720px}.table th,.table td{padding:13px 14px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:top}.table th{font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.table td{font-size:14px}.table tr:last-child td{border-bottom:0}.link-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border-radius:12px;text-decoration:none;background:#0f172a;color:#fff;font-weight:900;border:0;cursor:pointer}.link-button.light{background:#eef2ff;color:#1e40af}.link-button.red{background:#fff1f2;color:#be123c}.inline-form{display:inline}.muted{color:#768196}.small{font-size:12px}.hr{height:1px;background:#e5e7eb;margin:18px 0}.auth-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px}.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #dbe2ee;border-radius:16px;padding:0 18px;background:#fff;color:#111827;font-weight:900;text-decoration:none;cursor:pointer}.secondary-button:hover{border-color:#bbc7dd}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#1e40af;font-weight:900;font-size:12px}.badge.green{background:#dcfce7;color:#166534}.badge.orange{background:#fef3c7;color:#92400e}.badge.red{background:#ffe4e6;color:#be123c}.notice{border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;border-radius:18px;padding:14px 16px;font-weight:750}.install-warning{max-width:900px;margin:20px auto 0;padding:14px 18px;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:18px}.tender-detail{display:grid;grid-template-columns:1.4fr .8fr;gap:16px}.file-input{padding:11px!important}.contact-list{display:grid;gap:10px;margin-top:14px}.contact-list a{text-decoration:none;color:#2563eb;font-weight:850}
@media (max-width:760px){.topbar{align-items:flex-start;flex-direction:column}.topnav{width:100%}.hero-card{grid-template-columns:1fr}.panel-grid{grid-template-columns:1fr}.tender-detail{grid-template-columns:1fr}.dashboard-shell{padding-top:20px}.table{min-width:640px}.search-box{min-height:64px;padding-left:16px}.footer{position:relative}.simple-shell{padding-top:28px}.simple-card h1{font-size:32px}}

/* Tender document package */
.doc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:16px;background:#fff;text-decoration:none;color:#142033;font-weight:850}
.doc-row:hover{border-color:#bfdbfe;background:#f8fbff}
.doc-row span{color:#7a8496;font-size:12px;font-weight:800;white-space:nowrap}
.field small{color:#8a94a6;font-size:12px;line-height:1.4}
@media(max-width:560px){.doc-row{display:grid}.doc-row span{white-space:normal}.inline-form{display:inline-flex;margin:2px 0}}

/* Archive and legal updates */
.footer-about{
  max-width:760px;
  margin:0 auto 12px;
  text-align:center;
  color:#8a94a6;
  font-size:12px;
  line-height:1.55;
  font-weight:650;
}
.copyright a{color:#8e97a8;text-decoration:none;font-weight:800}
.copyright a:hover{color:#2563eb}
.archive-shell{width:min(980px,100%);margin:0 auto;padding:42px 16px 80px}
.archive-hero{display:grid;gap:12px;margin-bottom:18px}
.archive-hero h1{margin:0;font-size:clamp(32px,7vw,54px);line-height:1.02;letter-spacing:-.06em}
.archive-hero p{max-width:760px;margin:0;color:#758195;line-height:1.6;font-weight:650}
.archive-search{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:12px;padding:8px 8px 8px 16px;border:1px solid rgba(213,219,229,.95);border-radius:22px;background:#fff;box-shadow:var(--shadow-soft)}
.archive-search input{width:100%;border:0;outline:0;background:transparent;color:#0f172a;font-size:16px;padding:13px 0}
.archive-search input::placeholder{color:#aab2c1}
.results-head.compact{padding:0 0 14px;margin:0}
.archive-list{display:grid;gap:12px}
.archive-card{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:18px;border:1px solid rgba(226,232,240,.92);border-radius:20px;background:#fff}
.legal-card h2{margin:20px 0 8px;font-size:18px;letter-spacing:-.03em}
.legal-section p{margin:0;color:#6f7b90;line-height:1.7}
@media(max-width:640px){
  .archive-shell{padding:28px 12px 64px}
  .archive-search{grid-template-columns:auto 1fr;gap:8px;border-radius:20px}
  .archive-search .primary-button{grid-column:1 / -1;width:100%;margin-top:0}
  .archive-card{grid-template-columns:1fr}
  .archive-card .card-side{justify-items:start;text-align:left;white-space:normal}
  .footer-about{padding:0 8px}
}

/* Final hosting update: language links, info footer, saved tenders and feedback form */
.language-switch a{border:0;padding:0;background:transparent;color:#8e97a8;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer}
.language-switch a:hover,.language-switch a.active{color:#2563eb}
.footer-about{display:none!important}
.card-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}
.card-action-form{display:inline-flex;margin:0}
.card-action{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border:1px solid rgba(191,219,254,.9);border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:950;text-decoration:none;cursor:pointer;white-space:nowrap}
.card-action:hover{background:#dbeafe}
.card-action.ghost{background:#f8fafc;color:#64748b;border-color:#e2e8f0}
.card-action.added{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.compact-form{margin-bottom:8px}
.contact-form textarea{min-height:130px;resize:vertical}
.simple-card .primary-button,.simple-card .secondary-button{width:max-content;max-width:100%}
@media(max-width:760px){.card-tags{align-items:flex-start}.card-action,.card-action-form{width:100%}.card-action{width:100%;min-height:36px}.simple-card .primary-button,.simple-card .secondary-button{width:100%}}

/* Company verification and e-signature additions */
.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.register-company-form{margin-top:16px}.wide-table{min-width:1040px}
.doc-row-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.doc-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.doc-actions .inline-form{display:inline-flex}.doc-actions .link-button{min-height:34px}.profile-list strong{word-break:break-word}.notice small{display:block;margin-top:6px;line-height:1.5;color:#4f6280;font-weight:700}
@media(max-width:760px){.hero-actions{justify-content:stretch}.hero-actions .primary-button,.hero-actions .secondary-button{width:100%}.doc-row-wrap{grid-template-columns:1fr}.doc-actions{justify-content:flex-start}.wide-table{min-width:980px}}

/* Individual registration and prepared payment page */
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.choice-card{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;border:1px solid #e2e8f0;border-radius:18px;padding:14px;background:#fff;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.choice-card:hover{border-color:#bfdbfe;background:#f8fbff}
.choice-card input{width:auto;margin-top:3px;accent-color:#2563eb}
.choice-card b{display:block;color:#111827;font-size:14px;line-height:1.2}
.choice-card small{display:block;margin-top:4px;color:#8390a3;font-size:12px;line-height:1.35;font-weight:700}
.payer-block{display:grid;gap:14px;padding:14px;border:1px solid #eef2f7;border-radius:20px;background:rgba(248,250,252,.82)}
.payment-page h2{margin:0 0 8px;font-size:22px;letter-spacing:-.04em}
.payment-card{display:grid;gap:14px;margin:18px 0 0;border:1px solid #dbeafe;border-radius:24px;padding:18px;background:linear-gradient(180deg,#eff6ff,#fff);box-shadow:var(--shadow-soft)}
.payment-code-box{display:grid;gap:7px;justify-items:start;border:1px dashed #93c5fd;border-radius:20px;padding:16px;background:rgba(255,255,255,.76)}
.payment-code-box span{color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.payment-code-box strong{font-size:clamp(26px,5vw,40px);letter-spacing:-.04em;color:#0f172a;word-break:break-word}
.payment-grid{display:grid;gap:8px}
.payment-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:12px;align-items:start;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid #eaf0f8}
.payment-row span{color:#7b8798;font-weight:850;font-size:13px}
.payment-row b{color:#111827;word-break:break-word}
.payment-purpose b{font-size:18px;color:#1d4ed8}
.payment-actions{display:flex;gap:10px;flex-wrap:wrap}
.payment-actions .secondary-button{min-height:42px}
@media(max-width:680px){.choice-grid{grid-template-columns:1fr}.payment-row{grid-template-columns:1fr;gap:4px}.payment-actions .secondary-button{width:100%}}
@media print{.footer,.back-link,.flash-stack,.payment-actions,.payment-page form,.payment-page .hr,.payment-page h2,.payment-page h2+p{display:none!important}.simple-shell{padding:0}.simple-card{box-shadow:none;border:0}.payment-card{box-shadow:none}}

/* Search globe overrides */
body.search-mode .search-stage{width:min(860px,100%);min-height:min(var(--vvh,100dvh),820px);justify-content:flex-start;padding-top:clamp(28px,5vh,58px)}
body.search-mode .footer,body.has-results .footer{opacity:0;visibility:hidden;transform:translateY(18px);pointer-events:none}
body.search-mode .results{display:none}
body.has-results .search-stage{min-height:clamp(220px,34svh,320px)}
body.has-results .globe-stage{display:none}

@media(max-width:760px){
  .home-main{padding-top:20px;padding-bottom:18px}
  .search-stage{width:100%;min-height:66svh;gap:18px;padding-top:16px}
  .globe-stage{width:min(360px,96vw);height:min(300px,30svh);min-height:180px}
  .word-globe{width:min(320px,84vw)}
  .globe-word{padding:4px 10px;font-size:12px}
  .search-box{margin-top:4px;min-height:70px;padding-left:18px;gap:10px;border-radius:28px}
  #searchInput{font-size:18px;padding:16px 0}
  .search-button{min-height:46px;padding:0 18px;font-size:14px}
  body.search-mode .search-stage{min-height:var(--vvh,100dvh)}
}
@media(max-width:430px){
  .search-stage{min-height:68svh;gap:16px;padding-top:14px}
  .globe-stage{width:min(320px,96vw);height:min(260px,28svh);min-height:160px}
  .word-globe{width:min(286px,82vw)}
  .globe-word{font-size:11px;padding:4px 9px}
  .search-box{min-height:66px;padding:7px 8px 7px 16px;border-radius:26px}
  .search-icon svg{width:20px;height:20px}
  #searchInput{font-size:16px}
  .search-button{padding:0 14px}
}
@media(max-height:620px){
  .search-stage{min-height:420px}
  body.search-mode .search-stage{min-height:var(--vvh,100dvh)}
}

/* Main page state: globe is hidden until the user taps the search field */
body.home:not(.search-mode):not(.has-results) .search-stage{
  min-height:clamp(320px,54svh,560px);
  justify-content:center;
  padding-top:0;
}
body.home:not(.search-mode):not(.has-results) .globe-stage{
  display:none;
}
body.search-mode .globe-stage{
  display:grid;
  opacity:1;
  visibility:visible;
  transform:none;
}
body.search-mode .search-box{
  margin-top:0;
}


/* Fine-tune globe/search spacing */
body.search-mode .search-stage{padding-top:clamp(12px,3.5vh,28px)!important;gap:26px!important}
body.search-mode .globe-stage{transform:translateY(-14px)!important}
body.search-mode .search-box{margin-top:20px!important}
@media(max-width:760px){
  body.search-mode .search-stage{padding-top:10px!important;gap:20px!important}
  body.search-mode .globe-stage{transform:translateY(-12px)!important}
  body.search-mode .search-box{margin-top:16px!important}
}
@media(max-width:430px){
  body.search-mode .search-stage{padding-top:8px!important;gap:18px!important}
  body.search-mode .globe-stage{transform:translateY(-10px)!important}
  body.search-mode .search-box{margin-top:14px!important}
}

/* Registration account type toggle */
.payer-block[hidden]{display:none!important}


/* Payment invoice */
.invoice-document{display:grid;gap:18px;margin-top:12px}
.invoice-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid var(--line)}
.invoice-brand{font-weight:950;color:#2563eb;letter-spacing:.02em}
.invoice-code{padding:12px 14px;border:1px solid #dbeafe;border-radius:18px;background:#eff6ff;text-align:right}
.invoice-code span{display:block;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase}
.invoice-code b{display:block;margin-top:4px;font-size:20px;word-break:break-word}
.invoice-table{width:100%;border-collapse:collapse;border-radius:18px;overflow:hidden;background:#fff}
.invoice-table th,.invoice-table td{padding:12px 14px;border:1px solid #e8edf5;text-align:left;vertical-align:top}
.invoice-table th{width:220px;background:#f8fafc;color:#667085;font-size:13px}
.invoice-note{color:#667085;line-height:1.5}
@media(max-width:680px){.invoice-head{display:grid}.invoice-code{text-align:left}.invoice-table th,.invoice-table td{display:block;width:100%}.invoice-table th{border-bottom:0}}
@media print{.invoice-page .payment-actions,.invoice-page .back-link,.invoice-page + .footer{display:none!important}.invoice-table th,.invoice-table td{border-color:#111}.invoice-code{border-color:#111}}


.payment-grid.with-qr{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px;align-items:start}.payment-grid-main{display:grid;gap:10px}.payment-qr-box{border:1px solid var(--line);border-radius:20px;padding:16px;background:#fbfcff;display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center}.payment-qr-img{width:220px;max-width:100%;height:auto;border-radius:16px;background:#fff;padding:8px;border:1px solid #eef2f7}.invoice-qr-layout{display:flex;gap:20px;align-items:flex-start}.invoice-qr-side{width:230px;border:1px solid var(--line);border-radius:18px;padding:14px;background:#fbfcff;text-align:center}.invoice-qr-img{width:190px;height:190px;display:block;margin:0 auto 10px;border-radius:12px;background:#fff;padding:6px;border:1px solid #eef2f7}.invoice-qr-title{font-weight:800;margin-bottom:6px}@media(max-width:860px){.payment-grid.with-qr,.invoice-qr-layout{grid-template-columns:1fr;display:block}.payment-qr-box,.invoice-qr-side{width:auto;margin-top:14px}}

.check-row{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:#fff;color:#475569;font-weight:750;line-height:1.45}
.check-row input{margin-top:3px;min-width:18px;min-height:18px}
.pre-card{white-space:pre-wrap;border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff;color:#1f2937;line-height:1.55}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.mini-input{width:110px;min-height:34px;border:1px solid var(--line);border-radius:10px;padding:0 8px;background:#fff;color:#111827;font-size:12px;font-weight:800}
.conclude-form{gap:6px;align-items:center;flex-wrap:wrap}


/* Search/globe spacing adjustment */
body.search-mode .search-stage{
  gap:34px !important;
}
body.search-mode .search-box{
  margin-top:32px !important;
}
@media(max-width:760px){
  body.search-mode .search-stage{
    gap:28px !important;
  }
  body.search-mode .search-box{
    margin-top:26px !important;
  }
}
@media(max-width:430px){
  body.search-mode .search-stage{
    gap:24px !important;
  }
  body.search-mode .search-box{
    margin-top:22px !important;
  }
}


/* Mobile focused search: keep search field visible above keyboard */
body.search-mode .search-stage{
  justify-content:flex-start !important;
  padding-top:clamp(4px,1.2vh,14px) !important;
  gap:14px !important;
}
body.search-mode .globe-stage{
  height:min(330px,34vh) !important;
  min-height:210px !important;
  transform:translateY(-8px) !important;
}
body.search-mode .word-globe{
  width:min(380px,78vw) !important;
}
body.search-mode .search-box{
  margin-top:0 !important;
  transform:translateY(-4px) !important;
}
@media(max-width:760px){
  body.search-mode .search-stage{
    padding-top:6px !important;
    gap:10px !important;
    min-height:var(--vvh,100dvh) !important;
  }
  body.search-mode .globe-stage{
    height:min(230px,27vh) !important;
    min-height:150px !important;
    transform:translateY(-14px) !important;
  }
  body.search-mode .word-globe{
    width:min(260px,70vw) !important;
  }
  body.search-mode .search-box{
    margin-top:0 !important;
    transform:translateY(-10px) !important;
  }
}
@media(max-width:430px){
  body.search-mode .search-stage{
    padding-top:4px !important;
    gap:8px !important;
  }
  body.search-mode .globe-stage{
    height:min(205px,24vh) !important;
    min-height:135px !important;
    transform:translateY(-18px) !important;
  }
  body.search-mode .word-globe{
    width:min(230px,66vw) !important;
  }
  body.search-mode .search-box{
    transform:translateY(-14px) !important;
  }
}


/* Restore globe size; keep search field above keyboard */
body.search-mode .search-stage{
  justify-content:flex-start !important;
  padding-top:clamp(8px,2vh,22px) !important;
  gap:22px !important;
}
body.search-mode .globe-stage{
  width:min(540px,92vw) !important;
  height:min(540px,48vh) !important;
  min-height:260px !important;
  transform:translateY(-6px) !important;
}
body.search-mode .word-globe{
  width:min(500px,84vw) !important;
}
body.search-mode .search-box{
  margin-top:0 !important;
  transform:none !important;
}

@media(max-width:760px){
  body.search-mode .search-stage{
    padding-top:8px !important;
    gap:18px !important;
    min-height:var(--vvh,100dvh) !important;
  }
  body.search-mode .globe-stage{
    width:min(360px,96vw) !important;
    height:min(300px,30vh) !important;
    min-height:180px !important;
    transform:translateY(-8px) !important;
  }
  body.search-mode .word-globe{
    width:min(320px,84vw) !important;
  }
  body.search-mode .search-box{
    position:fixed !important;
    left:14px !important;
    right:14px !important;
    bottom:calc(env(safe-area-inset-bottom) + 12px) !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
    z-index:50 !important;
  }
}

@media(max-width:430px){
  body.search-mode .search-stage{
    padding-top:6px !important;
    gap:16px !important;
  }
  body.search-mode .globe-stage{
    width:min(320px,96vw) !important;
    height:min(260px,28vh) !important;
    min-height:160px !important;
    transform:translateY(-10px) !important;
  }
  body.search-mode .word-globe{
    width:min(286px,82vw) !important;
  }
  body.search-mode .search-box{
    left:12px !important;
    right:12px !important;
    bottom:calc(env(safe-area-inset-bottom) + 10px) !important;
  }
}


/* Final mobile keyboard behavior:
   - globe keeps original mobile size at the top
   - search field is fixed just above the keyboard/accessory bar
   - no page scrolling is needed while searching */
body.search-mode{
  overflow:hidden !important;
}
@media(max-width:760px){
  body.search-mode .home-main{
    min-height:var(--vvh,100dvh) !important;
    height:var(--vvh,100dvh) !important;
    overflow:hidden !important;
    padding:0 14px !important;
  }
  body.search-mode .search-stage{
    min-height:var(--vvh,100dvh) !important;
    height:var(--vvh,100dvh) !important;
    padding-top:6px !important;
    gap:0 !important;
    justify-content:flex-start !important;
    overflow:hidden !important;
  }
  body.search-mode .globe-stage{
    width:min(360px,96vw) !important;
    height:min(300px,30vh) !important;
    min-height:180px !important;
    transform:translateY(-10px) !important;
    margin:0 auto !important;
  }
  body.search-mode .word-globe{
    width:min(320px,84vw) !important;
  }
  body.search-mode .search-box{
    position:fixed !important;
    left:14px !important;
    right:14px !important;
    top:calc(var(--vvh,100dvh) - 104px) !important;
    bottom:auto !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
    z-index:999 !important;
  }
}

@media(max-width:430px){
  body.search-mode .home-main{
    padding:0 12px !important;
  }
  body.search-mode .search-stage{
    padding-top:4px !important;
  }
  body.search-mode .globe-stage{
    width:min(320px,96vw) !important;
    height:min(260px,28vh) !important;
    min-height:160px !important;
    transform:translateY(-12px) !important;
  }
  body.search-mode .word-globe{
    width:min(286px,82vw) !important;
  }
  body.search-mode .search-box{
    left:12px !important;
    right:12px !important;
    top:calc(var(--vvh,100dvh) - 98px) !important;
  }
}

@media(max-height:620px){
  body.search-mode .search-box{
    top:calc(var(--vvh,100dvh) - 92px) !important;
  }
}


/* Search focus layout: search field centered, globe below it */
body.search-mode{
  overflow:hidden !important;
}
body.search-mode .home-main{
  min-height:var(--vvh,100dvh) !important;
  height:var(--vvh,100dvh) !important;
  overflow:hidden !important;
  padding:0 18px !important;
  justify-content:center !important;
}
body.search-mode .search-stage{
  min-height:var(--vvh,100dvh) !important;
  height:var(--vvh,100dvh) !important;
  width:min(860px,100%) !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  gap:24px !important;
  padding:0 !important;
  overflow:hidden !important;
}
body.search-mode .search-box{
  order:1 !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  width:min(760px,100%) !important;
  max-width:100% !important;
  margin:0 !important;
  transform:none !important;
  z-index:50 !important;
}
body.search-mode .globe-stage{
  order:2 !important;
  display:grid !important;
  width:min(540px,92vw) !important;
  height:min(540px,48vh) !important;
  min-height:260px !important;
  margin:0 auto !important;
  transform:none !important;
  opacity:1 !important;
  visibility:visible !important;
}
body.search-mode .word-globe{
  width:min(500px,84vw) !important;
}

@media(max-width:760px){
  body.search-mode .home-main{
    padding:0 14px !important;
  }
  body.search-mode .search-stage{
    gap:18px !important;
  }
  body.search-mode .search-box{
    width:calc(100vw - 28px) !important;
  }
  body.search-mode .globe-stage{
    width:min(360px,96vw) !important;
    height:260px !important;
    min-height:180px !important;
  }
  body.search-mode .word-globe{
    width:min(320px,84vw) !important;
  }
}
@media(max-width:430px){
  body.search-mode .home-main{
    padding:0 12px !important;
  }
  body.search-mode .search-stage{
    gap:16px !important;
  }
  body.search-mode .search-box{
    width:calc(100vw - 24px) !important;
  }
  body.search-mode .globe-stage{
    width:min(320px,96vw) !important;
    height:235px !important;
    min-height:160px !important;
  }
  body.search-mode .word-globe{
    width:min(286px,82vw) !important;
  }
}

@media(max-height:620px){
  body.search-mode .search-stage{
    gap:12px !important;
  }
  body.search-mode .globe-stage{
    height:200px !important;
    min-height:150px !important;
  }
}


/* HARD FINAL: focused search layout for every mobile browser
   Globe is fixed at top of visible screen, search field is fixed below it. */
html:has(body.search-mode),
body.search-mode{
  overflow:hidden !important;
  height:var(--vvh,100dvh) !important;
  max-height:var(--vvh,100dvh) !important;
}
body.search-mode .home-main{
  min-height:var(--vvh,100dvh) !important;
  height:var(--vvh,100dvh) !important;
  max-height:var(--vvh,100dvh) !important;
  overflow:hidden !important;
  padding:0 !important;
  display:block !important;
}
body.search-mode .search-stage{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:var(--vvh,100dvh) !important;
  min-height:var(--vvh,100dvh) !important;
  max-height:var(--vvh,100dvh) !important;
  overflow:hidden !important;
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  transform:none !important;
}
body.search-mode .globe-stage{
  position:fixed !important;
  left:50% !important;
  top:var(--globeTop, 8px) !important;
  width:var(--globeSize, min(360px,92vw)) !important;
  height:var(--globeSize, min(360px,92vw)) !important;
  min-height:0 !important;
  margin:0 !important;
  transform:translateX(-50%) !important;
  display:grid !important;
  opacity:1 !important;
  visibility:visible !important;
  z-index:20 !important;
  pointer-events:auto !important;
}
body.search-mode .word-globe{
  width:var(--wordGlobeSize, min(320px,84vw)) !important;
}
body.search-mode .search-box{
  position:fixed !important;
  left:14px !important;
  right:14px !important;
  top:var(--searchTop, 300px) !important;
  bottom:auto !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  transform:none !important;
  z-index:80 !important;
}

@media(min-width:761px){
  body.search-mode .search-box{
    left:50% !important;
    right:auto !important;
    width:min(760px,calc(100vw - 36px)) !important;
    transform:translateX(-50%) !important;
  }
}

@media(max-width:430px){
  body.search-mode .search-box{
    left:12px !important;
    right:12px !important;
  }
}


/* Safari mobile hard override */
body.search-mode{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
body.search-mode .search-stage,
body.search-mode .home-main{
  overflow:hidden !important;
  touch-action:none !important;
}
body.search-mode .globe-stage,
body.search-mode .search-box{
  will-change:top,left,width,height,transform !important;
}
body.search-mode .search-box{
  box-sizing:border-box !important;
}
@supports (-webkit-touch-callout: none){
  body.search-mode .globe-stage{
    position:fixed !important;
  }
  body.search-mode .search-box{
    position:fixed !important;
  }
}


/* Search results mode: hide globe and keep results below search */
body.has-results{
  overflow:auto !important;
  height:auto !important;
  max-height:none !important;
}
body.has-results .home-main{
  min-height:auto !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:26px 18px 28px !important;
}
body.has-results .search-stage{
  position:relative !important;
  inset:auto !important;
  width:min(860px,100%) !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  display:block !important;
  padding:0 !important;
  margin:0 auto 18px !important;
}
body.has-results .globe-stage{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
}
body.has-results .search-box{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  width:min(760px,100%) !important;
  max-width:100% !important;
  margin:0 auto !important;
  transform:none !important;
  z-index:5 !important;
}
body.has-results .results{
  width:min(900px,100%) !important;
  margin:0 auto 36px !important;
  padding:0 !important;
  display:grid !important;
}
body.has-results .footer{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
@media(max-width:760px){
  body.has-results .home-main{
    padding:18px 14px 24px !important;
  }
  body.has-results .search-box{
    width:100% !important;
  }
}


/* B2B-CENTER.AM logo */
.brand-logo-link{
  display:flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
}
.brand-logo-img{
  display:block;
  width:auto;
  max-width:min(260px,44vw);
  height:42px;
  object-fit:contain;
}
@media(max-width:760px){
  .brand-logo-img{
    height:36px;
    max-width:210px;
  }
}
@media(max-width:430px){
  .brand-logo-img{
    height:32px;
    max-width:174px;
  }
}
