/* ==========================================================================
   AETHER THẦN TÀI ĐIỆN — Giao diện Đại Điện Chứng Sỹ & Radar Định Lượng 2.5D
   Phiên bản: v1.1.0 (Chuẩn Font Tiếng Việt Có Dấu + Giao Diện Mobile Toàn Cảnh Icon-First)
   ========================================================================== */

:root {
  --bg-abyss: #07050c;
  --bg-panel: rgba(14, 10, 24, 0.94);
  --bg-panel-heavy: rgba(18, 12, 29, 0.98);
  --gold-light: #ffe58f;
  --gold-main: #f5b942;
  --gold-deep: #b87b14;
  --crimson: #8f1d21;
  --crimson-bright: #e11d48;
  --aether-purple: #a855f7;
  --aether-cyan: #06b6d4;
  --sig-buy: #22c55e;
  --sig-accum: #10b981;
  --sig-wait: #f59e0b;
  --sig-hold: #94a3b8;
  --sig-avoid: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --border-gold: rgba(245, 185, 66, 0.42);
  --shadow-gold: 0 0 28px rgba(245, 185, 66, 0.25);
  --font-vn: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif-vn: 'Noto Serif', 'Be Vietnam Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #1e112a 0%, #09060e 72%, #040307 100%);
  color: var(--text-main);
  font-family: var(--font-vn);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font-family: var(--font-vn);
  line-height: 1.35;
}

.font-serif-vn {
  font-family: var(--font-serif-vn);
}

.font-mono-quant {
  font-family: var(--font-mono);
}

/* ─── KHUNG SÂN KHẤU ĐẠI ĐIỆN TOÀN CẢNH ───────────────────────────────────── */
#templeViewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#templeStage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #231127 0%, #0c0714 65%, #050309 100%);
}

#templeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#templeCanvas:active {
  cursor: grabbing;
}

/* ─── THANH HOÀNG KIM ĐẦU ĐẠI ĐIỆN (TOP HUD TINH GỌN) ─────────────────────── */
.top-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(8, 5, 15, 0.96) 0%, rgba(12, 8, 22, 0.84) 76%, rgba(12, 8, 22, 0) 100%);
  padding: 8px 14px 4px;
  pointer-events: none;
}

.top-hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
}

.brand-plaque {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(68, 16, 24, 0.94), rgba(26, 12, 36, 0.94));
  border: 1.5px solid var(--gold-main);
  border-radius: 12px;
  padding: 5px 12px;
  box-shadow: var(--shadow-gold);
}

.brand-crest {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe58f 0%, #d97706 72%, #78350f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
}

.brand-title {
  font-family: var(--font-serif-vn);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
}

.brand-sub {
  font-size: 11px;
  color: #e2e8f0;
  opacity: 0.88;
  line-height: 1.25;
}

/* Hộp Thiên Cơ Vĩ Mô (VN-Index & Regime) */
.regime-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 10, 24, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.regime-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
}

.regime-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  white-space: nowrap;
}

.regime-stat strong {
  color: var(--gold-light);
  font-family: var(--font-mono);
}

/* Cụm nút công cụ & chỉ số góc phải trên */
.hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(18, 14, 30, 0.9);
  border: 1px solid rgba(245, 185, 66, 0.32);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-chip strong {
  color: var(--gold-light);
  font-family: var(--font-mono);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(26, 19, 42, 0.92);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.3;
}

.icon-btn:hover {
  background: rgba(245, 185, 66, 0.22);
  border-color: var(--gold-light);
}

