:root {
  --navy-950: #0a0e27;
  --navy-900: #0d1230;
  --navy-800: #141a3d;
  --cream-border: #efe4cd;
  --gold-100: #f9e8b8;
  --gold-300: #f0c96b;
  --gold-500: #e0b04a;
  --gold-700: #c9992f;
  --text-white: #ffffff;
  --text-muted: #b9bdd6;
  --cream-bg: #fbf7ee;
  --text-gray: #6b7280;
  --blue-500: #2563eb;
  --blue-600: #1d4ed8;
  --green-500: #16a34a;
  --red-500: #dc2626;
  --font-display: "Montserrat", sans-serif;
  --font-body: "Be Vietnam Pro", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream-bg);
  color: var(--navy-950);
  overflow-x: hidden;
  max-width: 100vw;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Header (giống judge-dashboard.css, đổi tagline 2 dòng) ---------- */
.sb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
}

.sb-header-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/roadmap-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sb-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sb-brand-icon {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.sb-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sb-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--gold-300);
  letter-spacing: 0.01em;
}

.sb-brand-year {
  color: var(--text-white);
  margin-left: 4px;
}

.sb-brand-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-white);
}

.sb-brand-sub2 {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sb-tagline {
  margin: 0 0 0 auto;
  font-style: italic;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: right;
  color: var(--gold-300);
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.sb-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.sb-bell svg {
  width: 18px;
  height: 18px;
}

.sb-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red-500);
  color: var(--text-white);
  font-size: 0.625rem;
  font-weight: 700;
}

.sb-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.sb-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.sb-user-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-white);
}

.sb-user-role {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 0.6875rem;
  font-weight: 700;
}

.sb-avatar-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  border: none;
  background: transparent;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
}

.sb-avatar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sb-user-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sb-user-menu[hidden] {
  display: none;
}

.sb-user-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-950);
  white-space: nowrap;
  cursor: pointer;
}

.sb-user-menu button:hover {
  background: var(--cream-bg);
}

.sb-user-menu button svg {
  width: 15px;
  height: 15px;
  color: var(--red-500);
}

/* ---------- Màn hình đăng nhập ---------- */
.sb-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h, 90px));
  padding: 40px 20px;
}

.sb-login-screen[hidden] {
  display: none;
}

.sb-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(10, 14, 39, 0.08);
}

.sb-login-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-950);
}

.sb-login-card > p {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-gray);
}

.sb-login-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.8125rem;
  font-weight: 600;
}

.sb-login-error[hidden] {
  display: none;
}

#sb-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#sb-login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-900);
}

#sb-login-form input {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  background: var(--cream-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--navy-950);
}

#sb-login-form input:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}

.sb-login-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.sb-login-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Màn hình đổi mật khẩu mặc định — dùng chung layout/kiểu thẻ với màn
   hình đăng nhập (.sb-login-screen/.sb-login-card), chỉ riêng form fields
   nên khai lại theo #sb-force-pwd-form thay vì đổi tên class chung. */
#sb-force-pwd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#sb-force-pwd-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-900);
}

#sb-force-pwd-form input {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  background: var(--cream-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--navy-950);
}

#sb-force-pwd-form input:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}

.sb-login-register-hint {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-gray);
}

.sb-login-register-hint a {
  color: var(--gold-700);
  font-weight: 700;
}

/* ---------- Layout / Sidebar ---------- */
.sb-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 90px);
}

.sb-layout[hidden] {
  display: none;
}

.sb-sidebar {
  position: sticky;
  top: var(--header-h, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 232px;
  flex-shrink: 0;
  height: calc(100vh - var(--header-h, 90px));
  background: #fff;
  border-right: 1px solid var(--cream-border);
  padding: 20px 14px;
  overflow-y: auto;
}

.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: var(--navy-800);
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.sb-nav-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.sb-nav-item:hover {
  background: var(--cream-bg);
  color: var(--navy-950);
}

.sb-nav-item.is-active {
  background: linear-gradient(90deg, rgba(224, 176, 74, 0.16), rgba(224, 176, 74, 0.04));
  color: var(--gold-700);
  border: 1px solid rgba(224, 176, 74, 0.35);
}

.sb-sidebar-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 4px 0 0;
}

