/* ==========================================================================
   操盘手的天堂 (benn888.com) — 抖音暗夜科技感设计系统
   ========================================================================== */

:root {
  --bg-obsidian: #06070b;
  --bg-panel: rgba(13, 16, 26, 0.82);
  --bg-card: rgba(17, 21, 34, 0.86);
  --bg-card-hover: rgba(24, 30, 48, 0.96);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --dy-cyan: #25f4ee;
  --dy-rose: #fe2c55;
  --dy-purple: #a855f7;
  --dy-amber: #f59e0b;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --max-width: 1280px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

/* ---------- Cyber Dark Tech Canvas Background ---------- */
.cyber-bg {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 16% 10%, rgba(37, 244, 238, 0.14), transparent 40%),
    radial-gradient(circle at 84% 14%, rgba(254, 44, 85, 0.15), transparent 42%),
    radial-gradient(circle at 50% 96%, rgba(168, 85, 247, 0.10), transparent 44%),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 38px 38px, 38px 38px;
  overflow-x: hidden;
}

/* ---------- Single-Screen Cover Shell ---------- */
.cover-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.subpage-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- S01 / L01 Floating Top Header ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: rgba(11, 14, 23, 0.76);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0d16;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: -2px 0 14px rgba(37, 244, 238, 0.24), 2px 0 14px rgba(254, 44, 85, 0.24);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-shadow: -1.4px 0 0 rgba(37, 244, 238, 0.72), 1.4px 0 0 rgba(254, 44, 85, 0.72);
}

.brand-domain-badge {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(37, 244, 238, 0.10);
  color: var(--dy-cyan);
  border: 1px solid rgba(37, 244, 238, 0.28);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.kbd-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary-neon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(95deg, #fe2c55 0%, #ff4778 100%);
  border: 1px solid rgba(255, 110, 145, 0.45);
  box-shadow: 0 0 22px rgba(254, 44, 85, 0.34);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 26px rgba(254, 44, 85, 0.52);
}

/* ---------- S02 Brand Showcase Hero ---------- */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 6px;
  gap: 18px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.7px;
  color: #67e8f9;
  background: rgba(37, 244, 238, 0.08);
  border: 1px solid rgba(37, 244, 238, 0.28);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dy-cyan);
  box-shadow: 0 0 8px var(--dy-cyan);
}

.hero-headline {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.12;
  color: #ffffff;
}

.dy-gradient-text {
  background: linear-gradient(95deg, #25f4ee 0%, #ffffff 48%, #fe2c55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slogan {
  margin: 0;
  max-width: 720px;
  font-size: clamp(14px, 1.55vw, 18px);
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.65;
}

.hero-slogan strong {
  color: #ffffff;
  font-weight: 700;
}

/* Command Search Box */
.hero-search-wrap {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: rgba(11, 14, 23, 0.90);
  border: 1px solid rgba(37, 244, 238, 0.30);
  box-shadow: 0 0 32px rgba(37, 244, 238, 0.09);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
  border-color: rgba(37, 244, 238, 0.72);
  box-shadow: 0 0 36px rgba(37, 244, 238, 0.18);
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
  color: #ffffff;
  padding: 8px 4px;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.btn-search-submit {
  padding: 9px 18px;
  border-radius: 10px;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  color: #06070b;
  background: linear-gradient(92deg, #25f4ee 0%, #fe2c55 100%);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.btn-search-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.quick-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.quick-tag-btn {
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-tag-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(37, 244, 238, 0.35);
}

.hero-beam {
  width: 100%;
  max-width: 720px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 244, 238, 0.58) 34%,
    rgba(254, 44, 85, 0.58) 66%,
    transparent 100%
  );
  opacity: 0.75;
}

/* ---------- S03 Four Major Ecosystem Portal Cards ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 268px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 24, 37, 0.90) 0%, rgba(10, 12, 20, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
}

.portal-card[data-accent="qianchuan"]:hover {
  border-color: rgba(254, 44, 85, 0.78);
  box-shadow: 0 14px 36px -10px rgba(254, 44, 85, 0.36), inset 0 1px 0 rgba(254, 44, 85, 0.40);
}

.portal-card[data-accent="material"]:hover {
  border-color: rgba(37, 244, 238, 0.78);
  box-shadow: 0 14px 36px -10px rgba(37, 244, 238, 0.34), inset 0 1px 0 rgba(37, 244, 238, 0.40);
}

.portal-card[data-accent="software"]:hover {
  border-color: rgba(168, 85, 247, 0.78);
  box-shadow: 0 14px 36px -10px rgba(168, 85, 247, 0.36), inset 0 1px 0 rgba(168, 85, 247, 0.40);
}

.portal-card[data-accent="plugin"]:hover {
  border-color: rgba(245, 158, 11, 0.78);
  box-shadow: 0 14px 36px -10px rgba(245, 158, 11, 0.34), inset 0 1px 0 rgba(245, 158, 11, 0.40);
}

.portal-glow {
  position: absolute;
  top: -46px;
  right: -46px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.portal-card:hover .portal-glow {
  opacity: 0.42;
}

.portal-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.portal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.portal-tagline {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-chip {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 7px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-foot {
  position: relative;
  z-index: 2;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.portal-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text-secondary);
}

.portal-cta {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.18s ease;
}

.portal-card:hover .portal-cta {
  transform: translateX(4px);
}

/* ---------- S04 Footer Rail ---------- */
.footer-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-lg);
  background: rgba(11, 14, 23, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  color: #e2e8f0;
  font-weight: 700;
}

