/* KENDU CAR — Light Theme Premium (Nền sáng, Khối xanh than, Chữ cam/trắng) */
/* Tối ưu theo nguyên tắc Apple Design (Typography, Materials, Motion) */
:root {
  /* Màu nền tổng thể */
  --bg-body: #fdfaf9;        /* Trắng hồng phớt rất nhạt */
  --bg-body-alt: #fff6f4;    /* Hồng phớt đậm hơn chút cho xen kẽ */
  
  /* Màu khối (Blocks/Cards) */
  --block-navy: #132238;     /* Xanh than đậm */
  --block-navy-light: #1e3452; /* Xanh than nhạt hơn cho các ô bên trong */
  
  /* Màu chữ & Điểm nhấn */
  --text-dark: #132238;      /* Chữ đen xanh cho nền sáng */
  --text-light: #ffffff;     /* Chữ trắng cho nền xanh than */
  --text-muted: #64748b;     /* Chữ xám cho nền sáng */
  --text-muted-light: #a4b4c7; /* Chữ xám nhạt cho nền xanh than */
  
  --primary: #f15a24;        /* Cam cháy */
  --primary-hover: #d94e20;
  
  /* Trạng thái (Giữ nguyên logic nhận diện) */
  --green: #10b981; --green-bg: rgba(16, 185, 129, 0.1);
  --yellow: #f59e0b; --yellow-bg: rgba(245, 158, 11, 0.1);
  --red: #ef4444; --red-bg: rgba(239, 68, 68, 0.1);
  --gray: #64748b; --gray-bg: rgba(100, 116, 139, 0.1);
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg-body);
  color: var(--text-dark);
  font: 1rem/1.6 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased; /* Làm mịn chữ trên Webkit */
  -moz-osx-font-smoothing: grayscale;
}

/* CĂN GIỮA TOÀN BỘ CHỮ (29/10/2026, anh Tuyến yêu cầu; trước đó là căn đều 2 bên).
   Ô nhập (input/select) vẫn căn trái để dễ gõ. */
body { text-align: center; }
p, li, .justify-text { text-align: center; }

/* HEADER & FOOTER — Áp dụng Material: Kính mờ (Translucent) */
.dau-trang {
  display: flex; align-items: center; justify-content: space-between;
  /* Thay nền trắng đặc bằng nền trắng trong suốt + blur */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 24px;
  position: sticky; top: 0; z-index: 50;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 32px; width: auto; }
/* Tracking cho logo: chữ nhỏ nên cần thoáng hơn */
.logo span { font-weight: 800; font-size: 1.25rem; color: var(--text-dark); letter-spacing: 0.2px; }

.noi-dung { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; width: 100%; flex: 1; }
.chan-trang {
  /* căn giữa container, cùng bề rộng với .noi-dung */
  max-width: 1200px;      /* hoặc bằng max-width của .noi-dung */
  margin: 0 auto;         /* căn giữa */
  padding: 24px 32px;     /* cùng padding trái/phải với nội dung */
  display: flex;
  gap: 4px;               /* khoảng cách logo và .com */
}

.chan-trang .logo {
  display: inline-flex;
  align-items: center;
}

.chan-trang .logo img {
  height: 40px;
  width: auto;
  display: block;
}

.chan-trang .logo-com {
  font-weight: 800;
  font-size: 1.4rem;
  color: #1e3a8a;         /* màu chữ .com */
  margin-left: 2px;
  line-height: 1;
}

/* TYPOGRAPHY — Áp dụng Tracking theo kích thước */
h1.hero-title { 
  font-size: 3.5rem; 
  font-weight: 800; 
  line-height: 1.05; /* Leading chặt hơn cho tiêu đề lớn */
  margin: 0 0 24px; 
  letter-spacing: -0.03em; /* Tracking âm cho chữ lớn */
  color: var(--text-dark); 
}
h1.hero-title span { color: var(--primary); display: block; }
h2 { font-size: 1.75rem; font-weight: 700; margin: 32px 0 16px; letter-spacing: -0.01em; }
.phu { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 32px; letter-spacing: 0; }
.phu-dam { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); }

/* KHỐI XANH THAN */
.khung-navy {
  background: var(--block-navy);
  color: var(--text-light);
  border-radius: 24px;
  padding: 40px;
  /* Bóng đổ sâu hơn cho khối lớn (Material weight) */
  box-shadow: 0 20px 40px rgba(19, 34, 56, 0.2), 0 1px 3px rgba(0,0,0,0.05);
}
.khung-navy h2, .khung-navy h3, .khung-navy label { color: var(--text-light); }
.khung-navy .phu, .khung-navy .ghi-chu { color: var(--text-muted-light); }

