﻿/* ============================================================
   style.css — SynapLearn
   Global styles + per-page scoped styles
   Navbar styles: dùng #ai-navbar prefix — KHÔNG xung đột
   ============================================================ */

:root {
  --bg: #0b1220;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.62);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --user-bg-deep: #08131b;
  --user-bg-mid: #0a1720;
  --user-bg-soft: #0d1d26;
  --user-grid-line: rgba(255, 255, 255, 0.024);
  --surface-solid: #101d2b;
  --surface-solid-strong: #0c1824;
  --surface-solid-soft: #162536;
  --surface-blue-soft: #1d3554;
  --surface-blue-hover: #27486f;
  --outline-soft: rgba(169, 205, 255, 0.42);
  --outline-strong: rgba(138, 186, 255, 0.76);
}

/* ===== BASE ===== */
html,
body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      900px 600px at 10% 10%,
      rgba(13, 110, 253, 0.22),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 90% 10%,
      rgba(25, 135, 84, 0.18),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 40% 90%,
      rgba(220, 53, 69, 0.14),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

body :is(main, section, article, aside, form, .page-content, .container, .container-fluid, .row, .glass, .glass-2, .card, .table-responsive) {
  min-width: 0;
}

body :is(h1, h2, h3, h4, h5, h6, p, li, .btn, .badge, .alert, td, th) {
  overflow-wrap: anywhere;
}

body:not(.page-login):not(.page-register):not(.page-admin) {
  background:
    radial-gradient(circle at 8% 10%, rgba(103, 216, 203, 0.14), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(243, 195, 108, 0.14), transparent 24%),
    radial-gradient(circle at 50% 90%, rgba(93, 159, 255, 0.1), transparent 30%),
    linear-gradient(180deg, var(--user-bg-deep) 0%, var(--user-bg-mid) 40%, var(--user-bg-soft) 100%);
}

body:not(.page-login):not(.page-register):not(.page-admin)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--user-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--user-grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
  opacity: 0.45;
  z-index: 0;
}

a {
  text-decoration: none;
}
a:hover,
a:focus,
a:active,
a:focus-visible {
  text-decoration: none !important;
}

main {
  flex: 1;
}

.text-muted-2 {
  color: var(--muted) !important;
}

/* ===== LEGACY NAVBAR (Bootstrap pages) ===== */
.navbar-glass {
  background: rgba(9, 20, 31, 0.96);
  border-bottom: 1px solid rgba(169, 205, 255, 0.12);
  box-shadow: 0 14px 30px rgba(2, 10, 24, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ===== CARD ===== */
.glass {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.glass-2 {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ===== BUTTON ===== */
.btn,
button.btn,
a.btn,
input.btn {
  color: rgba(255, 255, 255, 0.96) !important;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn:focus-visible {
  color: #ffffff !important;
}

.btn-outline-light {
  color: rgba(244, 248, 255, 0.96) !important;
  border-color: var(--outline-soft) !important;
  background: rgba(18, 30, 46, 0.68) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light:focus-visible,
.btn-check:checked + .btn-outline-light,
.btn-check:active + .btn-outline-light,
.btn-outline-light.active,
.btn-outline-light.show,
.show > .btn-outline-light.dropdown-toggle {
  color: #ffffff !important;
  border-color: var(--outline-strong) !important;
  background: rgba(39, 72, 111, 0.86) !important;
  box-shadow: 0 12px 24px rgba(4, 16, 36, 0.22);
}

.btn-light {
  color: #f8fbff !important;
  border-color: rgba(215, 230, 255, 0.2) !important;
  background: linear-gradient(180deg, #304c70 0%, #223853 100%) !important;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light:focus-visible,
.btn-light.active,
.show > .btn-light.dropdown-toggle {
  color: #ffffff !important;
  border-color: rgba(168, 205, 255, 0.52) !important;
  background: linear-gradient(180deg, #395a85 0%, #294261 100%) !important;
}

.btn:disabled,
.btn.disabled,
button.btn:disabled,
a.btn.disabled {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 0.88;
}

.btn-soft {
  background: rgba(13, 110, 253, 0.18);
  border: 1px solid rgba(13, 110, 253, 0.35);
  color: #dbe7ff;
}
.btn-soft:hover {
  background: rgba(34, 92, 177, 0.44);
  border-color: rgba(107, 161, 255, 0.64);
  color: #fff;
}
.glass .btn-primary {
  background: #2563eb;
  border: none;
  border-radius: 8px;
  padding: 10px;
}
.glass .btn-primary:hover {
  background: #1f57dd;
}

/* ===== BADGE / KPI ===== */
.badge-soft {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}
.kpi {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ===== FORM ===== */
body:not(.page-login):not(.page-register) .form-control,
body:not(.page-login):not(.page-register) .form-select {
  background: #111827 !important;
  border: 1px solid #374151 !important;
  color: #fff !important;
}
body:not(.page-login):not(.page-register) .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
body:not(.page-login):not(.page-register) .form-control:focus,
body:not(.page-login):not(.page-register) .form-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: none !important;
}
.form-check-label {
  color: #9ca3af;
}

/* ===== TABLE ===== */
.table {
  color: rgba(255, 255, 255, 0.86);
}
.table thead th {
  color: rgba(255, 255, 255, 0.62);
  border-color: rgba(255, 255, 255, 0.14);
}
.table td,
.table th {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== PROGRESS ===== */
.progress {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 88px;
}
.sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
}
.sidebar a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sidebar a.active {
  background: rgba(13, 110, 253, 0.18);
  border: 1px solid rgba(13, 110, 253, 0.35);
  color: #fff;
}

/* ===== APP SIDEBAR (TOGGLE) ===== */
.sidebar-toggle-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.sidebar-toggle-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
}

.app-sidebar {
  position: fixed;
  top: 86px;
  left: 16px;
  width: min(86vw, 280px);
  padding: 14px;
  font-family: inherit;
  background: rgba(16, 26, 46, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  z-index: 1045;
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.app-sidebar.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1040;
}
.app-sidebar-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px auto 14px;
}
.app-sidebar-avatar-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.app-sidebar-avatar-name {
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.25;
}
.app-sidebar-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
  font-family: inherit;
}
.app-sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.app-sidebar-menu a.active {
  background: rgba(13, 110, 253, 0.2);
  border: 1px solid rgba(13, 110, 253, 0.35);
  color: #fff;
}

/* ===== UPLOAD ===== */
.upload-drop {
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
}
.upload-drop:hover {
  background: rgba(255, 255, 255, 0.06);
}
.upload-drop-lg {
  min-height: 520px;
}
.upload-drop-lg #unifiedInput {
  min-height: 290px;
}
.upload-layout-row {
  align-items: stretch;
}
.upload-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}
.upload-file-chip-plus {
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.46);
}
.upload-file-chip-ext {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e3d84e;
  text-transform: uppercase;
}
.upload-file-chip-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.upload-source-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.upload-source-icon {
  min-width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #dbeafe;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.35),
    rgba(29, 78, 216, 0.7)
  );
}
.upload-source-icon[data-kind="url"] {
  background: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.36),
    rgba(8, 145, 178, 0.72)
  );
}
.upload-source-icon[data-kind="image"] {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.36),
    rgba(217, 119, 6, 0.72)
  );
}
.upload-source-icon[data-kind="video"] {
  background: linear-gradient(
    135deg,
    rgba(244, 63, 94, 0.38),
    rgba(190, 24, 93, 0.72)
  );
}
.upload-source-text {
  min-width: 0;
  flex: 1;
}
.upload-source-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-source-meta {
  margin-top: 2px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-source-badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
}
.upload-section-title {
  font-size: 1.03rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}
