/* ============================================================
   COMPONENTS.CSS — Buttons, Cards, Inputs, Badges, Modals
   ============================================================ */

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 44px;
  /* touch target */
  letter-spacing: 0.3px;
}

/* Shine effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: 0.5s;
  pointer-events: none;
}

.btn:hover::after {
  left: 200%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108, 60, 228, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gradient-gold);
  color: #1A192E;
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: #1A192E;
}

.btn-outlined {
  background: transparent;
  color: var(--primary-light);
  border: 1.5px solid rgba(108, 60, 228, 0.5);
}

.btn-outlined:hover {
  background: rgba(108, 60, 228, 0.12);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-accent {
  background: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
  color: #0D0D1A;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: var(--fs-xs);
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: var(--fs-base);
  min-height: 52px;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 40px;
  font-size: var(--fs-md);
  min-height: 60px;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 10px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.btn-round {
  border-radius: var(--radius-full);
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.card:hover {
  border-color: rgba(108, 60, 228, 0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Top gradient line on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

/* Glass card variant */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* Card with gradient background */
.card-gradient {
  background: var(--gradient-card);
  border: 1px solid rgba(108, 60, 228, 0.15);
}

.card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.card-title .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(108, 60, 228, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-base);
  /* 16px — prevents iOS zoom */
  font-family: var(--font-main);
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 60, 228, 0.18);
  background: rgba(108, 60, 228, 0.05);
}

.form-select option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

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

.form-input.valid {
  border-color: var(--success);
}

.form-input.invalid {
  border-color: var(--danger);
}

.form-input.valid:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.form-input.invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-input.invalid~.form-error {
  display: block;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Custom select arrow */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 12px;
}

/* Input with icon */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.input-icon-wrap .form-input {
  padding-left: 42px;
}

/* Gender toggle buttons */
.gender-toggle {
  display: flex;
  gap: var(--sp-2);
}

.gender-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.gender-btn.active {
  background: rgba(108, 60, 228, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.gender-btn:hover:not(.active) {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

/* ══════════════════════════════════════════
   NGŨ HÀNH BADGES
   ══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.badge-kim {
  background: var(--ngh-kim-bg);
  color: var(--ngh-kim);
  border: 1px solid rgba(192, 202, 51, 0.3);
}

.badge-moc {
  background: var(--ngh-moc-bg);
  color: var(--ngh-moc);
  border: 1px solid rgba(102, 187, 106, 0.3);
}

.badge-thuy {
  background: var(--ngh-thuy-bg);
  color: var(--ngh-thuy);
  border: 1px solid rgba(41, 182, 246, 0.3);
}

.badge-hoa {
  background: var(--ngh-hoa-bg);
  color: var(--ngh-hoa);
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.badge-tho {
  background: var(--ngh-tho-bg);
  color: var(--ngh-tho);
  border: 1px solid rgba(255, 167, 38, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-primary {
  background: rgba(108, 60, 228, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(108, 60, 228, 0.3);
}

.badge-purple {
  background: rgba(108, 60, 228, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(108, 60, 228, 0.3);
}

/* Score khối badge */
.khoi-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  transition: var(--transition);
  cursor: default;
  min-width: 90px;
}

.khoi-badge:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.khoi-badge .khoi-name {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.khoi-badge .khoi-score {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--primary-light);
}

/* Filter chips */
.chip-group {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-1);
  scrollbar-width: none;
}

.chip-group::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  user-select: none;
  min-height: 36px;
}

.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.chip.active {
  background: rgba(108, 60, 228, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.chip .chip-remove {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.6;
  cursor: pointer;
}

/* ══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 80px;
  /* above bottom nav on mobile */
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: auto;
    top: var(--sp-5);
    right: var(--sp-5);
    left: auto;
    transform: none;
    align-items: flex-end;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #fff;
  min-width: 240px;
  max-width: 360px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: fadeInUp 0.3s ease forwards;
}

.toast.toast-success {
  background: rgba(16, 185, 129, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.toast.toast-error {
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.toast.toast-info {
  background: rgba(108, 60, 228, 0.9);
  border: 1px solid rgba(108, 60, 228, 0.5);
}

.toast.toast-warning {
  background: rgba(245, 158, 11, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #1A192E;
}

.toast .toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.toast .toast-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.7;
  font-size: 14px;
  padding: 2px 4px;
}

.toast .toast-close:hover {
  opacity: 1;
}

/* ══════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.modal-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ══════════════════════════════════════════
   DRAWER (Side/Bottom)
   ══════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 26, 0.7);
  z-index: var(--z-drawer);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  z-index: calc(var(--z-drawer) + 1);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

/* Bottom drawer */
.drawer-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--sp-6) var(--sp-5);
  max-height: 85vh;
  transform: translateY(100%);
}

.drawer-bottom.open {
  transform: translateY(0);
}

.drawer-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto var(--sp-5);
}

/* ══════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--sp-8);
  text-align: center;
  color: var(--text-muted);
  gap: var(--sp-4);
}

.empty-state .empty-icon {
  font-size: 48px;
  opacity: 0.4;
  margin-bottom: var(--sp-2);
}

.empty-state h3 {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.empty-state p {
  font-size: var(--fs-sm);
  max-width: 280px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   TAGS / SELECTED TAGS
   ══════════════════════════════════════════ */
.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(108, 60, 228, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(108, 60, 228, 0.3);
  cursor: default;
}

.tag .tag-remove {
  cursor: pointer;
  font-size: 10px;
  opacity: 0.7;
  transition: var(--transition-fast);
  padding: 0 2px;
}

.tag .tag-remove:hover {
  opacity: 1;
  color: var(--danger);
}

/* ══════════════════════════════════════════
   TABS
   ══════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

/* ══════════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════════ */
.search-bar {
  position: relative;
  width: 100%;
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.search-bar input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: var(--fs-base);
  font-family: var(--font-main);
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 60, 228, 0.15);
  background: rgba(108, 60, 228, 0.04);
}

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