/* KHỐI TRẮNG */
.khung {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* FORM & INPUT */
label { display: block; font-weight: 600; margin: 16px 0 8px; letter-spacing: 0; }
input[type="email"], input[type="text"], input[type="date"], select {
  width: 100%; min-height: 56px; padding: 12px 16px;
  font-size: 1.125rem; color: var(--text-dark);
  background: #ffffff;
  border: 1.5px solid #cbd5e1; border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.1); /* Hiệu ứng focus mềm mại */
}
.khung-navy input { background: var(--block-navy-light); border-color: #334155; color: #fff; }
.khung-navy input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.2); }

/* NÚT BẤM — Motion: Phản hồi nhanh, mượt */
.nut {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  font-size: 1.125rem; font-weight: 700;
  border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; 
  border: none;
}
.nut-rong { width: 100%; margin-top: 24px; }
.nut-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(241, 90, 36, 0.3); }
.nut-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 16px rgba(241, 90, 36, 0.4); }
.nut-primary:active { transform: scale(0.98); } /* Phản hồi khi nhấn (Press feedback) */
.nut-phu { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.nut-phu:hover { background: rgba(241, 90, 36, 0.05); }
.nut-phu:active { transform: scale(0.98); }
.nut-nho { min-height: 44px; padding: 0 20px; font-size: 1rem; }

/* BẢNG ĐIỀU KHIỂN (DASHBOARD) */
.the {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 24px; margin: 16px 0;
  border-left: 6px solid var(--gray);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}
.the:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); } /* Thẻ nổi nhẹ khi hover */
.the h2 { margin: 0; font-size: 1.25rem; color: var(--text-dark); letter-spacing: -0.01em; }
.the p { margin: 0; color: var(--text-muted); }
.the .so-ngay { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.the .hanh-dong { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.the-xanh { border-left-color: var(--green); }
.the-vang { border-left-color: var(--yellow); }
.the-do { border-left-color: var(--red); }
.the-qua_han { border-left-color: var(--gray); }

/* TRANG ĐĂNG KÝ 2 CỘT */
.hai-cot { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hai-cot { grid-template-columns: 1fr 1fr; } }

/* TIỆN ÍCH KHÁC */
.o-chon { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; cursor: pointer; }
.o-chon input { width: 24px; height: 24px; accent-color: var(--primary); margin-top: 2px; }
.ghi-chu { font-size: 0.9rem; margin-top: 8px; letter-spacing: 0.01em; }
.loi { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); padding: 16px; border-radius: 12px; margin: 16px 0; }
.thong-bao { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); padding: 16px; border-radius: 12px; margin: 16px 0; }

/* --- CẤU TRÚC TRANG TÍNH NĂNG --- */
.landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .landing-grid { 
    /* Chia lại tỷ lệ: Cột chữ 1 phần, cột ảnh 1.2 phần */
    grid-template-columns: 1fr 1.2fr; 
    gap: 60px;
  }
}

/* Chặn ảnh tràn màn hình */
.poster-image-wrapper {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(19, 34, 56, 0.25);
  /* Đảm bảo khung ảnh không bị đẩy ra ngoài */
  min-width: 0; 
}

.poster-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Giữ nguyên tỷ lệ ảnh */
}

/* --- TĂNG SIZE CHỮ CHO TRANG ĐĂNG KÝ --- */
.hai-cot {
  align-items: flex-start; 
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero-title-nho {
  font-size: 2.25rem !important; 
  margin-bottom: 16px;
  letter-spacing: -0.02em; /* Tracking âm cho tiêu đề vừa */
}

.cot-trai .phu {
  font-size: 1.125rem; 
  line-height: 1.6;
}

.khung-navy {
  padding: 28px; 
}

.danh-sach-nav {
  font-size: 1rem !important; 
  line-height: 1.6;
  padding-left: 0; list-style: none;
}
.danh-sach-nav li {
  margin-bottom: 12px;
}

.nut {
  font-size: 1.125rem; 
}
input[type="email"] {
  font-size: 1.125rem; 
}

.ghi-chu, .ghi-chu-navy {
  font-size: 1rem !important; 
  line-height: 1.5;
}
.ghi-chu-navy { 
  margin-top: 24px; 
  padding-top: 24px; 
  border-top: 1px solid #334155; 
  color: var(--text-muted-light); 
}

/* Các class tiện ích bổ sung */
.mt-0 { margin-top: 0; }
.text-primary { color: var(--primary); }
.link-primary { color: var(--primary); }

/* --- ĐẶT TURNSTILE ĐÈ LÊN Ô NHẬP EMAIL --- */
.input-wrapper {
  position: relative;
  margin-bottom: 8px;
}
.input-email {
  padding-right: 120px !important; 
}
.cf-turnstile-overlay {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) scale(0.65); 
  transform-origin: right center;
  z-index: 10;
}