.panel-expand-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transform: translateY(3px);
}

.panel-expand-btn:disabled {
  opacity: 0.55;
}

.panel-expand-btn svg {
  width: 22px;
  height: 22px;
}
.upload-summary-scroll {
  background: rgba(255, 255, 255, 0.04);
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 1.02rem;
  font-weight: 600;
}
.upload-keypoints-scroll {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 300px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.upload-keypoints-scroll ul {
  display: grid;
  gap: 8px;
}
.upload-keypoints-scroll li {
  line-height: 1.45;
  font-size: 1.01rem;
  font-weight: 600;
}

.upload-keypoint-item {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.upload-keypoint-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(125, 211, 252, 0.35);
  transform: translateY(-1px);
}

.upload-keypoint-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #022c22;
  background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
  border: 1px solid rgba(134, 239, 172, 0.8);
  text-transform: uppercase;
}

.upload-keypoint-tag--info {
  color: #082f49;
  background: linear-gradient(180deg, #bae6fd 0%, #7dd3fc 100%);
  border: 1px solid rgba(125, 211, 252, 0.9);
}

.upload-keypoint-tag--knowledge {
  color: #14532d;
  background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
  border: 1px solid rgba(134, 239, 172, 0.9);
}

.upload-keypoint-text {
  line-height: 1.48;
}

.panel-expand-modal-content {
  background:
    radial-gradient(360px 180px at 12% 0%, rgba(59, 130, 246, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(13, 21, 38, 1), rgba(10, 18, 34, 1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.52);
}

.panel-expand-summary-content {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 1.04rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.panel-expand-keypoints-list {
  display: grid;
  gap: 8px;
}

/* ===== QUIZ STUDIO ===== */
.quiz-studio {
  border: 1px solid rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(
      760px 300px at 0% -10%,
      rgba(37, 99, 235, 0.16),
      transparent 58%
    ),
    radial-gradient(
      760px 300px at 100% -30%,
      rgba(14, 165, 233, 0.14),
      transparent 58%
    ),
    rgba(30, 41, 59, 0.95);
}
.quiz-action-buttons {
  width: 100%;
}
#quizFormBlock {
  scroll-margin-top: 132px;
}
@media (min-width: 768px) {
  .quiz-action-col--top {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1.85rem;
  }
}
.quiz-question-list {
  display: grid;
  gap: 14px;
}
.quiz-question-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}
.quiz-options-grid {
  display: grid;
  gap: 8px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}
.quiz-option:hover {
  border-color: rgba(147, 197, 253, 0.6);
  background: rgba(59, 130, 246, 0.12);
}
.quiz-option input[type="radio"] {
  accent-color: #60a5fa;
}
.quiz-score-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(240px 110px at 18% 0%, rgba(59, 130, 246, 0.18), transparent 68%),
    linear-gradient(145deg, rgba(18, 31, 54, 0.99), rgba(12, 22, 40, 0.99));
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.35);
  isolation: isolate;
}
.quiz-score-label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.quiz-score-headline {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
  margin-top: 2px;
}
.quiz-review-item {
  border-radius: 12px;
  padding: 12px;
}
.quiz-review-item--wrong {
  border: 1px solid rgba(248, 113, 113, 0.36);
  background: rgba(91, 27, 37, 0.94);
}
.quiz-review-item--correct {
  border: 1px solid rgba(74, 222, 128, 0.36);
  background: rgba(18, 60, 40, 0.94);
}
.quiz-review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  padding: 6px 10px;
  min-width: 56px;
}
.quiz-review-badge--wrong {
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.36);
}
.quiz-review-badge--correct {
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(20, 83, 45, 0.36);
}

.quiz-wrong-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.quiz-correct-answer-line {
  margin-top: 4px;
  font-size: 1.06rem;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.24);
}

.quiz-correct-status-line {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
  color: #86efac;
}
.quiz-result-modal-content {
  background:
    radial-gradient(360px 180px at 12% 0%, rgba(59, 130, 246, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(13, 21, 38, 1), rgba(10, 18, 34, 1));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.52);
}