.footer-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-btn:hover {
  color: #ffffff;
}

/* ---------- Level-2 Subpage Components ---------- */
.sub-nav-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.sub-nav-tab {
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.sub-nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sub-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}

.sub-banner-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
}

.sub-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-banner-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sub-banner-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
}

.sub-banner-pill {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 3px 10px;
  border-radius: 999px;
}

.sub-banner-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: #cbd5e1;
}

.sub-search-box {
  width: 280px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(6, 7, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.sub-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13px;
  color: #ffffff;
}

.sub-search-input::placeholder {
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: rgba(14, 18, 29, 0.78);
  border: 1px solid var(--border-subtle);
}

.sub-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-tag-btn {
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sub-tag-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.sort-select {
  background: #0d1220;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #e2e8f0;
  outline: none;
  cursor: pointer;
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.65);
}

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

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

.tool-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.tool-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.tool-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tool-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.star-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover {
  transform: scale(1.15);
  color: #f59e0b;
}

.star-btn.is-starred {
  color: #f59e0b;
}

.tool-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.tool-foot {
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.tool-go-link {
  font-weight: 700;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tool-card:hover .tool-go-link {
  color: #ffffff;
}

.cross-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(12, 15, 24, 0.78);
  border: 1px solid var(--border-subtle);
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cross-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.16s ease;
}

.cross-link-btn:hover {
  transform: translateY(-2px);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 54px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- Modals (⌘K Search & Submit/Contact) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 84px 16px 24px;
  background: rgba(2, 4, 10, 0.76);
  backdrop-filter: blur(8px);
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  border-radius: 18px;
  overflow: hidden;
  background: #0c101b;
  border: 1px solid rgba(37, 244, 238, 0.34);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.modal-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 15px;
  color: #ffffff;
}

.modal-search-input::placeholder {
  color: var(--text-muted);
}

.modal-close-btn {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background-color 0.14s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  color: #cbd5e1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.form-input:focus {
  border-color: var(--dy-cyan);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1120px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .telemetry-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .cover-shell,
  .subpage-shell {
    padding: 14px 14px 28px;
    gap: 16px;
  }
  .top-bar {
    padding: 10px 12px;
  }
  .brand-domain-badge,
  .kbd-chip {
    display: none;
  }
  .portal-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .portal-card {
    min-height: 220px;
  }
  .sub-banner {
    padding: 18px;
  }
  .sub-search-box {
    width: 100%;
  }
}