.icon-btn.active {
  background: linear-gradient(135deg, #b45309, #78350f);
  border-color: var(--gold-light);
  color: #fff;
}

/* ─── BẢNG CHẠY TÍN HIỆU RADAR (MARQUEE TAPE) ────────────────────────────── */
.radar-marquee-wrap {
  margin-top: 5px;
  background: rgba(10, 7, 19, 0.88);
  border-top: 1px solid rgba(245, 185, 66, 0.25);
  border-bottom: 1px solid rgba(245, 185, 66, 0.25);
  height: 26px;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 6px;
}

.marquee-label {
  background: linear-gradient(90deg, #991b1b, #b45309);
  color: #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  padding-left: 14px;
  animation: radarScroll 58s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 6px;
}

.marquee-item:hover {
  background: rgba(245, 185, 66, 0.18);
}

.marquee-ticker {
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.marquee-price {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

@keyframes radarScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── CỤM NÚT ICON NỔI GỌI TÍNH NĂNG KHI CẦN (FLOATING FEATURE ORBS) ─────── */
.floating-feature-orbs {
  position: absolute;
  top: 84px;
  z-index: 26;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-feature-orbs.left {
  left: 10px;
}

.floating-feature-orbs.right {
  right: 10px;
}

.orb-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(36, 16, 42, 0.94), rgba(16, 11, 28, 0.96));
  border: 1.5px solid var(--gold-main);
  color: var(--gold-light);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 14px rgba(245, 185, 66, 0.22);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.orb-btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: #fff;
  background: linear-gradient(135deg, #991b1b, #b45309);
  color: #fff;
}

.orb-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 185, 66, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.orb-label {
  white-space: nowrap;
  line-height: 1.3;
}

/* ─── NGĂN KÉO TÍNH NĂNG (CHỈ MỞ KHI BẤM ICON) ───────────────────────────── */
.side-drawer {
  position: absolute;
  top: 82px;
  bottom: 84px;
  width: 325px;
  z-index: 38;
  background: var(--bg-panel);
  border: 1.5px solid var(--gold-main);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.82);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.side-drawer.left {
  left: 10px;
}

.side-drawer.right {
  right: 10px;
}

.side-drawer.collapsed.left {
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
}

.side-drawer.collapsed.right {
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
}

.drawer-header {
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.65), rgba(45, 21, 72, 0.65));
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
}

.drawer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 8px;
  background: rgba(8, 6, 15, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-tabs.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.drawer-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 7px;
  cursor: pointer;
  text-align: center;
}

.drawer-tab.active {
  background: rgba(245, 185, 66, 0.22);
  border-color: var(--gold-main);
  color: var(--gold-light);
}

.drawer-search {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.drawer-search input {
  width: 100%;
  background: rgba(7, 5, 14, 0.9);
  border: 1px solid rgba(245, 185, 66, 0.4);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.radar-item-card {
  background: rgba(24, 17, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.radar-item-card:hover {
  border-color: var(--gold-main);
  background: rgba(42, 27, 64, 0.95);
}

.radar-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.radar-ticker {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.radar-sector {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-left: 6px;
}

.radar-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.radar-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.radar-reason {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.4;
}

/* Thẻ Sớ Khấn Đám Đông */
.prayer-card {
  background: rgba(24, 17, 38, 0.85);
  border-left: 3px solid var(--gold-main);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
}

.prayer-card.vip {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.45), rgba(46, 16, 101, 0.55));
  border-left-color: #fde047;
}

.prayer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 3px;
}

.prayer-user {
  font-weight: 700;
  color: var(--gold-light);
}

.prayer-ticker-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
}

.prayer-text {
  color: #f1f5f9;
  line-height: 1.4;
}

.drawer-footer {
  padding: 8px 10px;
  border-top: 1px solid rgba(245, 185, 66, 0.25);
  background: rgba(10, 7, 18, 0.94);
}

.emote-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.emote-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}

.quick-prayer-form {
  display: flex;
  gap: 6px;
}

.quick-prayer-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: 8px;
  padding: 6px 9px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

.quick-prayer-form button {
  background: linear-gradient(135deg, #d97706, #92400e);
  border: 1px solid var(--gold-light);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ─── NÚT ĐIỀU KHIỂN GÓC NHÌN CAMERA (TOÀN CẢNH / CẬN CẢNH) ──────────────── */
.camera-controls {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(12, 8, 22, 0.88);
  border: 1px solid rgba(245, 185, 66, 0.42);
  border-radius: 999px;
  padding: 3px 8px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.cam-btn {
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.3;
}

.cam-btn:hover {
  background: rgba(245, 185, 66, 0.2);
}

/* ─── THANH NGHI LỄ DƯỚI ĐÁY ĐẠI SẢNH (CHUẨN FONT TIẾNG VIỆT & ICON-FIRST) ── */
.bottom-dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: linear-gradient(180deg, rgba(24, 14, 38, 0.95), rgba(10, 6, 18, 0.98));
  border: 1.5px solid var(--gold-main);
  border-radius: 18px;
  padding: 7px 10px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 185, 66, 0.22);
  max-width: 98vw;
}

.dock-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 185, 66, 0.35);
  color: var(--text-main);
  padding: 8px 13px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  font-family: var(--font-vn);
}

.dock-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
  background: rgba(245, 185, 66, 0.16);
}

