/* 机房购 · iOS 2026 Liquid Glass storefront shell */

:root {
  --bg: #f3f3f6;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.06);
  --line-soft: rgba(0, 0, 0, 0.04);
  --accent: #1d1d1f;
  --ok: #34c759;
  --ok-ink: #1b7a3a;
  --warn: #c2410c;
  --danger: #ff3b30;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 10px 24px -4px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.04), 0 20px 40px -8px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
  --dock-h: 88px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.015em;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 24px);
}
a { color: var(--ink); text-decoration: none; }
button, select, input { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.heading-tight { letter-spacing: -0.038em; }
.font-mono-spec { font-family: var(--mono); }

/* Ambient mesh — soft sky/slate only, no neon purple glow */
.sf-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sf-ambient::before,
.sf-ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.sf-ambient::before {
  top: -10%;
  left: 18%;
  width: 480px;
  height: 480px;
  background: rgba(186, 198, 220, 0.28);
}
.sf-ambient::after {
  top: 42%;
  right: 10%;
  width: 380px;
  height: 380px;
  background: rgba(186, 220, 235, 0.26);
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 12px 32px -4px rgba(0, 0, 0, 0.04);
}

.liquid-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.liquid-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-float);
}

@keyframes optical-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}
.optical-pulse {
  animation: optical-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Top Dynamic Island */
.sf-island-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  pointer-events: none;
  gap: 8px;
}
.sf-island {
  pointer-events: auto;
  max-width: 920px;
  width: 100%;
  border-radius: 999px;
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sf-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  letter-spacing: 0;
}
.sf-brand-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sf-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  margin-left: 2px;
}
.sf-navs {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.sf-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.sf-nav-link:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.sf-nav-link.on {
  color: var(--ink);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.05);
}
.sf-caret {
  opacity: 0.55;
  transition: transform 0.18s var(--ease);
}
.sf-dropdown {
  position: relative;
}
.sf-dropdown.open > .sf-dropdown-trigger .sf-caret,
.sf-dropdown.open > .auth-menu-trigger .sf-caret {
  transform: rotate(180deg);
}
.sf-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 168px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s var(--ease), visibility 0.16s;
  z-index: 60;
}
.sf-dropdown.open > .sf-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.sf-dropdown-panel a,
.sf-dropdown-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 11px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}
.sf-dropdown-panel a:hover,
.sf-dropdown-panel button:hover {
  background: rgba(0, 0, 0, 0.05);
}
.sf-dropdown-panel a.on {
  font-weight: 650;
  background: rgba(0, 0, 0, 0.06);
}
.sf-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sf-pill-link {
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
}
.sf-pill-link:hover,
.sf-pill-link.on { color: var(--ink); }
.sf-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d1d1f;
  color: #fff !important;
  font-size: 12px;
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}
.sf-cart-btn:hover { background: #2c2c2e; }
.sf-cart-btn.on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.sf-cart-ico { flex-shrink: 0; opacity: 0.92; }
.sf-cart-btn .cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1;
}
.sf-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.sf-menu-btn:hover { background: rgba(0, 0, 0, 0.08); }
.sf-menu-bars,
.sf-menu-bars::before,
.sf-menu-bars::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}
.sf-menu-bars::before,
.sf-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.sf-menu-bars::before { top: -5px; }
.sf-menu-bars::after { top: 5px; }
.sf-menu-btn.is-open .sf-menu-bars { background: transparent; }
.sf-menu-btn.is-open .sf-menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.sf-menu-btn.is-open .sf-menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile slide-down panel */
.sf-mobile-panel {
  pointer-events: auto;
  width: min(920px, 100%);
  border-radius: 22px;
  padding: 10px;
  z-index: 1;
  animation: sf-panel-in 0.22s var(--ease);
}
.sf-mobile-panel[hidden] { display: none !important; }
@keyframes sf-panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sf-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-mobile-nav > a,
.sf-mobile-group > a,
.sf-mobile-group > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.sf-mobile-nav > a:hover,
.sf-mobile-group > a:hover,
.sf-mobile-group > button:hover {
  background: rgba(0, 0, 0, 0.04);
}
.sf-mobile-nav > a.on,
.sf-mobile-group > a.on {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 650;
}
.sf-mobile-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.sf-mobile-label {
  margin: 0;
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-mobile-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px 10px;
}
.sf-mobile-user strong {
  font-size: 14px;
  font-weight: 650;
}
.sf-mobile-user span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.sf-mobile-user span b,
.auth-menu-head span b {
  font-weight: 650;
  color: var(--ink);
  font-size: inherit;
}
.sf-mobile-cta {
  background: #1d1d1f !important;
  color: #fff !important;
  justify-content: center !important;
  margin-top: 4px;
}
.sf-mobile-logout,
.auth-menu-logout {
  color: #c41e1a !important;
}
body.sf-nav-lock { overflow: hidden; }