/* ===== QUIZ RESULT PAGE ===== */
.quiz-result-page {
  --qr-border: rgba(148, 163, 184, 0.22);
  --qr-soft: rgba(255, 255, 255, 0.05);
}

.quiz-result-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    radial-gradient(560px 220px at -8% -10%, rgba(56, 189, 248, 0.2), transparent 62%),
    radial-gradient(560px 220px at 110% 110%, rgba(34, 197, 94, 0.16), transparent 62%),
    rgba(30, 41, 59, 0.95);
}

.quiz-result-eyebrow {
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.9);
  font-weight: 700;
}

.quiz-performance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid var(--qr-border);
  background: var(--qr-soft);
}

.quiz-performance-badge.is-excellent {
  color: #052e16;
  background: #86efac;
  border-color: #86efac;
}

.quiz-performance-badge.is-good {
  color: #052e16;
  background: #4ade80;
  border-color: #4ade80;
}

.quiz-performance-badge.is-fair {
  color: #78350f;
  background: #fde68a;
  border-color: #facc15;
}

.quiz-performance-badge.is-needs-work {
  color: #7f1d1d;
  background: #fecaca;
  border-color: #fca5a5;
}

.quiz-result-summary-card {
  position: sticky;
  top: 96px;
  background:
    radial-gradient(260px 120px at 20% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(17, 28, 49, 0.99), rgba(12, 22, 39, 0.99));
  isolation: isolate;
}

.quiz-main-score-wrap {
  text-align: center;
  border: 1px solid var(--qr-border);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(220px 80px at 50% 0%, rgba(59, 130, 246, 0.2), transparent 70%),
    rgba(13, 22, 40, 0.94);
}

.quiz-main-score {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
}

.quiz-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz-metric-box {
  border: 1px solid var(--qr-border);
  border-radius: 12px;
  background: rgba(15, 26, 45, 0.94);
  padding: 10px 12px;
}

.quiz-metric-box--good {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(19, 70, 45, 0.94);
}

.quiz-metric-box--warn {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(95, 28, 38, 0.94);
}

.quiz-metric-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

.quiz-metric-value {
  margin-top: 2px;
  font-size: 1.15rem;
  font-weight: 800;
}

.quiz-advice-list {
  display: grid;
  gap: 8px;
}

.quiz-advice-list li {
  color: rgba(255, 255, 255, 0.84);
}

.quiz-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--qr-border);
  border-radius: 12px;
  background: rgba(12, 21, 37, 0.96);
}

.quiz-filter-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font-weight: 700;
}

.quiz-filter-btn:hover {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.34);
}

.quiz-filter-btn.is-active {
  color: #0b1220;
  border-color: rgba(186, 230, 253, 0.9);
  background: linear-gradient(180deg, #bae6fd 0%, #7dd3fc 100%);
}

.quiz-result-review-list {
  display: grid;
  gap: 12px;
  min-height: 120px;
}

.quiz-result-page .col-lg-8 {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.quiz-review-item-reveal {
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  animation: quizResultReveal 0.34s ease-out forwards;
  animation-delay: var(--row-delay, 0ms);
}

@keyframes quizResultReveal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.quiz-result-empty {
  border: 1px dashed var(--qr-border);
  border-radius: 14px;
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.quiz-review-item {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.14);
}

.quiz-review-item:hover {
  transform: translateY(-1px);
  transition: transform 0.16s ease;
}

@media (max-width: 991.98px) {
  .quiz-result-summary-card {
    position: static;
  }
}

/* ===== CONTENT LIST ===== */
.page-content-list .content-list-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(420px 180px at -10% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.5);
}

.page-content-list .content-list-table {
  --bs-table-bg: transparent;
  --bs-table-color: rgba(255, 255, 255, 0.9);
  --bs-table-border-color: rgba(148, 163, 184, 0.2);
  --bs-table-hover-bg: rgba(37, 99, 235, 0.16);
  --bs-table-hover-color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
}

.page-content-list .content-list-table thead th {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.page-content-list .content-list-table td,
.page-content-list .content-list-table th {
  background: transparent !important;
}

.page-content-list .content-list-table tbody td {
  color: rgba(255, 255, 255, 0.9);
}

.page-content-list .content-list-table .text-muted-2 {
  color: rgba(255, 255, 255, 0.6) !important;
}

.page-content-list .content-list-table .btn-danger {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(190, 24, 93, 0.82);
}

.page-content-list .content-list-table .btn-danger:hover {
  border-color: rgba(252, 165, 165, 0.92);
  background: rgba(225, 29, 72, 0.92);
}

/* ===== DIALOG ===== */
.app-confirm-modal-content {
  background:
    radial-gradient(440px 180px at -10% 0%, rgba(59, 130, 246, 0.16), transparent 62%),
    rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.52);
}

.app-confirm-modal-content .modal-title {
  color: rgba(255, 255, 255, 0.96);
}

.app-confirm-modal-content #appConfirmModalMessage {
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .quiz-metric-grid {
    grid-template-columns: 1fr;
  }

  .quiz-filter-group {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-review-item-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== NOTE ===== */
.small-note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ===== FOOTER ===== */
.site-footer,
.page-index footer,
.page-profile footer,
body > footer,
footer.footer {
  display: none !important;
}

.footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== PAGE LOADER ===== */
#page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition:
    opacity 0.12s linear,
    visibility 0.12s linear;
}
#page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#page-loader.logo-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(
      circle at center,
      rgba(13, 110, 253, 0.16),
      transparent 28%
    ),
    #0b1220;
}
.logo-loader-box {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ai-logo-core {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0d6efd, #5aa2ff);
  box-shadow:
    0 0 10px rgba(13, 110, 253, 0.45);
  animation: corePulse 1.2s ease-out infinite;
  z-index: 2;
}
.ai-logo-core span {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.ai-orbit {
  display: none;
}
.orbit-1 {
  width: 150px;
  height: 150px;
  animation: orbitSpin 4s linear infinite;
}
.orbit-2 {
  width: 210px;
  height: 210px;
  animation: orbitSpinReverse 6s linear infinite;
}
.orbit-1::before,
.orbit-2::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}
.logo-loader-box h4 {
  margin-top: 14px;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
}
.logo-loader-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  text-align: center;
  font-size: 0.84rem;
  max-width: 180px;
}

