/* ĐƠN CỦA TÔI (/don-cua-toi, lượt 6D) — cùng màu / font thương hiệu (biến của style.css + gio.css). Không gradient, không emoji. */
.dct { padding: 0 12px calc(28px + env(safe-area-inset-bottom)); }
.dct-dau { display: flex; align-items: center; gap: 10px; padding: 14px 2px 6px; }
.dct-nep { width: 48px; height: 48px; flex: none; }
.dct-tieu-de { font: 800 31px/1.05 var(--font-to); color: var(--chinh-dam); padding-top: 4px; }
.dct-muc { margin: 18px 2px 8px; font: 800 21px/1.2 var(--font-to); }

/* Hạt nếp */
.dct-hat {
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; align-items: center; margin-top: 8px; padding: 12px 14px;
  border: var(--k3-day, 3px) solid var(--k3-ke, var(--chu)); border-radius: 18px; background: var(--chinh); color: #FFFFFF; box-shadow: var(--bong);
}
.dct-hat-nep { width: 56px; height: 56px; grid-row: span 1; }
.dct-hat-dem { font: 800 20px/1.1 var(--font-to); padding-top: 2px; }
.dct-hat-dem b { font-size: 33px; color: var(--vang); margin-right: 2px; }
.dct-hat-sdt { font-size: 17px; opacity: .92; }
.dct-hat-muc { margin-top: 2px; font-size: 17.5px; font-weight: 800; }
.dct-hat-o { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0; padding: 0; list-style: none; }
.dct-hat-o li { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #FFFBF0; background: transparent; }
.dct-hat-o li.co { background: var(--vang); border-color: #FFFBF0; }
.dct-hat-o.ba-muoi li { width: 11px; height: 11px; border-width: 1.5px; }
.dct-qua { grid-column: 1 / -1; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: var(--vang); color: var(--chu); font-weight: 800; }
/* Lượt 7B: công tắc "Nhận ưu đãi" (trong khối hạt nếp, nền đỏ — lượt 8) */
.dct-uu { grid-column: 1 / -1; margin-top: 8px; padding-top: 8px; border-top: 2px solid rgba(255, 251, 240, .35); }
.dct-uu-nut { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 4px 0; border: 0;
  background: none; color: #FFFFFF; font: 800 19px/1.2 var(--font); cursor: pointer; text-align: left; }
.dct-uu-cong { position: relative; flex: none; width: 56px; height: 32px; border-radius: 999px; background: rgba(255, 251, 240, .35); border: 2px solid #FFFBF0; }
.dct-uu-cong::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFBF0; transition: transform .15s; }
.dct-uu-nut[aria-checked="true"] .dct-uu-cong { background: var(--vang); }
.dct-uu-nut[aria-checked="true"] .dct-uu-cong::after { transform: translateX(24px); }
.dct-uu-nut:disabled { opacity: .6; }
.dct-uu-phu { font-size: 17px; font-weight: 600; line-height: 1.4; opacity: .95; }
.dct-hat .dct-uu-phu a { color: #FFFBF0; font-weight: 800; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .dct-uu-cong::after { transition: none; } }

/* Danh sách đơn */
.dct-ds { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dct-don { border: var(--k3-day, 3px) solid var(--k3-ke, var(--chu)); border-radius: 16px; background: var(--the); box-shadow: 0 3px 0 var(--chu); overflow: hidden; }
.dct-don.dang-chay { border-color: var(--chinh-dam); }
.dct-don.moi-lay { background: #FBE1D8; border-color: var(--chinh); box-shadow: 0 3px 0 var(--chinh-dam); }
.dct-dong {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; width: 100%; padding: 10px 12px 4px; border: 0; background: none;
  text-align: left; color: var(--chu); cursor: pointer;
}
.dct-dong:focus-visible { outline: 3px solid var(--nhan); outline-offset: -3px; }
.dct-gio { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--chu-phu); font-size: 17px; font-weight: 800; }
.dct-gio .chip { flex: 0 1 auto; min-width: 0; }
.dct-so { font: 800 26px/1 var(--font-to); color: var(--chinh-dam); padding-top: 3px; white-space: nowrap; }
.dct-tom { align-self: center; font-size: 18px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dct-duoi { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; }
.dct-tong { margin-right: auto; color: var(--nhan); font: 800 21px/1 var(--font-to); padding-top: 2px; font-variant-numeric: tabular-nums; }
.dct-nho {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; padding-top: 2px;
  border: var(--k3-day, 2.5px) solid var(--k3-ke, var(--chu)); border-radius: 12px; background: var(--the); color: var(--chinh-dam);
  font: 800 18.5px/1 var(--font-to); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.dct-nho.dat-lai { background: var(--chinh); color: #FFFFFF; box-shadow: 0 3px 0 var(--chu); }
.dct-nho:active { transform: translateY(2px); box-shadow: none; }
.dct-nho:disabled { opacity: .55; cursor: default; }
.dct-ct { margin: 0 12px 10px; padding: 8px 10px; border-radius: 12px; background: #F6EED6; font-size: 17px; }
.dct-ct .dong-hai { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.dct-ct .dct-ma { margin-top: 4px; color: var(--chu-phu); font-size: 17px; overflow-wrap: anywhere; }
.dct-bao { margin: 0 12px 10px; color: var(--nhan); font-size: 17px; font-weight: 800; }
.dct-trong { padding: 14px 4px; color: var(--chu-phu); }

/* Dòng "đơn chỉ xem trên máy đã đặt" + nút chữ */
.dct-xt { margin-top: 16px; }
.dct-nut-chu {
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--chinh-dam);
  font: 800 18.5px/1.2 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.dct-form-phu { margin-top: 8px; color: var(--chu-phu); font-size: 17px; }

/* Quên máy này */
.dct-quen-khoi { margin-top: 22px; text-align: center; }
.dct-nut-quen { color: var(--nhan); }
.dct-quen-hoi { margin-top: 6px; padding: 12px 14px; border: 2.5px solid var(--nhan); border-radius: 16px; background: var(--nhan-nhat); text-align: left; }
.dct-nut-do { background: var(--nhan); color: #FFFFFF; flex: 1; }
.dct-chan { margin-top: 18px; text-align: center; color: var(--chu-phu); font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .dct-nho:active { transform: none; } }
.dct a:not(.dct-nho) { color: var(--chinh-dam); font-weight: 800; text-underline-offset: 3px; }

/* ---------- LƯỢT 7F-b: đơn đặt trước — giờ lấy · đổi giờ / huỷ (trước 21:00 tối hôm trước) ---------- */
.dct-dt { display: block; margin-top: 4px; padding: 3px 8px; border-radius: 8px; background: var(--g-chinh-nhat); color: #5E3A22; font-weight: 800; font-size: 17px; }
.dct-dt.khong-toi { background: #FBE1D8; color: #7F1D12; }
.dct-dt-khoi { margin: 6px 12px 10px; }
.dct-dt-hang { display: flex; gap: 8px; flex-wrap: wrap; }
.dct-dt-han { margin: 6px 0 0; color: var(--g-muc-nhat); font-size: 16px; font-weight: 700; }
.dct-dt-bao { margin: 0 0 6px; padding: 6px 10px; border-radius: 10px; background: #FFF1C9; color: #5E3A22; font-weight: 800; font-size: 17px; }
.dct-dt-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 8px; }
.dct-dt-gio { min-height: 42px; border: var(--k3-day, 2px) solid var(--k3-ke, var(--g-muc)); border-radius: 10px; background: #FFFFFF; color: var(--g-muc); font: 800 18px/1 var(--g-chu); cursor: pointer; }
.dct-dt-gio.dang-chon { background: #8B4A1F; color: #FFFFFF; }
.dct-dt-gio:disabled { opacity: .45; border-style: dashed; cursor: not-allowed; }
.dct-dt-gio:focus-visible { outline: 3px solid var(--g-do); outline-offset: 2px; }
.dct-dt-hoi { margin-top: 8px; padding: 10px; border: 2px solid var(--g-chinh); border-radius: 12px; background: #FBE1D8; color: #7F1D12; font-weight: 800; }
.dct-dt-hoi p { margin: 0 0 8px; }
.dct-dt-hoi .nut { margin-right: 8px; }

/* mẫu 087: vạch 4 chặng + Bé Nếp chạy (don-cua-toi.js thanhBuoc) */
.dct-buoc { position: relative; margin: 6px 0 2px; padding-top: 30px; }
.dct-buoc-vach { position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 6px; border-radius: 3px; background: #E8CFA3; overflow: hidden; }
.dct-buoc-vach i { display: block; height: 100%; transform: scaleX(var(--p)); transform-origin: left; background: #B23624; transition: transform .9s cubic-bezier(.65,0,.35,1); }
.dct-buoc-nep { position: absolute; top: 0; left: calc(12.5% + var(--p) * 75% - 14px); width: 28px; height: 28px; transition: left .9s cubic-bezier(.65,0,.35,1); }
.dct-buoc.chay .dct-buoc-nep { animation: dct-nhun .22s ease-in-out 4; }
@keyframes dct-nhun { 50% { transform: translateY(-4px) rotate(-6deg); } }
.dct-buoc-ten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 14px; font-weight: 700; color: #7A4B2E; text-align: center; }
.dct-buoc-ten li::before { content: ""; position: relative; display: block; width: 14px; height: 14px; margin: 0 auto 4px; border-radius: 50%; background: #FFFBF0; border: 2.5px solid #E8CFA3; box-sizing: border-box; }
.dct-buoc-ten li.qua::before { background: #B23624; border-color: #B23624; }
.dct-buoc-ten li.nay { color: #4A2511; font-weight: 800; }
.dct-buoc-ten li.nay::before { background: #F2B705; border-color: var(--k3-ke, #4A2511); }
@media (prefers-reduced-motion: reduce) { .dct-buoc-vach i, .dct-buoc-nep { transition: none; } .dct-buoc.chay .dct-buoc-nep { animation: none; } }