.sb-sidebar-art-img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.sb-main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 40px;
}

/* ---------- Content grid ---------- */
.sb-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.sb-panel {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  padding: 20px;
}

/* ---------- Banner ---------- */
.sb-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sb-banner-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(10, 14, 39, 0.88), rgba(10, 14, 39, 0.55)), url("../images/roadmap-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sb-banner-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  margin-bottom: 12px;
}

.sb-banner-icon svg {
  width: 24px;
  height: 24px;
}

.sb-banner-text h1 {
  position: relative;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: var(--gold-300);
}

.sb-banner-text p {
  position: relative;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-white);
}

.sb-banner-quote {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  font-style: italic;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--gold-300);
}

.sb-banner-quote svg {
  width: 14px;
  height: 14px;
  color: #f472b6;
}

/* ---------- Step panels ---------- */
.sb-step-panel[hidden] {
  display: none;
}

.sb-steps-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.sb-steps {
  grid-column: 2;
  justify-self: center;
}

.sb-steps-back {
  grid-column: 3;
  justify-self: end;
}

.sb-steps-back[hidden] {
  display: none;
}

/* ---------- Steps ---------- */
.sb-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.sb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.sb-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
}

.sb-step-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-gray);
}

.sb-step.is-active .sb-step-num {
  background: #d97706;
  color: #fff;
}

.sb-step.is-active .sb-step-label {
  color: #b45309;
}

.sb-step.is-done .sb-step-num {
  background: var(--blue-500);
  color: #fff;
}

.sb-step.is-done .sb-step-num svg {
  width: 16px;
  height: 16px;
}

.sb-step.is-done .sb-step-label {
  color: var(--blue-600);
}

.sb-step-line.is-done {
  background: var(--blue-500);
}

.sb-step-line {
  flex: 1;
  max-width: 90px;
  height: 2px;
  background: #e2e8f0;
  margin-top: 17px;
}

.sb-upload-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* ---------- Actions ---------- */
.sb-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.sb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid transparent;
}

.sb-btn svg {
  width: 16px;
  height: 16px;
}

.sb-btn-outline {
  background: #fff;
  border-color: var(--cream-border);
  color: var(--navy-950);
}

.sb-btn-outline:hover {
  border-color: var(--gold-500);
}

.sb-btn-gold {
  margin-left: auto;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  color: var(--navy-950);
}

.sb-btn-gold:hover {
  box-shadow: 0 8px 18px rgba(201, 153, 47, 0.35);
}

/* ---------- Side info cards ---------- */
.sb-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sb-info-card {
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--cream-border);
}

.sb-info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--navy-950);
}

.sb-info-card h3 svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sb-info-guide {
  background: #fffbeb;
  border-color: #fde68a;
}

.sb-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sb-guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #78350f;
}

.sb-guide-list li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 0.6875rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.sb-info-rules {
  background: #fff;
}

.sb-rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--navy-900);
}

.sb-rules-list li svg {
  width: 16px;
  height: 16px;
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 1px;
}

.sb-info-note {
  background: #fff1f2;
  border-color: #fecdd3;
}

.sb-info-note p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #9f1239;
}

.sb-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sb-side-panel[hidden] {
  display: none;
}

/* ---------- Bước 2: form điền thông tin ---------- */
.sb-form-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.sb-form-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-600);
  flex-shrink: 0;
}

.sb-form-head-icon svg {
  width: 20px;
  height: 20px;
}

.sb-form-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--navy-950);
}

.sb-form-head p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-gray);
}

.sb-form-section {
  margin-bottom: 20px;
}