/* ===== PAGE CONTENT ANIMATION ===== */
.page-content {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}
html.js .page-content {
  opacity: 0;
  transform: translateY(6px);
}
html.js .page-content.show {
  opacity: 1;
  transform: none;
}

html.is-ajax-navigating .page-content,
html.is-ajax-navigating .page-content.show {
  opacity: 1;
  transform: none;
}

html.page-hydrated .page-content,
html.page-hydrated .page-content.show {
  transition: none;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes orbitSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* ===== AUTH PAGE ===== */
body:not(.page-login):not(.page-register) .auth-page {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 5.5vh, 72px) 0 clamp(34px, 7vh, 90px);
}
body:not(.page-login):not(.page-register) .auth-page .container {
  padding-top: clamp(4px, 1.4vh, 14px);
}
body:not(.page-login):not(.page-register) .auth-page .row {
  width: 100%;
}
body:not(.page-login):not(.page-register) .auth-page .col-lg-5 {
  max-width: 560px;
}
body:not(.page-login):not(.page-register) .login-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 30px !important;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.95),
    rgba(30, 41, 59, 0.94)
  );
  box-shadow:
    0 26px 50px rgba(2, 6, 23, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body:not(.page-login):not(.page-register) .login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      500px 180px at -4% -12%,
      rgba(59, 130, 246, 0.28),
      transparent 60%
    ),
    radial-gradient(
      400px 180px at 108% 0%,
      rgba(56, 189, 248, 0.18),
      transparent 58%
    );
}
body:not(.page-login):not(.page-register) .login-card > * {
  position: relative;
  z-index: 1;
}
body:not(.page-login):not(.page-register) .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
body:not(.page-login):not(.page-register) .auth-divider::before,
body:not(.page-login):not(.page-register) .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
}

body:not(.page-login):not(.page-register) .google-login-host {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
}

body:not(.page-login):not(.page-register) .google-login-host > div {
  width: auto;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

body:not(.page-login):not(.page-register) .google-login-host iframe {
  display: block;
  margin: 0 auto;
  transform: scale(1.06);
  transform-origin: center center;
}

.glass h3,
.glass h2 {
  font-weight: 600;
  color: #fff;
}
.glass a {
  color: #3b82f6;
  text-decoration: none;
}
.glass a:hover {
  text-decoration: underline;
}

/* ============================================================
   #ai-navbar — SynapLearn Navbar + Avatar Dropdown
   Prefix #ai-navbar: KHÔNG bao giờ xung đột với bất kỳ trang nào
   ============================================================ */

#ai-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 14px 0;
  font-family: "Inter", sans-serif;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    padding 0.3s;
}
#ai-navbar.scrolled {
  padding: 10px 0;
  background: rgba(8, 12, 24, 0.94);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.28);
}

#ai-navbar .nb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Brand */
#ai-navbar .nb-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
#ai-navbar .nb-brand:hover {
  opacity: 0.85;
}

/* Nav links */
#ai-navbar .nb-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
#ai-navbar .nb-links a {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    color 0.2s,
    background 0.2s;
}
#ai-navbar .nb-links a:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}
#ai-navbar .nb-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
#ai-navbar .nb-links a.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #3b8dff;
  opacity: 0.9;
}

/* Actions */
#ai-navbar .nb-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Guest buttons */
#ai-navbar .nb-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.855rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
#ai-navbar .nb-ghost {
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
#ai-navbar .nb-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}
#ai-navbar .nb-primary {
  background: linear-gradient(135deg, #1a7ef7, #0d6efd);
  color: #fff;
  font-weight: 700;
}
#ai-navbar .nb-primary:hover {
  background: linear-gradient(135deg, #3d8fff, #1a7ef7);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
}

/* Avatar button */
#ai-navbar .nb-av-wrap {
  position: relative;
}
#ai-navbar .nb-av-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.8);
}
#ai-navbar .nb-av-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
#ai-navbar .nb-av-btn.open {
  background: rgba(13, 110, 253, 0.14);
  border-color: rgba(13, 110, 253, 0.38);
  color: #fff;
}

#ai-navbar .nb-av-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(13, 110, 253, 0.22);
  border: 1.5px solid rgba(77, 159, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #4d9fff;
  overflow: hidden;
}
#ai-navbar .nb-av-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#ai-navbar .nb-av-name {
  font-size: 0.845rem;
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ai-navbar .nb-av-chevron {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition:
    transform 0.22s ease,
    color 0.2s;
}
#ai-navbar .nb-av-btn.open .nb-av-chevron {
  transform: rotate(180deg);
  color: #4d9fff;
}

/* Notif dot — ẩn hoàn toàn vì dùng badge trong dropdown */
#ai-navbar .nb-notif-dot,
#ai-navbar .nb-notif-dot.show {
  display: none !important;
}

/* Dropdown */
#ai-navbar .nb-dd {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 268px;
  background: rgba(11, 16, 32, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 0 0.5px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 300;
}
#ai-navbar .nb-dd.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown header */
#ai-navbar .dd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
#ai-navbar .dd-head-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #4d9fff;
  background: rgba(13, 110, 253, 0.2);
  border: 1.5px solid rgba(77, 159, 255, 0.32);
  overflow: hidden;
}
#ai-navbar .dd-head-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#ai-navbar .dd-head-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ai-navbar .dd-head-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#ai-navbar .dd-role-user {
  background: rgba(77, 159, 255, 0.12);
  border: 1px solid rgba(77, 159, 255, 0.22);
  color: #79b8ff;
}
#ai-navbar .dd-role-admin {
  background: rgba(62, 245, 200, 0.12);
  border: 1px solid rgba(62, 245, 200, 0.22);
  color: #3ef5c8;
}