@media (min-width: 860px) {
  .sf-navs { display: flex; }
  .sf-menu-btn { display: none; }
  .sf-mobile-panel { display: none !important; }
  .sf-island { padding: 8px 14px 8px 18px; }
}
@media (max-width: 859px) {
  .sf-cart-label { display: none; }
  .sf-cart-btn { padding: 8px 10px; }
  .sf-brand-name { display: none; }
  .auth-slot { display: none; }
}

/* Bottom dock */
.sf-dock-wrap {
  position: fixed;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.sf-dock {
  pointer-events: auto;
  max-width: 480px;
  width: 100%;
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.sf-dock-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sf-dock-avatars {
  display: flex;
  flex-shrink: 0;
}
.sf-dock-avatars span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  margin-left: -6px;
}
.sf-dock-avatars span:first-child { margin-left: 0; }
.sf-dock-avatars span.alt { background: #34c759; }
.sf-dock-copy { min-width: 0; }
.sf-dock-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-dock-copy span {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono);
}
.sf-dock-cta {
  flex-shrink: 0;
  background: #1d1d1f;
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}
.sf-dock-cta:hover { background: #2c2c2e; color: #fff; }

/* Content shell */
.shell {
  position: relative;
  z-index: 10;
  max-width: 920px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 28px) 24px 32px;
}
.shell.shell-wide { max-width: 1120px; }

.page-hero {
  text-align: center;
  margin-bottom: 36px;
}
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
}
.page-hero .eyebrow .mono {
  color: #1b7a3a;
  font-family: var(--mono);
  font-weight: 600;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: var(--ink);
}
.page-hero p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 400;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.page-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--mono);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
}
.sync-pill b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}

.block { margin: 0 0 28px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.block-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.block-head span,
#region-sub, #zone-sub, #match-sub, #filter-sub, #pv-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--mono);
}