.sb-form-section-title {
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fdf6e6;
  color: #92400e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}

.sb-form-body {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  align-items: start;
}

.sb-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sb-photo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sb-photo-preview {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-photo-preview svg {
  width: 56px;
  height: 56px;
}

.sb-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-btn-photo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--cream-border);
  background: #fff;
  color: var(--navy-950);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.sb-btn-photo svg {
  width: 15px;
  height: 15px;
}

.sb-btn-photo:hover {
  border-color: var(--gold-500);
}

.sb-form-row {
  display: grid;
  gap: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-900);
}

.sb-form-row.cols-1 {
  grid-template-columns: 1fr;
}

.sb-form-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.sb-form-row.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.sb-form-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-form-row span {
  color: var(--red-500);
}

.sb-form-row input,
.sb-form-row select,
.sb-form-row textarea {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  background: var(--cream-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--navy-950);
}

.sb-form-row input[readonly] {
  color: var(--text-gray);
  background: #f1f5f9;
}

.sb-form-row textarea {
  height: auto;
  min-height: 78px;
  padding: 10px 12px;
  resize: vertical;
}

.sb-form-row input:focus,
.sb-form-row select:focus,
.sb-form-row textarea:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}

/* Ghi chú hạn chót dưới ô "Gửi link bài dự thi" (bước 2). Màu vàng đậm để nổi
   nhưng không giống lỗi (đỏ là dấu * bắt buộc). */
.sb-deadline-note:not(.sb-drive-note) {
  margin-bottom: 0;
}

.sb-deadline-note,
.sb-drive-note {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: #9a6b12;
  margin-bottom: 8px;
}

.sb-char-count {
  align-self: flex-end;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-gray);
}

.sb-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.sb-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue-600);
  flex-shrink: 0;
}

.sb-checkbox a {
  color: var(--blue-600);
  font-weight: 600;
}

/* ---------- Sidebar bước 2 ---------- */
.sb-video-card h3 svg {
  color: var(--gold-700);
}

.sb-video-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy-950);
}

.sb-video-meta {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.sb-video-valid {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f0fdf4;
  color: var(--green-500);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.sb-video-valid:hover {
  background: #dcfce7;
}

.sb-video-valid svg {
  width: 15px;
  height: 15px;
}

.sb-info-important {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.sb-info-important .sb-rules-list li svg {
  color: var(--blue-500);
}

.sb-info-support {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: #fff;
}

.sb-info-support h3 {
  color: #fff;
}

.sb-info-support h3 svg {
  color: var(--gold-300);
}

.sb-support-intro {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.sb-support-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.sb-support-item svg {
  width: 15px;
  height: 15px;
  color: var(--gold-300);
  flex-shrink: 0;
}

.sb-info-support-warm {
  background: #fdf6e6;
  border-color: #fde68a;
}

.sb-info-support-warm h3 {
  color: var(--navy-950);
}

.sb-info-support-warm h3 svg {
  color: var(--gold-700);
}

.sb-info-support-warm .sb-support-intro {
  color: var(--text-gray);
}

.sb-info-support-warm .sb-support-item {
  color: var(--navy-950);
}

.sb-info-support-warm .sb-support-item svg {
  color: var(--gold-700);
}

.sb-info-cheer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff1f2;
  border-color: #fecdd3;
}

.sb-info-cheer svg {
  width: 22px;
  height: 22px;
  color: #f43f5e;
  flex-shrink: 0;
}

.sb-cheer-title {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #9f1239;
}

.sb-cheer-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: #be123c;
}

/* ---------- Bước 3: xác nhận (chỉ đọc) ---------- */
.sb-review-body {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  align-items: start;
}

.sb-video-review-card {
  text-align: left;
}

.sb-video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1e293b, var(--navy-950));
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.sb-video-thumb svg {
  width: 30px;
  height: 30px;
}

.sb-review-grid {
  display: grid;
  gap: 12px 20px;
  margin: 0;
}

.sb-review-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.sb-review-grid.cols-1 {
  grid-template-columns: 1fr;
}

.sb-review-grid dt {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin: 0 0 3px;
}

.sb-review-grid dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-950);
}

.sb-review-grid dd.sb-review-multiline {
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-line;
}