/* Progress bar (tiến độ) */
#ai-navbar .dd-head-progress {
  margin-top: 8px;
}
#ai-navbar .dd-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}
#ai-navbar .dd-progress-track {
  height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
#ai-navbar .dd-progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #1a7ef7, #3ef5c8);
  transition: width 0.5s ease;
}

/* Menu body & footer */
#ai-navbar .dd-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#ai-navbar .dd-footer {
  padding: 6px 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Menu item */
#ai-navbar .dd-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.855rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s,
    color 0.18s;
}
#ai-navbar .dd-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#ai-navbar .dd-item.active-page {
  background: rgba(13, 110, 253, 0.12);
  color: #4d9fff;
}

/* Icon box */
#ai-navbar .dd-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}
#ai-navbar .dd-icon-blue {
  background: rgba(77, 159, 255, 0.12);
}
#ai-navbar .dd-icon-teal {
  background: rgba(62, 245, 200, 0.12);
}
#ai-navbar .dd-icon-green {
  background: rgba(74, 222, 128, 0.12);
}
#ai-navbar .dd-icon-orange {
  background: rgba(255, 176, 96, 0.12);
}
#ai-navbar .dd-icon-red {
  background: rgba(248, 113, 113, 0.12);
}
#ai-navbar .dd-item:hover .dd-icon-blue {
  background: rgba(77, 159, 255, 0.2);
}
#ai-navbar .dd-item:hover .dd-icon-teal {
  background: rgba(62, 245, 200, 0.2);
}
#ai-navbar .dd-item:hover .dd-icon-green {
  background: rgba(74, 222, 128, 0.2);
}
#ai-navbar .dd-item:hover .dd-icon-orange {
  background: rgba(255, 176, 96, 0.2);
}

/* Item text */
#ai-navbar .dd-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
#ai-navbar .dd-item-text > div:first-child {
  font-weight: 600;
  font-size: 0.855rem;
  color: inherit;
}
#ai-navbar .dd-item-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.36);
  font-weight: 400;
}

/* Badge số thông báo */
#ai-navbar .dd-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.22);
  border: 1px solid rgba(13, 110, 253, 0.38);
  color: #79b8ff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Đăng xuất */
#ai-navbar .dd-item-logout,
#ai-navbar .dd-logout {
  color: rgba(248, 113, 113, 0.78);
}
#ai-navbar .dd-item-logout:hover,
#ai-navbar .dd-logout:hover {
  background: rgba(220, 53, 69, 0.09);
  color: #f87171;
}
#ai-navbar .dd-item-logout:hover .dd-icon-red,
#ai-navbar .dd-logout:hover .dd-icon-red {
  background: rgba(248, 113, 113, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  #ai-navbar .nb-links {
    display: none;
  }
}
@media (max-width: 600px) {
  #ai-navbar .nb-inner {
    padding: 0 18px;
    gap: 16px;
  }
  #ai-navbar .nb-av-name {
    display: none;
  }
  #ai-navbar .nb-dd {
    right: -8px;
    width: 260px;
  }
}

/* ============================================================
   PAGE: .page-profile — scoped, không ảnh hưởng trang khác
   ============================================================ */