.dock-btn.primary-enter {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 55%, #b45309 100%);
  border: 1.5px solid #fde047;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.42);
}

.dock-btn.gold-fortune {
  background: linear-gradient(135deg, #b45309 0%, #d97706 52%, #7c2d12 100%);
  border: 1.5px solid #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.42);
}

.dock-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.dock-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.dock-title {
  font-family: var(--font-vn);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

.dock-sub {
  font-family: var(--font-vn);
  font-size: 10.5px;
  color: var(--gold-light);
  opacity: 0.92;
  line-height: 1.3;
}

/* ─── HIỆU ỨNG SỚ KHẤN BAY QUA MÀN HÌNH (DANMAKU) & CHIÊNG VÀNG ─────────── */
#danmakuLayer {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  height: 160px;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.danmaku-item {
  position: absolute;
  right: -420px;
  white-space: nowrap;
  background: rgba(15, 10, 28, 0.82);
  border: 1px solid rgba(245, 185, 66, 0.48);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 12px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  animation: danmakuFly 15s linear forwards;
}

.danmaku-item.vip {
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.92), rgba(88, 28, 135, 0.92));
  border: 1.5px solid #fde047;
  font-weight: 700;
}

@keyframes danmakuFly {
  0% { transform: translateX(0); }
  100% { transform: translateX(-145vw); }
}

.golden-gong-banner {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  z-index: 45;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(146, 64, 14, 0.96));
  border: 2px solid #fde047;
  border-radius: 14px;
  padding: 9px 18px;
  color: #fef9c3;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 36px rgba(250, 204, 21, 0.65);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 92vw;
  text-align: center;
}

.golden-gong-banner.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.tts-toast {
  position: absolute;
  bottom: 124px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  background: rgba(20, 12, 34, 0.94);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 92vw;
}

.tts-toast.active {
  display: inline-flex;
}

/* ─── MODAL HỆ THỐNG & BẢNG ĐỒNG Ý TRƯỚC KHI TRUY CẬP ───────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 3, 10, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-backdrop.consent-gate {
  z-index: 95;
  background: radial-gradient(circle at 50% 35%, rgba(42, 16, 36, 0.94) 0%, rgba(6, 4, 12, 0.97) 100%);
  backdrop-filter: blur(14px);
}

.temple-modal {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  max-height: 90dvh;
  background: linear-gradient(180deg, #1b112c 0%, #0f0a19 100%);
  border: 2px solid var(--gold-main);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.88), 0 0 36px rgba(245, 185, 66, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.22s ease-out;
}

.temple-modal.wide {
  max-width: 820px;
}

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

.modal-header {
  padding: 14px 18px;
  background: linear-gradient(90deg, #5c1319 0%, #3b1754 55%, #5c3409 100%);
  border-bottom: 1.5px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-title {
  font-family: var(--font-vn);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.modal-close-btn {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  user-select: text;
}

/* Nội dung Bảng Thông Báo Miễn Trừ & Đồng Ý Tham Gia */
.consent-rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}

.consent-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: #f1f5f9;
}

.consent-rule-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.consent-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 185, 66, 0.12);
  border: 1px solid rgba(245, 185, 66, 0.45);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  cursor: pointer;
  margin-bottom: 14px;
}

.consent-check-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #d97706;
  cursor: pointer;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.35;
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(8, 5, 16, 0.92);
  border: 1px solid rgba(245, 185, 66, 0.42);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  font-family: var(--font-vn);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #fde047;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.avatar-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
}

.avatar-option.selected {
  background: rgba(245, 185, 66, 0.22);
  border-color: #fde047;
}

.avatar-option .av-emoji {
  font-size: 22px;
  display: block;
}

.avatar-option .av-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
  line-height: 1.3;
}

.wish-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.wish-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
}

.wish-pill.selected {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.48), rgba(124, 45, 18, 0.58));
  border-color: #fde047;
  color: #fff;
}

.oracle-result-card {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(28, 18, 46, 0.96), rgba(17, 11, 29, 0.98));
  border: 1.5px solid var(--gold-main);
  border-radius: 16px;
  padding: 15px;
}

.oracle-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(245, 185, 66, 0.25);
  padding-bottom: 10px;
}