.sb-confirm-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--green-500);
}

.sb-confirm-box[hidden] {
  display: none;
}

.sb-confirm-box svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.sb-confirm-title {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #15803d;
}

.sb-confirm-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: #166534;
}

.sb-submit-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
}

.sb-submit-error[hidden] {
  display: none;
}

.sb-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Toast ---------- */
.sb-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-950);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.sb-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .sb-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sb-tagline {
    display: none;
  }

  .sb-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .sb-header-inner {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .sb-user-info {
    display: none;
  }

  .sb-main {
    padding: 16px;
  }

  .sb-actions {
    flex-wrap: wrap;
  }

  .sb-btn-gold {
    margin-left: 0;
    flex: 1;
    justify-content: center;
  }

  .sb-btn-outline {
    flex: 1;
    justify-content: center;
  }

  .sb-form-body {
    grid-template-columns: 1fr;
  }

  .sb-photo-box {
    align-items: flex-start;
  }

  .sb-form-row.cols-2,
  .sb-form-row.cols-3 {
    grid-template-columns: 1fr;
  }

  .sb-steps-bar {
    flex-wrap: wrap;
  }

  .sb-review-body {
    grid-template-columns: 1fr;
  }

  .sb-review-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ============ VIEW: Bài dự thi của tôi ============ */
.sb-view[hidden] {
  display: none;
}

.sb-mine-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sb-mine-head-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  flex-shrink: 0;
}

.sb-mine-head-icon svg {
  width: 24px;
  height: 24px;
}

.sb-mine-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--navy-950);
}

.sb-mine-head p {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* ---------- Thẻ thống kê ---------- */
.sb-mine-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.sb-mine-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--cream-border);
}

.sb-mine-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
  color: #fff;
}

.sb-mine-stat-icon svg {
  width: 20px;
  height: 20px;
}

.sb-mine-stat-card.blue { background: #eef4ff; }
.sb-mine-stat-card.green { background: #ecfdf3; }
.sb-mine-stat-card.orange { background: #fff8ec; }
.sb-mine-stat-card.pink { background: #fdf0f5; }

.sb-mine-stat-icon.blue { background: var(--blue-500); }
.sb-mine-stat-icon.green { background: var(--green-500); }
.sb-mine-stat-icon.orange { background: #f59e0b; }
.sb-mine-stat-icon.pink { background: #e11d6f; }

.sb-mine-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--navy-950);
  line-height: 1.1;
}

.sb-mine-stat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-950);
  margin-top: 2px;
}

.sb-mine-stat-sub {
  font-size: 0.6875rem;
  color: var(--text-gray);
  margin-top: 1px;
}

/* ---------- Bố cục bảng + chi tiết ---------- */
.sb-mine-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.sb-mine-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.sb-mine-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}

.sb-mine-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-gray);
}

.sb-mine-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  background: var(--cream-bg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--navy-950);
}

.sb-mine-filters select {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  background: var(--cream-bg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--navy-950);
}

/* ---------- Bảng ---------- */
.sb-mine-table-wrap {
  overflow-x: auto;
}

.sb-mine-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.sb-mine-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-gray);
  border-bottom: 1px solid var(--cream-border);
  white-space: nowrap;
}

.sb-mine-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--cream-border);
  vertical-align: middle;
}

.sb-mine-table tbody tr {
  cursor: pointer;
}

.sb-mine-table tbody tr:hover {
  background: var(--cream-bg);
}

.sb-mine-table tbody tr.is-selected {
  background: #fdf6e6;
}

.sb-mine-row-video {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sb-mine-row-thumb {
  position: relative;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  flex-shrink: 0;
}

.sb-mine-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-mine-row-thumb-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}

.sb-mine-row-thumb-empty svg {
  width: 18px;
  height: 18px;
}