/* --- ĐIỆN THOẠI: Turnstile xếp XUỐNG DƯỚI ô email, không đè lên ô nhập --- */
@media (max-width: 640px) {
  .input-email { padding-right: 16px !important; }
  .cf-turnstile-overlay {
    position: static; top: auto; right: auto;
    transform: scale(0.9); transform-origin: center top;
    margin: 12px 0 -6px;
  }
}

/* --- TÔN TRỌNG CÀI ĐẶT NGƯỜI DÙNG (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Sửa lỗi tràn cột */
.cot-trai {
  min-width: 0;
  word-wrap: break-word;
}

/* --- THẺ HẾT LƯỢT XE: chữ bên trái, mã QR bên phải (màn rộng); xếp dọc trên điện thoại --- */
.khung-ung-ho { display: grid; gap: 32px; align-items: center; }
@media (min-width: 700px) { .khung-ung-ho { grid-template-columns: 1fr auto; } }
.khung-ung-ho h2 { margin-top: 0; }
.ung-ho-chu { min-width: 0; }
.ung-ho-qr { text-align: center; }
.ung-ho-qr img { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; border-radius: 12px; }
.ung-ho-qr .ghi-chu { max-width: 260px; margin: 8px auto 0; text-align: center; font-size: 0.85rem !important; }

/* --- CĂN GIỮA: các khối dùng flex --- */
.the .hanh-dong, .o-chon { justify-content: center; }


