/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-sm { padding: 7px 13px; font-size: 12.5px; }

.btn-primary {
  background: var(--rose);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--rose-hover);
}

.btn-secondary {
  background: #15131b;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: #1c1a24;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.26); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-amber { background: var(--rose-dim); color: #fda4af; border: 1px solid var(--rose-border); }
.badge-rad { background: rgba(74, 222, 128, 0.12); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.28); }
.badge-info { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.28); }
.badge-danger { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.32); }
.badge-muted { background: rgba(255, 255, 255, 0.06); color: var(--text-soft); border: 1px solid rgba(255, 255, 255, 0.10); }

/* Catalog Pills & Banner (Exact HRIZ-RP) */
.catalog-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.catalog-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.catalog-pill:hover { border-color: var(--rose-border); }

.catalog-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.catalog-foot-notes {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 4px 0;
}

/* HRIZ 3-Step Cards */
.hriz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.hriz-card:hover {
  border-color: var(--rose-border);
  background: var(--bg-card-hover);
}

.hriz-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--rose-dim);
  border: 1px solid var(--rose-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.hriz-icon-box img { width: 18px; height: 18px; }

/* Announcements subtle bar */
.ann-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #141118;
  border: 1px solid var(--rose-border);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 12px;
}

/* Simple Clean Screenshot Cards (User 7-12) */
.shot-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 9;
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shot-card:hover {
  border-color: var(--rose-border);
  transform: translateY(-2px);
}
.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 14, 0.90));
  font-size: 12.5px;
  font-weight: 600;
  color: #f4f4f6;
}

/* News Cards (Exact HRIZ-RP) */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.news-card:hover { border-color: var(--rose-border); transform: translateY(-2px); }
.news-cover { position: relative; aspect-ratio: 16 / 9; background: #0e0d12; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover-badges { position: absolute; bottom: 10px; left: 10px; display: flex; gap: 6px; }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.news-title { margin: 0 0 8px; font-size: 16.5px; line-height: 1.35; color: #fff; font-weight: 700; }
.news-summary { margin: 0 0 16px; color: var(--text-soft); font-size: 13px; flex: 1; }
.news-meta { font-size: 12.5px; font-weight: 600; color: #e4e4e7; }

/* Article Detail */
.article-wrap { max-width: 820px; margin: 40px auto 64px; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 24px; }
.article-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 26px 30px; }
.article-content h2, .article-content h3 { color: #fff; margin-top: 22px; margin-bottom: 10px; }
.article-content p { color: #d4d4d8; margin: 0 0 14px; }
.article-content ul, .article-content ol { color: #d4d4d8; padding-left: 22px; margin: 0 0 16px; }
.article-content li { margin-bottom: 6px; }
.article-content code { font-family: var(--font-mono); background: var(--rose-dim); color: #fda4af; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* Forms & Modals */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.input, .select, .textarea {
  width: 100%;
  background: #0b0a0e;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--rose); }
.textarea { resize: vertical; min-height: 110px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(7, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 420px;
  background: #121016;
  border: 1px solid var(--rose-border);
  border-radius: 14px;
  padding: 24px;
}
.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; background: #0b0a0e; padding: 4px; border-radius: 8px; }
.modal-tab { background: transparent; border: none; color: var(--text-soft); padding: 8px; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 13px; }
.modal-tab.active { background: var(--rose); color: #fff; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 4, 8, 0.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex !important; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 10px; border: 1px solid var(--border); }

.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 220; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { background: #1a1722; border: 1px solid var(--border); border-left: 3px solid var(--rose); color: var(--text); padding: 12px 16px; border-radius: 8px; font-size: 13px; }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-success { border-left-color: var(--green); }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-soft); font-size: 12.5px; cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--rose); color: #fff; background: var(--rose-dim); }

.comment-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; }