.sb-mine-row-title {
  font-weight: 700;
  color: var(--navy-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.sb-mine-row-desc {
  font-size: 0.75rem;
  color: var(--text-gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.sb-mine-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.sb-mine-badge.round {
  background: #eef4ff;
  color: var(--blue-600);
}

.sb-mine-badge.submitted {
  background: #ecfdf3;
  color: #15803d;
}

.sb-mine-badge.not-submitted {
  background: #fff8ec;
  color: #b45309;
}

.sb-mine-badge.prize {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  color: #241a05;
}

.sb-mine-badge.advanced {
  background: #ecfdf3;
  color: #15803d;
}

.sb-mine-badge.pending {
  background: #f1f5f9;
  color: #64748b;
}

.sb-mine-badge.program {
  background: #f3e8ff;
  color: #7c3aed;
}

/* ---------- Nhận xét giám khảo (view Kết quả) ---------- */
.sb-mine-comment {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold-500);
  background: var(--cream-bg);
  border-radius: 0 10px 10px 0;
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy-950);
}

.sb-mine-comment + .sb-mine-comment {
  margin-top: -6px;
}

.sb-mine-comment-judge {
  display: block;
  margin-top: 6px;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  color: var(--text-gray);
}

.sb-mine-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--cream-border);
  background: #fff;
  color: var(--navy-950);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sb-mine-action-btn:hover {
  border-color: var(--gold-500);
}

.sb-mine-action-btn.gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  border-color: transparent;
  color: #241a05;
}

.sb-mine-action-btn svg {
  width: 13px;
  height: 13px;
}

.sb-mine-empty-row td {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
}

/* ---------- Panel chi tiết bên phải ---------- */
.sb-mine-detail-panel {
  position: sticky;
  top: calc(var(--header-h, 90px) + 16px);
}

.sb-mine-detail-empty {
  margin: 0;
  padding: 30px 10px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-gray);
}

.sb-mine-detail-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-950);
  margin-bottom: 14px;
}

.sb-mine-detail-video iframe,
.sb-mine-detail-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sb-mine-detail-video-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: 16px;
}

.sb-mine-detail-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-950);
}

.sb-mine-detail-desc {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-gray);
}

.sb-mine-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cream-bg);
}

.sb-mine-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.sb-mine-detail-meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--gold-700);
  flex-shrink: 0;
}

.sb-mine-detail-meta-label {
  color: var(--text-gray);
}

.sb-mine-detail-meta-value {
  margin-left: auto;
  font-weight: 700;
  color: var(--navy-950);
  text-align: right;
}

.sb-mine-detail-stats-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--navy-950);
  margin: 0 0 10px;
}

.sb-mine-detail-stats-title svg {
  width: 15px;
  height: 15px;
  color: var(--gold-700);
}

.sb-mine-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sb-mine-detail-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 10px;
  background: var(--cream-bg);
  text-align: center;
}

.sb-mine-detail-stat svg {
  width: 16px;
  height: 16px;
  color: var(--gold-700);
}

.sb-mine-detail-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-950);
}

.sb-mine-detail-stat-label {
  font-size: 0.6875rem;
  color: var(--text-gray);
}

@media (max-width: 1100px) {
  .sb-mine-grid {
    grid-template-columns: 1fr;
  }

  .sb-mine-detail-panel {
    position: static;
  }

  .sb-mine-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sb-mine-stats {
    grid-template-columns: 1fr;
  }

  .sb-mine-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============ VIEW: Tin tức ============ */
.sb-news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.sb-news-main {
  min-width: 0;
}

/* ---------- Hero carousel ---------- */
.sb-news-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sb-news-hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.sb-news-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-news-hero-dots {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}

.sb-news-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
}

.sb-news-hero-dot.is-active {
  background: var(--gold-300);
  width: 20px;
  border-radius: 4px;
}

.sb-news-hero-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 10px;
}

.sb-news-hero-content .sb-mine-badge {
  align-self: flex-start;
}

.sb-news-hero-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-950);
  line-height: 1.3;
}

.sb-news-hero-excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-news-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-gray);
}

.sb-news-hero-meta svg {
  width: 14px;
  height: 14px;
}

.sb-news-hero-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
}

