/* Corner brackets wrapper */
.hud-panel-wrap { position: relative; padding: 2px; }
.hud-panel-wrap::before,
.hud-panel-wrap::after,
.hud-panel-wrap > .hud-bracket-bl,
.hud-panel-wrap > .hud-bracket-br {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--hud-primary);
  border-style: solid;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}
.hud-panel-wrap::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-panel-wrap::after { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hud-panel-wrap > .hud-bracket-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hud-panel-wrap > .hud-bracket-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hud-panel {
  background: var(--hud-panel);
  border: 1px solid var(--hud-panel-border);
  border-radius: var(--hud-radius);
  padding: 24px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hud-panel:hover {
  border-color: var(--hud-line-hot);
  box-shadow: 0 0 24px rgba(230, 57, 57, 0.08);
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--hud-radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--hud-ease), box-shadow 0.25s, background 0.2s;
}
.hud-btn:hover { text-decoration: none; transform: translateY(-1px); }

.hud-btn-primary {
  background: var(--hud-primary);
  color: #fff;
  box-shadow: 0 6px 24px var(--hud-primary-glow);
}
.hud-btn-primary:hover { box-shadow: 0 10px 32px rgba(230, 57, 57, 0.55); }

.hud-btn-outline {
  background: transparent;
  color: var(--hud-text);
  box-shadow: inset 0 0 0 1px var(--hud-panel-border);
}
.hud-btn-outline:hover {
  box-shadow: inset 0 0 0 1px var(--hud-line-hot);
  color: #fff;
}

.hud-btn-ghost {
  background: transparent;
  color: var(--hud-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px var(--hud-panel-border);
}

.hud-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hud-panel-border);
  border: 1px solid var(--hud-panel-border);
  border-radius: var(--hud-radius);
  overflow: hidden;
}

.hud-stat-cell {
  background: var(--hud-panel);
  padding: 24px 20px;
  text-align: center;
}
.hud-stat-cell .mono-label { display: block; margin-bottom: 8px; }
.hud-stat-cell .mono-label::before { content: ''; }
.hud-stat-cell b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hud-app-frame {
  position: relative;
  border: 1px solid var(--hud-panel-border);
  border-radius: var(--hud-radius);
  background: var(--hud-bg-elevated);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(230,57,57,0.1);
}
.hud-app-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--hud-primary-glow), transparent 50%);
  opacity: 0.15;
  pointer-events: none;
}

.hud-app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0d0d10;
  border-bottom: 1px solid var(--hud-panel-border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hud-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hud-app-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  background: #0c0c0f;
  border-bottom: 1px solid var(--hud-panel-border);
}
.hud-app-tab {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--hud-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.hud-app-tab:hover { color: var(--hud-text); background: rgba(255,255,255,0.03); }
.hud-app-tab[aria-selected="true"] {
  color: var(--hud-primary);
  border-color: var(--hud-line-hot);
  background: var(--hud-primary-soft);
}

.hud-app-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0f0f0f;
}
.hud-app-screen .ui-preview-svg,
.hud-app-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s var(--hud-ease);
  pointer-events: none;
}
.hud-app-screen img {
  object-fit: cover;
  object-position: left top;
}
.hud-app-screen .ui-preview-svg.active,
.hud-app-screen img.active { opacity: 1; z-index: 1; }

.hud-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
}
.hud-tag-err { background: rgba(230,57,57,0.15); color: #ff8a8a; }
.hud-tag-warn { background: rgba(251,191,36,0.1); color: #fde68a; }
.hud-tag-info { background: rgba(96,165,250,0.1); color: #93c5fd; }
.hud-tag-pro { background: rgba(230,57,57,0.2); color: #ffb4b4; }

.hud-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.hud-feature-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hud-feature-card.wide { grid-column: span 6; }
.hud-feature-card .hud-feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--hud-primary-soft);
  border: 1px solid var(--hud-line-hot);
  border-radius: var(--hud-radius);
}
.hud-feature-card .hud-feature-icon img { width: 22px; height: 22px; }
.hud-feature-card h3 { font-size: 1.05rem; }
.hud-feature-card p { font-size: 14px; color: var(--hud-muted); line-height: 1.6; }
.hud-feature-card .hud-feature-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--hud-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
}

.hud-review-card { position: relative; padding-left: 16px; }
.hud-review-card::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -6px;
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--hud-primary);
  opacity: 0.3;
  line-height: 1;
}
.hud-stars { color: var(--hud-amber); letter-spacing: 3px; font-size: 14px; }
.hud-review-meta { font-size: 12px; color: var(--hud-muted-2); margin-top: 12px; font-family: var(--font-mono); }

.hud-warn-box {
  border-radius: var(--hud-radius);
  padding: 16px 20px;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.2);
  color: #fde68a;
  font-size: 14px;
}