.oracle-ticker-big {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.oracle-poem-box {
  margin: 12px 0;
  padding: 12px 15px;
  background: rgba(120, 53, 15, 0.24);
  border-left: 4px solid var(--gold-main);
  border-radius: 8px;
  font-family: var(--font-serif-vn);
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: #fef3c7;
}

.locked-deep-preview {
  margin-top: 12px;
  background: rgba(10, 7, 18, 0.88);
  border: 1px dashed rgba(245, 185, 66, 0.55);
  border-radius: 12px;
  padding: 12px;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.locked-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 11.5px;
}

.locked-blur {
  filter: blur(4px);
  user-select: none;
  color: #fde047;
  font-family: var(--font-mono);
}

.fortune-split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.qr-sacred-frame {
  background: linear-gradient(180deg, rgba(45, 22, 12, 0.65), rgba(20, 12, 32, 0.92));
  border: 1.5px solid var(--gold-main);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-sacred-frame img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  border: 2px solid var(--gold-light);
}

.voluntary-badge {
  display: inline-block;
  margin-top: 8px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.btn-cta-gold {
  width: 100%;
  background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #991b1b 100%);
  border: 1.5px solid #fef08a;
  color: #ffffff;
  font-family: var(--font-vn);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.45);
  transition: all 0.18s;
}

.btn-cta-gold:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.65);
}

.btn-cta-gold:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-zalo-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1.5px solid #7dd3fc;
  color: #fff;
  font-family: var(--font-vn);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  padding: 13px 18px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
}

/* ==========================================================================
   HỘP TU TẬP KỶ LUẬT, BIỂU ĐỒ 60 PHIÊN, ĐẶT LỊCH NHẮC & HỆ SINH THÁI (v1.2.2)
   ========================================================================== */
.data-quality-banner {
  position: fixed;
  right: 12px;
  bottom: 96px;
  z-index: 18;
  max-width: 280px;
  background: rgba(15, 10, 26, 0.85);
  color: #cbd5e1;
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10.5px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-quality-banner:empty {
  display: none;
}

.practice-session-banner {
  font-size: 11px;
  font-weight: 600;
  color: #fde047;
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid rgba(245, 185, 66, 0.38);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.16s ease;
}

.practice-session-banner:hover {
  background: rgba(245, 185, 66, 0.25);
  border-color: #fde047;
}

.experience-tabs {
  grid-template-columns: repeat(4, 1fr);
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 6px;
  gap: 6px;
  background: rgba(8, 5, 16, 0.82);
  border: 1px solid rgba(245, 185, 66, 0.3);
}

.experience-tabs .drawer-tab {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
}

.experience-content-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
}

.discipline-intro-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.32), rgba(120, 53, 15, 0.35));
  border: 1px solid rgba(245, 185, 66, 0.42);
  border-radius: 14px;
  padding: 12px 14px;
}

.discipline-intro-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 3px;
}

.discipline-intro-sub {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.discipline-count-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.discipline-topic-section {
  background: rgba(12, 8, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 11px 13px;
}

.discipline-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fbbf24;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.discipline-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mission-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 185, 66, 0.32);
  color: #f8fafc;
  padding: 7px 11px;
  border-radius: 10px;
  font-family: var(--font-vn);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  line-height: 1.35;
}

.mission-choice:hover {
  background: rgba(245, 185, 66, 0.18);
  border-color: var(--gold-light);
  color: #fff;
}

.mission-choice.topic-pill.active {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.68), rgba(124, 45, 18, 0.78));
  border-color: #fde047;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.mission-choice.topic-pill.done {
  border-color: rgba(52, 211, 153, 0.6);
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.discipline-step-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discipline-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 7px;
}

.discipline-step-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #fde047;
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid rgba(245, 185, 66, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.discipline-step-meta {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.discipline-mission-title {
  font-family: var(--font-vn);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

.discipline-scenario-callout {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3.5px solid var(--gold-main);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: #f1f5f9;
  line-height: 1.5;
}

.discipline-sub-prompt {
  font-size: 12px;
  font-weight: 700;
  color: #fde047;
}

.discipline-choices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.discipline-option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(8, 5, 16, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  width: 100%;
}

.discipline-option-card .option-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
}

.discipline-option-card .option-text {
  font-size: 12.5px;
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.4;
}

.discipline-option-card.selected-good {
  background: rgba(6, 78, 59, 0.55);
  border-color: #34d399;
}

.discipline-option-card.selected-good .option-badge {
  color: #6ee7b7;
}

.discipline-option-card.selected-warn {
  background: rgba(120, 53, 15, 0.55);
  border-color: #fbbf24;
}

.discipline-feedback-box {
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.45;
}

.discipline-feedback-box.good {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.48);
  color: #a7f3d0;
}

.discipline-feedback-box.warn {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.48);
  color: #fde68a;
}