.sb-news-hero-cta:hover {
  box-shadow: 0 8px 18px rgba(201, 153, 47, 0.35);
}

.sb-news-hero-cta svg {
  width: 15px;
  height: 15px;
}

.sb-news-hero-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-gray);
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 16px;
  margin-bottom: 20px;
}

/* ---------- 4 thẻ chuyên mục ---------- */
.sb-mine-stat-card.news-cat {
  cursor: pointer;
  border: 1px solid var(--cream-border);
  transition: border-color 0.15s ease;
}

.sb-mine-stat-card.news-cat.is-active {
  border-color: var(--gold-500);
}

/* ---------- Thanh tìm kiếm / lọc ---------- */
.sb-news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sb-news-toolbar select {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--navy-950);
}

.sb-news-toolbar .sb-mine-search {
  flex: 1 1 220px;
}

.sb-news-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--cream-border);
  background: #fff;
  color: var(--navy-950);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
}

.sb-news-reset-btn:hover {
  border-color: var(--gold-500);
}

.sb-news-reset-btn svg {
  width: 14px;
  height: 14px;
}

/* ---------- Lưới bài viết ---------- */
.sb-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sb-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  overflow: hidden;
}

.sb-news-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.sb-news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-news-card-thumb-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
}

.sb-news-card-thumb-empty svg {
  width: 26px;
  height: 26px;
}

.sb-news-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.sb-news-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}

.sb-news-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.sb-news-card-meta svg {
  width: 13px;
  height: 13px;
}

.sb-news-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy-950);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-news-card-excerpt {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-news-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--gold-700);
  align-self: flex-start;
}

.sb-news-card-link svg {
  width: 14px;
  height: 14px;
}

.sb-news-card-link:hover {
  text-decoration: underline;
}

.sb-news-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-gray);
}

/* ---------- Cột phụ (sidebar) ---------- */
.sb-news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-news-side-panel {
  padding: 18px;
}

.sb-news-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sb-news-side-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--navy-950);
}

.sb-news-side-head h3 svg {
  width: 17px;
  height: 17px;
  color: var(--gold-700);
}

.sb-news-side-viewall {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-600);
}

.sb-news-side-viewall:hover {
  text-decoration: underline;
}

.sb-news-side-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-gray);
  text-align: center;
  padding: 10px 0;
}

/* Thông báo mới */
.sb-news-announce-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--cream-border);
}

.sb-news-announce-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sb-news-announce-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  margin-top: 6px;
  flex-shrink: 0;
}

.sb-news-announce-body {
  flex: 1;
  min-width: 0;
}

.sb-news-announce-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.sb-news-announce-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.4;
}

.sb-news-announce-new {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red-500);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sb-news-announce-date {
  margin: 3px 0 0;
  font-size: 0.6875rem;
  color: var(--text-gray);
}

/* Lịch sự kiện */
.sb-news-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--cream-border);
}

.sb-news-event-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sb-news-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--cream-bg);
  flex-shrink: 0;
}

.sb-news-event-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-950);
  line-height: 1.1;
}

.sb-news-event-month {
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--gold-700);
  text-transform: uppercase;
}

.sb-news-event-body {
  flex: 1;
  min-width: 0;
}

.sb-news-event-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.4;
}

.sb-news-event-time {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* ---------- Modal xem chi tiết bài viết ---------- */
.sb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 14, 39, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sb-modal-backdrop[hidden] {
  display: none;
}

.sb-modal {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.sb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream-border);
  flex-shrink: 0;
}

.sb-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy-950);
}

.sb-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream-bg);
  color: var(--text-gray);
  flex-shrink: 0;
}

.sb-modal-close svg {
  width: 17px;
  height: 17px;
}

.sb-modal-close:hover {
  background: #fee2e2;
  color: var(--red-500);
}

.sb-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.sb-modal-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.sb-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  color: var(--text-gray);
}

.sb-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sb-modal-meta svg {
  width: 14px;
  height: 14px;
}

.sb-modal-content {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--navy-950);
  white-space: pre-line;
}

