﻿:root {
  --hosonic-blue: #01408d;
  --hosonic-blue-2: #0759ad;
  --hosonic-blue-3: #0c76c9;
  --hosonic-cyan: #18b7cf;
  --hosonic-navy: #071a35;
  --hosonic-navy-2: #0b2547;
  --ink: #15243a;
  --ink-2: #40506a;
  --muted: #718097;
  --line: #dfe7f1;
  --line-2: #edf1f6;
  --paper: #ffffff;
  --canvas: #f3f6fa;
  --canvas-blue: #edf5fd;
  --success: #13a36f;
  --success-soft: #e6f8f0;
  --warning: #d99118;
  --warning-soft: #fff5dd;
  --danger: #d44f61;
  --danger-soft: #ffedf0;
  --violet: #7559d9;
  --violet-soft: #f0ecff;
  --shadow-sm: 0 6px 18px rgba(20, 50, 88, .07);
  --shadow: 0 18px 55px rgba(20, 50, 88, .11);
  --shadow-lg: 0 30px 90px rgba(4, 27, 64, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { color: #fff; background: var(--hosonic-blue); }

.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; color: var(--hosonic-blue);
  font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--hosonic-cyan); }
.section-title { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.18; letter-spacing: -.04em; }
.section-copy { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head.compact { margin-bottom: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px;
  font-weight: 750; line-height: 1; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: var(--hosonic-blue); box-shadow: 0 10px 24px rgba(1, 64, 141, .22); }
.btn-primary:hover { background: var(--hosonic-blue-2); box-shadow: 0 12px 28px rgba(1, 64, 141, .28); }
.btn-cyan { color: #04243b; background: linear-gradient(135deg, #48e0e5, #19b7d1); box-shadow: 0 12px 25px rgba(24, 183, 207, .26); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #b8cbe1; background: #f8fbff; }
.btn-quiet { color: var(--hosonic-blue); background: #edf5fd; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 0 23px; border-radius: 14px; font-size: 15px; }
.btn-icon { width: 42px; padding: 0; }
.btn svg, .icon-btn svg, .nav-item svg { width: 18px; height: 18px; flex: none; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-blue { color: var(--hosonic-blue); background: #e9f3ff; }
.badge-green { color: var(--success); background: var(--success-soft); }
.badge-orange { color: #b8760d; background: var(--warning-soft); }
.badge-red { color: var(--danger); background: var(--danger-soft); }
.badge-violet { color: var(--violet); background: var(--violet-soft); }
.badge-gray { color: #61708a; background: #eef2f7; }

/* Public site */
.public-page { background: #f7f9fc; }
.announcement {
  position: relative; z-index: 60; color: rgba(255, 255, 255, .9); background: #061a35;
  font-size: 12px; letter-spacing: .02em;
}
.announcement .container { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.announcement strong { color: #fff; }
.announcement-links { display: flex; align-items: center; gap: 18px; }
.announcement a:hover { color: var(--hosonic-cyan); }

.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(218, 227, 239, .85);
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(18px);
}
.site-header .container { display: flex; align-items: center; min-height: 74px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { width: 170px; height: auto; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.brand-suffix { color: var(--hosonic-blue); font-size: 15px; font-weight: 850; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.nav-link {
  padding: 10px 12px; border-radius: 10px; color: #384962; font-size: 13px; font-weight: 700; transition: background .18s ease, color .18s ease;
}
.nav-link:hover, .nav-link.active { color: var(--hosonic-blue); background: #edf5fd; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; color: #384962; background: #fff; transition: .18s ease;
}
.icon-btn:hover { color: var(--hosonic-blue); border-color: #b8cce2; background: #f7fbff; }
.cart-count {
  position: absolute; top: -5px; right: -5px; display: grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid #fff;
  border-radius: 999px; color: #fff; background: var(--danger); font-size: 10px; font-weight: 900;
}
.header-cta { white-space: nowrap; }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #061a35 0%, #082f61 52%, #01408d 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 50%;
  /* responsive hero image */
  background: linear-gradient(90deg, rgba(6, 26, 53, .05), rgba(6, 26, 53, .72)), url("assets/official/hero-main.webp") center/cover no-repeat;
  opacity: .46; mix-blend-mode: screen;
}
.hero::after {
  content: ""; position: absolute; width: 680px; height: 680px; right: -190px; bottom: -490px;
  border: 1px solid rgba(88, 223, 235, .25); border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(88, 223, 235, .04), 0 0 0 160px rgba(88, 223, 235, .025);
}
.hero-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .8fr);
  align-items: center; gap: 66px; min-height: 580px; padding: 72px 0 62px;
}
.hero-copy .eyebrow { color: #73e6ee; }
.hero-copy .eyebrow::before { background: #73e6ee; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(42px, 5.1vw, 70px); line-height: 1.06; letter-spacing: -.055em; }
.hero h1 span { color: #72e7ee; }
.hero-copy > p { max-width: 640px; margin: 22px 0 0; color: rgba(232, 243, 255, .76); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, .13); }
.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 42px; }
.hero-metric { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-metric strong { display: block; font-size: 22px; line-height: 1.1; }
.hero-metric span { display: block; margin-top: 5px; color: rgba(232, 243, 255, .58); font-size: 11px; }

.hero-console {
  position: relative; padding: 18px; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px; background: rgba(5, 25, 51, .66); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px);
}
.console-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 5px 16px; }
.console-head strong { font-size: 14px; }
.console-live { display: inline-flex; align-items: center; gap: 6px; color: #7ce7cb; font-size: 11px; font-weight: 800; }
.console-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #46dcb5; box-shadow: 0 0 0 5px rgba(70, 220, 181, .1); }
.console-order {
  padding: 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 17px;
  background: linear-gradient(140deg, rgba(13, 68, 121, .75), rgba(8, 34, 68, .88));
}
.console-order-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.console-order-top span { color: rgba(226, 239, 255, .6); font-size: 11px; }
.console-order-top strong { display: block; margin-top: 2px; font-size: 19px; }
.console-id { color: #72e7ee !important; font-family: Consolas, monospace; }
.console-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 19px 0 16px; }
.console-progress span { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.console-progress span.done { background: linear-gradient(90deg, #42d9e1, #36c995); }
.console-products { display: grid; gap: 9px; }
.console-product { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 11px; border-radius: 13px; background: rgba(255, 255, 255, .055); }
.console-product img { width: 42px; height: 34px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.08); }
.console-product strong { display: block; font-size: 12px; }
.console-product span { display: block; color: rgba(226, 239, 255, .52); font-size: 10px; }
.console-product b { color: #8eeaf1; font-size: 11px; }
.console-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.console-footer div { padding: 12px; border-radius: 13px; background: rgba(255, 255, 255, .055); }
.console-footer span { display: block; color: rgba(226, 239, 255, .52); font-size: 10px; }
.console-footer strong { display: block; margin-top: 2px; font-size: 14px; }

.catalog-section { padding: 84px 0 90px; background: #f7f9fc; }
.catalog-toolbar {
  padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm);
}
.search-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #8291a7; }
.search-field input {
  width: 100%; height: 52px; padding: 0 18px 0 46px; border: 1px solid #dce5ef; border-radius: 14px;
  color: var(--ink); outline: none; background: #f9fbfe; transition: .18s ease;
}
.search-field input:focus { border-color: #8fb8df; background: #fff; box-shadow: 0 0 0 4px rgba(1, 64, 141, .08); }
.search-field input::placeholder { color: #98a6b8; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 15px; }
.filter-chip {
  min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px;
  color: #52627a; background: #fff; font-size: 12px; font-weight: 750; transition: .18s ease;
}
.filter-chip:hover { border-color: #a9c4df; color: var(--hosonic-blue); }
.filter-chip.active { color: #fff; border-color: var(--hosonic-blue); background: var(--hosonic-blue); box-shadow: 0 8px 18px rgba(1, 64, 141, .16); }
.filter-spacer { flex: 1; }
.filter-select {
  min-height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 10px;
  color: #52627a; background: #fff; outline: none;
}
.product-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 16px; }
.product-result-bar strong { font-size: 14px; }
.product-result-bar span { color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px;
  background: #fff; box-shadow: 0 8px 30px rgba(25, 55, 91, .055); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: #c1d4e6; box-shadow: var(--shadow); }
.product-visual { position: relative; height: 194px; overflow: hidden; background: radial-gradient(circle at 62% 42%, #eff8ff 0, #d9ecfa 38%, #c8e0f2 100%); }
.product-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(1,64,141,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(1,64,141,.055) 1px, transparent 1px);
  background-size: 20px 20px; mask-image: linear-gradient(to bottom, transparent, #000 34%, #000);
}
.product-visual::after { content: ""; position: absolute; width: 170px; height: 170px; right: -82px; top: -88px; border: 1px solid rgba(1,64,141,.14); border-radius: 50%; box-shadow: 0 0 0 24px rgba(1,64,141,.025), 0 0 0 48px rgba(1,64,141,.018); }
.product-visual.tone-2 { background: radial-gradient(circle at 60% 40%, #f2f7ff, #dce9ff 42%, #bdd3f6); }
.product-visual.tone-3 { background: radial-gradient(circle at 60% 40%, #f2fffd, #d9f6f3 42%, #bce6e5); }
.product-visual.tone-4 { background: radial-gradient(circle at 60% 40%, #fffaf0, #f9eacb 42%, #eddcb7); }
.product-image { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); mix-blend-mode: multiply; }
.product-visual.tone-2 .product-image { filter: hue-rotate(157deg) saturate(.72); }
.product-visual.tone-3 .product-image { filter: hue-rotate(102deg) saturate(.7); }
.product-visual.tone-4 .product-image { filter: sepia(.38) hue-rotate(188deg) saturate(.9); }
.product-topline { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; color: #0b7954; background: rgba(234, 250, 244, .92); font-size: 10px; font-weight: 850; backdrop-filter: blur(10px); }
.stock-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #14a975; }
.stock-pill.low { color: #b3720b; background: rgba(255, 245, 221, .94); }
.stock-pill.low::before { background: #e1a132; }
.quick-view-btn {
  display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.8);
  border-radius: 10px; color: #21415f; background: rgba(255,255,255,.78); backdrop-filter: blur(12px); transition: .18s ease;
}
.quick-view-btn:hover { color: #fff; background: var(--hosonic-blue); }
.product-body { padding: 17px 17px 18px; }
.product-category { display: flex; align-items: center; gap: 7px; color: var(--hosonic-blue); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.product-category::before { content: ""; width: 14px; height: 2px; background: var(--hosonic-cyan); }
.product-name { min-height: 48px; margin: 8px 0 3px; font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
.product-series { color: var(--muted); font-size: 11px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.spec-pill { padding: 5px 8px; border-radius: 7px; color: #52627a; background: #f3f6fa; font-size: 10px; font-weight: 700; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line-2); }
.sample-price { color: var(--hosonic-blue); font-size: 13px; font-weight: 850; }
.sample-price small { display: block; color: var(--muted); font-size: 9px; font-weight: 650; }
.add-sample-btn { min-width: 92px; }
.empty-state { grid-column: 1/-1; padding: 70px 20px; border: 1px dashed #cbd8e7; border-radius: 20px; text-align: center; background: #fff; }
.empty-state strong { display: block; font-size: 18px; }
.empty-state p { margin: 8px 0 0; color: var(--muted); }

.flow-section { padding: 88px 0; background: #fff; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-card { position: relative; min-height: 210px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fff, #f9fbfe); }
.flow-card::after { content: ""; position: absolute; right: -35px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: #edf5fd; }
.flow-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--hosonic-blue); font-size: 13px; font-weight: 900; box-shadow: 0 10px 23px rgba(1,64,141,.2); }
.flow-card h3 { position: relative; z-index: 1; margin: 24px 0 8px; font-size: 17px; }
.flow-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 12px; }
.flow-arrow { position: absolute; top: 43px; right: -11px; z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; color: #8ca0b7; background: #fff; }
.flow-card:last-child .flow-arrow { display: none; }

.records-section { padding: 0 0 92px; background: #fff; }
.records-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 18px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.data-table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 12px 17px; color: #738198; background: #f8fafc; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 17px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.data-table tbody tr:hover { background: #fafcff; }
.data-table .strong { color: #273b57; font-weight: 800; }
.data-table .sub { display: block; margin-top: 2px; color: #8a98ab; font-size: 10px; }
.table-link { color: var(--hosonic-blue); font-weight: 800; }
.table-link:hover { text-decoration: underline; }
.progress-mini { width: 112px; height: 6px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.progress-mini span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hosonic-blue), var(--hosonic-cyan)); }

.public-footer { color: rgba(228, 238, 250, .74); background: #061a35; }
.footer-main { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 42px; padding: 58px 0 42px; }
.footer-brand img {
  display: block;
  width: clamp(132px, 42vw, 172px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 352 / 84;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-brand p { max-width: 330px; margin: 18px 0 0; font-size: 12px; line-height: 1.8; }
.footer-col h4 { margin: 0 0 14px; color: #fff; font-size: 13px; }
.footer-col a, .footer-col span { display: block; margin: 8px 0; color: rgba(228, 238, 250, .66); font-size: 12px; }
.footer-col a:hover { color: var(--hosonic-cyan); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.09); color: rgba(228,238,250,.44); font-size: 11px; }

/* Drawer and dialogs */
.drawer-overlay { position: fixed; z-index: 100; inset: 0; visibility: hidden; opacity: 0; background: rgba(4, 19, 38, .52); backdrop-filter: blur(4px); transition: .25s ease; }
.drawer-overlay.open { visibility: visible; opacity: 1; }
.sample-drawer {
  position: fixed; z-index: 110; top: 0; right: 0; display: flex; flex-direction: column;
  width: min(540px, 100%); height: 100%; transform: translateX(102%); background: #f8fafc; box-shadow: -24px 0 70px rgba(4, 19, 38, .22); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sample-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 75px; padding: 0 24px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.step-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px 24px 0; background: #fff; }
.step-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 4px 14px; border: 0; color: #8a98ab; background: transparent; font-size: 11px; font-weight: 800; }
.step-tab::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #e8edf3; }
.step-tab span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #edf1f6; font-size: 10px; }
.step-tab.active { color: var(--hosonic-blue); }
.step-tab.active::after { background: var(--hosonic-blue); }
.step-tab.active span { color: #fff; background: var(--hosonic-blue); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 30px; }
.drawer-panel { display: none; }
.drawer-panel.active { display: block; animation: fadeUp .22s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cart-list { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cart-thumb { width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 60% 40%, #eef7ff, #cbe2f5); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cart-line h4 { margin: 0; font-size: 13px; line-height: 1.4; }
.cart-line p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.qty-control { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.qty-control button { width: 28px; height: 27px; border: 0; color: #52627a; background: transparent; font-weight: 900; }
.qty-control button:hover { color: var(--hosonic-blue); background: #eef5fc; }
.qty-control strong { display: grid; place-items: center; min-width: 29px; height: 27px; border-inline: 1px solid var(--line); font-size: 11px; }
.cart-line-actions { display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.remove-line { border: 0; color: #98a6b8; background: transparent; font-size: 16px; line-height: 1; }
.remove-line:hover { color: var(--danger); }
.cart-tip { display: flex; gap: 10px; margin-top: 15px; padding: 12px 13px; border-radius: 12px; color: #355b7e; background: #eaf5fd; font-size: 11px; }
.cart-tip strong { color: var(--hosonic-blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { color: #4c5c73; font-size: 11px; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #dce5ef; border-radius: 11px;
  color: var(--ink); outline: none; background: #fff; transition: .18s ease;
}
.form-field textarea { min-height: 82px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #8eb8e1; box-shadow: 0 0 0 4px rgba(1,64,141,.07); }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 11px; }
.check-row input { margin-top: 2px; accent-color: var(--hosonic-blue); }
.review-card { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.review-card h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; font-size: 13px; }
.review-card h4 button { border: 0; color: var(--hosonic-blue); background: transparent; font-size: 11px; font-weight: 800; }
.review-list { display: grid; gap: 8px; }
.review-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.review-row strong { color: #34475f; text-align: right; font-weight: 750; }
.drawer-footer { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.drawer-total { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.drawer-total span { color: var(--muted); font-size: 11px; }
.drawer-total strong { color: var(--hosonic-blue); font-size: 18px; }
.drawer-actions { display: flex; gap: 10px; }
.drawer-actions .btn { flex: 1; }
.modal-overlay { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; visibility: hidden; opacity: 0; padding: 24px; background: rgba(4,19,38,.54); backdrop-filter: blur(5px); transition: .22s ease; }
.modal-overlay.open { visibility: visible; opacity: 1; }
.modal {
  width: min(820px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 24px; background: #fff;
  box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.98); transition: .24s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 21px; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { border: 0; color: #8b99ab; background: transparent; font-size: 24px; line-height: 1; }
.modal-body { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding: 26px; }
.modal-visual { min-height: 270px; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 60% 40%, #eff8ff, #c9e2f5); }
.modal-visual img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.modal-spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.modal-spec { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafcff; }
.modal-spec span { display: block; color: var(--muted); font-size: 10px; }
.modal-spec strong { display: block; margin-top: 3px; font-size: 12px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 26px 24px; border-top: 1px solid var(--line); }
.toast-stack { position: fixed; z-index: 150; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { display: flex; align-items: start; gap: 11px; min-width: 300px; padding: 14px 15px; border: 1px solid rgba(207, 223, 239, .9); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); animation: toastIn .25s ease both; }
.toast-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--success); font-size: 12px; font-weight: 900; }
.toast strong { display: block; font-size: 12px; }
.toast span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* E-commerce admin */
.admin-page { overflow-x: hidden; background: #f1f4f8; }
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  position: sticky; top: 0; z-index: 50; display: flex; flex-direction: column; height: 100vh;
  color: rgba(230, 239, 251, .74); background: linear-gradient(180deg, #06152c, #081f3c 62%, #071831); box-shadow: 10px 0 45px rgba(5, 20, 41, .08);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; height: 76px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand img { width: 132px; filter: brightness(0) invert(1); opacity: .96; }
.sidebar-project { display: flex; align-items: center; gap: 9px; margin: 15px 14px 9px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); }
.sidebar-project-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #0d75c7, #18b7cf); font-size: 11px; font-weight: 900; }
.sidebar-project strong { display: block; color: #fff; font-size: 11px; }
.sidebar-project span { display: block; color: rgba(230,239,251,.45); font-size: 9px; }
.admin-nav { flex: 1; overflow-y: auto; padding: 6px 12px 18px; }
.nav-label { margin: 18px 9px 7px; color: rgba(230,239,251,.32); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; margin: 3px 0; padding: 0 11px;
  border: 0; border-radius: 11px; color: rgba(230,239,251,.68); background: transparent; text-align: left; font-size: 12px; font-weight: 700; transition: .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(20, 126, 207, .82), rgba(22, 153, 183, .72)); box-shadow: 0 9px 22px rgba(0, 78, 146, .2); }
.nav-item svg { width: 17px; height: 17px; }
.nav-badge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; color: #fff; background: #d65466; font-size: 9px; line-height: 19px; text-align: center; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.045); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #1185c3, #18b7cf); font-size: 11px; font-weight: 900; }
.admin-user strong { display: block; color: #fff; font-size: 11px; }
.admin-user span { display: block; color: rgba(230,239,251,.42); font-size: 9px; }
.admin-main { min-width: 0; }
.admin-topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 76px; padding: 0 28px; border-bottom: 1px solid #dfe6ef; background: rgba(255,255,255,.94); backdrop-filter: blur(16px);
}
.admin-title h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.admin-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.global-search { position: relative; width: min(280px, 28vw); }
.global-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #8190a3; }
.global-search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid #dfe6ef; border-radius: 11px; outline: none; background: #f7f9fc; }
.global-search input:focus { border-color: #a4c3df; background: #fff; box-shadow: 0 0 0 4px rgba(1,64,141,.06); }
.notification-btn { position: relative; }
.notification-btn::after { content: ""; position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: #d65466; }
.admin-content { padding: 24px 28px 40px; }
.admin-view { display: none; }
.admin-view.active { display: block; animation: fadeUp .22s ease both; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.view-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.view-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.dash-hero { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; margin-bottom: 18px; }
.dash-welcome {
  position: relative; min-height: 180px; overflow: hidden; padding: 26px; border-radius: 20px; color: #fff;
  background: linear-gradient(115deg, #073568, #01408d 62%, #0b659f); box-shadow: 0 18px 45px rgba(1,64,141,.17);
}
.dash-welcome::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border: 1px solid rgba(101, 229, 242, .25); border-radius: 50%; box-shadow: 0 0 0 55px rgba(101,229,242,.05), 0 0 0 110px rgba(101,229,242,.025); }
.dash-welcome::after { content: "HOSONIC / SAMPLE OPS"; position: absolute; right: 24px; bottom: 14px; color: rgba(255,255,255,.1); font-size: 26px; font-weight: 950; letter-spacing: -.06em; }
.dash-welcome .eyebrow { color: #71e5ee; }
.dash-welcome .eyebrow::before { background: #71e5ee; }
.dash-welcome h2 { position: relative; z-index: 1; margin: 0; font-size: 28px; letter-spacing: -.035em; }
.dash-welcome p { position: relative; z-index: 1; max-width: 560px; margin: 9px 0 0; color: rgba(235,245,255,.72); font-size: 11px; }
.dash-welcome-actions { position: relative; z-index: 1; display: flex; gap: 9px; margin-top: 20px; }
.dash-welcome .btn-ghost { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.dash-side-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.dash-side-card h3 { margin: 0; font-size: 14px; }
.dash-side-card > p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.task-list { display: grid; gap: 10px; margin-top: 17px; }
.task-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.task-item:first-child { border-top: 0; }
.task-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--hosonic-blue); background: #eaf4ff; }
.task-icon.orange { color: var(--warning); background: var(--warning-soft); }
.task-icon.green { color: var(--success); background: var(--success-soft); }
.task-item strong { display: block; font-size: 11px; }
.task-item span { display: block; color: var(--muted); font-size: 9px; }
.task-item b { color: var(--hosonic-blue); font-size: 14px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 6px 20px rgba(24, 53, 89, .045); }
.kpi-card::after { content: ""; position: absolute; right: -28px; top: -30px; width: 80px; height: 80px; border-radius: 50%; background: var(--kpi-soft, #edf5fd); }
.kpi-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--kpi-color, var(--hosonic-blue)); background: var(--kpi-soft, #edf5fd); }
.kpi-trend { color: var(--success); font-size: 10px; font-weight: 850; }
.kpi-trend.down { color: var(--danger); }
.kpi-card strong { position: relative; z-index: 1; display: block; margin-top: 16px; font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.kpi-card span { position: relative; z-index: 1; display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.grid-2 { display: grid; grid-template-columns: 1.55fr .85fr; gap: 16px; margin-bottom: 16px; }
.grid-2.equal { grid-template-columns: 1fr 1fr; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(25, 52, 86, .045); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 19px 12px; }
.card-head h3 { margin: 0; font-size: 14px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.card-body { padding: 0 19px 19px; }
.card-body.padded { padding: 19px; }
.chart-wrap { min-height: 220px; }
.line-chart { width: 100%; height: 220px; overflow: visible; }
.line-chart .grid-line { stroke: #edf1f6; stroke-width: 1; }
.line-chart .axis-text { fill: #8a98ab; font-size: 9px; font-family: var(--font); }
.line-chart .chart-area { fill: url(#areaGradient); }
.line-chart .chart-line { fill: none; stroke: #0a73c4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .chart-point { fill: #fff; stroke: #0a73c4; stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 4px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: block; width: 8px; height: 8px; border-radius: 3px; background: #0a73c4; }
.chart-legend i.cyan { background: #18b7cf; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; padding: 8px 0 4px; }
.donut { position: relative; display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; background: conic-gradient(#0a73c4 0 42%, #18b7cf 42% 72%, #e4b34c 72% 87%, #dce5ef 87% 100%); }
.donut::before { content: ""; width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #eef2f7; }
.donut-center { position: absolute; text-align: center; }
.donut-center strong { display: block; font-size: 22px; line-height: 1; }
.donut-center span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.donut-legend { display: grid; gap: 10px; }
.donut-legend div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; }
.donut-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.donut-legend i { width: 8px; height: 8px; border-radius: 3px; background: #0a73c4; }
.donut-legend i.cyan { background: #18b7cf; }
.donut-legend i.yellow { background: #e4b34c; }
.donut-legend strong { color: var(--ink); font-size: 11px; }
.bar-list { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 105px 1fr 48px; align-items: center; gap: 11px; font-size: 10px; }
.bar-row span:first-child { color: #52627a; }
.bar-track { height: 8px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b74c3, #1ac5d5); }
.bar-row b { text-align: right; font-size: 10px; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.filter-bar .search-field { min-width: 240px; }
.filter-bar .search-field input { height: 39px; border-radius: 10px; }
.filter-bar select, .filter-bar input[type="date"] { min-height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: #52627a; background: #fff; outline: none; }
.filter-bar .spacer { flex: 1; }
.admin-table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 7px 24px rgba(25,52,86,.04); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 12px 14px; color: #7d8b9f; border-bottom: 1px solid var(--line); background: #f8fafc; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfdff; }
.admin-table .primary { color: #263b58; font-weight: 850; }
.admin-table .sub { display: block; margin-top: 2px; color: #8a98ab; font-size: 9px; }
.admin-table .actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.table-check { width: 15px; height: 15px; accent-color: var(--hosonic-blue); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { color: #a86908; background: var(--warning-soft); }
.status-review { color: var(--hosonic-blue); background: #eaf4ff; }
.status-approved { color: var(--success); background: var(--success-soft); }
.status-shipped { color: var(--violet); background: var(--violet-soft); }
.status-done { color: #52718d; background: #edf2f7; }
.status-cancelled { color: var(--danger); background: var(--danger-soft); }
.product-cell { display: flex; align-items: center; gap: 10px; }
.product-cell-thumb { width: 38px; height: 34px; flex: none; overflow: hidden; border-radius: 9px; background: #e6f2fb; }
.product-cell-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.product-cell strong { display: block; font-size: 10px; }
.product-cell span { display: block; color: #8a98ab; font-size: 9px; }
.table-avatar { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 9px; color: var(--hosonic-blue); background: #eaf4ff; font-size: 9px; font-weight: 900; }
.customer-cell { display: flex; align-items: center; gap: 9px; }
.customer-cell strong { display: block; font-size: 10px; }
.customer-cell span { display: block; color: #8a98ab; font-size: 9px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination-btns { display: flex; gap: 6px; }
.page-btn { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: #52627a; background: #fff; font-size: 10px; }
.page-btn.active { color: #fff; border-color: var(--hosonic-blue); background: var(--hosonic-blue); }

.inventory-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.inventory-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.inventory-card span { color: var(--muted); font-size: 10px; }
.inventory-card strong { display: block; margin-top: 6px; font-size: 24px; line-height: 1; }
.inventory-card small { display: block; margin-top: 6px; color: #8a98ab; font-size: 9px; }
.stock-cell { min-width: 150px; }
.stock-cell .stock-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 10px; }
.stock-cell .bar-track { height: 6px; }
.stock-cell .bar-fill.low { background: linear-gradient(90deg, #e39a26, #e8b45a); }
.stock-cell .bar-fill.danger { background: linear-gradient(90deg, #d44f61, #e57c86); }
.product-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.admin-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 7px 22px rgba(25,52,86,.04); }
.admin-product-art { position: relative; height: 130px; overflow: hidden; background: radial-gradient(circle at 60% 40%, #eff8ff, #cee4f4); }
.admin-product-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.admin-product-art .badge { position: absolute; top: 10px; right: 10px; }
.admin-product-info { padding: 15px; }
.admin-product-info h3 { margin: 0; font-size: 13px; }
.admin-product-info p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.admin-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 10px; }
.admin-product-meta strong { color: var(--hosonic-blue); }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.funnel { display: grid; gap: 10px; padding-top: 4px; }
.funnel-row { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 10px; font-size: 10px; }
.funnel-bar { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #0a73c4, #18b7cf); transform-origin: left; }
.funnel-row:nth-child(2) .funnel-bar { width: 76%; background: linear-gradient(90deg, #1686b4, #29c1c7); }
.funnel-row:nth-child(3) .funnel-bar { width: 58%; background: linear-gradient(90deg, #2d9c95, #56cba8); }
.funnel-row:nth-child(4) .funnel-bar { width: 39%; background: linear-gradient(90deg, #d19b2a, #e3bb5d); }
.funnel-row:nth-child(5) .funnel-bar { width: 28%; background: linear-gradient(90deg, #7c67cc, #9b89e2); }
.funnel-row b { text-align: right; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.settings-card h3 { margin: 0; font-size: 14px; }
.settings-card > p { margin: 5px 0 18px; color: var(--muted); font-size: 10px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.setting-row strong { display: block; font-size: 11px; }
.setting-row span { display: block; color: var(--muted); font-size: 9px; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #ced8e4; transition: .2s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .2s ease; }
.switch input:checked + span { background: var(--hosonic-blue); }
.switch input:checked + span::after { transform: translateX(16px); }

/* Responsive */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { gap: 38px; }
  .admin-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .product-admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .brand { margin-right: auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 760px; }
  .hero-console { max-width: 720px; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-card:nth-child(2) .flow-arrow { display: none; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2/4; }
  .dash-hero, .grid-2, .grid-2.equal, .analytics-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar-brand { justify-content: center; padding: 0; }
  .sidebar-brand img { width: 42px; object-fit: cover; object-position: left center; }
  .sidebar-project { justify-content: center; margin-inline: 10px; padding: 8px; }
  .sidebar-project div:last-child, .nav-label, .nav-item span, .nav-badge, .admin-user div:last-child { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .admin-user { justify-content: center; padding: 7px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1240px); }
  .announcement-links { display: none; }
  .site-header .container { min-height: 66px; gap: 12px; }
  .brand-logo { width: 130px; }
  .brand-divider, .brand-suffix { display: none; }
  .header-cta { display: none; }
  .hero-grid { padding: 54px 0 48px; }
  .hero h1 { font-size: 40px; }
  .hero-copy > p { font-size: 14px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hero-console { padding: 13px; }
  .catalog-section, .flow-section { padding: 62px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .search-row { grid-template-columns: 1fr; }
  .filter-spacer { display: none; }
  .filter-select { flex: 1; min-width: 120px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-visual { height: 160px; }
  .product-body { padding: 14px; }
  .product-name { min-height: 43px; font-size: 14px; }
  .product-footer { align-items: stretch; flex-direction: column; }
  .add-sample-btn { width: 100%; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card { min-height: 0; }
  .flow-arrow { display: none; }
  .records-panel { border-radius: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-col:last-child { grid-column: 1/-1; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-visual { min-height: 210px; }
  .admin-topbar { padding: 0 17px; }
  .admin-content { padding: 19px 17px 32px; }
  .global-search { display: none; }
  .kpi-grid, .inventory-summary, .product-admin-grid { grid-template-columns: 1fr 1fr; }
  .view-heading { align-items: start; flex-direction: column; }
  .filter-bar .search-field { min-width: 100%; }
  .filter-bar .spacer { display: none; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .announcement .container { justify-content: center; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { height: 205px; }
  .product-name { min-height: 0; }
  .drawer-body { padding: 18px 16px 26px; }
  .drawer-head, .drawer-footer { padding-inline: 16px; }
  .step-tabs { padding-inline: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-col:last-child, .footer-brand { grid-column: auto; }
  .kpi-grid, .inventory-summary, .product-admin-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 62px minmax(0, 1fr); }
  .admin-content { padding-inline: 12px; }
  .admin-title p { display: none; }
  .admin-top-actions .btn span { display: none; }
  .admin-top-actions .btn { width: 42px; padding: 0; }
}

/* SEO knowledge, applications, contact, authentication */
.solutions-section, .faq-section { padding: 86px 0; background: #f7f9fc; }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.solution-card { position: relative; min-height: 220px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 8px 26px rgba(25,55,91,.045); }
.solution-card::after { content: ""; position: absolute; right: -45px; bottom: -52px; width: 130px; height: 130px; border: 1px solid rgba(1,64,141,.09); border-radius: 50%; box-shadow: 0 0 0 22px rgba(1,64,141,.018), 0 0 0 44px rgba(1,64,141,.012); }
.solution-index { color: var(--hosonic-blue); font-size: 11px; font-weight: 950; letter-spacing: .12em; }
.solution-card h3 { margin: 22px 0 10px; font-size: 18px; }
.solution-card p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.solution-card a { position: relative; z-index: 1; font-size: 11px; }
.faq-section { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-grid details { border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; transition: .18s ease; }
.faq-grid details[open] { border-color: #b9d1e7; background: #fff; box-shadow: var(--shadow-sm); }
.faq-grid summary { position: relative; padding: 18px 46px 18px 18px; cursor: pointer; color: #2b405c; font-size: 13px; font-weight: 850; list-style: none; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 18px; top: 50%; color: var(--hosonic-blue); font-size: 20px; font-weight: 400; transform: translateY(-50%); }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact-section { padding: 0 0 90px; background: #fff; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 40px; overflow: hidden; border: 1px solid #c8daeb; border-radius: 24px; background: linear-gradient(120deg, #eef7ff, #f7fbff 70%, #ecfbfc); box-shadow: var(--shadow-sm); }
.contact-card h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.contact-card p { max-width: 630px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

.login-page { min-height: 100vh; background: #eef3f8; }
.login-shell { display: grid; grid-template-columns: minmax(380px, .88fr) minmax(520px, 1.12fr); min-height: 100vh; }
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 54px clamp(34px, 7vw, 100px); background: #fff; }
.login-brand { position: absolute; top: 34px; left: clamp(34px, 7vw, 100px); }
.login-brand img { width: 174px; }
.login-panel-inner { width: min(390px, 100%); margin: 0 auto; }
.login-panel h1 { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: -.045em; }
.login-panel .lead { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.login-form { display: grid; gap: 15px; margin-top: 30px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: #485a72; font-size: 11px; font-weight: 850; }
.login-field input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #dbe4ee; border-radius: 12px; outline: none; background: #f9fbfd; transition: .18s ease; }
.login-field input:focus { border-color: #8db7df; background: #fff; box-shadow: 0 0 0 4px rgba(1,64,141,.07); }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.login-options label { display: inline-flex; align-items: center; gap: 7px; }
.login-options input { accent-color: var(--hosonic-blue); }
.login-options a { color: var(--hosonic-blue); font-weight: 750; }
.login-error { display: none; padding: 10px 12px; border-radius: 10px; color: var(--danger); background: var(--danger-soft); font-size: 10px; }
.login-error.show { display: block; }
.demo-account { margin-top: 22px; padding: 14px; border: 1px dashed #bdd2e5; border-radius: 13px; color: #59718c; background: #f6fbff; font-size: 10px; }
.demo-account strong { color: var(--hosonic-blue); }
.login-side { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #071a35, #073a70 55%, #0157a1); }
.login-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,25,51,.88), rgba(5,25,51,.18)), url("assets/official/hero-main.webp") center/cover no-repeat; opacity: .66; mix-blend-mode: screen; }
.login-side::after { content: ""; position: absolute; width: 540px; height: 540px; right: -220px; top: -200px; border: 1px solid rgba(95,229,240,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(95,229,240,.035), 0 0 0 140px rgba(95,229,240,.018); }
.login-side-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: end; height: 100%; padding: 70px clamp(40px, 7vw, 100px); }
.login-side-content .eyebrow { color: #76e8ef; }
.login-side-content .eyebrow::before { background: #76e8ef; }
.login-side-content h2 { max-width: 630px; margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.05em; }
.login-side-content p { max-width: 580px; margin: 18px 0 0; color: rgba(233,243,255,.7); font-size: 13px; }
.login-side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.login-side-stat { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.login-side-stat strong { display: block; font-size: 24px; }
.login-side-stat span { display: block; margin-top: 4px; color: rgba(233,243,255,.56); font-size: 10px; }
.security-note { display: flex; align-items: start; gap: 10px; margin-top: 18px; color: #8a98ab; font-size: 10px; }
.security-note svg { margin-top: 2px; color: var(--success); }

/* Admin timeline and small component fixes */
.actions { display: flex; align-items: center; gap: 7px; }
.logistics-timeline { position: relative; display: grid; gap: 0; padding: 6px 0 0 8px; }
.logistics-timeline::before { content: ""; position: absolute; left: 18px; top: 18px; bottom: 24px; width: 2px; background: #e7edf4; }
.timeline-item { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 13px; min-height: 72px; padding: 0 0 14px 30px; }
.timeline-dot { position: absolute; z-index: 1; left: 4px; top: 5px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: #c7d2df; box-shadow: 0 0 0 2px #e3eaf2; }
.timeline-item.done .timeline-dot { background: var(--success); box-shadow: 0 0 0 2px #d9f3e8; }
.timeline-item.active .timeline-dot { background: var(--hosonic-blue); box-shadow: 0 0 0 5px rgba(1,64,141,.11); }
.timeline-item time { color: #8a98ab; font-family: Consolas, monospace; font-size: 10px; }
.timeline-item strong { display: block; font-size: 11px; }
.timeline-item p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
@media (max-width: 680px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-panel { min-height: 100vh; padding-top: 110px; }
  .contact-card, .section-head { align-items: start; flex-direction: column; }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn { width: 100%; }
  .solution-grid, .faq-grid { grid-template-columns: 1fr; }
}

/* CRM workspace */
.crm-board-wrap { overflow-x: auto; padding: 2px 1px 12px; }
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(248px, 1fr); gap: 13px; min-width: 1400px; }
.crm-column { min-height: 470px; padding: 11px; border: 1px solid #dfe6ef; border-radius: 17px; background: #f5f7fa; }
.crm-column-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 12px; }
.crm-column-head > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.crm-column-head strong { font-size: 11px; white-space: nowrap; }
.crm-column-head b { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; color: #52627a; background: #e5ebf2; font-size: 9px; }
.crm-column-head > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.crm-stage-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.crm-cards { display: grid; align-content: start; gap: 9px; }
.crm-card { padding: 13px; border: 1px solid #e0e7ef; border-radius: 13px; background: #fff; box-shadow: 0 5px 15px rgba(25,52,86,.035); cursor: pointer; transition: .18s ease; }
.crm-card:hover { transform: translateY(-2px); border-color: #b9cfe2; box-shadow: 0 11px 24px rgba(25,52,86,.09); }
.crm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crm-card-top strong { color: var(--hosonic-blue); font-size: 12px; }
.crm-card h4 { margin: 13px 0 2px; font-size: 11px; }
.crm-card > p { margin: 0; color: var(--muted); font-size: 9px; }
.crm-next { margin-top: 12px; padding: 9px; border-radius: 10px; background: #f7fafc; }
.crm-next span { display: block; color: #8a98ab; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.crm-next strong { display: block; margin-top: 3px; color: #40536d; font-size: 9px; font-weight: 750; line-height: 1.5; }
.crm-card-foot { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 7px; margin-top: 12px; }
.crm-card-foot > span { color: #52627a; font-size: 9px; font-weight: 850; }
.crm-card-foot .progress-mini { width: 100%; height: 5px; }
.crm-card-foot b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; color: var(--hosonic-blue); background: #eaf4ff; font-size: 8px; }
.crm-empty { display: grid; place-items: center; min-height: 110px; border: 1px dashed #d6e0ea; border-radius: 12px; color: #9aa8b9; font-size: 9px; text-align: center; }
.crm-activities { display: grid; }
.crm-activity { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.crm-activity:first-child { border-top: 0; }
.crm-activity-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--hosonic-blue); background: #eaf4ff; font-size: 14px; font-weight: 850; }
.crm-activity.pending .crm-activity-icon { color: var(--warning); background: var(--warning-soft); }
.crm-activity strong { display: block; font-size: 10px; }
.crm-activity p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.crm-activity time { color: #8a98ab; font-size: 9px; white-space: nowrap; }
.health-list { display: grid; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.health-row:first-child { border-top: 0; }
.health-row strong { display: block; font-size: 10px; }
.health-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.health-score { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; font-size: 11px; font-weight: 950; }
.health-score.green { color: var(--success); background: var(--success-soft); }
.health-score.blue { color: var(--hosonic-blue); background: #eaf4ff; }
.health-score.orange { color: var(--warning); background: var(--warning-soft); }
.health-score.red { color: var(--danger); background: var(--danger-soft); }
@media (max-width: 760px) {
  .crm-board { grid-auto-columns: 235px; min-width: 1280px; }
  .crm-column { min-height: 420px; }
  .crm-activity { grid-template-columns: 34px 1fr; }
  .crm-activity time { grid-column: 2; }
}

/* Advanced selector page */
.selector-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #061a35, #08427c 68%, #087ca7); }
.selector-hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -170px; top: -330px; border: 1px solid rgba(91,229,239,.24); border-radius: 50%; box-shadow: 0 0 0 65px rgba(91,229,239,.04), 0 0 0 130px rgba(91,229,239,.02); }
.selector-hero .container { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 44px; padding: 52px 0 46px; }
.selector-hero-copy { max-width: 720px; }
.selector-hero .eyebrow { color: #72e7ee; }
.selector-hero .eyebrow::before { background: #72e7ee; }
.selector-hero h1 { margin: 0; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -.05em; }
.selector-hero p { max-width: 680px; margin: 14px 0 0; color: rgba(235,245,255,.72); font-size: 13px; line-height: 1.8; }
.selector-hero-stats { display: grid; grid-template-columns: repeat(2, 96px); gap: 11px; flex: none; }
.selector-hero-stats div { padding: 12px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.055); }
.selector-hero-stats strong { display: block; font-size: 20px; }
.selector-hero-stats span { display: block; margin-top: 2px; color: rgba(235,245,255,.55); font-size: 9px; }
.selector-section { padding: 38px 0 72px; background: #f4f7fb; }
.selector-layout { display: grid; grid-template-columns: 308px minmax(0, 1fr); align-items: start; gap: 20px; }
.selector-sidebar { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.selector-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 18px; border-bottom: 1px solid var(--line); }
.selector-sidebar-head h2 { margin: 0; font-size: 16px; }
.selector-sidebar-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.selector-sidebar-head button { border: 0; color: var(--hosonic-blue); background: transparent; font-size: 10px; font-weight: 850; }
.filter-block { padding: 16px 17px; border-top: 1px solid var(--line-2); }
.filter-block:first-of-type { border-top: 0; }
.filter-block-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.filter-block-title span { color: #33475f; font-size: 11px; font-weight: 850; }
.filter-block-title small { color: #99a6b8; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.selector-search { position: relative; display: block; }
.selector-search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: #8997aa; }
.selector-search input { width: 100%; height: 40px; padding: 0 12px 0 35px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #f8fafc; font-size: 10px; }
.selector-search input:focus { border-color: #9dbfdc; background: #fff; box-shadow: 0 0 0 4px rgba(1,64,141,.06); }
.preset-grid, .check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.preset-grid button { min-height: 35px; padding: 5px 8px; border: 1px solid #dfe7f1; border-radius: 9px; color: #52627a; background: #f9fbfd; font-size: 9px; font-weight: 750; }
.preset-grid button:hover { color: var(--hosonic-blue); border-color: #a9c7e1; background: #eef7ff; }
.check-list { display: grid; gap: 8px; }
.filter-check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #52627a; font-size: 10px; }
.filter-check input { position: absolute; opacity: 0; }
.filter-check i, .compare-check i { display: grid; place-items: center; width: 15px; height: 15px; flex: none; border: 1px solid #cbd6e2; border-radius: 5px; background: #fff; }
.filter-check input:checked + i, .compare-check input:checked + i { border-color: var(--hosonic-blue); background: var(--hosonic-blue); }
.filter-check input:checked + i::after, .compare-check input:checked + i::after { content: "✓"; color: #fff; font-size: 9px; font-style: normal; }
.check-grid .filter-check { min-height: 28px; padding: 5px 6px; border-radius: 7px; background: #f7f9fc; }
.range-fields { display: grid; grid-template-columns: 1fr 12px 1fr; align-items: end; gap: 6px; }
.range-fields label { display: grid; gap: 5px; }
.range-fields label span { color: #8795a8; font-size: 8px; }
.range-fields input { width: 100%; height: 35px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; outline: none; font-size: 10px; }
.range-fields i { padding-bottom: 9px; color: #9aa8b9; font-size: 9px; font-style: normal; text-align: center; }
.quick-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.quick-ranges button, .active-filter { min-height: 26px; padding: 0 8px; border: 1px solid #dce5ef; border-radius: 7px; color: #63728a; background: #fff; font-size: 8px; font-weight: 750; }
.quick-ranges button:hover, .active-filter:hover { color: var(--hosonic-blue); border-color: #aec9e1; }
.availability-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.availability-toggle strong { display: block; color: #33475f; font-size: 10px; }
.availability-toggle small { display: block; color: #98a6b8; font-size: 8px; }
.availability-toggle input { position: absolute; opacity: 0; }
.availability-toggle i { position: relative; width: 38px; height: 22px; flex: none; border-radius: 99px; background: #ced8e4; transition: .18s ease; }
.availability-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .18s ease; }
.availability-toggle input:checked + i { background: var(--hosonic-blue); }
.availability-toggle input:checked + i::after { transform: translateX(16px); }

.selector-results { min-width: 0; }
.selector-result-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.selector-result-head h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.selector-result-head h2 span { color: var(--hosonic-blue); }
.selector-result-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.selector-result-actions { display: flex; align-items: center; gap: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-height: 28px; margin-bottom: 13px; color: #8997aa; font-size: 9px; }
.selector-list { display: grid; gap: 13px; }
.selector-item { display: grid; grid-template-columns: 136px minmax(0, 1fr) 148px; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(25,52,86,.045); transition: .2s ease; }
.selector-item:hover { border-color: #bdd0e2; box-shadow: var(--shadow-sm); }
.selector-item-visual { position: relative; min-height: 132px; overflow: hidden; border-radius: 13px; background: radial-gradient(circle at 60% 40%, #eef8ff, #c9e2f4); }
.selector-item-visual img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.selector-item-visual .badge { position: absolute; left: 9px; top: 9px; }
.selector-item-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.selector-item-heading > div > span { color: var(--hosonic-blue); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.selector-item-heading h3 { margin: 5px 0 2px; font-size: 16px; }
.selector-item-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.compare-check { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #63728a; font-size: 9px; font-weight: 750; cursor: pointer; }
.compare-check input { position: absolute; opacity: 0; }
.selector-param-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.selector-param-grid div { min-width: 0; padding: 8px 9px; border-radius: 9px; background: #f7f9fc; }
.selector-param-grid span { display: block; color: #98a6b8; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.selector-param-grid strong { display: block; margin-top: 2px; overflow: hidden; color: #40536d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.selector-item-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 10px; padding-left: 15px; border-left: 1px solid var(--line-2); }
.selector-item-actions > span { color: var(--muted); font-size: 9px; text-align: center; }
.selector-empty { display: grid; place-items: center; min-height: 250px; padding: 45px 20px; border: 1px dashed #cbd8e7; border-radius: 18px; background: #fff; text-align: center; }
.selector-empty strong { font-size: 16px; }
.selector-empty p { margin: 7px 0 15px; color: var(--muted); font-size: 10px; }
.parameter-guide { padding: 76px 0; background: #fff; }
.parameter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.parameter-grid article { min-height: 200px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbff); }
.parameter-grid article > span { color: var(--hosonic-blue); font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.parameter-grid h3 { margin: 25px 0 9px; font-size: 15px; }
.parameter-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }

.compare-bar { position: fixed; z-index: 90; left: 50%; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(920px, calc(100% - 32px)); padding: 12px 14px; border: 1px solid rgba(205,220,235,.9); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 20px 55px rgba(5,31,65,.18); transform: translate(-50%, 150%); transition: transform .28s cubic-bezier(.2,.8,.2,1); backdrop-filter: blur(16px); }
.compare-bar.open { transform: translate(-50%, 0); }
.compare-bar > div { display: flex; align-items: center; gap: 12px; }
.compare-bar strong { font-size: 11px; }
.compare-bar > div:first-child > span { color: var(--muted); font-size: 9px; }
.compare-thumbs { display: flex; gap: 6px; }
.compare-thumbs span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px 4px 4px; border-radius: 8px; color: #52627a; background: #f2f6fa; font-size: 8px; font-weight: 800; }
.compare-thumbs img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; mix-blend-mode: multiply; }
.selector-cart { position: fixed; z-index: 110; top: 0; right: 0; display: flex; flex-direction: column; width: min(460px, 100%); height: 100%; transform: translateX(102%); background: #f8fafc; box-shadow: -24px 0 70px rgba(4,19,38,.22); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.selector-cart.open { transform: translateX(0); }
.selector-cart-body { flex: 1; overflow-y: auto; padding: 18px; }
.selector-cart-line { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.selector-cart-line + .selector-cart-line { margin-top: 9px; }
.selector-cart-line .cart-thumb { width: 54px; height: 54px; }
.selector-cart-line strong { display: block; font-size: 10px; }
.selector-cart-line span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.selector-cart-line > button { border: 0; color: #98a6b8; background: transparent; font-size: 16px; }
.compare-modal { width: min(1100px, 100%); }
.compare-table-wrap { overflow-x: auto; padding: 0 22px 24px; }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 10px; }
.compare-table th, .compare-table td { padding: 13px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.compare-table thead th { background: #f8fafc; }
.compare-table thead th:first-child { width: 130px; color: var(--muted); font-size: 9px; }
.compare-table thead img { width: 78px; height: 54px; margin-bottom: 7px; border-radius: 9px; object-fit: cover; mix-blend-mode: multiply; }
.compare-table thead strong { display: block; font-size: 13px; }
.compare-table thead span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.compare-table tbody td:first-child { color: #7e8c9f; font-weight: 800; background: #fbfcfe; }
@media (max-width: 1100px) { .selector-layout { grid-template-columns: 270px minmax(0, 1fr); } .selector-item { grid-template-columns: 118px minmax(0,1fr) 130px; gap: 13px; } .selector-param-grid { grid-template-columns: repeat(2,1fr); } .parameter-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 820px) { .selector-hero .container, .selector-result-head { align-items: start; flex-direction: column; } .selector-layout { grid-template-columns: 1fr; } .selector-sidebar { position: static; } .selector-item { grid-template-columns: 105px minmax(0,1fr); } .selector-item-actions { grid-column: 1/-1; flex-direction: row; align-items: center; padding: 12px 0 0; border-top: 1px solid var(--line-2); border-left: 0; } .selector-item-actions .btn { margin-left: auto; } .compare-bar { align-items: start; flex-direction: column; } .compare-bar > div { width: 100%; justify-content: space-between; } }
@media (max-width: 560px) { .selector-hero-stats { grid-template-columns: repeat(2,1fr); width: 100%; } .selector-item { grid-template-columns: 1fr; } .selector-item-visual { min-height: 180px; } .selector-param-grid { grid-template-columns: 1fr 1fr; } .parameter-grid { grid-template-columns: 1fr; } .compare-thumbs { display: none; } .selector-result-actions { width: 100%; flex-wrap: wrap; } }

/* Reference-inspired filter density */
.selector-sidebar { max-height: calc(100vh - 118px); overflow-y: auto; scrollbar-width: thin; }
.selector-sidebar-head { position: sticky; top: 0; z-index: 3; background: #fff; }
.series-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 820px) { .selector-sidebar { max-height: none; } }

/* Custom part configurator */
.custom-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, #061a35, #063d75 58%, #0157a1); }
.custom-hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -210px; top: -360px; border: 1px solid rgba(91,229,239,.24); border-radius: 50%; box-shadow: 0 0 0 74px rgba(91,229,239,.04), 0 0 0 148px rgba(91,229,239,.02); }
.custom-hero .container { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 48px; padding: 56px 0 50px; }
.custom-hero-copy { max-width: 780px; }
.custom-hero .eyebrow { color: #72e7ee; }
.custom-hero .eyebrow::before { background: #72e7ee; }
.custom-hero h1 { margin: 0; font-size: clamp(36px, 4.8vw, 58px); line-height: 1.07; letter-spacing: -.055em; }
.custom-hero p { max-width: 720px; margin: 15px 0 0; color: rgba(235,245,255,.72); font-size: 13px; line-height: 1.8; }
.custom-hero-points { display: flex; gap: 11px; flex: none; }
.custom-hero-points div { display: grid; place-items: center; width: 104px; height: 94px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.055); }
.custom-hero-points strong { color: #72e7ee; font-size: 18px; }
.custom-hero-points span { display: block; color: rgba(235,245,255,.62); font-size: 9px; }
.custom-section { padding: 34px 0 74px; background: #f4f7fb; }
.custom-progress { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.custom-progress > i { height: 1px; background: #e1e8f0; }
.custom-progress-item { display: flex; align-items: center; gap: 9px; color: #9aa8b9; }
.custom-progress-item > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #8997aa; background: #eef2f7; font-size: 10px; font-weight: 900; }
.custom-progress-item strong { display: block; font-size: 10px; }
.custom-progress-item small { display: block; font-size: 8px; }
.custom-progress-item.active { color: var(--hosonic-blue); }
.custom-progress-item.active > span { color: #fff; background: var(--hosonic-blue); box-shadow: 0 7px 16px rgba(1,64,141,.18); }
.custom-progress-item.active small { color: #718097; }
.custom-step { display: none; }
.custom-step.active { display: block; animation: fadeUp .22s ease both; }
.custom-layout, .custom-request-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .72fr); align-items: start; gap: 18px; }
.config-card, .config-summary, .success-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.config-card { padding: 24px; }
.config-card-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.config-card-head > div > span { color: var(--hosonic-blue); font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.config-card-head h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.03em; }
.config-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.config-card-head button { border: 0; color: var(--hosonic-blue); background: transparent; font-size: 10px; font-weight: 850; }
.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.config-field { display: grid; gap: 7px; min-width: 0; }
.config-field.full { grid-column: 1/-1; }
.config-field > span { color: #4e5e74; font-size: 10px; font-weight: 850; }
.config-field input, .config-field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dce5ef; border-radius: 10px; color: var(--ink); outline: none; background: #fbfcfe; font-size: 11px; }
.config-field input[readonly] { color: #6f7f94; background: #f4f7fa; }
.config-field input:focus, .config-field select:focus { border-color: #8fb8df; background: #fff; box-shadow: 0 0 0 4px rgba(1,64,141,.06); }
.config-field small { color: #8a98ab; font-size: 8px; }
.config-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }

.config-summary { position: sticky; top: 96px; overflow: hidden; }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 20px 15px; }
.summary-head > div > span { color: var(--hosonic-blue); font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.summary-head h2 { margin: 4px 0 0; font-size: 18px; }
.part-preview { margin: 0 20px; padding: 17px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #072a54, #015b9f); }
.part-preview small { display: block; color: rgba(232,243,255,.55); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.part-preview strong { display: block; margin-top: 7px; color: #8eeaf1; font-family: Consolas, monospace; font-size: 15px; line-height: 1.45; word-break: break-all; }
.part-preview p { margin: 11px 0 0; color: rgba(232,243,255,.62); font-size: 9px; line-height: 1.65; }
.part-preview.compact strong { font-size: 13px; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 20px 4px; }
.summary-actions .btn { flex: 1; min-width: 105px; }
.summary-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 16px 20px 20px; }
.summary-specs div { min-width: 0; padding: 9px; border-radius: 9px; background: #f6f9fc; }
.summary-specs span { display: block; color: #98a6b8; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.summary-specs strong { display: block; margin-top: 3px; overflow: hidden; color: #40536d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.summary-note { margin: 0 20px 20px; padding: 12px; border-radius: 11px; background: #eef7ff; }
.summary-note strong { display: block; color: var(--hosonic-blue); font-size: 9px; }
.summary-note span { display: block; margin-top: 4px; color: #59718c; font-size: 8px; line-height: 1.6; }
.success-card { max-width: 760px; margin: 20px auto; padding: 54px 34px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #13a36f, #21c79a); font-size: 26px; box-shadow: 0 16px 35px rgba(19,163,111,.22); }
.success-card h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.success-card > p { max-width: 580px; margin: 12px auto 0; color: var(--muted); font-size: 11px; }
.success-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0; }
.success-summary div { padding: 13px; border-radius: 12px; background: #f6f9fc; }
.success-summary span { display: block; color: #98a6b8; font-size: 8px; }
.success-summary strong { display: block; margin-top: 4px; font-size: 10px; word-break: break-all; }
.success-card .config-actions { justify-content: center; }
.custom-guide { padding: 76px 0; background: #fff; }
@media (max-width: 980px) { .custom-layout, .custom-request-layout { grid-template-columns: 1fr; } .config-summary { position: static; } .custom-hero .container { align-items: start; flex-direction: column; } .custom-hero-points { width: 100%; } .custom-hero-points div { width: auto; flex: 1; } }
@media (max-width: 680px) { .config-grid { grid-template-columns: 1fr; } .config-field.full { grid-column: auto; } .custom-progress { grid-template-columns: 1fr; } .custom-progress > i { display: none; } .custom-progress-item small { display: none; } .custom-hero-points { flex-wrap: wrap; } .success-summary { grid-template-columns: 1fr; } .config-card { padding: 18px; } }

/* DigiKey-inspired dense filtering */
.filter-sidebar-tools { position: sticky; top: 77px; z-index: 2; display: grid; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.filter-option-search { position: relative; display: block; }
.filter-option-search svg { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: #8997aa; }
.filter-option-search input { width: 100%; height: 35px; padding: 0 10px 0 32px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #f8fafc; font-size: 9px; }
.filter-option-search input:focus { border-color: #9dbfdc; background: #fff; }
.filter-layout-toggle, .view-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.filter-layout-toggle button, .view-switch button { min-height: 30px; padding: 0 10px; border: 0; border-left: 1px solid var(--line); color: #65758c; background: #fff; font-size: 9px; font-weight: 800; }
.filter-layout-toggle button:first-child, .view-switch button:first-child { border-left: 0; }
.filter-layout-toggle button.active, .view-switch button.active { color: #fff; background: var(--hosonic-blue); }
.filter-block.hidden { display: none; }
.selector-sidebar.scroll-layout .filter-block { max-height: 150px; overflow-y: auto; scrollbar-width: thin; }
.view-switch { align-self: center; }
.selector-table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 24px rgba(25,52,86,.045); }
.selector-table-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f8fafc; font-size: 9px; }
.selector-table-scroll { overflow-x: auto; }
.selector-table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 9px; }
.selector-table th { padding: 11px 12px; color: #7f8da1; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.selector-table td { padding: 12px; border-bottom: 1px solid var(--line-2); color: #4d5e74; vertical-align: middle; }
.selector-table tbody tr:last-child td { border-bottom: 0; }
.selector-table tbody tr:hover { background: #fbfdff; }
.selector-table .table-check { width: 15px; height: 15px; accent-color: var(--hosonic-blue); }
.selector-table-product { display: flex; align-items: center; gap: 9px; min-width: 165px; }
.selector-table-product .product-cell-thumb { width: 38px; height: 34px; }
.selector-table-product strong { display: block; color: #263b58; font-size: 10px; }
.selector-table-product span { display: block; margin-top: 2px; color: #8a98ab; font-size: 8px; }
.selector-table td strong { color: #2d425f; }
@media (max-width: 760px) { .view-switch { order: -1; } .filter-sidebar-tools { top: 0; } }

/* Horizontal filter bar with item-list results */
.selector-layout { display: block; }
.selector-sidebar { position: static; display: flex; align-items: stretch; width: 100%; max-height: none; margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; border-radius: 18px; scrollbar-width: thin; }
.selector-sidebar-head { position: static; flex: 0 0 178px; min-height: 210px; border-right: 1px solid var(--line); border-bottom: 0; }
.filter-sidebar-tools { position: static; flex: 0 0 225px; min-height: 210px; align-content: start; border-right: 1px solid var(--line); border-bottom: 0; }
.filter-layout-toggle { display: none; }
.filter-block { flex: 0 0 224px; max-height: 210px; overflow-y: auto; border-top: 0; border-right: 1px solid var(--line-2); scrollbar-width: thin; }
.filter-block:first-of-type { border-top: 0; }
.selector-results { width: 100%; }
.view-switch { display: none; }
.selector-list { display: grid; grid-template-columns: 1fr; gap: 13px; }
@media (max-width: 820px) { .selector-sidebar { display: flex; max-height: none; } .selector-sidebar-head { flex-basis: 160px; min-height: 190px; } .filter-sidebar-tools { flex-basis: 200px; min-height: 190px; } .filter-block { flex-basis: 210px; max-height: 190px; } }
@media (max-width: 900px) {
  .hero::before { background-image: linear-gradient(90deg, rgba(6, 26, 53, .05), rgba(6, 26, 53, .72)), url("assets/official/hero-main-960.webp"); }
}

/* Four-language switcher (Simplified / Traditional / English / Japanese) */
.login-lang { position: absolute; top: 30px; right: clamp(34px, 7vw, 100px); z-index: 5; }
.lang-select { height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 650; cursor: pointer; }
.lang-select:focus { outline: 2px solid rgba(43,79,224,.2); outline-offset: 2px; }
.lang-switch { gap: 7px; }
.lang-switch a[data-lang] { padding: 2px 1px; }
@media (max-width: 640px) { .login-lang { top: 76px; right: 24px; } }

/* Mobile public navigation drawer */
.mobile-menu-btn { display: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; }
.mobile-menu-btn:hover { color: var(--hosonic-blue); border-color: rgba(43,79,224,.35); }
.mobile-nav-overlay { position: fixed; z-index: 90; inset: 0; background: rgba(24,33,47,.42); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-drawer { position: fixed; z-index: 100; top: 0; right: 0; width: min(360px, 88vw); height: 100%; padding: 24px; overflow-y: auto; background: #fff; box-shadow: -12px 0 40px rgba(24,33,47,.18); transform: translateX(105%); transition: transform .24s ease; }
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav-head strong { color: var(--ink); font-size: 18px; }
.mobile-nav-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--ink); background: #F1F4F8; font-size: 22px; cursor: pointer; }
.mobile-nav-links { display: grid; gap: 4px; }
.mobile-nav-links a { padding: 13px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.mobile-nav-links a.active, .mobile-nav-links a:hover { color: var(--hosonic-blue); background: #EEF2FF; }
.mobile-nav-links .mobile-admin-link { margin-top: 12px; color: #fff; background: var(--hosonic-blue); text-align: center; }
.mobile-nav-lang { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-nav-lang > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.mobile-nav-lang .lang-switch { width: 100%; justify-content: space-between; border: 0; padding: 0; background: transparent; }
body.mobile-nav-open { overflow: hidden; }
@media (max-width: 980px) { .mobile-menu-btn { display: inline-grid; } }
@media (min-width: 981px) { .mobile-nav-drawer, .mobile-nav-overlay { display: none !important; } }

/* Mobile header and drawer refinements */
@media (max-width: 540px) {
  .site-header .lang-switch { display: none; }
  .site-header .container { gap: 8px; }
  .brand-logo { width: 118px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 380px) {
  .brand-logo { width: 108px; }
  .mobile-menu-btn { width: 40px; height: 40px; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
}
.mobile-nav-overlay { backdrop-filter: blur(3px); }
.mobile-nav-drawer { border-left: 1px solid rgba(24,33,47,.08); border-radius: 18px 0 0 18px; padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mobile-nav-head { position: sticky; top: 0; z-index: 1; padding-bottom: 14px; margin-bottom: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-nav-links a { position: relative; display: flex; align-items: center; min-height: 46px; }
.mobile-nav-links a.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--hosonic-blue); }
.mobile-nav-links a.active { padding-left: 16px; }
.mobile-nav-links .mobile-admin-link { min-height: 48px; justify-content: center; box-shadow: 0 6px 16px rgba(43,79,224,.22); }
.mobile-nav-lang .lang-switch { display: flex; align-items: center; justify-content: space-between; width: 100%; height: auto; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #F5F7F8; }
.mobile-nav-lang .lang-switch a { flex: 1; text-align: center; padding: 7px 4px; border-radius: 6px; }
.mobile-nav-lang .lang-switch a.active { background: #fff; color: var(--hosonic-blue); box-shadow: 0 1px 3px rgba(24,33,47,.1); }
.mobile-nav-close { transition: background .18s ease, transform .18s ease; }
.mobile-nav-close:hover { background: #e8edf3; transform: rotate(90deg); }

/* Responsive overflow fixes */
@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-panel { min-height: 100vh; }
}
@media (max-width: 820px) {
  .selector-section { overflow-x: hidden; }
  .selector-layout { width: calc(100% - 32px); max-width: calc(100vw - 32px); min-width: 0; margin-inline: auto; }
  .selector-sidebar { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; }
  .selector-sidebar > * { flex-shrink: 0; }
  .selector-results { min-width: 0; }
}
@media (max-width: 420px) {
  .selector-layout { width: calc(100% - 24px); max-width: calc(100vw - 24px); }
}

/* Ensure horizontal filter strip never expands the document */
@media (max-width: 820px) {
  .selector-layout { overflow: hidden; }
  .selector-sidebar { contain: paint; }
}

.mobile-menu-btn:focus-visible, .mobile-nav-close:focus-visible, .mobile-nav-links a:focus-visible, .mobile-nav-lang .lang-switch a:focus-visible, .lang-select:focus-visible { outline: 2px solid var(--hosonic-blue); outline-offset: 2px; }
.mobile-nav-drawer.open { box-shadow: -18px 0 50px rgba(24,33,47,.22); }

@media (max-width: 540px) {
  .footer-brand p { max-width: 100%; }
}