.page-profile {
  font-family: "Inter", sans-serif;
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.5);
  --radius-sm: 10px;
  --blue: #4d9fff;
  --blue-bg: rgba(13, 110, 253, 0.16);
  --blue-border: rgba(13, 110, 253, 0.35);
  --green-bg: rgba(25, 135, 84, 0.16);
  --green-border: rgba(25, 135, 84, 0.35);
  --red-bg: rgba(220, 53, 69, 0.14);
  --red-border: rgba(220, 53, 69, 0.35);
}
.page-profile *,
.page-profile *::before,
.page-profile *::after {
  box-sizing: border-box;
}
.page-profile main {
  flex: 1;
  padding: 120px 0 80px;
}
.page-profile .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-profile .page-header {
  margin-bottom: 18px;
}
.page-profile .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 0;
}
.page-profile .eyebrow-dot {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}
.page-profile .page-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.page-profile .page-title .accent {
  color: var(--blue);
}
.page-profile .page-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}
.page-profile .profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.page-profile .glass-card {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.page-profile .avatar-card {
  text-align: center;
}
.page-profile .avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.page-profile .avatar-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 2px solid var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0 auto;
  overflow: hidden;
}
.page-profile .avatar-edit {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a7ef7, #0d6efd);
  border: 2px solid var(--bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.page-profile .avatar-edit:hover {
  transform: scale(1.1);
}
.page-profile #avatarInput {
  display: none;
}
.page-profile .avatar-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
}
.page-profile .avatar-email {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
  word-break: break-all;
}
.page-profile .avatar-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  margin-bottom: 20px;
}
.page-profile .avatar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-profile .mini-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.page-profile .mini-stat-num {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text);
}
.page-profile .mini-stat-num span {
  color: var(--blue);
}
.page-profile .mini-stat-lbl {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.03em;
}
.page-profile .danger-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-profile .danger-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f87171;
  margin-bottom: 10px;
}
.page-profile .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.page-profile .btn-ghost {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 1px solid var(--border);
}
.page-profile .btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.page-profile .btn-primary {
  background: linear-gradient(135deg, #1a7ef7, #0d6efd);
  color: #fff;
  font-weight: 700;
}
.page-profile .btn-primary:hover {
  background: linear-gradient(135deg, #3d8fff, #1a7ef7);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.45);
}
.page-profile .btn-danger {
  width: 100%;
  padding: 9px;
  border-radius: 100px;
  border: 1px solid var(--red-border);
  background: var(--red-bg);
  color: #f87171;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.page-profile .btn-danger:hover {
  background: rgba(220, 53, 69, 0.24);
  border-color: rgba(220, 53, 69, 0.55);
}
.page-profile .tab-list {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.page-profile .tab-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow-wrap: anywhere;
}
.page-profile .tab-btn.active {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}
.page-profile .tab-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.page-profile .tab-panel {
  display: none;
}
.page-profile .tab-panel.active {
  display: block;
}
.page-profile .field-section {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-profile .field-section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.page-profile .form-group {
  margin-bottom: 18px;
}
.page-profile .form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.page-profile .form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.page-profile .form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.page-profile .form-input:focus {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}
.page-profile .form-input.err {
  border-color: rgba(220, 53, 69, 0.6);
}
.page-profile .form-input.err:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.page-profile .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.page-profile .form-error {
  font-size: 0.76rem;
  color: #f87171;
  margin-top: 5px;
  display: none;
}
.page-profile .form-error.show {
  display: block;
}
.page-profile .input-wrap {
  position: relative;
}
.page-profile .input-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.page-profile .input-toggle-btn:hover {
  color: var(--text);
}
.page-profile .pwd-bars {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}
.page-profile .pwd-bar {
  height: 3px;
  flex: 1;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}
.page-profile .pwd-bar.weak {
  background: #f87171;
}
.page-profile .pwd-bar.medium {
  background: #fbbf24;
}
.page-profile .pwd-bar.strong {
  background: #4ade80;
}
.page-profile .pwd-str-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}
.page-profile .form-alert {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  margin-bottom: 18px;
}
.page-profile .form-alert.show {
  display: flex;
}
.page-profile .alert-error {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: #f87171;
}
.page-profile .alert-success {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: #4ade80;
}
.page-profile .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-profile .notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-profile .notify-row:last-of-type {
  border-bottom: none;
}
.page-profile .notify-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.page-profile .notify-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.page-profile .toggle {
  width: 40px;
  height: 22px;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.page-profile .toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.page-profile .toggle:checked {
  background: linear-gradient(135deg, #1a7ef7, #0d6efd);
}
.page-profile .toggle:checked::after {
  transform: translateX(18px);
}
.page-profile .notify-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(10, 18, 30, 0.54);
}
.page-profile .notify-inbox-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-profile .notify-inbox-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.page-profile .system-notify-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(10, 18, 30, 0.66);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}
.page-profile .system-notify-card.is-unread {
  border-color: rgba(87, 163, 255, 0.42);
  box-shadow: 0 20px 36px rgba(10, 45, 93, 0.2);
}
.page-profile .system-notify-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.page-profile .system-notify-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f7fbff;
}
.page-profile .system-notify-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}
.page-profile .system-notify-message {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(232, 242, 255, 0.88);
}
.page-profile .system-notify-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.page-profile .system-notify-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 246, 255, 0.88);
}
.page-profile .system-notify-pill[data-severity="success"] {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.26);
  background: rgba(15, 118, 46, 0.16);
}
.page-profile .system-notify-pill[data-severity="warning"] {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(146, 64, 14, 0.16);
}
.page-profile .system-notify-pill[data-severity="danger"] {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.26);
  background: rgba(127, 29, 29, 0.18);
}
.page-profile .system-notify-empty {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--muted);
  text-align: center;
  background: rgba(8, 16, 28, 0.45);
}
@media (max-width: 768px) {
  .page-profile .notify-inbox-head,
  .page-profile .system-notify-top {
    flex-direction: column;
    align-items: stretch;
  }
}
.page-profile .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.page-profile .modal-overlay.show {
  display: flex;
}
.page-profile .modal-box {
  background: rgba(30, 41, 59, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}
.page-profile .modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}
.page-profile .modal-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.page-profile .modal-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.page-profile .modal-actions {
  display: flex;
  gap: 12px;
}
.page-profile .modal-actions > * {
  flex: 1;
  justify-content: center;
}
.page-profile .toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(30, 41, 59, 0.97);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  z-index: 400;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
}
.page-profile .toast.show {
  transform: none;
  opacity: 1;
}
.page-profile .toast-success {
  border-color: var(--green-border);
}
.page-profile .toast-success .t-icon {
  color: #4ade80;
}
.page-profile .toast-error {
  border-color: var(--red-border);
}
.page-profile .toast-error .t-icon {
  color: #f87171;
}
.page-profile footer {
  border-top: 1px solid var(--border);
  padding: 14px 0 12px;
}
.page-profile .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.page-profile .footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.page-profile .footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.58;
}
.page-profile .footer-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.page-profile .footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.page-profile .footer-links a:hover {
  color: var(--text);
}
.page-profile .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.page-profile .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 900px) {
  .page-profile .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .page-profile .container {
    padding: 0 24px;
  }

  .page-profile .profile-grid {
    grid-template-columns: 1fr;
  }

  .page-profile .tab-list {
    flex-wrap: wrap;
  }

  .page-profile .tab-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 160px;
  }

  .page-profile .form-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .page-profile .container {
    padding: 0 18px;
  }

  .page-profile .form-actions > *,
  .page-profile .modal-actions > * {
    width: 100%;
  }

  .page-profile .notify-inbox-actions {
    width: 100%;
  }

  .page-profile .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .page-profile .form-row-2 {
    grid-template-columns: 1fr;
  }

  .page-profile .tab-btn {
    min-width: 0;
  }
}

/* ============================================================
   PAGE: .page-index — scoped, không ảnh hưởng trang khác
   ============================================================ */