@media (max-width: 1100px) {
  .sb-news-layout {
    grid-template-columns: 1fr;
  }

  .sb-news-hero {
    grid-template-columns: 1fr;
  }

  .sb-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sb-news-grid {
    grid-template-columns: 1fr;
  }

  .sb-news-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============ VIEW: Hỏi đáp ============ */
.sb-faq-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sb-faq-searchbar input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--cream-border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--navy-950);
}

.sb-faq-searchbar input:focus {
  outline: 2px solid var(--gold-500);
  outline-offset: 1px;
}

.sb-faq-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: none;
  background: var(--blue-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.sb-faq-search-btn:hover {
  background: var(--blue-600);
}

.sb-faq-search-btn svg {
  width: 16px;
  height: 16px;
}

.sb-faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.sb-faq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--cream-border);
  background: #fff;
  color: var(--navy-950);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
}

.sb-faq-chip svg {
  width: 14px;
  height: 14px;
}

.sb-faq-chip:hover {
  border-color: var(--gold-500);
}

.sb-faq-chip.is-active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

.sb-faq-section-title {
  margin: 4px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--navy-950);
}

.sb-faq-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sb-faq-group {
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  overflow: hidden;
}

.sb-faq-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--cream-bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy-950);
  border-bottom: 1px solid var(--cream-border);
}

.sb-faq-group-head svg {
  width: 16px;
  height: 16px;
  color: var(--gold-700);
  flex-shrink: 0;
}

.sb-faq-list {
  display: flex;
  flex-direction: column;
}

.sb-faq-item {
  border-bottom: 1px solid var(--cream-border);
}

.sb-faq-item:last-child {
  border-bottom: none;
}

.sb-faq-item-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy-950);
}

.sb-faq-item-question svg {
  width: 16px;
  height: 16px;
  color: var(--text-gray);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.sb-faq-item-question.is-open svg {
  transform: rotate(180deg);
  color: var(--gold-700);
}

.sb-faq-item-answer {
  padding: 0 18px 18px;
  font-size: 0.8438rem;
  line-height: 1.7;
  color: var(--text-gray);
}

/* ---------- Sidebar: Câu hỏi thường gặp nhất ---------- */
.sb-faq-highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-faq-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--cream-border);
  cursor: pointer;
}

.sb-faq-highlight-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sb-faq-highlight-item svg {
  width: 13px;
  height: 13px;
  color: var(--text-gray);
  flex-shrink: 0;
}

.sb-faq-highlight-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream-bg);
  color: var(--gold-700);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.sb-faq-highlight-text {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.4;
}

/* ---------- Sidebar: Hướng dẫn nhanh ---------- */
.sb-news-side-sub {
  margin: -8px 0 14px;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.sb-faq-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-faq-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sb-faq-guide-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sb-faq-guide-step-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-950);
}

.sb-faq-guide-step-desc {
  margin: 2px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-gray);
}

/* ---------- Sidebar: Cần hỗ trợ ngay ---------- */
.sb-faq-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--cream-border);
}

.sb-faq-contact-row:first-child {
  border-top: none;
  padding-top: 0;
}

.sb-faq-contact-row svg {
  width: 17px;
  height: 17px;
  color: var(--gold-700);
  flex-shrink: 0;
  margin-top: 1px;
}

.sb-faq-contact-value {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-950);
}

.sb-faq-contact-label {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--text-gray);
}

/* ---------- Sidebar: Bài viết liên quan ---------- */
.sb-faq-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--cream-border);
  cursor: pointer;
}

.sb-faq-related-item:first-child {
  border-top: none;
  padding-top: 0;
}

.sb-faq-related-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.sb-faq-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-faq-related-thumb svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.sb-faq-related-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-faq-related-date {
  margin: 2px 0 0;
  font-size: 0.6875rem;
  color: var(--text-gray);
}

@media (max-width: 640px) {
  .sb-faq-searchbar {
    flex-direction: column;
    align-items: stretch;
  }
}