.discipline-checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.discipline-check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
  color: #f1f5f9;
  cursor: pointer;
  line-height: 1.4;
}

.discipline-check-row input[type='checkbox'] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #f59e0b;
  flex-shrink: 0;
  cursor: pointer;
}

.discipline-commit-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.discipline-commit-label {
  font-size: 12px;
  font-weight: 700;
  color: #fde047 !important;
}

.sample-fill-btn {
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 8px;
}

.discipline-textarea,
.experience-content-box input[type='text'],
.experience-content-box input[type='number'],
.experience-content-box select,
.experience-content-box textarea {
  width: 100%;
  background: rgba(7, 5, 14, 0.92);
  border: 1px solid rgba(245, 185, 66, 0.42);
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  font-family: var(--font-vn);
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.discipline-textarea:focus,
.experience-content-box input:focus,
.experience-content-box select:focus {
  border-color: #fde047;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25);
}

.discipline-status-msg {
  font-size: 12px;
  font-weight: 600;
  min-height: 16px;
}

.discipline-status-msg.ok {
  color: #4ade80;
}

.discipline-status-msg.warn {
  color: #fbbf24;
}

.discipline-journal-card {
  background: rgba(12, 8, 22, 0.85);
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discipline-journal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.discipline-journal-head h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-light);
  margin: 0;
}