/* ══════════════════════════════════════════
   SECTION TITLE
   ══════════════════════════════════════════ */
.section-header {
  margin-bottom: var(--sp-8);
}

.section-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.section-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-desc {
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-6) 0;
}

/* ══════════════════════════════════════════
   STEPPER
   ══════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--sp-4) 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.stepper::-webkit-scrollbar {
  display: none;
}

.step-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.step-item:hover {
  background: var(--bg-hover);
}

.step-item.active .step-circle {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.step-item.done .step-circle {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success);
  color: var(--success);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.step-item.active .step-circle {
  color: #fff;
}

.step-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.step-item.active .step-label {
  color: var(--primary-light);
}

.step-item.done .step-label {
  color: var(--success);
}

.step-connector {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}

.step-connector.done {
  background: var(--success);
}

/* ══════════════════════════════════════════
   ACCORDION
   ══════════════════════════════════════════ */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-2);
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: var(--border-hover);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--text-primary);
  min-height: 56px;
  gap: var(--sp-3);
}

.accordion-header:hover {
  background: var(--bg-hover);
}

.accordion-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-item.open .accordion-body {
  max-height: 600px;
}

.accordion-content {
  padding: var(--sp-3) var(--sp-5) var(--sp-5);
}

/* ══════════════════════════════════════════
   CALLOUT BOXES
   ══════════════════════════════════════════ */
.callout {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  margin: var(--sp-4) 0;
  border-left: 3px solid;
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: 4px;
}

.callout-body {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.callout-tip {
  background: rgba(0, 212, 170, 0.08);
  border-color: var(--accent);
  color: var(--text-secondary);
}

.callout-tip .callout-title {
  color: var(--accent);
}

.callout-tip .callout-icon {
  color: var(--accent);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--warning);
  color: var(--text-secondary);
}

.callout-warning .callout-title {
  color: var(--warning);
}

.callout-warning .callout-icon {
  color: var(--warning);
}

.callout-info {
  background: rgba(108, 60, 228, 0.08);
  border-color: var(--primary);
  color: var(--text-secondary);
}

.callout-info .callout-title {
  color: var(--primary-light);
}

.callout-info .callout-icon {
  color: var(--primary-light);
}

/* ══════════════════════════════════════════
   SOCIAL MEDIA BUTTONS
   ══════════════════════════════════════════ */
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition-fast);
  cursor: pointer;
}

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

.social-btn.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.social-btn.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #fff;
}

.social-btn.tiktok:hover {
  background: #69C9D0;
  border-color: #69C9D0;
  color: #000;
}

.social-btn.zalo:hover {
  background: #0068FF;
  border-color: #0068FF;
  color: #fff;
}

.social-btn.email:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ══════════════════════════════════════════
   FLOATING ACTION BUTTONS (ZALO)
   ══════════════════════════════════════════ */
.zalo-fab-wrapper {
  position: fixed;
  bottom: calc(var(--bottom-nav-h, 60px) + var(--sp-4));
  right: var(--sp-4);
  z-index: var(--z-modal, 300);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

@media (min-width: 768px) {
  .zalo-fab-wrapper {
    bottom: var(--sp-6);
    right: var(--sp-6);
  }
}

.zalo-tooltip {
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  animation: shakeTooltip 3s infinite;
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.zalo-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: var(--bg-surface);
  border-bottom: 1.5px solid var(--primary);
  border-right: 1.5px solid var(--primary);
  transform: rotate(45deg);
}

.zalo-fab {
  width: 52px;
  height: 52px;
  background-color: #0068FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.4);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zalo-fab:hover {
  transform: scale(1.1) rotate(10deg);
}

@keyframes shakeTooltip {

  0%,
  100% {
    transform: translateY(0);
  }

  5% {
    transform: translateY(-4px);
  }

  10% {
    transform: translateY(0);
  }

  15% {
    transform: translateY(-2px);
  }

  20% {
    transform: translateY(0);
  }
}