@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lora:ital,wght@0,400..700;1,400..700&family=IBM+Plex+Mono:ital,wght@0,100..700;1,100..700&display=swap');

/* ── THIẾT KẾ MÀU SẮC Oklch (CHẾ ĐỘ SÁNG) ── */
:root {
  --background: oklch(0.13 0.03 263); /* Nền mặc định là Dark/Tím sâu */
  --foreground: oklch(0.94 0.015 190);
  --card: oklch(0.17 0.035 263);
  --card-foreground: oklch(0.94 0.015 190);
  --primary: oklch(0.83 0.17 190); /* Cyan rực sáng */
  --primary-foreground: oklch(0.15 0.04 263);
  --secondary: oklch(0.22 0.04 263);
  --secondary-foreground: oklch(0.84 0.02 190);
  --muted: oklch(0.2 0.035 263);
  --muted-foreground: oklch(0.66 0.04 250);
  --destructive: oklch(0.67 0.22 25);
  --destructive-foreground: oklch(0.98 0.01 190);
  --border: oklch(0.32 0.05 258);
  --input: oklch(0.28 0.045 258);
  --ring: oklch(0.83 0.17 190);
  --chart-1: oklch(0.83 0.17 190); /* Xanh Bullish */
  --chart-2: oklch(0.71 0.23 345); /* Đỏ Bearish */

  --radius: 0.75rem;
  --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow-sm: 0 4px 18px oklch(0.03 0.025 263 / 0.32);
  --shadow-md: 0 12px 32px oklch(0.03 0.025 263 / 0.42);
  --shadow-lg: 0 24px 64px oklch(0.03 0.025 263 / 0.56);
}

/* ── THIẾT KẾ MÀU SẮC Oklch (CHẾ ĐỘ TỐI) ── */
.dark {
  --background: oklch(0.11 0.03 263);
  --foreground: oklch(0.94 0.015 190);
  --card: oklch(0.15 0.035 263);
  --card-foreground: oklch(0.94 0.015 190);
  --primary: oklch(0.83 0.17 190);
  --primary-foreground: oklch(0.13 0.04 263);
  --secondary: oklch(0.2 0.04 263);
  --secondary-foreground: oklch(0.84 0.02 190);
  --muted: oklch(0.18 0.035 263);
  --muted-foreground: oklch(0.67 0.04 250);
  --destructive: oklch(0.67 0.22 25);
  --destructive-foreground: oklch(0.98 0.01 190);
  --border: oklch(0.29 0.05 258);
  --input: oklch(0.25 0.045 258);
  --ring: oklch(0.83 0.17 190);
}

/* ── CẤU HÌNH CƠ BẢN ── */
*, ::before, ::after { 
  border-color: var(--border); 
}

html { height: 100%; }

body {
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

/* ── HIỆU ỨNG VÀ TIỆN ÍCH ── */
.animate-fade-in { 
  animation: fade-in 0.3s ease-in-out; 
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.text-balance {
  text-wrap: balance;
}

/* Lưới nền (Scan Grid) xịn xò của bản mới */
.scan-grid {
  background-image: linear-gradient(to right, oklch(0.55 0.04 255 / 0.08) 1px, transparent 1px), 
                    linear-gradient(to bottom, oklch(0.55 0.04 255 / 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
}