/* ===== GIAO DIỆN MỚI 30/10/2026 (theo UI_KENDU_CAR.png) — khối này ghi đè phần trên ===== */
:root { --grad: linear-gradient(90deg, #14b8f0 0%, #4f6df5 50%, #a63df0 100%); --grad-nut: linear-gradient(90deg, #7c3aed, #22b8f0); --navy-hdr: #0b1b33; }

/* Header xanh than, nội dung thẳng hàng với phần thân (áp cho mọi trang) */
.dau-trang {
  background: linear-gradient(90deg, #071a38, #0c2a54);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px max(24px, calc((100% - 1320px) / 2 + 24px));
  min-height: 68px;
}
.dau-trang .logo { gap: 12px; }
.dau-trang .logo img { height: 44px; width: auto; }
.dau-trang .logo span { color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.2px; }
.dau-trang .logo small { font-size: 0.75em; font-weight: 700; margin-left: 2px; }
.dau-trang .nut-phu {
  background: var(--grad-nut); color: #fff; border: 0; border-radius: 999px;
  min-height: 48px; padding: 0 28px; box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}
.dau-trang .nut-phu:hover { background: var(--grad-nut); filter: brightness(1.08); }

/* Trang chủ: nền full-bleed, nội dung căn trái */
.noi-dung.trang-chu {
  max-width: none; padding: 32px 0 40px; min-height: calc(100svh - 172px); display: flex; align-items: center;
}
.trang-chu .thong-bao { max-width: 1320px; margin: 0 auto 24px; }
.trang-chu .landing-grid { max-width: 1320px; margin: 0 auto; padding: 0 24px; gap: 40px; }
@media (min-width: 1024px) { .trang-chu .landing-grid { grid-template-columns: 1.05fr 1fr; } }
.trang-chu .cot-trai, .trang-chu .cot-trai p, .trang-chu .hero-actions { text-align: left; }
.trang-chu .hero-title { font-size: clamp(2.25rem, 3.7vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; }
.trang-chu .hero-title span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; padding-bottom: 0.1em;
}
.trang-chu .phu { margin-left: 0; margin-right: 0; max-width: 560px; margin-bottom: 20px; font-size: 1.125rem; }
.trang-chu .phu-dam { font-size: 1.25rem; font-weight: 500; color: var(--text-dark); }
.trang-chu .phu:not(.phu-dam) { color: #3d5a80; }

/* 3 điểm mạnh: An toàn / Tiện lợi / Hiệu quả */
.diem-manh { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 640px; }
.diem-manh li { display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.diem-manh .bieu-tuong {
  flex: none; width: 56px; height: 56px; border-radius: 50%; background: #e3edff;
  display: grid; place-items: center; color: #4f46e5;
}
.diem-manh li:nth-child(2) .bieu-tuong { color: #2563eb; }
.diem-manh li:nth-child(3) .bieu-tuong { color: #0ea5c6; }
.diem-manh svg { width: 28px; height: 28px; }
.diem-manh b { display: block; font-size: 1.125rem; color: var(--text-dark); }
.diem-manh span.mo-ta { display: block; font-size: 1rem; line-height: 1.5; color: #475569; }
@media (min-width: 760px) {
  .diem-manh { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .diem-manh li { flex-direction: column; padding: 0 20px; border-left: 1px solid #cfdcf0; }
  .diem-manh li:first-child { padding-left: 0; border-left: 0; }
}

/* Nút kêu gọi hành động */
.nut-hero {
  background: var(--grad-nut); color: #fff; border-radius: 999px; gap: 12px;
  min-height: 64px; padding: 0 36px; font-size: 1.1875rem;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
}
.nut-hero:hover { filter: brightness(1.08); box-shadow: 0 14px 32px rgba(124, 58, 237, 0.45); }
.nut-hero:active { transform: scale(0.98); }
.nut-hero svg { width: 24px; height: 24px; flex: none; }
.nut-hero:focus-visible, .dau-trang .nut-phu:focus-visible { outline: 3px solid #0b1b33; outline-offset: 3px; }

.trang-chu .poster-image { max-height: calc(100svh - 190px); width: auto; max-width: 100%; margin-left: auto; }
.trang-chu .poster-image-wrapper { width: fit-content; max-width: 100%; margin-left: auto; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(11, 27, 51, 0.45); background: #0b1b33; }
@media (max-width: 640px) {
  .noi-dung.trang-chu { padding: 40px 0 64px; }
  .dau-trang .logo span { font-size: 1.25rem; }
  .nut-hero { width: 100%; }
  .noi-dung.trang-chu { min-height: 0; display: block; }
  .trang-chu .poster-image { max-height: none; width: 100%; }
}


/* ===== ĐỒNG BỘ TOÀN SITE (màu + thành phần dùng chung) ===== */
:root { --primary: #4f5bf0; --primary-hover: #3d48d6; --bg-body: #f4f8ff; --bg-body-alt: #eaf1fd; }
body { background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20760%20140%22%20preserveAspectRatio=%22none%22%3E%3Crect%20x=%220%22%20y=%2281%22%20width=%2242%22%20height=%2259%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%2247%22%20y=%2291%22%20width=%2225%22%20height=%2249%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%2280%22%20y=%2254%22%20width=%2228%22%20height=%2286%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22114%22%20y=%2236%22%20width=%2225%22%20height=%22104%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22142%22%20y=%2289%22%20width=%2224%22%20height=%2251%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22171%22%20y=%2292%22%20width=%2248%22%20height=%2248%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22222%22%20y=%2230%22%20width=%2227%22%20height=%22110%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22254%22%20y=%2228%22%20width=%2225%22%20height=%22112%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22281%22%20y=%2220%22%20width=%2236%22%20height=%22120%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22324%22%20y=%2227%22%20width=%2225%22%20height=%22113%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22355%22%20y=%2294%22%20width=%2247%22%20height=%2246%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22405%22%20y=%2229%22%20width=%2224%22%20height=%22111%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22437%22%20y=%2263%22%20width=%2230%22%20height=%2277%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22472%22%20y=%2231%22%20width=%2231%22%20height=%22109%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22505%22%20y=%2229%22%20width=%2241%22%20height=%22111%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22554%22%20y=%2287%22%20width=%2233%22%20height=%2253%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22593%22%20y=%2253%22%20width=%2234%22%20height=%2287%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22629%22%20y=%2228%22%20width=%2226%22%20height=%22112%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22657%22%20y=%2237%22%20width=%2235%22%20height=%22103%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22699%22%20y=%2260%22%20width=%2249%22%20height=%2280%22%20fill=%22%23dbe7f9%22/%3E%3Crect%20x=%22753%22%20y=%2254%22%20width=%2251%22%20height=%2286%22%20fill=%22%23dbe7f9%22/%3E%3C/svg%3E") left bottom / min(60vw, 760px) 110px no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20600%20300%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22g%22%20x1=%220%22%20x2=%221%22%20y1=%221%22%20y2=%220%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%237c3aed%22%20stop-opacity=%22.0%22/%3E%3Cstop%20offset=%22.6%22%20stop-color=%22%238b5cf6%22%20stop-opacity=%22.35%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%2322b8f0%22%20stop-opacity=%22.45%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d=%22M0%20300C140%20280%20260%20190%20360%20120S540%2020%20600%200V300Z%22%20fill=%22url%28%23g%29%22/%3E%3Cpath%20d=%22M120%20300C240%20270%20330%20200%20420%20150S560%2080%20600%2070V300Z%22%20fill=%22%23a78bfa%22%20fill-opacity=%22.18%22/%3E%3C/svg%3E") right bottom / min(46vw, 640px) auto no-repeat,
    radial-gradient(900px 500px at 15% 20%, #ffffff, transparent 70%),
    linear-gradient(180deg, #f5f9ff, #eaf1fd); background-attachment: fixed; background-color: #eaf1fd; }
a { color: #3b4fd8; }
.dau-trang a, .chan-trang a { color: inherit; }
.chan-trang { color: #475569; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid rgba(15, 28, 51, 0.08); }
.chan-trang a { color: #475569; }
.chan-trang a:hover { color: var(--primary); }
h1 { letter-spacing: -0.02em; }

/* Nút: mặc định là nút chính (gradient) */
.nut { background: var(--grad-nut); color: #fff; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28); min-height: 52px; border-radius: 999px; }
.nut:hover { filter: brightness(1.08); }
.nut-primary { background: var(--grad-nut); box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28); }
.nut-primary:hover { background: var(--grad-nut); box-shadow: 0 8px 20px rgba(124, 58, 237, 0.38); }
.nut-phu { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.nut-phu:hover { background: rgba(79, 91, 240, 0.08); filter: none; }
.nut-nho { min-height: 44px; }
.nut-nguy-hiem { background: var(--red); box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28); }
.dau-trang .nut-phu { background: var(--grad-nut); color: #fff; border: 0; }
.nut:focus-visible { outline: 3px solid #0b1b33; outline-offset: 3px; }

/* Ô nhập */
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 91, 240, 0.15); }
.khung-navy input:focus { border-color: #19d3f3; box-shadow: 0 0 0 4px rgba(25, 211, 243, 0.2); }
.o-chon input, .o-chon-mo input { accent-color: var(--primary); }
.o-ma { text-align: center; font-size: 1.75rem; letter-spacing: 0.5em; font-weight: 700; }
.ket-qua-ngay { min-height: 1.5em; font-weight: 600; color: var(--primary); }
.nhom-chon { border: 0; padding: 0; margin: 0 0 8px; }
.nhom-chon legend { font-weight: 700; font-size: 1.125rem; margin-bottom: 8px; }
.form-nho { margin: 0; }

/* Khối xanh than, khung trắng, thẻ, thông báo */
.khung-navy { background: radial-gradient(500px 260px at 100% 0, rgba(79, 91, 240, 0.35), transparent 70%), linear-gradient(135deg, #0a1a38, #0e2a57); border: 1px solid rgba(25, 211, 243, 0.25); }
.khung-navy .text-primary, .khung-navy .link-primary, .khung-navy a { color: #5fdcf7; }
.khung, .the { border-color: #dbe6f7; box-shadow: 0 8px 24px rgba(11, 27, 51, 0.06); }
.khung.trong { text-align: center; }
.ban-thao { background: #eef2ff; color: #3b4fd8; border: 1px solid #c7d2fe; border-radius: 12px; padding: 12px 16px; font-size: 1rem; }
.danh-sach { list-style: none; padding: 0; margin: 0 0 24px; }
.danh-sach li { background: #fff; border: 1px solid #dbe6f7; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }

/* Các trang 2 cột (đăng ký): căn trái cho dễ đọc, rộng bằng trang chủ */
.noi-dung.noi-dung-rong { max-width: 1320px; }
.hai-cot .cot-trai, .hai-cot .cot-trai p, .hai-cot .khung-navy, .hai-cot .khung-navy p, .hai-cot .khung-navy li { text-align: left; }
.hai-cot .khung-navy label { text-align: left; }
.hai-cot .phu { margin-left: 0; margin-right: 0; }
.hero-title-nho { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Giữ màu trạng thái của thẻ lịch nhắc (đặt sau cùng để không bị ghi đè) + khoảng cách nút */
.the-xanh { border-left-color: var(--green); }
.the-vang { border-left-color: var(--yellow); }
.the-do { border-left-color: var(--red); }
.the-qua_han { border-left-color: var(--gray); }
.hanh-dong { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