/* Command / search island */
.command-island {
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 14px;
}
.command-island .ci-icon {
  padding-left: 10px;
  color: #a1a1a6;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.command-island input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.84rem;
  color: var(--ink);
  padding: 10px 0;
}
.command-island input::placeholder { color: #a1a1a6; }
.command-island .ci-go {
  flex-shrink: 0;
  background: #1d1d1f;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.command-island .ci-go .kbd {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.55;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 11px;
  color: #a1a1a6;
}
.chip-row button,
.quick-chip {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.15s ease, background 0.15s ease;
}
.chip-row button:hover,
.quick-chip:hover,
.quick-chip.on {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

/* Grouped liquid list */
.liquid-group {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 500;
  padding: 10px 16px;
  font-size: 0.82rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-soft {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-soft:hover { background: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 4px 8px;
  font-size: 0.75rem;
}
.btn-ghost:hover { color: var(--ink); }
.btn-buy {
  background: #1d1d1f;
  color: #fff;
}
.btn-buy:hover { background: #2c2c2e; }
.btn-buy:disabled,
.btn-soft:disabled { opacity: 0.4; cursor: not-allowed; }

.loading, .empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
}
.muted { color: var(--muted); }

/* Skeleton */
.sk {
  display: block;
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.08) 37%, rgba(0,0,0,0.05) 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.25s ease infinite;
  border-radius: 8px;
}
.sk-title { height: 22px; width: 48%; }
.sk-line { height: 12px; width: 72%; margin-top: 8px; }
.sk-stat { height: 48px; width: 100%; border-radius: 12px; }
.sk-row {
  height: 72px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 8px;
}
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.skeleton-list { padding: 4px; }

/* Toast */
.toast {
  position: fixed;
  right: 16px;
  bottom: calc(var(--dock-h) + 12px);
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-float);
  display: none;
  font-weight: 500;
  font-size: 0.84rem;
}
.toast.show { display: block; }
.toast.ok { border-color: rgba(52, 199, 89, 0.35); }
.toast.err { border-color: rgba(255, 59, 48, 0.35); color: #c41e1a; }

/* Auth */
.auth-slot { display: inline-flex; align-items: center; gap: 6px; }
.auth-slot .auth-user {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.auth-slot .ghost,
.auth-slot .auth-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.auth-slot .ghost:hover,
.auth-slot .auth-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}
.auth-slot .btn-soft-mini {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 550;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.auth-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.auth-menu-trigger:hover {
  background: rgba(0, 0, 0, 0.07);
}
.auth-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.auth-menu-name {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-menu .sf-dropdown-panel {
  left: auto;
  right: 0;
  transform: translateY(-4px);
  min-width: 196px;
}
.auth-menu.open > .sf-dropdown-panel {
  transform: translateY(0);
}
.auth-menu-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.auth-menu-head strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.auth-menu-head span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(29, 29, 31, 0.28);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.auth-modal.show { display: flex; }
.auth-card {
  position: relative;
  width: min(400px, 100%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.auth-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tabs button {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 600;
}
.auth-tabs button.on {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.auth-form input {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.85);
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--ink);
}
.auth-form input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.auth-form .btn {
  width: 100%;
  margin-top: 4px;
  background: #1d1d1f;
  color: #fff;
}
.auth-tip {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 12px 0 0;
}
.auth-tip a,
.auth-switch a,
.auth-page-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.auth-tip a:hover,
.auth-switch a:hover,
.auth-page-links a:hover {
  opacity: 0.7;
}
.auth-modal-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.18);
  color: #c41e1a;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}
.auth-input-wrap {
  position: relative;
  display: block;
}
.auth-input-wrap input {
  width: 100%;
  padding-right: 52px;
  box-sizing: border-box;
}
.auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}
.auth-eye:hover { color: var(--ink); }
.auth-optional {
  margin-left: 6px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.8;
}
.auth-page-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.auth-form .auth-submit.is-busy,
.auth-form .btn.is-busy {
  opacity: 0.72;
  cursor: wait;
}

/* Auth pages (login / register) */
body.sf-auth {
  min-height: 100vh;
}
body.sf-auth .sf-dock-wrap { display: none; }
.sf-island-auth {
  max-width: 720px;
}
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding-top: 24px;
  padding-bottom: 48px;
}
.auth-stage {
  width: min(420px, 100%);
  padding: 28px 26px 22px;
  border-radius: 24px;
}
.auth-stage.liquid-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.82);
}
.auth-stage-head {
  margin-bottom: 18px;
}
.auth-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-stage-head h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.auth-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.auth-form-page .btn,
.auth-form-page .auth-submit {
  width: 100%;
  margin-top: 6px;
}
.auth-switch {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.auth-page .auth-form input[readonly] {
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
}
.auth-captcha {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.auth-captcha-field {
  flex: 1;
  margin-bottom: 0 !important;
}
.auth-captcha-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
}
.auth-captcha-side img {
  display: block;
  width: 140px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f4f5f7;
  cursor: pointer;
  object-fit: cover;
}
.auth-captcha-refresh {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.auth-captcha-refresh:hover { color: var(--ink); }
.auth-captcha-refresh:disabled { opacity: 0.5; cursor: wait; }

/* Account center */
.account-shell {
  padding-bottom: calc(var(--dock-h) + 40px);
}
.account-head {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}
.account-head-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 16px;
  min-width: 96px;
}
.account-head-meta strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.account-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  position: sticky;
  top: calc(var(--island-h, 64px) + 18px);
}
.account-nav-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.account-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}
.account-nav-item.on {
  background: #1d1d1f;
  color: #fff;
}
.account-panels {
  min-width: 0;
  position: relative;
}
.account-panel {
  padding: 22px 22px 20px;
  border-radius: 22px;
}
.account-panel.liquid-card:hover {
  transform: none;
}
.account-panel.on {
  animation: account-panel-in 0.22s var(--ease);
}
@keyframes account-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.2s;
  }
}
.account-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}
.account-meta-grid > div {
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-meta-grid span { font-size: 0.72rem; }
.account-meta-grid strong {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
  word-break: break-all;
}
.account-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.account-stat {
  padding: 14px 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-stat strong {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.account-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
}
.account-row.liquid-glass:hover {
  background: rgba(255, 255, 255, 0.9);
}
.account-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.account-row-main strong {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}
.account-row-main .muted {
  font-size: 0.75rem;
  line-height: 1.35;
}
.account-row-side {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.account-row-side.ok { color: #1a7f37; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  white-space: nowrap;
}
.status-pill.status-pending {
  background: rgba(255, 149, 0, 0.12);
  color: #b15c00;
}
.status-pill.status-approved {
  background: rgba(52, 199, 89, 0.14);
  color: #1a7f37;
}
.status-pill.status-rejected {
  background: rgba(255, 59, 48, 0.1);
  color: #c41e1a;
}
.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}
.empty-state p { margin: 0 0 8px; }
.empty-state .btn-soft-mini {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
}

@media (max-width: 860px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    gap: 6px;
    padding: 6px;
  }
  .account-nav-item {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .account-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .sf-dock { padding: 10px 14px; gap: 10px; }
  .sf-dock-copy strong { font-size: 11px; }
  .auth-page { min-height: calc(100vh - 100px); padding-top: 12px; }
  .auth-stage { padding: 22px 18px 18px; }
  .account-stat-row { grid-template-columns: 1fr; }
  .account-row { flex-direction: column; align-items: flex-start; }
}