.page-index {
  font-family: "Inter", sans-serif;
  --border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.5);
  --radius-sm: 10px;
  --lime: #4d9fff;
  --lime-bg: rgba(13, 110, 253, 0.16);
  --lime-border: rgba(13, 110, 253, 0.35);
  --teal: #3ef5c8;
  --teal-bg: rgba(62, 245, 200, 0.1);
  --purple: #b89aff;
  --purple-bg: rgba(184, 154, 255, 0.12);
  --orange: #ffb060;
  --accent: #6aa0ff;
  --accent-bg: rgba(106, 160, 255, 0.12);
  --white: #ffffff;
}
.page-index *,
.page-index *::before,
.page-index *::after {
  box-sizing: border-box;
}
.page-index .hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.page-index .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.page-index .hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.page-index .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-bg);
  border: 1px solid var(--lime-border);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: index-fadeUp 0.8s ease both;
}
.page-index .eyebrow-dot {
  width: 5px;
  height: 5px;
  background: #4d9fff;
  border-radius: 50%;
}
.page-index .hero-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  animation: index-fadeUp 0.8s 0.1s ease both;
}
.page-index .hero-title .accent {
  color: #4d9fff;
}
.page-index .hero-title .accent-teal {
  color: var(--teal);
}
.page-index .hero-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 400;
  max-width: 480px;
  animation: index-fadeUp 0.8s 0.2s ease both;
}
.page-index .hero-sub b {
  color: var(--white);
  font-weight: 600;
}
.page-index .hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  animation: index-fadeUp 0.8s 0.3s ease both;
}
.page-index .btn-cta-primary {
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1a7ef7, #0d6efd);
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(13, 110, 253, 0.4);
}
.page-index .btn-cta-primary:hover {
  background: linear-gradient(135deg, #3d8fff, #1a7ef7);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(13, 110, 253, 0.5);
}
.page-index .btn-cta-secondary {
  padding: 14px 30px;
  font-size: 0.95rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.page-index .btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
.page-index .hero-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted-2);
  animation: index-fadeUp 0.8s 0.4s ease both;
}
.page-index .hero-card-stack {
  position: relative;
  animation: index-fadeUp 0.8s 0.2s ease both;
}
.page-index .card-main {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.page-index .card-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #198754, #dc3545);
}
.page-index .card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.page-index .steps {
  display: flex;
  flex-direction: column;
}
.page-index .step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-index .step:last-child {
  border-bottom: none;
}
.page-index .step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lime-bg);
  border: 1px solid var(--lime-border);
  color: var(--lime);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.page-index .step-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}
.page-index .step-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.page-index .format-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-index .format-chip {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.page-index .chip-text {
  background: var(--lime-bg);
  color: var(--lime);
  border: 1px solid var(--lime-border);
}
.page-index .chip-img {
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid rgba(62, 245, 200, 0.25);
}
.page-index .chip-vid {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  border: 1px solid var(--border);
}
.page-index .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.page-index .stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.page-index .stat-value {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  line-height: 1;
}
.page-index .stat-value span {
  color: #4d9fff;
}
.page-index .stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.page-index .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.page-index .btn-ghost {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 1px solid var(--border);
}
.page-index .btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.page-index .btn-lime {
  background: linear-gradient(135deg, #1a7ef7, #0d6efd);
  color: #fff;
  font-weight: 700;
}
.page-index .btn-lime:hover {
  background: linear-gradient(135deg, #3d8fff, #1a7ef7);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.45);
}
.page-index .section-header {
  text-align: center;
  margin-bottom: 60px;
}
.page-index .section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4d9fff;
  margin-bottom: 14px;
}
.page-index .section-title {
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}
.page-index .section-title .muted-word {
  color: var(--muted);
}
.page-index .features-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.page-index .features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.page-index .feature-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
.page-index .feature-card:hover {
  border-color: var(--lime-border);
  transform: translateY(-4px);
}
.page-index .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.page-index .icon-lime {
  background: var(--lime-bg);
  border: 1px solid var(--lime-border);
}
.page-index .icon-teal {
  background: var(--teal-bg);
  border: 1px solid rgba(62, 245, 200, 0.22);
}
.page-index .icon-purple {
  background: var(--purple-bg);
  border: 1px solid rgba(184, 154, 255, 0.22);
}
.page-index .icon-orange {
  background: rgba(255, 176, 96, 0.12);
  border: 1px solid rgba(255, 176, 96, 0.22);
}
.page-index .icon-blue {
  background: var(--accent-bg);
  border: 1px solid rgba(106, 160, 255, 0.22);
}
.page-index .icon-pink {
  background: rgba(255, 110, 170, 0.12);
  border: 1px solid rgba(255, 110, 170, 0.22);
}
.page-index .feature-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--white);
}
.page-index .feature-desc {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
  font-weight: 400;
}
.page-index .feature-tag {
  margin-top: 16px;
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.page-index .tag-user {
  background: var(--lime-bg);
  color: var(--lime);
  border: 1px solid var(--lime-border);
}
.page-index .tag-all {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}
.page-index .tag-admin {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(184, 154, 255, 0.28);
}
.page-index .roles-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.page-index .roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.page-index .role-card {
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.page-index .role-card-guest {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}
.page-index .role-card-user {
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid var(--lime-border);
}
.page-index .role-card-admin {
  background: linear-gradient(
    135deg,
    rgba(184, 154, 255, 0.09) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(184, 154, 255, 0.28);
}
.page-index .role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-index .badge-guest {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}
.page-index .badge-user {
  background: var(--lime-bg);
  color: var(--lime);
  border: 1px solid var(--lime-border);
}
.page-index .badge-admin {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(184, 154, 255, 0.28);
}
.page-index .role-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--white);
}
.page-index .role-desc {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.6;
}
.page-index .role-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-index .role-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.page-index .perk-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  margin-top: 2px;
}
.page-index .check-yes {
  background: var(--lime-bg);
  color: var(--lime);
  border: 1px solid var(--lime-border);
}
.page-index .check-no {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-2);
  border: 1px solid var(--border);
}
.page-index .perk-text-no {
  opacity: 0.4;
  text-decoration: line-through;
}
.page-index .role-cta {
  margin-top: 28px;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.page-index .cta-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
}
.page-index .cta-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.page-index .cta-lime {
  background: linear-gradient(135deg, #1a7ef7, #0d6efd);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
}
.page-index .cta-lime:hover {
  background: linear-gradient(135deg, #3d8fff, #1a7ef7);
  transform: translateY(-1px);
}
.page-index .cta-purple {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(184, 154, 255, 0.28);
}
.page-index .cta-purple:hover {
  background: rgba(184, 154, 255, 0.2);
}
.page-index .how-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
}
.page-index .flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
}
.page-index .flow-track::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, #0d6efd, #198754);
  opacity: 0.3;
}
.page-index .flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}
.page-index .flow-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.page-index .fn-1 {
  background: rgba(13, 110, 253, 0.16);
  border: 2px solid rgba(13, 110, 253, 0.35);
  color: #4d9fff;
}
.page-index .fn-2 {
  background: var(--teal-bg);
  border: 2px solid rgba(62, 245, 200, 0.28);
  color: var(--teal);
}
.page-index .fn-3 {
  background: var(--purple-bg);
  border: 2px solid rgba(184, 154, 255, 0.28);
  color: var(--purple);
}
.page-index .fn-4 {
  background: rgba(255, 176, 96, 0.12);
  border: 2px solid rgba(255, 176, 96, 0.28);
  color: var(--orange);
}
.page-index .flow-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--white);
}
.page-index .flow-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
}
.page-index footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 14px 0 12px;
}
.page-index .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.page-index .footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.page-index .footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.58;
}
.page-index .footer-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.page-index .footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.page-index .footer-links a:hover {
  color: var(--white);
}
.page-index .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

