/* ==========================================================================
   51buyic.cn — 我要买IC
   Design system & site styles
   ========================================================================== */

:root {
  --ink: #0b1728;
  --navy: #0a1e36;
  --navy-deep: #071526;
  --navy-soft: #122b4a;
  --blue: #1d5bff;
  --blue-dark: #1547d8;
  --blue-soft: #eef4ff;
  --cyan: #22d3c5;
  --teal: #0fb5a6;
  --amber: #f5a524;
  --amber-dark: #e08c0b;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --line: #e3eaf3;
  --line-strong: #cfdae8;
  --text: #16233a;
  --text-soft: #3d4f68;
  --muted: #57687f;
  --muted-2: #64748b;
  --success: #0e9f6e;
  --success-soft: #ecfdf5;
  --danger: #e02424;
  --danger-soft: #fef2f2;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 23, 40, 0.04), 0 6px 20px rgba(11, 23, 40, 0.045);
  --shadow-md: 0 12px 32px rgba(11, 23, 40, 0.09);
  --shadow-lg: 0 28px 70px rgba(5, 18, 38, 0.22);
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas,
    "Liberation Mono", Menlo, monospace;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(29, 91, 255, 0.16);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow-light {
  color: #74b9ff;
}

.text-gradient {
  background: linear-gradient(98deg, #6db3ff 5%, #38e0d0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2e6bff 0%, #1d5bff 100%);
  box-shadow: 0 6px 16px rgba(29, 91, 255, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #245fff 0%, #1547d8 100%);
  box-shadow: 0 10px 22px rgba(29, 91, 255, 0.3);
}

.btn-accent {
  color: #241a05;
  background: linear-gradient(180deg, #ffc24d 0%, #f5a524 100%);
  box-shadow: 0 8px 20px rgba(245, 165, 36, 0.28);
}

.btn-accent:hover {
  background: linear-gradient(180deg, #ffb733 0%, #e8960e 100%);
}

.btn-soft {
  color: var(--blue);
  background: var(--blue-soft);
}

.btn-soft:hover {
  background: #e2ecff;
}

.btn-outline {
  color: var(--text);
  background: #fff;
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: #a9bdd8;
  background: #fbfdff;
}

.btn-ghost {
  color: #33507a;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(29, 91, 255, 0.07);
  color: var(--blue);
}

.btn-ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-light {
  color: var(--ink);
  background: #fff;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 11px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.text-btn {
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue);
  transition: background 0.15s ease, color 0.15s ease;
}

.text-btn:hover {
  background: var(--blue-soft);
}

.text-btn-danger {
  color: var(--danger);
}

.text-btn-danger:hover {
  background: var(--danger-soft);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Badges / chips / avatars
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5fa;
  color: #56677e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  vertical-align: middle;
  white-space: nowrap;
}

.badge-verified {
  color: #0b6bcb;
  background: #eaf4ff;
}

.badge-exact {
  color: #087a5b;
  background: var(--success-soft);
}

.badge-new {
  color: #a85400;
  background: #fff4e5;
}

.badge-light {
  background: rgba(255, 255, 255, 0.12);
  color: #d7e6fa;
}

.badge-light.badge-verified {
  color: #8fd3ff;
  background: rgba(78, 163, 255, 0.16);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f2f6fb;
  color: #4b5d75;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
}

.chip-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #b9cee8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 11px;
}

.avatar-lg {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
}

.avatar-xl {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 22px;
}

.verified-icon {
  width: 14px;
  height: 14px;
  color: var(--blue);
  flex: none;
}

.verified-dot {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #1d7bff;
  vertical-align: -2px;
  margin-left: 3px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.status-dot-light {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 70;
}

.topbar {
  background: var(--navy-deep);
  color: rgba(214, 228, 247, 0.62);
  font-size: 12px;
}

.demo-notice {
  background: #fff7e8;
  border-bottom: 1px solid #f2dfb9;
  color: #7a4b08;
  font-size: 11.5px;
}

.demo-notice-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
}

.demo-notice b {
  margin-right: 4px;
  font-weight: 700;
}

.demo-notice a {
  color: #b25e00;
  font-weight: 600;
  white-space: nowrap;
}

.demo-notice a:hover {
  text-decoration: underline;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 34px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.topbar-left {
  min-width: 0;
}

.topbar-mail {
  color: rgba(214, 228, 247, 0.78);
  transition: color 0.15s ease;
}

.topbar-mail:hover,
.topbar-right a:hover {
  color: #fff;
}

.topbar-right a {
  color: rgba(226, 238, 253, 0.9);
}

.topbar-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.header-main {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease;
}

.header-main.is-scrolled {
  box-shadow: 0 10px 30px rgba(11, 23, 40, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(140deg, #1d5bff 0%, #0fa8d6 55%, #12c9b0 100%);
  box-shadow: 0 5px 14px rgba(29, 91, 255, 0.28);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.brand-word {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.brand-word b {
  color: var(--blue);
  font-weight: 800;
}

.brand-sub {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 22px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #42546c;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--blue);
  background: #f5f8ff;
}

.nav-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.login-link {
  font-size: 14px;
  font-weight: 500;
  color: #42546c;
  padding: 8px 6px;
}

.login-link:hover {
  color: var(--blue);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 230px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.user-chip:hover {
  border-color: #bdd0ea;
  background: #fbfdff;
}

.user-chip-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: #34465e;
}

.logout-form {
  display: flex;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line);
  padding: 0 9px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 30px rgba(11, 23, 40, 0.08);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-top: 12px;
  padding-bottom: 16px;
}

.mobile-nav a {
  padding: 11px 14px;
  border-radius: 9px;
  background: #f7f9fc;
  font-size: 14px;
  font-weight: 500;
  color: #34465e;
}

.mobile-nav a.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #08182c;
  color: #fff;
  padding: 76px 0 88px;
}

.hero-bg,
.search-band-bg,
.company-band-bg,
.page-band-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg {
  background: radial-gradient(90% 90% at 78% 18%, #123a67 0%, transparent 55%),
    linear-gradient(118deg, #071525 0%, #0a2038 48%, #0b2846 100%);
}

.hero-grid {
  position: absolute;
  inset: -10%;
  background-image: linear-gradient(rgba(126, 177, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 177, 240, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 65% at 55% 35%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 65% at 55% 35%, #000 10%, transparent 78%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
}

.hero-glow-a {
  width: 560px;
  height: 560px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(29, 91, 255, 0.42) 0%, transparent 68%);
}

.hero-glow-b {
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(18, 201, 176, 0.22) 0%, transparent 68%);
}

.hero-trace {
  position: absolute;
  width: 1px;
  height: 380px;
  background: linear-gradient(180deg, transparent, rgba(91, 157, 255, 0.28), transparent);
  transform: rotate(32deg);
}

.hero-trace-a {
  right: 26%;
  top: -80px;
}

.hero-trace-b {
  right: 12%;
  top: 38%;
  transform: rotate(-24deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 58px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(139, 187, 250, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #a9c4e4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 4.3vw, 57px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #f6faff;
}

.hero-lead {
  max-width: 550px;
  color: #a8bdd6;
  font-size: 15px;
  line-height: 1.85;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 30px;
  padding: 7px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 22px 48px rgba(2, 10, 24, 0.34);
}

.hero-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 48px;
  color: #71839a;
  flex: none;
}

.hero-search-icon .icon {
  width: 21px;
  height: 21px;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  outline: none;
}

.hero-search input::placeholder {
  color: #7e8c9f;
  font-weight: 400;
}

.hero-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.hero-search-btn {
  height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 14.5px;
  flex: none;
}

.hot-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  font-size: 12px;
}

.hot-label {
  color: #7e97b5;
}

.hot-searches a {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #bed3ee;
  font-family: var(--font-mono);
  font-size: 11.5px;
  transition: background 0.15s ease, color 0.15s ease;
}

.hot-searches a:hover {
  background: rgba(88, 151, 255, 0.18);
  color: #fff;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 38px;
}

.hero-stats > div {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stats dt {
  color: #7f97b4;
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.hero-stats dd {
  margin-top: 5px;
  color: #f4f9ff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hero-stats dd small {
  margin-left: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: #8299b6;
  letter-spacing: 0;
}

/* Hero visual */

.hero-visual {
  position: relative;
  padding: 20px 0;
}

.hero-orbit {
  position: absolute;
  border: 1px dashed rgba(112, 166, 235, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-a {
  width: 520px;
  height: 520px;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
}

.hero-orbit-b {
  width: 410px;
  height: 410px;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
}

.hero-window {
  position: relative;
  z-index: 2;
  background: rgba(10, 27, 48, 0.82);
  border: 1px solid rgba(126, 177, 240, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(2, 10, 24, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.window-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #6f8fb4;
}

.window-domain {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #5f7fa4;
}

.hero-window-body {
  padding: 22px 22px 18px;
}

.stock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stock-head h2 {
  margin: 8px 0 3px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f2f8ff;
}

.stock-head p {
  color: #7f9cbd;
  font-size: 11.5px;
}

.stock-count {
  text-align: right;
}

.stock-count b {
  display: block;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.1;
  color: #69a7ff;
  letter-spacing: -0.04em;
}

.stock-count span {
  font-size: 10.5px;
  color: #6d89aa;
}

.stock-list {
  margin-top: 17px;
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.stock-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  flex: none;
}

.stock-supplier {
  min-width: 0;
  flex: 1;
}

.stock-supplier b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dce9f9;
  font-size: 12px;
  font-weight: 600;
}

.stock-supplier span {
  display: block;
  color: #718dab;
  font-size: 10.5px;
  margin-top: 2px;
}

.stock-price {
  color: #ffd178;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

.stock-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px -22px -18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #8db8f2;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.stock-link:hover {
  background: rgba(64, 124, 220, 0.14);
  color: #fff;
}

.stock-link .icon {
  width: 15px;
  height: 15px;
}

.live-stock-window {
  --live-row-h: 30px;
  --live-page-h: 300px;
  --live-cols: minmax(0, 1.75fr) minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
}

.live-stock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.live-price-hint {
  color: #8db8f2;
  font-size: 10.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.live-price-hint:hover {
  color: #fff;
}

.live-stock-columns {
  display: grid;
  grid-template-columns: var(--live-cols);
  column-gap: 8px;
  align-items: center;
  height: 24px;
  padding: 0 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #6f8baa;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
}

.live-stock-columns .num {
  text-align: right;
}

.live-stock-viewport {
  height: var(--live-page-h);
  overflow: hidden;
}

.live-stock-track {
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.live-stock-page {
  height: var(--live-page-h);
}

.live-stock-row {
  display: grid;
  grid-template-columns: var(--live-cols);
  column-gap: 8px;
  align-items: center;
  height: var(--live-row-h);
  padding: 0 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #dce9f9;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.live-stock-page .live-stock-row:first-child {
  border-top: 0;
}

.live-stock-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.live-stock-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-stock-cell.num {
  text-align: right;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(2, 10, 24, 0.35);
  animation: float 7s ease-in-out infinite;
}

.hero-float b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-float span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.hero-float-a {
  left: -26px;
  bottom: -16px;
}

.hero-float-b {
  right: -18px;
  top: -2px;
  animation-delay: -3.2s;
}

.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
}

.float-icon .icon {
  width: 17px;
  height: 17px;
}

.float-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.14);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero-window-empty .hero-window-body {
  padding: 42px 30px;
}

.hero-window-empty h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  color: #f2f8ff;
}

.hero-window-empty p {
  margin-bottom: 20px;
  color: #91a9c5;
  font-size: 13px;
}

/* Search suggest */

.search-suggest {
  position: absolute;
  z-index: 50;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 55px rgba(11, 23, 40, 0.18);
  text-align: left;
  color: var(--text);
}

.search-inline-error {
  margin-top: 9px;
  color: #ffb3a7;
  font-size: 12px;
  line-height: 1.6;
}

.search-inline-error[hidden] {
  display: none;
}

.search-inline-error.is-light {
  color: #b42318;
}

.search-suggest[hidden] {
  display: none;
}

.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  transition: background 0.12s ease;
}

.suggest-item:hover,
.suggest-item.is-active {
  background: #f3f7ff;
}

.suggest-item .suggest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--blue);
  flex: none;
}

.suggest-item .suggest-icon .icon {
  width: 15px;
  height: 15px;
}

.suggest-item b {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #1c2e47;
}

.suggest-item small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted-2);
}

.suggest-item .suggest-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}

.suggest-empty {
  padding: 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Brand strip
   -------------------------------------------------------------------------- */

.brand-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 70px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.strip-label {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

.brand-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 34px;
}

.brand-list span {
  color: #97a5b7;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  filter: grayscale(1);
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Sections & basic blocks
   -------------------------------------------------------------------------- */

.section {
  padding: 80px 0;
}

.section-tight {
  padding: 40px 0 76px;
}

.section-soft {
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.section-head p {
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section-head-center > div {
  max-width: 660px;
  margin: 0 auto;
}

.section-head-center .eyebrow {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Home: hot parts
   -------------------------------------------------------------------------- */

.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hot-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hot-card:hover {
  transform: translateY(-3px);
  border-color: #b9cdf0;
  box-shadow: var(--shadow-md);
}

.hot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.part-no {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14243b;
  word-break: break-word;
}

.hot-count {
  flex: none;
  padding: 1px 7px;
  border-radius: 5px;
  background: #f4f7fb;
  color: #7a889b;
  font-size: 10.5px;
  font-weight: 500;
}

.hot-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.hot-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.price-strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #0b57d0;
}

.price-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #f2f6fb;
  color: #61738a;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: 0;
}

.price-lock-icon {
  width: 11px;
  height: 11px;
  flex: none;
  color: #8495aa;
}

.hero-window .price-locked,
.stock-price .price-locked {
  background: rgba(255, 255, 255, 0.08);
  color: #9fb4cf;
}

.hero-window .price-lock-icon,
.stock-price .price-lock-icon {
  color: #8fa8c5;
}

.hot-foot .price-locked {
  font-size: 10.5px;
}

.result-price .price-locked {
  margin-top: 4px;
  padding: 3px 8px;
}

.landing-hot-price .price-locked {
  font-family: var(--font-sans);
}

.member-price-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 13px 16px;
  background: linear-gradient(90deg, #f3f7ff 0%, #fbfdff 100%);
  border: 1px solid #dbe7f9;
  border-radius: 12px;
}

.notice-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe7f9;
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  flex: none;
}

.notice-lock svg {
  width: 18px;
  height: 18px;
}

.member-price-notice p {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.member-price-notice p b {
  margin-right: 6px;
  color: #243a55;
  font-weight: 650;
}

.notice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.notice-actions .btn-sm {
  height: 34px;
}

.price-strong small {
  margin-right: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted-2);
}

.hot-foot .price-strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.hot-foot .muted {
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Data tables
   -------------------------------------------------------------------------- */

.table-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.data-table th {
  padding: 11px 16px;
  text-align: left;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  color: #66768c;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.data-table th.num {
  text-align: right;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background 0.12s ease;
}

.data-table tbody tr:hover {
  background: #fafcff;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table-compact {
  font-size: 12.5px;
}

.data-table-compact th {
  padding: 9px 14px;
}

.data-table-compact td {
  padding: 11px 14px;
}

.part-link {
  color: #173a6b;
  font-weight: 600;
  transition: color 0.12s ease;
}

.part-link:hover {
  color: var(--blue);
}

.cell-part .cell-sub {
  margin-top: 2px;
}

.cell-sub {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 11px;
  white-space: normal;
}

.cell-main {
  display: block;
}

.supplier-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #33465f;
  transition: color 0.12s ease;
}

.supplier-link:hover {
  color: var(--blue);
}

.lead-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #087a5b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.action-col {
  text-align: right;
}

.data-table th.action-col {
  text-align: right;
}

.results-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Home: suppliers
   -------------------------------------------------------------------------- */

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.supplier-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.supplier-card:hover {
  transform: translateY(-3px);
  border-color: #b9cdf0;
  box-shadow: var(--shadow-md);
}

.supplier-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.supplier-title {
  min-width: 0;
}

.supplier-title h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.supplier-title p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.supplier-intro {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 45px;
}

.supplier-stats {
  display: flex;
  gap: 30px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #f7f9fc;
  border-radius: 10px;
}

.supplier-stats b {
  display: block;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #1a2d47;
  font-variant-numeric: tabular-nums;
}

.supplier-stats span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.supplier-foot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 600;
}

.supplier-foot .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.supplier-card:hover .supplier-foot .icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Home: steps & CTA
   -------------------------------------------------------------------------- */

.section-how {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.step-no {
  position: absolute;
  top: 16px;
  right: 20px;
  color: #e8eef8;
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.step-icon .icon {
  width: 22px;
  height: 22px;
}

.step h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}

.supplier-cta {
  padding: 0 0 96px;
  background: #fff;
}

.supplier-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
  padding: 52px 56px;
  border-radius: 24px;
  background: radial-gradient(110% 160% at 90% 0%, #1a4d8d 0%, transparent 52%),
    linear-gradient(120deg, #091a2f 0%, #0b2340 60%, #0a2c4e 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgba(6, 20, 40, 0.22);
}

.supplier-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(130, 180, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 180, 240, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60% 100% at 85% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(60% 100% at 85% 20%, #000, transparent 70%);
  pointer-events: none;
}

.supplier-cta-copy,
.supplier-cta-actions {
  position: relative;
  z-index: 2;
}

.supplier-cta-copy h2 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.supplier-cta-copy > p {
  max-width: 560px;
  margin-top: 12px;
  color: #a5bdd8;
  font-size: 13.5px;
  line-height: 1.85;
}

.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
}

.cta-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7dbf2;
  font-size: 12px;
}

.cta-points .icon {
  width: 15px;
  height: 15px;
  color: #45e3c5;
}

.supplier-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  min-width: 196px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #071321;
  color: #8fa4bf;
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}

.brand-light .brand-word {
  color: #fff;
}

.brand-light .brand-word b {
  color: #5da2ff;
}

.brand-light .brand-sub {
  color: #7189a5;
}

.footer-desc {
  max-width: 340px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #7f94ad;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 18px;
  font-size: 12px;
  color: #8ca1ba;
}

.footer-contact a {
  color: #c6d9ef;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: #eef5ff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-col a {
  display: block;
  margin-top: 9px;
  font-size: 12.5px;
  color: #8298b2;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #65788f;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-meta a:hover {
  color: #d7e6fa;
}

/* --------------------------------------------------------------------------
   Breadcrumb / page band
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted-2);
  font-size: 12px;
}

.breadcrumb a {
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb-light {
  color: #7b93b1;
}

.breadcrumb-light a:hover {
  color: #fff;
}

.page-band {
  position: relative;
  overflow: hidden;
  padding: 26px 0 40px;
  background: #f5f8fc;
  border-bottom: 1px solid var(--line);
}

.page-band-inner {
  position: relative;
  z-index: 2;
}

.page-band-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 20px;
}

.page-band-copy h1 {
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.page-band-copy p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
}

.page-band-about {
  padding: 28px 0 72px;
  background: #08182c;
  border-bottom: 0;
  color: #fff;
}

.page-band-about .breadcrumb {
  color: #7d95b3;
}

.page-band-about .breadcrumb a:hover {
  color: #fff;
}

.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 390px;
  padding: 4px 4px 4px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.inline-search .icon {
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  flex: none;
}

.inline-search .input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.inline-search .input:focus {
  box-shadow: none;
}

.inline-search-sm {
  max-width: 340px;
}

/* --------------------------------------------------------------------------
   Search band & results
   -------------------------------------------------------------------------- */

.search-band {
  position: relative;
  overflow: hidden;
  padding: 26px 0 42px;
  background: #08182c;
  color: #fff;
}

.search-band .search-band-bg {
  background: radial-gradient(80% 130% at 85% 0%, #123a67 0%, transparent 54%),
    linear-gradient(115deg, #071525 0%, #0a2038 60%, #0a2746 100%);
}

.search-band-inner {
  position: relative;
  z-index: 2;
}

.search-title {
  margin-top: 16px;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #f5faff;
}

.search-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
  color: #93a9c4;
  font-size: 12.5px;
}

.search-subtitle b {
  color: #d8e8fb;
  font-weight: 700;
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #56708f;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 830px;
  margin-top: 24px;
  padding: 7px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(2, 10, 24, 0.3);
}

.search-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 50px;
  color: #71839a;
  flex: none;
}

.search-bar-icon .icon {
  width: 21px;
  height: 21px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.search-bar input::placeholder {
  color: #7e8c9f;
  font-weight: 400;
}

.search-bar-btn {
  height: 50px;
  padding: 0 25px;
  border-radius: 10px;
  flex: none;
}

.search-trend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  color: #7e97b5;
  font-size: 11.5px;
}

.search-trend a {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: #bcd2ec;
  font-family: var(--font-mono);
  font-size: 11px;
}

.search-trend a:hover {
  background: rgba(88, 151, 255, 0.18);
  color: #fff;
}

.search-trend .trend-count {
  margin-left: 4px;
  color: #7fa5d8;
  font-family: var(--font-sans);
  font-size: 9.5px;
}

.search-trend a:hover .trend-count {
  color: #c9e1ff;
}

.search-section {
  padding: 36px 0 76px;
  background: var(--bg);
}

.search-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fff7f5;
  border: 1px solid #f3d5cf;
  border-radius: 12px;
}

.search-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffebe6;
  color: #c0392b;
  flex: none;
}

.search-alert-icon svg {
  width: 19px;
  height: 19px;
}

.search-alert b {
  display: block;
  color: #8f2a1c;
  font-size: 13px;
  font-weight: 700;
}

.search-alert p {
  margin-top: 3px;
  color: #8a5a52;
  font-size: 12.5px;
  line-height: 1.7;
}

.search-landing {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.landing-intro {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.landing-intro h2 {
  margin-top: 8px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.landing-intro > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tip-list {
  margin: 22px 0 24px;
}

.tip-list li {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.tip-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  padding-top: 1px;
}

.tip-list b {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.tip-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.7;
}

.landing-hot {
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.landing-hot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.landing-hot-head h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.landing-hot-head span {
  color: var(--muted-2);
  font-size: 11px;
}

.landing-hot-list {
  display: flex;
  flex-direction: column;
}

.landing-hot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  transition: color 0.15s ease;
}

.landing-hot-row:hover .landing-hot-main b {
  color: var(--blue);
}

.rank {
  width: 24px;
  flex: none;
  color: #b2bfd0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.landing-hot-main {
  min-width: 0;
  flex: 1;
}

.landing-hot-main b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 650;
  color: #1a2d47;
  transition: color 0.15s ease;
}

.landing-hot-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11px;
}

.landing-hot-price {
  flex: none;
  text-align: right;
  color: #0b57d0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.landing-hot-price small {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  margin-top: 1px;
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.results-head h2 {
  margin-top: 6px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.sort-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: none;
}

.sort-tabs a {
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sort-tabs a:hover {
  color: var(--blue);
}

.sort-tabs a.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.results-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.results-layout > *,
.results-main,
.result-list,
.result-card {
  min-width: 0;
}

.filter-panel {
  position: sticky;
  top: 90px;
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-head h3 {
  font-size: 14.5px;
  font-weight: 700;
}

.filter-head a {
  color: var(--blue);
  font-size: 11.5px;
}

.filter-group {
  margin-top: 16px;
}

.filter-group > label {
  display: block;
  margin-bottom: 6px;
  color: #4b5d75;
  font-size: 11.5px;
  font-weight: 600;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 7px;
}

.price-range .input {
  height: 40px;
  padding: 0 10px;
  font-size: 12.5px;
}

.price-range span {
  color: var(--muted-2);
  font-size: 11px;
}

.filter-form .check-row {
  margin: 16px 0;
}

.filter-help {
  margin-top: 18px;
  padding: 14px;
  background: #f7f9fc;
  border-radius: 10px;
}

.filter-help b {
  display: block;
  font-size: 12px;
}

.filter-help p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.filter-help a {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 600;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.result-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcfdff);
}

.result-part-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.company-result-head {
  align-items: center;
}

.company-result-id {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.company-result-info {
  min-width: 0;
}

.company-result-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.company-result-title h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.company-result-title h2 a {
  transition: color 0.15s ease;
}

.company-result-title h2 a:hover {
  color: var(--blue);
}

.company-result-info .result-tags {
  margin-top: 7px;
}

.company-result-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 10px 22px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
  color: #41556e;
  font-size: 12px;
  line-height: 1.7;
}

.company-result-contact em {
  margin-right: 2px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
}

.company-result-contact em::after {
  content: "：";
}

.company-result-contact a {
  color: #33465f;
  transition: color 0.15s ease;
}

.company-result-contact a:hover {
  color: var(--blue);
}

.company-result-address {
  min-width: 0;
}

.company-result-head .result-price {
  min-width: 118px;
}

.match-highlight {
  padding: 1px 2px;
  border-radius: 2px;
  background: #ffe58f;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.match-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.match-legend i {
  display: inline-block;
  width: 16px;
  height: 9px;
  border: 1px solid #f0d06a;
  border-radius: 2px;
  background: #ffe58f;
  flex: none;
}

.filter-note .match-legend {
  margin: 0 0 0 10px;
  vertical-align: middle;
}

.result-part-line h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #14243b;
}

.result-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.result-count {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.result-price {
  flex: none;
  text-align: right;
}

.result-price > span:first-child {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
}

.result-price b {
  display: block;
  margin-top: 1px;
  color: #0b57d0;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.result-price small {
  display: block;
  color: var(--muted-2);
  font-size: 10.5px;
}

.offers-table {
  font-size: 12.5px;
}

.offers-table th {
  padding: 9px 14px;
  font-size: 11px;
}

.offers-table td {
  padding: 12px 14px;
}

.offer-supplier {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.offer-supplier-main {
  min-width: 0;
}

.supplier-name {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #22364f;
  font-size: 12.8px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.12s ease;
}

.supplier-name:hover {
  color: var(--blue);
}

.offer-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.8px;
  white-space: nowrap;
  max-width: 260px;
}

/* --------------------------------------------------------------------------
   Forms (global)
   -------------------------------------------------------------------------- */

.field {
  margin-bottom: 15px;
}

.field > label {
  display: block;
  margin-bottom: 6px;
  color: #3e5068;
  font-size: 12.5px;
  font-weight: 600;
}

.req {
  color: var(--danger);
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #7e8c9f;
}

.input:hover {
  border-color: #bccbdd;
}

.input:focus {
  outline: none;
  border-color: #7ea6ff;
  box-shadow: 0 0 0 4px rgba(29, 91, 255, 0.1);
}

.textarea {
  height: auto;
  padding: 11px 13px;
  line-height: 1.7;
  resize: vertical;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%2366768C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 54px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
}

.pw-toggle:hover {
  background: var(--bg);
  color: var(--blue);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-hint {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
}

.field-error {
  margin-top: 4px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.5;
}

.field-error:empty {
  display: none;
}

.form-error {
  margin: 8px 0 12px;
  padding: 9px 12px;
  border: 1px solid #fbd5d5;
  border-radius: 8px;
  background: var(--danger-soft);
  color: #b42318;
  font-size: 12px;
  line-height: 1.5;
}

.form-error[hidden] {
  display: none;
}

.form-hint {
  color: var(--muted-2);
  font-size: 11.5px;
}

.form-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 10.5px;
  text-align: center;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  color: #8b98ab;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #4b5d75;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex: none;
}

.check-row-terms {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Modal & toast
   -------------------------------------------------------------------------- */

body:has(dialog[open]) {
  overflow: hidden;
}

.modal {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.modal-wide {
  width: min(800px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(5, 15, 30, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(3, 12, 26, 0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--muted);
  transition: background 0.15s ease;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-close .icon {
  width: 17px;
  height: 17px;
}

.modal-head {
  padding-right: 30px;
}

.modal-head h2 {
  margin-top: 7px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.modal-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.inquiry-form,
.inventory-form,
.profile-form {
  margin-top: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 10px 10px;
  text-align: center;
}

.modal-success[hidden] {
  display: none;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.success-icon .icon {
  width: 28px;
  height: 28px;
}

.modal-success h3 {
  margin-top: 16px;
  font-size: 19px;
}

.modal-success p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 12.5px;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 11px 15px;
  border-radius: 10px;
  background: #0e1f35;
  color: #eaf3ff;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 16px 40px rgba(5, 15, 30, 0.3);
  animation: toast-in 0.22s ease both;
}

.toast.is-error {
  background: #7a1d1d;
}

.toast.is-leaving {
  animation: toast-out 0.2s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* --------------------------------------------------------------------------
   Empty states
   -------------------------------------------------------------------------- */

.empty-state {
  padding: 58px 28px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #f4f8fe;
  color: #9fb4cf;
}

.empty-icon svg {
  width: 54px;
  height: 54px;
}

.empty-icon-sm {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.empty-icon-sm svg {
  width: 42px;
  height: 42px;
}

.empty-state h2,
.empty-state h3 {
  margin-top: 18px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 460px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.8;
}

.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.empty-links {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.empty-links a {
  margin-left: 8px;
  color: var(--blue);
  font-family: var(--font-mono);
}

.empty-state-compact {
  padding: 42px 24px;
}

/* --------------------------------------------------------------------------
   Suppliers directory
   -------------------------------------------------------------------------- */

.directory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.directory-meta b {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.directory-meta a {
  color: var(--blue);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.directory-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.directory-card:hover {
  transform: translateY(-3px);
  border-color: #b9cdf0;
  box-shadow: var(--shadow-md);
}

.directory-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.directory-title {
  min-width: 0;
}

.directory-title h2 {
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.directory-title h2 a:hover {
  color: var(--blue);
}

.directory-title p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.directory-intro {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 14px;
  min-height: 62px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.directory-contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin-top: 14px;
  padding: 12px 14px;
  min-height: 78px;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.directory-contact-info > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.directory-contact-info > div > span {
  flex: none;
  color: var(--muted-2);
  font-size: 10.5px;
}

.directory-contact-info b,
.directory-contact-info a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2c3f58;
  font-size: 11.5px;
  font-weight: 500;
}

.directory-contact-info a:hover {
  color: var(--blue);
}

.directory-contact-info .is-wide {
  grid-column: 1 / -1;
  align-items: flex-start;
}

.directory-contact-info .directory-address {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.55;
  word-break: break-word;
}

.directory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #f7f9fc;
  border-radius: 10px;
}

.directory-stats b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a2d47;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.directory-stats span {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10px;
}

.directory-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.directory-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.directory-contact .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Company page
   -------------------------------------------------------------------------- */

.company-band {
  position: relative;
  overflow: hidden;
  padding: 26px 0 36px;
  background: #08182c;
  color: #fff;
}

.company-band-bg {
  background: radial-gradient(80% 130% at 90% 0%, #123a67 0%, transparent 56%),
    linear-gradient(115deg, #071525 0%, #0a2038 60%, #0a2746 100%);
}

.company-hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 24px;
}

.company-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.company-id-text {
  min-width: 0;
}

.company-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.company-name-line h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: #f5faff;
}

.company-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  color: #92a9c5;
  font-size: 12px;
}

.company-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.company-meta .icon {
  width: 14px;
  height: 14px;
  color: #6f8cab;
}

.company-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.company-hero-stats {
  display: flex;
  gap: 38px;
  flex: none;
}

.company-hero-stats b {
  display: block;
  color: #f1f8ff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.company-hero-stats span {
  display: block;
  margin-top: 3px;
  color: #8199b7;
  font-size: 11px;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 24px;
  align-items: start;
}

.company-layout > *,
.company-main,
.company-inventory,
.company-aside {
  min-width: 0;
}

.company-about {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.company-about h2 {
  margin-top: 7px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.company-about p {
  margin-top: 12px;
  color: #46566c;
  font-size: 13.8px;
  line-height: 1.95;
  white-space: pre-line;
}

.company-inventory {
  margin-top: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.company-inventory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.company-inventory-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.filter-note {
  margin-bottom: 14px;
  padding: 9px 12px;
  background: #f7f9fc;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.filter-note a {
  margin-left: 8px;
  color: var(--blue);
}

.head-hint {
  padding-top: 8px;
  color: var(--muted-2);
  font-size: 11.5px;
  white-space: nowrap;
}

.inventory-gate {
  padding: 46px 28px 42px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
}

.gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: #7298cc;
}

.gate-icon svg {
  width: 52px;
  height: 52px;
}

.inventory-gate h3 {
  margin-top: 18px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.inventory-gate.has-error {
  border-color: #f0cfc7;
  background: linear-gradient(180deg, #fff9f7 0%, #fff 100%);
}

.inventory-gate.has-error h3 {
  color: #a33a2a;
}

.inventory-gate.has-error .gate-icon {
  background: #ffede8;
  color: #c06552;
}

.inventory-gate > p {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.85;
}

.inventory-search-big {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 22px auto 0;
  padding: 6px 6px 6px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inventory-search-big:focus-within {
  border-color: #7ea6ff;
  box-shadow: 0 0 0 4px rgba(29, 91, 255, 0.1);
}

.inventory-search-big .icon {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  flex: none;
}

.inventory-search-big input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
}

.inventory-search-big input::placeholder {
  color: #7e8c9f;
}

.inventory-search-big .btn {
  height: 42px;
  padding: 0 20px;
  flex: none;
}

.inventory-gate .gate-hint {
  margin-top: 11px;
  color: var(--muted-2);
  font-size: 11px;
}

.company-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  position: sticky;
  top: 90px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.contact-head h3 {
  margin-top: 7px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.contact-list {
  margin: 16px 0 0;
}

.contact-list > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.contact-list dt {
  width: 44px;
  flex: none;
  color: var(--muted-2);
  font-size: 11.5px;
  padding-top: 1px;
}

.contact-list dd {
  color: #293e58;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.7;
  word-break: break-word;
}

.contact-list dd a:hover {
  color: var(--blue);
}

.contact-card .btn {
  margin-top: 18px;
}

.contact-note {
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

.assurance-card {
  padding: 20px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.assurance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.assurance-icon .icon {
  width: 20px;
  height: 20px;
}

.assurance-card h4 {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 650;
}

.assurance-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.2px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-hero {
  max-width: 840px;
  margin-top: 22px;
}

.about-hero h1 {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.13;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #f6faff;
}

.about-hero > p {
  max-width: 660px;
  margin-top: 18px;
  color: #a5bdd8;
  font-size: 14px;
  line-height: 1.95;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 34px;
}

.about-stats > div {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.about-stats > div:last-child {
  border-right: 0;
}

.about-stats b {
  display: block;
  color: #f3f9ff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.about-stats span {
  display: block;
  margin-top: 3px;
  color: #8199b7;
  font-size: 11px;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}

.about-copy h2 {
  margin-top: 9px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.about-copy > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.95;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.about-points > div {
  display: flex;
  gap: 12px;
}

.point-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}

.about-points b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.about-points p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.2px;
  line-height: 1.75;
}

.about-visual {
  position: relative;
  padding: 20px;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: -6% -8%;
  background: radial-gradient(60% 60% at 60% 40%, rgba(29, 91, 255, 0.1), transparent 70%);
  border-radius: 50%;
}

.about-visual-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 22px;
  background: #0a1d33;
  border: 1px solid #1b3a5e;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 30px 70px rgba(7, 21, 38, 0.25);
}

.about-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6d89aa;
  font-size: 10px;
}

.about-visual-head .mono {
  font-size: 9.5px;
}

.about-search-mock {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 12px;
  background: #fff;
  border-radius: 10px;
  color: #7b8ca1;
}

.about-search-mock .icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.about-search-mock .mono {
  flex: 1;
  color: #14243b;
  font-size: 12.5px;
  font-weight: 600;
}

.mock-btn {
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.about-offer-mock {
  margin-top: 14px;
}

.about-offer-mock > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d5bff, #0fb5a6);
  flex: none;
}

.mock-avatar-b {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.mock-avatar-c {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.mock-lines {
  flex: 1;
}

.mock-lines i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.mock-lines i:first-child {
  width: 62%;
  margin-bottom: 5px;
}

.mock-lines i:last-child {
  width: 40%;
  background: rgba(255, 255, 255, 0.08);
}

.about-offer-mock b {
  color: #ffd178;
  font-family: var(--font-mono);
  font-size: 12px;
}

.about-visual-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #5f7fa4;
  font-size: 10px;
  text-align: center;
  letter-spacing: 0.06em;
}

.about-float-card {
  position: absolute;
  right: -18px;
  bottom: -18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 118px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(140deg, #1d5bff, #0fa8d6);
  color: #fff;
  box-shadow: 0 18px 40px rgba(29, 91, 255, 0.3);
  transform: rotate(-4deg);
}

.about-float-card b {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-float-card span {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
}

.about-float-card small {
  margin-top: 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.feature-icon .icon {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.7px;
  line-height: 1.85;
}

.about-supplier {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  overflow: hidden;
  padding: 48px 52px;
  border-radius: 24px;
  background: radial-gradient(100% 140% at 0% 0%, #173f6f 0%, transparent 52%),
    linear-gradient(120deg, #091a2f 0%, #0b2340 60%, #0a2c4e 100%);
  color: #fff;
}

.about-supplier-copy h2 {
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.about-supplier-copy p {
  margin: 14px 0 24px;
  color: #a5bdd8;
  font-size: 13.2px;
  line-height: 1.9;
}

.supplier-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.supplier-steps li {
  display: flex;
  gap: 16px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.supplier-steps .step-no {
  position: static;
  color: #5d9cf0;
  font-size: 12px;
  padding-top: 2px;
}

.supplier-steps b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.supplier-steps p {
  margin-top: 3px;
  color: #91a9c5;
  font-size: 11.8px;
  line-height: 1.7;
}

.faq-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-intro h2 {
  margin-top: 8px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.faq-intro p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 19px 36px 19px 0;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f2f6fb;
  color: var(--muted);
  font-size: 15px;
  line-height: 21px;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--blue-soft);
  color: var(--blue);
}

.faq-item p {
  padding: 0 44px 20px 0;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.9;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 48px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.contact-section-copy h2 {
  margin-top: 8px;
  font-size: 29px;
  letter-spacing: -0.03em;
}

.contact-section-copy p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.contact-section-actions {
  display: flex;
  gap: 12px;
  flex: none;
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-tile:hover {
  border-color: #b9cdf0;
  box-shadow: var(--shadow-sm);
}

.contact-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  flex: none;
}

.contact-tile-icon .icon {
  width: 19px;
  height: 19px;
}

.contact-tile b {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
}

.contact-tile small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth-section {
  padding: 52px 0 80px;
  background: radial-gradient(80% 90% at 80% 0%, #e9f1fe 0%, transparent 60%), var(--bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  max-width: 1060px;
  align-items: stretch;
}

.auth-shell-wide {
  max-width: 1160px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 40px;
  border-radius: 20px;
  background: #08182c;
  color: #fff;
  box-shadow: 0 26px 60px rgba(7, 21, 38, 0.2);
}

.auth-aside-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 85% 10%, #174a80 0%, transparent 58%),
    linear-gradient(150deg, #071525 0%, #0a2038 60%, #0b2b4c 100%);
}

.auth-aside-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.auth-aside-content h2 {
  margin-top: 16px;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #f5faff;
}

.auth-aside-content > p {
  margin-top: 14px;
  color: #a3bad5;
  font-size: 13px;
  line-height: 1.9;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8dcf2;
  font-size: 12.5px;
}

.auth-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 211, 197, 0.14);
  color: #4ce3d4;
  font-size: 10px;
  flex: none;
}

.auth-quote {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-quote p {
  color: #e7f2ff;
  font-size: 14px;
  line-height: 1.7;
}

.auth-quote span {
  display: block;
  margin-top: 6px;
  color: #6f88a6;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.auth-card {
  padding: 38px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.auth-card-register {
  padding-bottom: 30px;
}

.auth-card-head h1 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.auth-card-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.8px;
}

.auth-form {
  margin-top: 24px;
}

.auth-form .field {
  margin-bottom: 14px;
}

.auth-form .btn-lg {
  margin-top: 4px;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.invite-input {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-confirm {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 16px;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #c9f0df;
  border-radius: 9px;
  color: #087a5b;
  font-size: 12px;
  line-height: 1.6;
}

.invite-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d1fae5;
  flex: none;
}

.invite-confirm-icon svg {
  width: 13px;
  height: 13px;
}

.invite-confirm b {
  color: #065f46;
  font-weight: 650;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 600;
}

.auth-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 11px 14px;
  background: #f7faff;
  border: 1px dashed #c9dbf7;
  border-radius: 10px;
}

.auth-demo b {
  display: block;
  font-size: 11px;
  color: #4c6a92;
}

.auth-demo span {
  display: block;
  margin-top: 1px;
  color: #1d5bff;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.auth-legal {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

.auth-legal a {
  color: #5f83b8;
}

/* --------------------------------------------------------------------------
   Dashboard shell
   -------------------------------------------------------------------------- */

.page-dashboard {
  background: var(--bg);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 26px;
  padding-bottom: 70px;
}

.dashboard-shell > *,
.dash-sidebar,
.dash-nav {
  min-width: 0;
}

.dash-sidebar {
  position: sticky;
  top: 94px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.dash-company {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dash-company > div {
  min-width: 0;
}

.dash-company b {
  display: -webkit-box;
  overflow: hidden;
  color: #21354f;
  font-size: 12.8px;
  font-weight: 650;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dash-company span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  color: #4a5b71;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav-link .icon {
  width: 18px;
  height: 18px;
  color: #8394a9;
}

.dash-nav-link:hover {
  background: #f6f9fd;
  color: var(--blue);
}

.dash-nav-link.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.dash-nav-link.is-active .icon {
  color: var(--blue);
}

.dash-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5fa;
  color: #6c7d92;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.dash-count-hot {
  background: #fff1e5;
  color: #c05a00;
}

.dash-tip {
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(150deg, #f2f7ff, #f8fbff);
  border: 1px solid #e2ecfc;
  border-radius: 11px;
}

.dash-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  border: 1px solid #e2ecfc;
}

.dash-tip-icon .icon {
  width: 15px;
  height: 15px;
}

.dash-tip b {
  display: block;
  margin-top: 9px;
  color: #2b4464;
  font-size: 11.5px;
  font-weight: 650;
}

.dash-tip p {
  margin-top: 3px;
  color: #7288a3;
  font-size: 10.8px;
  line-height: 1.65;
}

.dash-sidebar-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dash-sidebar-foot a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 4px;
  color: #5d728c;
  font-size: 11.5px;
}

.dash-sidebar-foot a:hover {
  color: var(--blue);
}

.dash-sidebar-foot .icon {
  width: 14px;
  height: 14px;
}

.dash-logout {
  padding: 7px 4px;
  color: #8b98ab;
  font-size: 11.5px;
}

.dash-logout:hover {
  color: var(--danger);
}

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

.dash-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.dash-page-head h1 {
  margin-top: 7px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.dash-page-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
}

.dash-page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

/* Dashboard stats */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
}

.stat-icon .icon {
  width: 20px;
  height: 20px;
}

.stat-icon-blue {
  background: #eef4ff;
  color: #1d5bff;
}

.stat-icon-teal {
  background: #e8fbf8;
  color: #0d9488;
}

.stat-icon-amber {
  background: #fff6e8;
  color: #d97706;
}

.stat-icon-violet {
  background: #f2edff;
  color: #7c3aed;
}

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

.stat-body > span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.stat-body b {
  display: block;
  margin-top: 2px;
  color: #16283f;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-body b em {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  margin-left: 1px;
}

.stat-body small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dashboard panels */

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.dash-grid > *,
.dash-bottom-grid > *,
.panel,
.profile-layout > *,
.profile-main,
.profile-aside {
  min-width: 0;
}

.invite-panel {
  margin-top: 18px;
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}

.invite-code-box {
  padding: 16px;
  background: #f8fafd;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.invite-label {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.invite-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.invite-code-row code {
  font-family: var(--font-mono);
  color: #0b57d0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  word-break: break-all;
}

.invite-link-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.invite-link-row .input {
  flex: 1;
  min-width: 0;
  height: 38px;
  font-size: 11.5px;
  color: #4b5d75;
}

.invite-link-row .btn {
  height: 38px;
  flex: none;
}

.invite-reset {
  margin-top: 8px;
  padding-left: 0;
}

.invite-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.invite-meta > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.invite-meta span {
  color: var(--muted-2);
  font-size: 11px;
}

.invite-meta b {
  color: #293e58;
  font-size: 13px;
  font-weight: 600;
}

.invite-meta a:hover {
  color: var(--blue);
}

.invite-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.invite-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
}

.invite-list-head span {
  color: var(--muted-2);
  font-size: 11px;
}

.invite-list ul {
  display: flex;
  flex-direction: column;
}

.invite-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #edf2f8;
  font-size: 12px;
}

.invite-list li:first-child {
  border-top: 0;
}

.invite-list a {
  color: #33465f;
  transition: color 0.15s ease;
}

.invite-list a:hover {
  color: var(--blue);
}

.invite-list li > span {
  flex: none;
  color: var(--muted-2);
  font-size: 11px;
}

.invite-empty {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.dash-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.panel-head h2 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-head p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.panel-link {
  flex: none;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 500;
  padding-top: 2px;
}

.panel-link:hover {
  text-decoration: underline;
}

.panel-empty {
  padding: 26px 20px;
  background: #f9fbfe;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}

.panel-empty p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.panel-empty-lg {
  padding: 44px 24px;
}

.panel-empty-lg h3 {
  margin-top: 14px;
  font-size: 18px;
}

.panel-empty-lg p {
  max-width: 420px;
  margin: 6px auto 18px;
}

.panel-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.toolbar-title h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.toolbar-title p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.toolbar-title .count-pill {
  margin-left: 4px;
  vertical-align: 2px;
}

/* inquiry mini */

.inquiry-mini-list {
  display: flex;
  flex-direction: column;
}

.inquiry-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  transition: background 0.15s ease;
}

.inquiry-mini:first-child {
  border-top: 0;
  padding-top: 2px;
}

.inquiry-mini:hover .inquiry-mini-main b {
  color: var(--blue);
}

.inquiry-mini-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0f5fc;
  color: #5a789d;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}

.inquiry-mini-main {
  min-width: 0;
  flex: 1;
}

.inquiry-mini-main b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #283c55;
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.inquiry-mini-main b em {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 400;
}

.inquiry-mini-main > span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}

.inquiry-mini-side {
  flex: none;
  text-align: right;
}

.inquiry-mini-side small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

/* progress & quick */

.progress-num {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  background: #eef3fa;
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d5bff, #12c9b0);
  transition: width 0.4s ease;
}

.profile-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 16px 0;
}

.profile-checklist li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.profile-checklist li span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #d5dfeb;
  flex: none;
}

.profile-checklist li.is-done {
  color: #40536b;
}

.profile-checklist li.is-done span {
  background: var(--success);
  border-color: var(--success);
  position: relative;
}

.profile-checklist li.is-done span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.5px;
  width: 3px;
  height: 6px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.quick-list {
  display: flex;
  flex-direction: column;
}

.quick-list > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  transition: color 0.15s ease;
}

.quick-list > a:first-child {
  border-top: 0;
  padding-top: 2px;
}

.quick-list > a:hover b {
  color: var(--blue);
}

.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f4f7fc;
  color: #56708f;
  font-size: 17px;
  font-weight: 500;
  flex: none;
}

.quick-icon .icon {
  width: 17px;
  height: 17px;
}

.quick-list > a > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.quick-list b {
  display: block;
  color: #283c55;
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.quick-list small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.8px;
}

.quick-list > a > .icon {
  width: 16px;
  height: 16px;
  color: #a5b4c7;
  flex: none;
}

/* dashboard table actions */

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.pagination a {
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #3f5269;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pagination a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.pagination .is-disabled {
  padding: 6px 13px;
  color: #b6c1cf;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.page-info {
  color: var(--muted);
}

/* profile dashboard */

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-main {
  min-width: 0;
}

.profile-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-list {
  margin-top: 4px;
}

.account-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.account-list dt {
  color: var(--muted-2);
  font-size: 11.5px;
}

.account-list dd {
  color: #293e58;
  font-size: 12px;
  font-weight: 500;
}

.profile-preview-card {
  background: linear-gradient(155deg, #f5f9ff, #fff);
}

.profile-preview-card h3 {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 650;
}

.profile-preview-card p {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

/* inquiries dashboard */

.inquiry-summary {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 18px;
}

.inquiry-summary-item {
  min-width: 122px;
  padding: 13px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.inquiry-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.inquiry-summary-item b {
  display: block;
  margin-top: 2px;
  color: #1a2d47;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.inquiry-summary-hot {
  background: #fffaf2;
  border-color: #f8e2bd;
}

.inquiry-summary-hot b {
  color: #c05a00;
}

.inquiry-summary-note {
  margin-left: auto;
  align-self: center;
  color: var(--muted-2);
  font-size: 11px;
}

.inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inquiry-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.inquiry-card.is-new {
  border-left: 3px solid var(--blue);
}

.inquiry-card-main {
  min-width: 0;
  flex: 1;
}

.inquiry-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.inquiry-card-title > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.inquiry-card-title b {
  color: #1d3048;
  font-size: 13.5px;
  font-weight: 650;
}

.inquiry-buyer-company {
  color: var(--muted);
  font-size: 11.5px;
}

.inquiry-card-title p {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 11px;
}

.inquiry-product {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 13px;
  background: #f8fafd;
  border-radius: 9px;
}

.inquiry-product .part-link {
  font-size: 14px;
}

.inquiry-qty {
  color: var(--muted);
  font-size: 11.5px;
}

.inquiry-qty b {
  color: #29405e;
  font-size: 12.5px;
}

.inquiry-message {
  margin-top: 11px;
  color: #4a5d76;
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-line;
}

.inquiry-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
  width: 122px;
  flex: none;
}

.inquiry-card-actions .text-btn {
  align-self: center;
}

/* import */

.import-guide {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.import-warning {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 13px 15px;
  background: #fff8e9;
  border: 1px solid #f2dfb9;
  border-radius: 10px;
  color: #7a4b08;
}

.import-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffefd1;
  color: #b26b00;
  flex: none;
}

.import-warning-icon svg {
  width: 17px;
  height: 17px;
}

.import-warning b {
  display: block;
  color: #8a4b00;
  font-size: 12.5px;
  font-weight: 700;
}

.import-warning p {
  margin-top: 3px;
  color: #8a6420;
  font-size: 11.5px;
  line-height: 1.7;
}

.import-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.import-guide-head b {
  font-size: 12px;
}

.import-sample {
  display: block;
  overflow-x: auto;
  margin-top: 9px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #35506f;
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.import-guide p {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 10.8px;
  line-height: 1.65;
}

.import-inputs {
  margin-top: 16px;
}

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1.5px dashed #c9d8ea;
  border-radius: 11px;
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.file-drop:hover {
  border-color: var(--blue);
  background: #f7faff;
}

.file-drop.is-dragover {
  border-color: var(--blue);
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(29, 91, 255, 0.2);
}

.file-drop .icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.file-drop b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.file-drop small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.8px;
}

.import-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted-2);
  font-size: 10.5px;
}

.import-divider::before,
.import-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.import-textarea {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
}

.import-preview {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.import-preview[hidden] {
  display: none;
}

.import-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}

.import-preview-head span {
  color: var(--muted);
  font-size: 11px;
}

.import-preview .data-table {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-page {
  padding: 32px 0 84px;
  background: #fff;
}

.legal-wrap {
  max-width: 900px;
}

.legal-wrap > h1 {
  margin-top: 12px;
  font-size: 38px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.legal-meta {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.legal-body {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #3d4f68;
  font-size: 13.8px;
  line-height: 1.95;
}

.legal-body p {
  margin-bottom: 14px;
}

.legal-body h2 {
  margin: 30px 0 10px;
  color: #1b2d45;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-body ul {
  margin: 0 0 16px 1.25em;
  list-style: disc;
}

.legal-body li {
  margin: 6px 0;
}

.legal-body b {
  color: #243a55;
  font-weight: 600;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 30px;
  padding: 13px 16px;
  background: #f7f9fc;
  border-left: 3px solid #cddcef;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.75;
}

.auth-legal a {
  color: #5f83b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */

.error-page {
  padding: 84px 0 100px;
  background: radial-gradient(70% 70% at 50% 0%, #eef5ff 0%, transparent 60%), #fff;
  text-align: center;
}

.error-inner {
  position: relative;
  max-width: 620px;
}

.error-code {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  color: #eef4fd;
  font-family: var(--font-mono);
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  z-index: 0;
}

.error-chip {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  color: #9db3ce;
  box-shadow: var(--shadow-md);
}

.error-chip svg {
  width: 62px;
  height: 62px;
}

.error-inner h1 {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.error-inner > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.error-help {
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.error-help a {
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-inner {
    gap: 36px;
  }

  .hero-float-a {
    left: -10px;
  }

  .hero-float-b {
    right: -6px;
  }

  .hot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .supplier-grid,
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-nav {
    margin-left: 4px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13.5px;
  }

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

  .hero {
    padding: 62px 0 74px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: 100%;
    max-width: 640px;
  }

  .hero-float-a {
    left: -18px;
  }

  .hero-float-b {
    right: -12px;
  }

  .search-landing {
    grid-template-columns: 1fr;
  }

  .results-layout {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .company-layout {
    grid-template-columns: 1fr;
  }

  .company-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    position: static;
  }

  .about-split {
    gap: 40px;
  }

  .dash-grid,
  .dash-bottom-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
  }

  .dash-company {
    border-bottom: 0;
    padding-bottom: 0;
    max-width: 230px;
  }

  .dash-nav {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    margin-top: 0;
    gap: 2px;
  }

  .dash-nav-link {
    white-space: nowrap;
    padding: 9px 10px;
    font-size: 12px;
  }

  .dash-nav-link .icon {
    width: 16px;
    height: 16px;
  }

  .dash-tip {
    display: none;
  }

  .dash-sidebar-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .dash-sidebar-foot a {
    padding: 7px 8px;
  }

  .dash-logout {
    padding: 7px 8px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .topbar-mail {
    display: none;
  }

  .topbar-left .topbar-divider {
    display: none;
  }

  .header-post {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding: 62px 0;
  }

  .section-tight {
    padding: 34px 0 60px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    align-items: end;
  }

  .filter-head {
    grid-column: 1 / -1;
  }

  .filter-form .filter-group {
    margin-top: 12px;
  }

  .filter-form .check-row {
    margin: 12px 0;
  }

  .filter-form .btn-block {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .filter-help {
    display: none;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .sort-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .auth-shell,
  .auth-shell-wide {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .auth-aside {
    display: none;
  }

  .auth-section-register .auth-card {
    margin: 0 auto;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 560px;
  }

  .about-supplier {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .faq-intro {
    position: static;
  }

  .contact-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
  }

  .contact-section-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .contact-tile {
    flex: 1;
    min-width: 220px;
  }

  .company-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .company-hero-stats {
    gap: 30px;
  }

  .about-stats > div {
    padding-right: 24px;
    margin-right: 24px;
  }

  .inquiry-card {
    flex-direction: column;
    gap: 14px;
  }

  .inquiry-card-actions {
    flex-direction: row;
    width: auto;
    justify-content: flex-start;
  }

  .inquiry-summary-note {
    display: none;
  }

  .member-price-notice {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .member-price-notice p {
    flex-basis: calc(100% - 52px);
  }

  .notice-actions {
    width: 100%;
  }

  .notice-actions .btn {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .topbar-inner {
    height: 32px;
    font-size: 11px;
  }

  .topbar-right > span {
    display: none;
  }

  .header-inner {
    height: 64px;
    gap: 12px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    border-radius: 9px;
  }

  .brand-mark svg {
    width: 26px;
    height: 26px;
  }

  .brand-word {
    font-size: 19px;
  }

  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .login-link {
    display: none;
  }

  .header-actions .btn-sm {
    height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
  }

  .user-chip {
    padding: 3px;
    border-radius: 9px;
  }

  .hero {
    padding: 46px 0 56px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.04em;
  }

  .hero-lead {
    font-size: 13.5px;
  }

  .hero-search {
    padding: 6px;
  }

  .hero-search-btn {
    height: 44px;
    padding: 0 17px;
    font-size: 13.5px;
  }

  .hero-search input {
    height: 44px;
    font-size: 14px;
  }

  .hero-search-icon {
    width: 38px;
    height: 44px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 0;
    margin-top: 28px;
  }

  .hero-stats > div {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }

  .hero-stats dd {
    font-size: 21px;
  }

  .hero-visual {
    padding: 10px 0;
  }

  .hero-float {
    display: none;
  }

  .hero-window-body {
    padding: 18px 18px 14px;
  }

  .stock-link {
    margin: 10px -18px -14px;
  }

  .stock-head h2 {
    font-size: 20px;
  }

  .stock-count b {
    font-size: 24px;
  }

  .live-stock-window {
    --live-row-h: 28px;
    --live-page-h: 280px;
    --live-cols: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 0.7fr) minmax(0, 0.65fr) minmax(0, 0.65fr);
  }

  .live-stock-columns {
    column-gap: 4px;
    height: 22px;
    font-size: 8.5px;
  }

  .live-stock-row {
    column-gap: 4px;
    font-size: 9px;
  }

  .stock-supplier b {
    font-size: 11.5px;
  }

  .brand-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .brand-list {
    gap: 8px 22px;
  }

  .brand-list span {
    font-size: 13.5px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head h2 {
    font-size: 25px;
  }

  .hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hot-card {
    padding: 15px;
  }

  .part-no {
    font-size: 14px;
  }

  .supplier-grid,
  .directory-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .supplier-cta {
    padding-bottom: 64px;
  }

  .supplier-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
    padding: 34px 28px;
  }

  .supplier-cta-copy h2 {
    font-size: 27px;
  }

  .supplier-cta-actions {
    width: 100%;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
  }

  .page-band-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .page-band-copy h1 {
    font-size: 28px;
  }

  .inline-search {
    max-width: none;
  }

  .search-band {
    padding: 22px 0 32px;
  }

  .search-title {
    font-size: 27px;
  }

  .search-bar {
    margin-top: 18px;
  }

  .search-bar-btn {
    height: 44px;
    padding: 0 16px;
    font-size: 13px;
  }

  .search-bar input {
    height: 44px;
    font-size: 13.5px;
  }

  .search-bar-icon {
    width: 38px;
    height: 44px;
  }

  .search-section {
    padding: 26px 0 56px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .filter-head,
  .filter-form .btn-block {
    grid-column: auto;
  }

  .results-head h2 {
    font-size: 20px;
  }

  .result-head {
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 14px;
  }

  .company-result-id {
    align-items: flex-start;
  }

  .company-result-title h2 {
    font-size: 16px;
  }

  .company-result-head .result-price {
    min-width: 0;
  }

  .company-result-contact {
    gap: 3px 14px;
    padding: 10px 16px;
  }

  .result-price {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .result-price > span {
    font-size: 10px;
  }

  .result-price small {
    margin-left: 2px;
  }

  .offers-table th,
  .offers-table td {
    padding: 10px 12px;
  }

  .about-hero h1 {
    font-size: 40px;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .about-stats > div {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }

  .about-copy h2,
  .about-supplier-copy h2 {
    font-size: 26px;
  }

  .about-supplier {
    padding: 28px;
  }

  .contact-section {
    padding: 26px;
  }

  .contact-section-copy h2 {
    font-size: 24px;
  }

  .company-band {
    padding: 22px 0 28px;
  }

  .company-identity {
    align-items: flex-start;
  }

  .avatar-xl {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    font-size: 18px;
  }

  .company-name-line h1 {
    font-size: 22px;
  }

  .company-hero-stats b {
    font-size: 21px;
  }

  .company-aside {
    grid-template-columns: 1fr;
  }

  .company-about,
  .company-inventory {
    padding: 20px;
  }

  .company-inventory-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .company-inventory-head .inline-search {
    max-width: none;
    width: 100%;
  }

  .inventory-gate {
    padding: 34px 18px;
  }

  .inventory-search-big {
    padding: 6px 6px 6px 12px;
  }

  .inventory-search-big .btn {
    padding: 0 14px;
    font-size: 12.5px;
  }

  .head-hint {
    padding-top: 0;
  }

  .auth-section {
    padding: 28px 0 52px;
  }

  .auth-card {
    padding: 26px 22px;
    border-radius: 16px;
  }

  .auth-card-head h1 {
    font-size: 25px;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dashboard-shell {
    padding-top: 16px;
    padding-bottom: 48px;
    gap: 14px;
  }

  .dash-sidebar {
    display: block;
    padding: 14px;
  }

  .dash-company {
    max-width: none;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .dash-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
    padding-bottom: 0;
    overflow: visible;
  }

  .dash-sidebar-foot {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    justify-content: space-between;
  }

  .dash-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .dash-page-head h1 {
    font-size: 24px;
  }

  .dash-page-actions {
    width: 100%;
  }

  .dash-page-actions .btn {
    flex: 1;
  }

  .stat-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
    gap: 10px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .stat-icon .icon {
    width: 17px;
    height: 17px;
  }

  .stat-body b {
    font-size: 21px;
  }

  .stat-body small {
    display: none;
  }

  .invite-layout {
    grid-template-columns: 1fr;
  }

  .invite-code-row {
    flex-wrap: wrap;
  }

  .invite-code-row code {
    font-size: 21px;
  }

  .invite-link-row {
    flex-wrap: wrap;
  }

  .invite-link-row .input {
    flex-basis: 100%;
  }

  .invite-link-row .btn {
    width: 100%;
  }

  .panel {
    padding: 17px;
  }

  .panel-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .panel-toolbar .inline-search {
    max-width: none;
    width: 100%;
  }

  .profile-checklist {
    grid-template-columns: 1fr;
  }

  .inquiry-summary {
    flex-wrap: wrap;
  }

  .inquiry-summary-item {
    flex: 1;
    min-width: 90px;
    padding: 11px 14px;
  }

  .inquiry-card {
    padding: 16px;
  }

  .inquiry-card-actions {
    flex-wrap: wrap;
  }

  .modal-panel {
    padding: 24px 18px;
    border-radius: 15px;
  }

  .modal-head {
    padding-right: 26px;
  }

  .modal-head h2 {
    font-size: 21px;
  }

  .modal-actions .btn {
    flex: 1;
  }

  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: none;
  }

  .error-page {
    padding: 62px 0 72px;
  }

  .error-code {
    font-size: 110px;
    top: -24px;
  }

  .error-inner h1 {
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-eyebrow {
    font-size: 10.5px;
    padding: 6px 10px;
  }

  .hero-search-btn {
    padding: 0 13px;
  }

  .hot-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .topbar-left > span:first-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sort-tabs a {
    padding: 6px 8px;
    font-size: 11px;
  }

  .about-hero h1 {
    font-size: 34px;
  }

  .about-float-card {
    display: none;
  }

  .contact-section-actions {
    flex-direction: column;
  }

  .contact-tile {
    width: 100%;
  }

  .empty-actions .btn {
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .live-stock-viewport {
    overflow-y: auto;
  }
}
