/* ============================================================
   NHANHMEDIA ACADEMY — Design System 3.0
   Nguồn: Web Nhanhmedia 3.0 / BRAND-GUIDELINES.md (RED ONLY)
   Dùng chung cho mọi trang: login, portal, lesson, order...
   "Làm thực, ra kết quả thực."
   ============================================================ */

:root {
  /* ── RED FAMILY (primary accent — RED ONLY) ── */
  --red:        #E8192C;   /* Cinematic Red — CTA, accent chính */
  --red2:       #ff2233;   /* Red Hover */
  --red-s:      #ff4d5e;   /* Red Soft — labels, highlight */
  --red-dark:   #b82a00;   /* Gradient/shadow */
  --red-darker: #7a1500;   /* Deep gradient / blobs */

  /* ── BACKGROUND + NEUTRAL ── */
  --black:      #060606;   /* Page background */
  --card:       #0c0c0c;   /* Card background */
  --card2:      #0e0e0e;   /* Nested card */
  --red-tint:   #1a0508;   /* Red card gradient tint */
  --border:     #1e1e1e;   /* Default border */

  /* ── TEXT ── */
  --white:      #ffffff;
  --gray:       #9ca3af;   /* Body copy */
  --gray2:      #6b7280;   /* Secondary */
  --muted:      #4b5563;   /* Disabled/tertiary */

  /* ── GOLD (optional, rare) ── */
  --gold:       #C9A84C;
  --gold-light: #ffe08a;

  /* ── GLASS ── */
  --g-bg:   rgba(6, 6, 6, 0.62);
  --g-bd:   rgba(232, 25, 44, 0.15);
  --g-bdw:  rgba(255, 255, 255, 0.08);
  --blur:   blur(24px);

  /* ── FONT SYSTEM ── */
  --font-big:     'Big Shoulders Display', 'Helvetica Neue', sans-serif; /* Hero/section titles */
  --font-display: 'Cormorant Garamond', Georgia, serif;                   /* Quotes, sub-heading */
  --font-body:    'Playfair Display', Georgia, serif;                     /* Body italic */
  --font-ui:      'DM Sans', 'Helvetica Neue', Arial, sans-serif;         /* Nav, button, label */
  --font-num:     'Bebas Neue', sans-serif;                               /* Stats, numbers, badge */
}

/* ── BASE ── */
* { box-sizing: border-box; }
body {
  font-family: var(--font-ui);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── BG BLOBS — ambient red glow (signature 3.0) ── */
.bg-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.28; animation: drift 22s ease-in-out infinite alternate; }
.blob1 { width: 760px; height: 760px; background: radial-gradient(circle, var(--red-dark), transparent 70%); top: -260px; left: -240px; animation-duration: 24s; }
.blob2 { width: 480px; height: 480px; background: radial-gradient(circle, var(--red-darker), transparent 70%); bottom: -120px; right: -100px; animation-duration: 18s; animation-delay: -9s; }
.blob3 { width: 360px; height: 360px; background: radial-gradient(circle, #e84200, transparent 70%); top: 48%; left: 50%; transform: translate(-50%,-50%); opacity: 0.1; animation-duration: 28s; animation-delay: -5s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(46px,32px) scale(1.06); } }

/* ── GLASS UTILITIES ── */
.glass {
  background: var(--g-bg);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--g-bd);
  border-radius: 22px;
}
.glass-w {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--g-bdw);
  border-radius: 22px;
}

/* ── TYPOGRAPHY HELPERS ── */
.t-big      { font-family: var(--font-big); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; line-height: .95; }
.t-display  { font-family: var(--font-display); font-style: italic; font-weight: 600; }
.t-body     { font-family: var(--font-body); font-style: italic; font-weight: 400; line-height: 1.85; color: var(--gray); }
.t-num      { font-family: var(--font-num); letter-spacing: .5px; }
.t-label    { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-s); font-weight: 500; }

/* Gradient red → dark for big headlines */
.t-grad {
  background: linear-gradient(180deg, #ff3344 0%, #cc2000 45%, #5a0a00 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Accent word in red */
.t-red { color: var(--red); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--red); color: #fff; border: none;
  font-family: var(--font-ui); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-radius: 10px; cursor: pointer;
  box-shadow: 0 0 30px rgba(232,25,44,.25);
  transition: all .2s;
}
.btn-primary:hover { background: var(--red2); box-shadow: 0 0 50px rgba(232,25,44,.45); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent; color: var(--red);
  border: 1px solid var(--red); border-radius: 10px;
  font-family: var(--font-ui); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { background: var(--red); color: #fff; }

/* ── FORM INPUTS ── */
.inp {
  background: #111; border: 1px solid var(--border); color: #fff;
  border-radius: 10px; transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-ui);
}
.inp:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,25,44,.14); }
.inp::placeholder { color: #3a3a3a; }
.inp:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #111 inset !important; -webkit-text-fill-color: #fff !important; }

/* ── CARDS ── */
.card-3 {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card-3:hover { border-color: rgba(232,25,44,.45); box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(232,25,44,.1); }

/* ── DIVIDER (gradient line) ── */
.divider-grad { height: 1px; border: none; background: linear-gradient(90deg, transparent, var(--red), transparent); }

/* ── BADGE / TAG ── */
.badge {
  font-family: var(--font-num); font-size: .8rem; letter-spacing: 1px;
  text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--red-s)); color: #fff;
}

/* ── ALERTS ── */
.alert-warn { background: rgba(180,83,9,.15); border: 1px solid rgba(251,191,36,.25); color: #fbbf24; border-radius: 10px; }
.alert-err  { background: rgba(232,25,44,.08); border: 1px solid rgba(232,25,44,.28); color: var(--red-s); border-radius: 10px; }
.alert-ok   { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.25);  color: #4ade80; border-radius: 10px; }

/* ── TOP ACCENT BAR ── */
.top-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red-darker), var(--red), var(--red-s), var(--red), var(--red-darker)); z-index: 1000; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}