@media (max-width: 860px) {
  .page-profile .footer-inner,
  .page-index .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-profile .footer-links,
  .page-index .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
.page-index .reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes index-fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .page-index .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .page-index .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index .roles-grid {
    grid-template-columns: 1fr;
  }
  .page-index .flow-track {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .page-index .flow-track::before {
    display: none;
  }
}
@media (max-width: 600px) {
  .page-index .features-grid {
    grid-template-columns: 1fr;
  }
  .page-index .flow-track {
    grid-template-columns: 1fr;
  }
}

/* ===== HISTORY PAGE ===== */
.page-history .history-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.page-history .history-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-history .history-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-history .history-kpi-card {
  padding: 18px;
}

.page-history .history-kpi-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.page-history .history-kpi-value {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.96);
}

.page-history .history-kpi-meta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}

.page-history .history-timeline {
  display: grid;
  gap: 12px;
}

.page-history .history-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
}

.page-history .history-filter-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  font-weight: 700;
}

.page-history .history-filter-btn:hover {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.34);
}

.page-history .history-filter-btn.is-active {
  color: #0b1220;
  border-color: rgba(186, 230, 253, 0.9);
  background: linear-gradient(180deg, #bae6fd 0%, #7dd3fc 100%);
}

.page-history .history-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.page-history .history-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  background: linear-gradient(135deg, #60a5fa, #22c55e);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.page-history .history-item-main {
  min-width: 0;
}

.page-history .history-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.page-history .history-item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.page-history .history-item-time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
}

.page-history .history-item-meta {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.page-history .history-item-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-history .history-item-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
}

.page-history .history-item.is-empty {
  grid-template-columns: 1fr;
}

.list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.list-pagination-select {
  width: 88px;
}

.list-skeleton-line {
  position: relative;
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.list-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 45%,
    transparent 100%
  );
  animation: listSkeletonShimmer 1.05s linear infinite;
}

.list-skeleton-line--wide {
  width: min(100%, 540px);
}

.list-skeleton-line--short {
  width: min(48%, 220px);
}

@keyframes listSkeletonShimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 991px) {
  .page-history .history-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .list-pagination {
    justify-content: center;
    text-align: center;
  }
}

/* ===== LEARNING PLAN PAGE ===== */
.page-learning-plan .learning-plan-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.page-learning-plan .learning-plan-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-learning-plan .learning-plan-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-learning-plan .learning-plan-kpi {
  padding: 18px;
}

.page-learning-plan .learning-plan-kpi-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.page-learning-plan .learning-plan-kpi-value {
  margin-top: 8px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.96);
}

.page-learning-plan #learningPlanFocusTopic {
  font-size: clamp(1.02rem, 1.55vw, 1.6rem);
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.22em * 2);
}

.page-learning-plan .learning-plan-kpi-meta {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}

.page-learning-plan .learning-plan-tasks {
  display: grid;
  gap: 12px;
}

.page-learning-plan .learning-plan-task {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.page-learning-plan .learning-plan-task.is-completed {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(22, 163, 74, 0.12);
}

.page-learning-plan .learning-plan-task-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-learning-plan .learning-plan-task-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  overflow-wrap: anywhere;
}

.page-learning-plan .learning-plan-task-detail {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.page-learning-plan .learning-plan-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.page-learning-plan .learning-plan-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
}

.page-learning-plan .learning-plan-task-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-learning-plan .learning-plan-recommendations {
  display: grid;
  gap: 12px;
}

.page-learning-plan .learning-plan-recommendation {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.page-learning-plan .learning-plan-recommendation-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  overflow-wrap: anywhere;
}

.page-learning-plan .learning-plan-recommendation-detail {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

@media (max-width: 1200px) {
  .page-learning-plan .learning-plan-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .page-learning-plan .learning-plan-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-learning-plan .learning-plan-hero-actions {
    width: 100%;
  }

  .page-learning-plan .learning-plan-hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 767.98px) {
  .page-profile .glass-card {
    padding: 18px;
  }

  .page-profile .tab-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .page-profile .tab-list::-webkit-scrollbar {
    display: none;
  }

  .page-profile .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .page-history .history-hero-actions,
  .page-learning-plan .learning-plan-hero-actions {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .page-profile .avatar-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .page-history .history-hero-actions > *,
  .page-learning-plan .learning-plan-hero-actions > * {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .page-profile .avatar-stats {
    grid-template-columns: 1fr;
  }

  .page-profile .glass-card {
    padding: 16px;
  }
}
