/* ============================================================
   tokens.css — Bộ token thiết kế ShareTaiKhoan (J.A.R.V.I.S.)
   ĐÃ DUYỆT 23/11/2026. Áp thử đầu tiên: template-canva-pro.php.
   Nguồn giá trị: trích xuất từ jarvis-demo.css bản live 23/11/2026
   (xem trich-xuat-hien-trang.md + bang-anh-xa.md cùng thư mục).
   Quy ước: token cũ (--bg, --cyan...) giữ nguyên tên làm lớp tương
   thích; token mới đặt theo vai trò (--color-*, --text-*...).
   ============================================================ */

:root {
  /* ---------- Màu nền ---------- */
  --color-bg-body: #02070f;                    /* ← --bg */
  --color-bg-surface: #04101d;                 /* ← --bg-2 */
  --color-bg-panel: rgba(0, 60, 92, 0.22);     /* ← --panel */
  --color-bg-card: #06182a;                    /* ← --panel-solid */

  /* ---------- Viền ---------- */
  --color-border: rgba(0, 212, 255, 0.28);     /* ← --line */
  --color-border-soft: rgba(0, 212, 255, 0.14);/* ← --line-soft */

  /* ---------- Accent ---------- */
  --color-accent: #00d4ff;                     /* ← --cyan */
  --color-accent-bright: #7ef0ff;              /* ← --cyan-bright */
  --color-accent-dim: #1b7ea6;                 /* ← --cyan-dim */
  --color-gold: #ffb547;                       /* ← --gold */

  /* ---------- Chữ ---------- */
  --color-text-core: #eafcff;                  /* ← --core */
  --color-text-primary: #dff6ff;               /* ← --text */
  --color-text-secondary: #8fb8cc;             /* ← --muted */
  --color-text-faint: #5b8296;                 /* ← --faint */

  /* ---------- Trạng thái ---------- */
  --color-info: #00d4ff;                       /* = accent (đang dùng thực tế) */
  --color-success: #3dffa0;                    /* ← --green */
  --color-warning: #ffb547;                    /* = gold (đang dùng thực tế) */
  --color-error: #ff5147;                      /* ← --red */
  --color-info-bg: rgba(0, 212, 255, 0.12);    /* MỚI */
  --color-success-bg: rgba(61, 255, 160, 0.12);/* MỚI */
  --color-warning-bg: rgba(255, 181, 71, 0.12);/* MỚI */
  --color-error-bg: rgba(255, 81, 71, 0.12);   /* MỚI */

  /* ---------- Font ---------- */
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-display: "Jura", "Be Vietnam Pro", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* ---------- Cỡ chữ (thang chuẩn hóa từ cỡ lẻ đang dùng) ---------- */
  --text-micro: 10px;    /* 9.5px → 10 */
  --text-caption: 11px;  /* 10.5px → 11 */
  --text-small: 12px;
  --text-body-sm: 13px;  /* 12.5px → 13 */
  --text-body: 14px;     /* 13.5px → 14 */
  --text-body-lg: 15px;  /* 14.5px → 15 */
  --text-base: 16px;     /* body chuẩn, line-height 1.55 */
  --text-heading-sm: 19px;
  --text-heading: 24px;
  --text-display: 32px;  /* trần của clamp tiêu đề trang Canva */
  --leading-body: 1.55;
  --leading-loose: 1.9;  /* readout HUD */

  /* ---------- Tracking (letter-spacing HUD) ---------- */
  --tracking-tight: 0.05em;
  --tracking-hud: 0.14em;
  --tracking-wide: 0.22em;

  /* ---------- Khoảng cách (thang mịn vùng nhỏ, tên = px) ---------- */
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;

  /* ---------- Bo góc / vát góc (phong cách HUD của site) ---------- */
  --radius-sm: 2px;
  --radius-full: 9999px;   /* hình tròn: reactor, avatar, dot */
  --cut-sm: 8px;           /* vát góc nút, nhãn — clip-path */
  --cut-md: 12px;          /* vát góc bong bóng/khung lớn — clip-path */

  /* ---------- Bóng / glow ---------- */
  --glow-sm: 0 0 10px rgba(0, 212, 255, 0.35);
  --glow-md: 0 0 14px rgba(0, 212, 255, 0.45);
  --glow-lg: 0 0 22px rgba(0, 212, 255, 0.85), 0 0 55px rgba(0, 212, 255, 0.45);
  --shadow-panel-inset: inset 0 0 24px rgba(0, 212, 255, 0.05);

  /* ---------- Chuyển động (tương tác; animation ambient giữ riêng) ---------- */
  --motion-fast: 200ms;
  --motion-medium: 300ms;
  --motion-panel: 320ms;
  --ease-standard: ease;
  --ease-panel: cubic-bezier(0.22, 0.75, 0.25, 1);

  /* ---------- Breakpoint (hằng số tài liệu — CSS var không dùng
     được trong media query, ghi để tra cứu khi viết CSS) ----------
     --bp-sm: 560px;   (readout)
     --bp-md: 860px;   (shell) */
}