.hud-cta {
  position: relative;
  text-align: center;
  padding: 48px 32px;
  overflow: hidden;
}
.hud-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--hud-primary-soft), transparent 65%);
  pointer-events: none;
}
.hud-cta h2 { margin-bottom: 10px; position: relative; }
.hud-cta p { color: var(--hud-muted); margin-bottom: 20px; position: relative; }
.hud-cta .hud-btn { position: relative; }

.hud-steps { list-style: none; counter-reset: step; }
.hud-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 48px;
  color: var(--hud-muted);
  font-size: 15px;
}
.hud-steps li::before {
  content: '[' counter(step, decimal-leading-zero) ']';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--hud-primary);
}

.hud-faq-list { display: flex; flex-direction: column; gap: 8px; }
.hud-faq-item {
  border-radius: var(--hud-radius);
  background: var(--hud-panel);
  border: 1px solid var(--hud-panel-border);
  overflow: hidden;
  transition: border-color 0.3s;
}
.hud-faq-item.open { border-color: var(--hud-line-hot); }
.hud-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--hud-text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.hud-faq-chevron {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--hud-ease);
  font-size: 16px;
  color: var(--hud-muted);
}
.hud-faq-item.open .hud-faq-chevron {
  transform: rotate(180deg);
  background: var(--hud-primary-soft);
  color: var(--hud-primary);
}
.hud-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--hud-ease);
  padding: 0 20px;
  color: var(--hud-muted);
  font-size: 14px;
  line-height: 1.75;
}
.hud-faq-item.open .hud-faq-a { max-height: 600px; padding: 0 20px 18px; }

.hud-faq-search {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: var(--hud-panel);
  border: 1px solid var(--hud-panel-border);
  border-radius: var(--hud-radius);
  color: var(--hud-text);
  font-family: var(--font-mono);
  font-size: 13px;
}
.hud-faq-search:focus {
  outline: none;
  border-color: var(--hud-primary);
  box-shadow: 0 0 0 3px var(--hud-primary-soft);
}
.hud-faq-search::placeholder { color: var(--hud-muted-2); }

.hud-pager { display: flex; gap: 10px; margin-top: 24px; }
.hud-pager button {
  padding: 10px 18px;
  border-radius: var(--hud-radius);
  border: 1px solid var(--hud-panel-border);
  background: var(--hud-panel);
  color: var(--hud-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.hud-pager button:hover:not(:disabled) {
  border-color: var(--hud-line-hot);
  color: #fff;
}
.hud-pager button:disabled { opacity: 0.3; cursor: default; }

.hud-prose { color: var(--hud-muted); line-height: 1.8; font-size: 15px; }
.hud-prose h2, .hud-prose h3 { color: var(--hud-text); margin: 24px 0 10px; }
.hud-prose ul { margin: 12px 0 12px 20px; }
.hud-prose li { margin-bottom: 6px; }

.hud-plan-card h3 { margin-bottom: 8px; }
.hud-plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 12px 0;
}

.hud-timeline-item { margin-bottom: 16px; }
.hud-timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.hud-timeline-item .hud-timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hud-muted-2);
}

.hud-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hud-filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--hud-panel-border);
  border-radius: var(--hud-radius);
  background: transparent;
  color: var(--hud-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.hud-filter-btn.active,
.hud-filter-btn:hover {
  border-color: var(--hud-line-hot);
  color: var(--hud-primary);
  background: var(--hud-primary-soft);
}

.hud-feature-card[data-hidden="true"] { display: none; }

/* Legacy FAQ class aliases (support.html) */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border-radius: var(--hud-radius); background: var(--hud-panel); border: 1px solid var(--hud-panel-border); overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: var(--hud-line-hot); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: none; border: none; color: var(--hud-text); font-family: var(--font-display); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.faq-chevron { flex-shrink: 0; width: 26px; height: 26px; border-radius: 4px; background: rgba(255,255,255,0.04); display: grid; place-items: center; transition: transform 0.35s var(--hud-ease); font-size: 16px; color: var(--hud-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--hud-primary-soft); color: var(--hud-primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--hud-ease); padding: 0 20px; color: var(--hud-muted); font-size: 14px; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 20px 18px; }
.faq-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.faq-tag-err { background: rgba(230,57,57,0.15); color: #ff8a8a; }
.faq-tag-warn { background: rgba(251,191,36,0.1); color: #fde68a; }
.faq-tag-info { background: rgba(96,165,250,0.1); color: #93c5fd; }
.panel { background: var(--hud-panel); border: 1px solid var(--hud-panel-border); border-radius: var(--hud-radius); padding: 24px 28px; }

@media (max-width: 960px) {
  .hud-feature-grid .hud-feature-card,
  .hud-feature-grid .hud-feature-card.wide { grid-column: span 12; }
  .hud-stat-strip { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-app-screen img { transition: none; }
}