.discipline-empty-journal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.discipline-journal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.discipline-journal-item {
  background: rgba(24, 17, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discipline-journal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.discipline-journal-date {
  font-size: 11.5px;
  font-weight: 700;
  color: #fde047;
}

.discipline-review-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.discipline-review-badge.ok {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.discipline-review-badge.warn {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.discipline-journal-text {
  font-size: 12.5px;
  color: #f8fafc;
  font-style: italic;
}

.discipline-journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journal-action-btn {
  padding: 4px 10px;
  font-size: 11px;
}

.journal-action-btn.active {
  background: rgba(245, 185, 66, 0.25);
  border-color: #fde047;
  color: #fde047;
}

/* Biểu đồ 60 phiên & Thẻ KPI */
.chart-search-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.chart-search-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.chart-search-input-row input {
  flex: 1;
}

.chart-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.chart-kpi-card {
  background: rgba(8, 5, 16, 0.82);
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}

.chart-kpi-label {
  font-size: 10.5px;
  color: #94a3b8;
}

.chart-kpi-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #fde047;
  margin-top: 2px;
}

.stock-history-svg {
  width: 100%;
  height: auto;
  max-height: 240px;
  background: rgba(7, 5, 14, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 12px;
  padding: 8px;
  margin-top: 8px;
}

.chart-data-details {
  margin-top: 6px;
  background: rgba(8, 5, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
}

.chart-data-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}

.experience-content-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.experience-content-box th,
.experience-content-box td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

/* ==========================================================================
   GIAO DIỆN MOBILE CHUYÊN NGHIỆP TOÀN CẢNH & CÂN ĐỐI KHOA HỌC (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .top-hud {
    padding: 5px 8px 3px;
  }

  /* Bố cục Top HUD 2 dòng cân đối trên Mobile:
     Dòng 1: Biển hiệu Đại Điện (Trái) + Cụm nút Âm thanh/Lưu ý (Phải)
     Dòng 2: Thanh Vĩ Mô & VN-Index trải ngang 100% */
  .top-hud-row {
    flex-wrap: wrap;
    gap: 5px;
  }

  .brand-plaque {
    order: 1;
    padding: 4px 8px;
    gap: 6px;
    border-radius: 10px;
  }

  .brand-crest {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .brand-title {
    font-size: 12px;
    letter-spacing: 0.2px;
  }

  .brand-sub,
  .hide-mobile {
    display: none !important;
  }

  .hud-actions {
    order: 2;
    margin-left: auto;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .stat-chip {
    padding: 3px 7px;
    font-size: 10.5px;
  }

  .icon-btn {
    padding: 4px 8px;
    font-size: 11px;
  }

  .regime-bar {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding: 3px 10px;
    gap: 6px;
    font-size: 11px;
  }

  .regime-pill {
    font-size: 10px;
    padding: 2px 7px;
  }

  .radar-marquee-wrap {
    height: 23px;
    margin-top: 4px;
  }

  .marquee-label {
    font-size: 10px;
    padding: 0 7px;
  }

  /* Cụm Icon Nổi 2 bên mép trên Mobile: nằm gọn ngay dưới thanh Radar Marquee, không che Bồ Đoàn */
  .floating-feature-orbs {
    top: 96px;
    gap: 6px;
  }

  .floating-feature-orbs.left {
    left: 6px;
  }

  .floating-feature-orbs.right {
    right: 6px;
    align-items: flex-end;
  }

  .orb-btn {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    gap: 4px;
  }

  .orb-icon {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }

  /* Ngăn kéo mở ra dạng Bottom-Sheet gọn gàng trên Mobile */
  .side-drawer {
    top: auto;
    bottom: 70px;
    left: 8px !important;
    right: 8px !important;
    width: calc(100vw - 16px);
    height: 58dvh;
    max-height: 440px;
    border-radius: 18px;
  }

  .side-drawer.collapsed.left,
  .side-drawer.collapsed.right {
    transform: translateY(calc(100% + 90px));
    opacity: 0;
    pointer-events: none;
  }

  /* Cụm điều khiển Camera nằm trên 1 hàng ngang duy nhất ngay trên thanh Dock */
  .camera-controls {
    bottom: 66px;
    padding: 2px 6px;
    gap: 2px;
    max-width: 96vw;
  }

  .cam-btn {
    font-size: 10.5px;
    padding: 3px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Thanh Nghi Lễ Dưới Đáy (Bottom Dock) dạng Lưới 6 Icon Đều Nhau Chuẩn Mobile */
  .bottom-dock {
    bottom: 6px;
    left: 6px;
    right: 6px;
    transform: none;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 5px 5px;
    border-radius: 14px;
  }

  .dock-btn {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 5px 2px;
    border-radius: 10px;
  }

  .dock-icon {
    font-size: 17px;
  }

  .dock-text {
    align-items: center;
    text-align: center;
  }

  .dock-title {
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .dock-sub {
    display: none;
  }

  /* Tinh chỉnh Modal & Bảng Đồng Ý (Consent Gate) vừa khít màn hình Mobile */
  .modal-backdrop {
    padding: 8px;
  }

  .temple-modal {
    max-height: 92dvh;
    border-radius: 16px;
  }

  .modal-header {
    padding: 11px 14px;
  }

  .modal-title {
    font-size: 13.5px;
    line-height: 1.3;
  }

  .modal-body {
    padding: 12px 13px;
  }

  .consent-rule-list {
    gap: 7px;
    margin: 8px 0 10px;
  }

  .consent-rule-item {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    gap: 8px;
  }

  .consent-rule-icon {
    font-size: 17px;
  }

  .consent-check-label {
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* Box Tu Tập & Kỷ Luật trên Mobile */
  .experience-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
  }

  .experience-tabs .drawer-tab {
    font-size: 11.5px;
    padding: 7px 6px;
  }

  .discipline-intro-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 8px;
  }

  .mission-content,
  .form-grid,
  .fortune-split-layout,
  .locked-grid {
    grid-template-columns: 1fr;
  }

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

  .avatar-picker {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* UX candidate: accessible task controls and reduced motion. */
.quiet-mode-button { position: fixed; left: 12px; bottom: 94px; z-index: 26; min-height: 44px; border-radius: 10px; background: #1d142c; color: #fde047; border: 1px solid #b88b42; padding: 8px; }
.quiet-mode *, .quiet-mode *::before, .quiet-mode *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.discipline-topic-section summary { cursor: pointer; min-height: 44px; padding: 10px; color: #fde047; }
.discipline-step-card button, .mission-choice, .manual-report-actions button { min-height: 44px; }
.discipline-textarea { font-size: 16px; }
.stock-history-svg { width: 100%; height: auto; }
.admin-inbox-row { padding: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid #403248; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 768px) { .data-quality-banner { white-space: normal; max-width: 210px; font-size: 12px; } .experience-tab-nav { flex-wrap: wrap; } .discipline-scenario-callout, .discipline-option-card { font-size: 15px; } }
