/* ==========================================================================
   theme-express.css — phần BỔ SUNG cho giao diện LIQUID GLASS (styles.css)
   --------------------------------------------------------------------------
   QUAN TRỌNG: file này KHÔNG ghi đè token màu của styles.css nữa.
   Bản trước ghi đè thành tông tối phẳng (kiểu GitHub) nên làm mất hoàn toàn chất
   "Liquid Glass". Nay chỉ định nghĩa các KHỐI MỚI của trang chủ:
     hero · số liệu · chip hãng · lưới hãng · quy trình · lưu ý định dạng ·
     FAQ · dải CTA · footer nhiều cột · hộp thoại đăng nhập/đăng ký
   Mọi khối dùng lại biến CSS của styles.css (--glass-*, --primary, --radius-*,
   --shadow-*, --text-*) nên tự khớp cả chế độ Sáng và Tối.
   ========================================================================== */

/* ── Hero (TrackVN-inspired clean layout) ────────────────────────────────── */
.hero {
  text-align: center;
  padding: 28px 16px 20px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--glass-border-specular);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 10px rgba(16, 185, 129, 0.5);
  flex-shrink: 0;
  animation: dotPulse 1.8s infinite;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero h1 .hero-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="dark"] .hero h1 .hero-highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 10px;
  line-height: 1.65;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin: 16px auto 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border-subtle);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}

/* ── Dải chip hãng ──────────────────────────────────────────────────────── */
.carrier-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.carrier-chip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 2px;
}

.carrier-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 5px 12px;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.carrier-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand, var(--primary));
  box-shadow: 0 0 6px var(--brand, var(--primary));
}

.carrier-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0 4px;
  font-weight: 800;
  font-size: 0.65rem;
  line-height: 1.05;
  letter-spacing: -0.3px;
  text-align: center;
  color: #ffffff;
  background: var(--brand, var(--primary));
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.2);
}

img.carrier-logo {
  background: transparent;
  padding: 0;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: none;
}

.carrier-chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand, var(--border-focus));
  color: var(--text);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ── Tiêu đề khối dùng chung ────────────────────────────────────────────── */
.section-block {
  margin-bottom: 32px;
}

.section-eyebrow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin: 0 0 6px;
}

.section-heading {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-subheading {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 580px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Tính năng (Glass Cards) ───────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.feature-card {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--glass-surface-hover);
  box-shadow: var(--shadow-glass-elevated), var(--glass-border-specular);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border-subtle);
  color: var(--primary);
  font-size: 1.15rem;
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Lưới 15 hãng vận chuyển (Glass Cards 3 cột x 5 hàng) ──────────────── */
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.carrier-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.carrier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.85);
  background: var(--glass-surface-hover);
  box-shadow: var(--shadow-glass-elevated), var(--glass-border-specular);
}

.carrier-card:hover h4 {
  color: var(--primary);
}

/* Disabled carrier cards (tạm ngưng) */
.carrier-card.is-disabled {
  opacity: 0.38;
  filter: grayscale(0.7);
  pointer-events: none !important;
  cursor: not-allowed !important;
  user-select: none;
  border-style: dashed;
}

.carrier-card.is-disabled:hover {
  transform: none !important;
  box-shadow: var(--shadow-glass) !important;
  border-color: var(--glass-border) !important;
  background: var(--glass-surface) !important;
}

.carrier-card.is-disabled:hover h4 {
  color: inherit !important;
}

.carrier-card-disabled-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-muted, #94a3b8);
  border: 1px solid rgba(100, 116, 139, 0.3);
  z-index: 2;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .carrier-card-disabled-badge,
.dark .carrier-card-disabled-badge {
  background: rgba(30, 41, 59, 0.85);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.14);
}

.carrier-card-info {
  min-width: 0;
  flex: 1;
}

.carrier-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* ==========================================================================
   21. LOGO THƯƠNG HIỆU + KHỐI MÃ QR
   ========================================================================== */

/* Khi .brand-icon là <img> (logo thật) thì bỏ nền/bóng của CSS — chính file SVG
   đã có sẵn nền gradient bo góc rồi. */
img.brand-icon {
  background: none;
  box-shadow: none;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  flex: 0 0 36px;
}

.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qr-image {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: #ffffff;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.qr-note {
  margin: 0;
  font-size: 0.83rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Bảng đồng bộ đơn từ tài khoản hãng ─────────────────────────────────── */
.sync-panel {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--glass-border-subtle);
}

.sync-panel-head h3 {
  margin: 0 0 5px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.sync-panel-head p {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sync-provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-surface-subtle);
  box-shadow: var(--glass-border-specular);
}

.sync-provider-info {
  min-width: 0;
}

.sync-provider-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.sync-provider-meta {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sync-provider-meta.is-on {
  color: var(--success);
}

.sync-provider-meta.is-off {
  color: var(--text-disabled);
}

.sync-provider .btn-action-sm {
  flex: none;
  white-space: nowrap;
}

.sync-loading {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.sync-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sync-provider {
  flex-wrap: wrap;
}

.sync-provider-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.sync-provider-badge.is-on {
  color: var(--success);
  border-color: var(--success-border);
  background: var(--success-subtle);
}

.sync-provider-badge.is-expired,
.sync-provider-badge.is-error {
  color: var(--danger, #b91c1c);
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.09);
}

.sync-provider-badge.is-syncing {
  color: var(--primary);
  border-color: var(--border);
  background: var(--primary-subtle);
}

.mobile-disclosure-toggle { display: none; }

.freshness-notice {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Lưới thẻ bài viết hướng dẫn (Guides Grid) ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.guide-card:hover {
  transform: translateY(-3px);
  background: var(--glass-surface-hover);
  border-color: var(--primary);
  box-shadow: var(--shadow-glass-elevated), 0 0 20px rgba(37, 99, 235, 0.15);
}

.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.guide-card-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--glass-border-subtle);
}

.guide-card-time {
  /* flex + gap để icon đồng hồ tách khỏi chữ.
     Trước đây markup dùng `me-1` (class tiện ích của Bootstrap) nhưng trang
     KHÔNG nạp Bootstrap ⇒ class vô tác dụng ⇒ "3 phút đọc" dính sát vào icon. */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.guide-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass-surface-elevated);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.guide-card:hover .guide-card-icon {
  transform: scale(1.08);
  background: var(--primary);
  color: #ffffff;
}

.guide-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--text);
}

.guide-card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex-grow: 1;
}

.guide-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.guide-card:hover .guide-card-action i {
  transform: translateX(3px);
  transition: transform 0.2s ease;
}

.guide-links-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-links-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass-surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.guide-links-row a:hover { border-color: var(--primary); color: var(--primary); }

.sync-provider-badge i {
  font-size: 0.75rem;
}

.sync-provider-account {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.sync-provider-account i {
  font-size: 0.85rem;
}

.sync-provider-meta i {
  font-size: 0.75rem;
}

/* ── Hộp thoại kết nối tài khoản hãng ───────────────────────────────────── */
dialog#connectDialog {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(430px, calc(100% - 32px));
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text);
  box-shadow: var(--shadow-glass-elevated), var(--glass-border-specular);
  overflow: hidden;
}

dialog#connectDialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.connect-hint {
  margin: 0 0 16px;
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.connect-steps {
  margin: 0 0 16px;
  padding-left: 18px;
}

.connect-steps li {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .sync-grid {
    grid-template-columns: 1fr;
  }
}

.carrier-card h4 {
  margin: 0 0 3px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: normal;
  line-height: 1.35;
}

.carrier-card p {
  margin: 0;
  font-size: 0.8rem;
  font-family: inherit;
  line-height: 1.45;
  color: var(--text-muted);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.carrier-card code,
.format-guide code {
  background: var(--primary-subtle);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85em;
  color: var(--primary);
}

/* ── Quy trình 4 bước ───────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step-card {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  background: var(--glass-surface-hover);
  box-shadow: var(--shadow-glass-elevated), var(--glass-border-specular);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.step-card h4 {
  margin: 0 0 7px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.step-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.68;
  color: var(--text-muted);
}

/* ── Khung lưu ý định dạng ──────────────────────────────────────────────── */
.format-guide {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
}

.format-guide h3 {
  margin: 0 0 13px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.format-guide ul {
  margin: 0;
  padding-left: 20px;
}

.format-guide li {
  font-size: 0.89rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-category-group {
  margin-bottom: 24px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border-subtle);
}

.faq-category-header i {
  color: var(--primary);
  font-size: 1.05rem;
}

.faq-category-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--glass-border-subtle);
  margin-left: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-border-specular);
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--glass-border-subtle);
}

.faq-item p {
  margin: 0;
  padding: 16px 20px;
  font-size: 0.89rem;
  line-height: 1.78;
  color: var(--text-muted);
}

/* ── Dải CTA ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 38px 30px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-glass-elevated), var(--glass-border-specular);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  margin: 0 0 9px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta-band p {
  position: relative;
  margin: 0 auto 22px;
  max-width: 560px;
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.cta-band-actions {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Nút CTA ────────────────────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 8px 20px -8px rgba(37, 99, 235, 0.45);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-cta.secondary {
  background: var(--glass-surface-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-cta.secondary:hover {
  background: var(--glass-surface-hover);
  box-shadow: var(--shadow-glass);
}

/* ── Nút thông báo + bỏ theo dõi ────────────────────────────────────────── */
.btn-notify {
  border-color: var(--border) !important;
  color: var(--primary) !important;
  font-weight: 700;
}
.btn-notify:hover:not(:disabled) {
  background: var(--primary-subtle) !important;
}
.btn-notify.is-on {
  background: var(--primary) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.btn-notify:disabled {
  opacity: 0.7;
  cursor: default;
}

.order-entry-remove {
  border: 1px solid var(--glass-border);
  background: var(--glass-surface-elevated);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.order-entry-remove:hover {
  border-color: var(--danger-border);
  color: var(--danger);
  background: var(--danger-subtle);
}

/* ── Footer nhiều cột ───────────────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  text-align: left;
  margin-bottom: 22px;
}

.footer-col h5 {
  margin: 0 0 11px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text);
}

.footer-col p,
.footer-col a {
  display: block;
  margin: 0 0 7px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--primary);
}

/* ── Hộp thoại Đăng nhập / Đăng ký (kính) ───────────────────────────────── */
dialog#authDialog {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(420px, calc(100% - 32px));
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text);
  box-shadow: var(--shadow-glass-elevated), var(--glass-border-specular);
  overflow: hidden;
}

dialog#authDialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-modal-inner {
  padding: 30px 26px 24px;
  position: relative;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-subtitle {
  margin: 0 0 20px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--glass-surface-subtle);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 18px;
  box-shadow: var(--glass-border-specular);
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
}

.auth-error {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--danger-subtle);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.85rem;
}

.auth-pane {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-field input {
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  color: var(--text);
  padding: 0 13px;
  font-size: 0.94rem;
  outline: none;
  box-shadow: var(--glass-border-specular);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input::placeholder {
  color: var(--text-disabled);
}

.auth-field input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.auth-google-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.auth-google-note {
  margin: 14px 2px 0;
  color: #6b7280;
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-disabled);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* ── Hộp thoại quét mã QR Shopee ────────────────────────────────────────── */
.connect-qr-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 10px 0 6px;
}

.connect-qr-frame {
  position: relative;
  width: 220px;
  height: 220px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.connect-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
}

.connect-qr-radar-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2563eb, #38bdf8, transparent);
  box-shadow: 0 0 12px #38bdf8;
  animation: qrRadarScan 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes qrRadarScan {
  0% { top: 6%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

.connect-qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 3;
  border-radius: inherit;
}

.connect-qr-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--glass-surface-subtle);
  border: 1px solid var(--glass-border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--glass-border-specular);
}

.qr-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: qrDotPulse 1.8s infinite;
}

.qr-pulse-dot.scanned {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

.qr-pulse-dot.confirmed {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes qrDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.connect-steps {
  width: 100%;
  padding-left: 20px;
  margin: 4px 0 0;
  text-align: left;
}

.connect-steps li {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.connect-steps strong {
  color: var(--text);
}

/* ── Đáp ứng ────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .carrier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 20px 12px 14px;
  }
}

@media (max-width: 540px) {
  .guide-links-row { grid-template-columns: 1fr; }
  .hero { padding: 5px 4px 12px; }
  .hero-badge, .hero-subtitle, .hero-trust-row, .sample-searches-row { display: none; }
  .hero h1 { font-size: 1.45rem; margin: 0; }
  .hero + .card { padding: 16px; }
  .search-card-top { margin-bottom: 10px; }
  .search-title { font-size: 0.94rem; }
  .mobile-disclosure-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--glass-surface-subtle);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-disclosure-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .carrier-chip-row:not(.is-open) { display: none; }
  .carrier-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .carrier-card {
    padding: 11px 12px;
    gap: 9px;
  }
  .carrier-logo {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   TRACKING RESULT CARD & DISCORD INTEGRATION (MODERN TRACKVN / SAAS STYLE)
   ========================================================================== */

.result-card {
  padding: 22px 24px;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.result-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.carrier-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm), var(--glass-border-specular);
  flex-shrink: 0;
  /* Cắt logo theo đúng bo góc của khung, để logo tràn viền vẫn gọn */
  overflow: hidden;
}

/* Logo hãng TRÀN VIỀN khung.
   Trước đây ảnh chỉ 32px trong khung 48px nên thừa một viền trắng 8px mỗi bên —
   logo dạng "badge" (SPX, GHN…) trông như bị đóng khung thu nhỏ.
   Dùng `contain` chứ KHÔNG `cover`: phần lớn logo là badge VUÔNG nên sẽ lấp đầy
   khung, còn logo dài (DHL 1.33, EMS 1.23) thì vừa khít bề ngang mà không bị cắt chữ. */
.carrier-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}

.result-title-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-carrier-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.carrier-name-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.result-code-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-code-line .label-muted {
  font-size: 12px;
  color: var(--text-muted);
}

.result-code-line .code-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.btn-icon-copy {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon-copy:hover {
  color: var(--primary);
  background: var(--primary-subtle);
}

.result-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm), var(--glass-border-specular);
}

.btn-action-pill:hover {
  border-color: var(--border-focus);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-action-pill.btn-discord-notify {
  background: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
  box-shadow: 0 4px 14px -2px rgba(88, 101, 242, 0.45);
}

.btn-action-pill.btn-discord-notify:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #ffffff;
}

.btn-action-pill.btn-telegram-notify {
  background: #229ED9;
  color: #ffffff;
  border-color: #229ED9;
  box-shadow: 0 4px 14px -2px rgba(34, 158, 217, 0.45);
}

.btn-action-pill.btn-telegram-notify:hover {
  background: #1c88bd;
  border-color: #1c88bd;
  color: #ffffff;
}

/* ── Stepper ────────────────────────────────────────────────────────────────
   ĐÃ GỠ khối `.modern-stepper` ("Modern Minimalist Stepper") khỏi file này.
   Lý do: nó và `.stepper-wrap` trong `styles.css` là HAI thiết kế stepper chồng
   nhau. Vì `theme-express.css` nạp SAU và có độ ưu tiên cao hơn, bản cũ đè bản mới
   ở 5 điểm — và chính nó gây ra lỗi làn xe đè lên vòng tròn:

     · padding 24px (thay vì 68px)      ⇒ `.stepper-road-lane` ĐÈ LÊN vòng tròn
     · track ở `top: 39px` (thay vì 85px) ⇒ thanh lệch khỏi tâm vòng tròn
     · `transition: all .25s ease`        ⇒ nuốt hiệu ứng lò xo của vòng tròn
     · ghi đè gradient thanh chạy         ⇒ mất animation vệt sáng `roadFlow`
     · `.step-check-badge { display: none }` ⇒ GIẤU huy hiệu tick
     · `.is-active` / `.is-done` là class CHẾT — JS dùng `.active` / `.completed`

   Nay `styles.css` là nguồn DUY NHẤT cho stepper (xem khối "STEPPER" trong đó).
   ------------------------------------------------------------------------- */

/* (Đã gỡ nốt 3 rule `.modern-stepper .step-title` còn sót — xem ghi chú ngay trên.
   Rule `.step-title` trong styles.css đã lo phần này, và bản ở đây còn ghi đè
   `transition` bằng `color .2s ease` nên làm mất chuyển động của font-weight/transform.
   Hai rule `.is-active` / `.is-done` là class chết, không bao giờ khớp.) */

/* ── Hero Status Overview Card (Glass Banner) ── */
.hero-status-card {
  margin: 18px 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
}

.hero-status-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-status-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.2);
}

.hero-status-info {
  flex: 1;
}

.hero-status-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hero-status-stage-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.hero-status-time-ago {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--glass-surface-subtle);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-subtle);
}

.hero-status-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.hero-status-title-main {
  color: var(--text);
}

.hero-status-party,
.timeline-party-detail {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-status-party i,
.timeline-party-detail i {
  color: var(--primary);
}

.hero-status-party-label,
.timeline-party-detail-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-status-party-value,
.timeline-party-detail-value {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border-subtle);
}

.carrier-contacts-section { margin: 18px 0; }
.carrier-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.carrier-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-surface-subtle);
  color: var(--text);
  overflow-wrap: anywhere;
}
.carrier-contact-card h3 { margin: 0 0 4px; font-size: 1rem; }
.courier-assignment, .courier-recorded-time { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.courier-name { font-size: 1rem; }
.courier-phone { color: var(--primary); font-variant-numeric: tabular-nums; }
a.courier-phone { text-decoration: underline; text-underline-offset: 3px; }
.carrier-contact-card a.courier-phone { display: inline-flex; align-items: center; min-height: 36px; }

.hero-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--glass-surface-subtle);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--glass-border-subtle);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.hero-spec-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-spec-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.hero-spec-value:has(.hero-spec-time-clock) {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.hero-spec-time-clock {
  color: var(--text);
  white-space: nowrap;
}

.hero-spec-time-separator {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.hero-spec-time-date {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Discord Modal ── */
.discord-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #5865F2;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  box-shadow: 0 8px 20px -4px rgba(88, 101, 242, 0.4);
}

.btn-discord-cta {
  background: #5865F2 !important;
  color: #ffffff !important;
}

.btn-discord-cta:hover {
  background: #4752c4 !important;
}

.discord-guide-box {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--glass-surface-subtle);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-subtle);
  text-align: left;
}

.discord-guide-box strong {
  font-size: 12px;
  color: var(--text);
}

.discord-guide-box ol {
  margin: 6px 0 0 16px;
  padding: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Timeline Polish & Seamless Connection ── */
.timeline-records {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* BỐ CỤC lưới (`display`, `grid-template-columns`, `grid-template-areas`) thuộc về
   `styles.css` — KHÔNG khai lại ở đây.
   File này nạp SAU `styles.css`; cùng độ ưu tiên nên khai lại ở đây sẽ ĐÈ luôn cả
   media query mobile của `styles.css` (media query không cộng độ ưu tiên). Hậu quả
   thật đã xảy ra: trên điện thoại `.timeline-time` bị `display:none` mà lưới vẫn 3 cột
   ⇒ `.timeline-body` rơi vào cột 28px của trục, chữ bị bóp thành cột dọc.
   Ở đây chỉ giữ phần trang trí/hiệu ứng. */
.timeline-item {
  position: relative;
  transition: background-color 0.25s ease, transform 0.25s ease;
  animation: timelineCascadeIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--item-idx, 0) * 45ms);
}

@keyframes timelineCascadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary), 0 0 12px rgba(37, 99, 235, 0.4);
}

.timeline-item:hover .timeline-body {
  transform: translateX(3px);
  transition: transform 0.2s ease;
}

/* Đường hành trình dùng màu theo loại mốc */
.timeline-item {
  --timeline-color: #94a3b8;
  --timeline-line: #cbd5e1;
}

.timeline-item.kind-driver {
  --timeline-color: #2563eb;
  --timeline-line: #bfdbfe;
}

.timeline-item.kind-package {
  --timeline-color: #d97706;
  --timeline-line: #fde68a;
}

.timeline-item.kind-created {
  --timeline-color: #7c3aed;
  --timeline-line: #ddd6fe;
}

.timeline-item.is-latest {
  --timeline-color: #10b981;
  --timeline-line: #a7f3d0;
}

/* ĐƯỜNG TRỤC DỌC: Trục xương sống liên tục, căn giữa tuyệt đối, không đứt đoạn */
.timeline-axis {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timeline-axis::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 11px;
  bottom: -15px; /* Đâm xuyên qua mép dưới cắm thẳng vào tâm mốc tiếp theo */
  width: 2.5px;
  background: linear-gradient(180deg, var(--timeline-color) 0%, var(--timeline-line) 100%);
  border-radius: 9999px;
  opacity: 0.92;
  z-index: 1;
  pointer-events: none;
}

/* Mốc cuối cùng: ẩn đường thò xuống */
.timeline-item:last-child .timeline-axis::before {
  display: none !important;
}

/* Chấm tròn mốc: Đặt trên đường trục (z-index 3) */
.timeline-dot {
  position: relative;
  z-index: 3;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--timeline-color);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--timeline-line);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.timeline-item:is(.kind-driver, .kind-package, .kind-created) .timeline-dot {
  background: var(--timeline-color);
}

.timeline-item:is(.kind-driver, .kind-package, .kind-created) .timeline-time {
  color: var(--timeline-color);
  font-weight: 700;
}

/* ── MỐC MỚI NHẤT (is-latest): TRỤC LIỀN MẠCH + THẺ NỔI BẬT KHÔNG CHẶN TRỤC ── */
.timeline-item.is-latest {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Dòng xung ánh sáng năng lượng nối liền từ mốc mới nhất chạy dọc trục */
.timeline-item.is-latest .timeline-axis::before {
  top: 13px;
  bottom: -15px;
  width: 3px;
  background: linear-gradient(180deg, #10b981 0%, #06b6d4 40%, #3b82f6 75%, #64748b 100%);
  background-size: 100% 250%;
  animation: timelineBeamFlow 2.6s linear infinite;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 0 4px rgba(6, 182, 212, 0.4);
  z-index: 2;
}

@keyframes timelineBeamFlow {
  0% { background-position: 0 0; }
  100% { background-position: 0 250%; }
}

/* Viên ngọc lục bảo mốc mới nhất: Tâm sáng + Sóng radar lan tỏa 3x */
.timeline-item.is-latest .timeline-dot {
  width: 13px;
  height: 13px;
  margin-top: 5px;
  background: var(--milestone-tone, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 0 16px rgba(16, 185, 129, 0.85);
  position: relative;
  z-index: 4;
}

.timeline-item.is-latest .timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #10b981;
  transform: translate(-50%, -50%);
  animation: timelineRadarPing 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes timelineRadarPing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* ── Card bao bọc toàn bộ nội dung của từng mốc hành trình (như giao diện app) ── */
.timeline-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .timeline-body {
  background: #0f1a2a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 3px 12px -2px rgba(0, 0, 0, 0.4);
}

.timeline-item:hover .timeline-body {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.12);
  transform: translateX(3px);
}

/* Mũi tên chỉ nhẹ từ thẻ card về phía trục chấm tròn */
.timeline-body::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
  border-bottom-left-radius: 2px;
}

[data-theme="dark"] .timeline-body::before {
  background: #0f1a2a;
  border-color: rgba(255, 255, 255, 0.08);
}

.timeline-time {
  padding-top: 12px;
}

/* Thẻ nổi bật cho nội dung mốc mới nhất (nằm bên phải, KHÔNG đóng hộp trục dọc) */
.timeline-item.is-latest .timeline-body {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.16);
  position: relative;
  animation: latestCardBreathe 3.2s ease-in-out infinite alternate;
}

@keyframes latestCardBreathe {
  0% {
    border-color: rgba(16, 185, 129, 0.26);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.12);
  }
  100% {
    border-color: rgba(16, 185, 129, 0.52);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.24);
  }
}

/* Mũi tên chỉ nhẹ từ thẻ về phía chấm tròn mốc mới nhất */
.timeline-item.is-latest .timeline-body::before {
  content: '';
  position: absolute;
  top: 14px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: rgba(16, 185, 129, 0.12);
  border-left: 1px solid rgba(16, 185, 129, 0.32);
  border-bottom: 1px solid rgba(16, 185, 129, 0.32);
  transform: rotate(45deg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}

.timeline-item.is-latest .timeline-time {
  color: var(--success);
  font-weight: 700;
  padding-top: 12px;
}

.timeline-item.is-latest .timeline-message {
  color: var(--text);
  font-weight: 600;
}

.timeline-item.is-latest .timeline-message-main {
  color: var(--success);
  font-weight: 700;
}

/* Huy hiệu mốc mới nhất với chấm tín hiệu trực tiếp */
.timeline-latest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  width: fit-content;
}

.timeline-live-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
  animation: liveBeaconPulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes liveBeaconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* ── MỤC 1: Header trạng thái mốc ── */
.milestone-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.milestone-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.milestone-title-wrap {
  flex: 1;
  min-width: 0;
}

.milestone-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.milestone-title-text,
.timeline-message-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.timeline-item.is-latest .milestone-title-text,
.timeline-item.is-latest .timeline-message-main {
  color: var(--success);
}

.milestone-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #2563eb;
  line-height: 1.35;
}

[data-theme="dark"] .milestone-action-badge {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #60a5fa;
}

/* ── MỤC 2: Diễn biến / Ghi chú mốc ── */
.milestone-desc-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-left: 3.5px solid #6366f1;
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] .milestone-desc-box {
  background: rgba(99, 102, 241, 0.09);
  border-color: rgba(99, 102, 241, 0.24);
  border-left-color: #818cf8;
}

.milestone-desc-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6366f1;
  flex-shrink: 0;
  padding-top: 1px;
}

[data-theme="dark"] .milestone-desc-label {
  color: #a5b4fc;
}

.milestone-desc-text {
  color: var(--text-secondary);
  font-size: 13px;
  word-break: break-word;
  white-space: pre-wrap;
  flex: 1;
}

.milestone-desc-line + .milestone-desc-line {
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px dashed rgba(99, 102, 241, 0.2);
}

/* ── MỤC 3: Lộ trình & Vị trí điều chuyển ── */
.timeline-location-tag {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(2, 132, 199, 0.01) 100%);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-left: 3.5px solid #0284c7;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] .timeline-location-tag {
  background: #08121e;
  border-color: rgba(2, 132, 199, 0.22);
  border-left: 3.5px solid #38bdf8;
  color: #e2e8f0;
}

.milestone-sub-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #0284c7;
}

[data-theme="dark"] .milestone-sub-header {
  color: #38bdf8;
}

.milestone-sub-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.milestone-icon-badge {
  display: none !important;
}

.milestone-action-inline {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 1.5px 7px;
  border-radius: 9999px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.3;
}

[data-theme="dark"] .milestone-action-inline {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.station-badge-current {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 2px;
  white-space: nowrap;
}

[data-theme="dark"] .station-badge-current {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.station-badge-next {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #ea580c;
  background: rgba(234, 88, 12, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 2px;
  white-space: nowrap;
}

[data-theme="dark"] .station-badge-next {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.15);
}

.timeline-location-tag.is-next-station {
  border-left: 3px solid #ea580c;
  padding-left: 8px;
  margin-top: 6px;
}

.milestone-desc-clean {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 8px;
  word-break: break-word;
}

.milestone-desc-clean .milestone-desc-line + .milestone-desc-line {
  margin-top: 4px;
}

.milestone-sub-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.milestone-sub-name i {
  color: #0284c7;
  font-size: 13px;
  flex-shrink: 0;
}

[data-theme="dark"] .milestone-sub-name i {
  color: #38bdf8;
}

.milestone-sub-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.milestone-sub-row i {
  color: #0284c7;
  font-size: 12px;
}

[data-theme="dark"] .milestone-sub-row i {
  color: #38bdf8;
}

.milestone-sub-row a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme="dark"] .milestone-sub-row a {
  color: #38bdf8;
}

.milestone-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.milestone-map-btn:hover {
  text-decoration: underline;
}

.timeline-location-tag a:hover {
  text-decoration: underline;
}

.timeline-phone-icon {
  color: var(--primary);
  margin-right: 2px;
}

.timeline-message {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 9px;
}

.timeline-party-detail {
  font-size: 11.5px;
  font-weight: 600;
}

/* ── Dedicated Notification Hub Card ("Giao diện riêng") ── */
.notify-hub-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  background: var(--glass-surface-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass), var(--glass-border-specular);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.notify-hub-card.pulse-focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-subtle), var(--shadow-glass-elevated);
}

.notify-hub-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.notify-hub-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-subtle);
  border: 1px solid var(--glass-border-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.2);
  animation: bellGentleFloat 4.5s ease-in-out infinite;
}

.notify-hub-icon-badge i {
  display: inline-block;
  transform-origin: top center;
  animation: bellWiggle 4.5s ease-in-out infinite;
}

@keyframes bellWiggle {
  0%, 65%, 100% { transform: rotate(0deg); }
  68% { transform: rotate(-16deg); }
  72% { transform: rotate(16deg); }
  76% { transform: rotate(-12deg); }
  80% { transform: rotate(12deg); }
  84% { transform: rotate(-6deg); }
  88% { transform: rotate(6deg); }
  92% { transform: rotate(0deg); }
}

@keyframes bellGentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.notify-hub-text h4 {
  margin: 0 0 3px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.notify-hub-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.notify-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .notify-channels-grid {
    grid-template-columns: 1fr;
  }
}

.notify-channel-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: var(--glass-surface-subtle);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), var(--glass-border-specular);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.notify-channel-box:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glass-elevated), 0 0 20px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.notify-channel-box:hover .channel-icon-circle {
  transform: scale(1.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.channel-box-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.channel-icon-circle.telegram {
  background: #0088cc;
  box-shadow: 0 4px 12px -2px rgba(0, 136, 204, 0.4);
}

.channel-icon-circle.discord {
  background: #5865F2;
  box-shadow: 0 4px 12px -2px rgba(88, 101, 242, 0.4);
}

.channel-info-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.channel-info-meta p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-channel-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-channel-cta:hover {
  transform: translateY(-2px);
}

.btn-channel-cta:active {
  transform: scale(0.96);
}

.btn-telegram-cta {
  background: #0088cc;
  color: #ffffff;
}

.btn-telegram-cta:hover {
  background: #0077b5;
  box-shadow: 0 4px 14px -3px rgba(0, 136, 204, 0.45);
}

/* ── Interactive Micro-Animations: Buttons, Spin & Float ── */
@keyframes spinRefresh {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-action-sm,
.quick-action-btn {
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn-action-sm:hover,
.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-action-sm:active,
.quick-action-btn:active {
  transform: scale(0.96);
}

#btnRefresh:hover i,
.btn-action-refresh:hover i,
button[onclick*="refresh"]:hover i {
  display: inline-block;
  animation: spinRefresh 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Biểu tượng trạng thái xe/kiện hàng bập bênh nổi êm */
.hero-status-icon-wrap i,
.order-status-icon i {
  display: inline-block;
  animation: statusIconFloat 3.4s ease-in-out infinite;
}

@keyframes statusIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.5px); }
}

/* Xe đang chạy trên thanh tiến trình nhịp nhún thực tế */
.stepper-vehicle-cursor.is-driving .vehicle-graphic-box {
  animation: vehicleSpeedBounce 0.36s ease-in-out infinite;
}

@keyframes vehicleSpeedBounce {
  0%, 100% { transform: translateY(0) skewX(-2deg); }
  50% { transform: translateY(-2.2px) skewX(-2deg); }
}

.stepper-vehicle-cursor.is-driving .vehicle-ground-shadow {
  animation: vehicleShadowPulse 0.36s ease-in-out infinite;
}

@keyframes vehicleShadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.2; }
  50% { transform: scaleX(0.78); opacity: 0.1; }
}

.stepper-vehicle-cursor .vehicle-status-bubble {
  animation: bubbleFloat 3.2s ease-in-out infinite;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Nốt tiến trình đang hoạt động: Vòng hào quang lan tỏa */
.step-node.active .step-circle {
  animation: activeRipplePulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes activeRipplePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55), 0 8px 20px -2px rgba(37, 99, 235, 0.5);
    transform: scale(1.12);
  }
  65% {
    box-shadow: 0 0 0 13px rgba(37, 99, 235, 0), 0 8px 20px -2px rgba(37, 99, 235, 0.5);
    transform: scale(1.12);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 8px 20px -2px rgba(37, 99, 235, 0.5);
    transform: scale(1.12);
  }
}

/* ── Hero Status Dynamic States ── */
.hero-status-card[data-state="delivered"] .hero-status-icon-wrap {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.hero-status-card[data-state="delivering"] .hero-status-icon-wrap {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.hero-status-card[data-state="exception"] .hero-status-icon-wrap {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.hero-status-card[data-state="pending"] .hero-status-icon-wrap {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.hero-status-card[data-state="pickup"] .hero-status-icon-wrap {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

/* ── Tiến trình giao vận và kết quả ngoài luồng giao thành công ── */
.journey-progress-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 16px;
  border: 1px solid var(--warning-border);
  border-radius: 12px;
  background: var(--warning-subtle);
  color: var(--warning);
}
.journey-progress-notice i { margin-top: 3px; }
.journey-progress-notice p { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.journey-progress-notice[data-state="cancelled"], .status-pill[data-state="cancelled"] {
  background: var(--danger-subtle);
  border-color: var(--danger-border);
  color: var(--danger);
}
.status-pill[data-state="returning"], .status-pill[data-state="returned"] {
  background: var(--warning-subtle);
  border-color: var(--warning-border);
  color: var(--warning);
}
.hero-status-card[data-state="cancelled"] .hero-status-icon-wrap { background: var(--danger-subtle); color: var(--danger); }
.hero-status-card:is([data-state="returning"], [data-state="returned"]) .hero-status-icon-wrap { background: var(--warning-subtle); color: var(--warning); }

/* Animated vehicle above evidence-based milestones, never on their circles. */
.journey-stepper { padding: 100px 12px 20px; margin: 12px 0; gap: 8px; }
.journey-stepper .stepper-road-lane { top: 12px; left: 48px; right: 48px; height: 76px; }
.journey-stepper .stepper-vehicle-cursor { left: var(--vehicle-position, 0%); transition: left 900ms cubic-bezier(0.25, 1, 0.5, 1); }
@starting-style { .journey-stepper .stepper-vehicle-cursor { left: 0%; } }
.journey-stepper .stepper-vehicle-cursor .vehicle-status-bubble { --bubble-shift: 0px; max-width: 190px; animation: none; transform: translateX(var(--bubble-shift)); }
.journey-stepper .stepper-vehicle-cursor.is-driving .vehicle-status-bubble { animation: journeyBubbleFloat 3.2s ease-in-out infinite; }
.journey-stepper .stepper-vehicle-cursor.is-near-start .vehicle-status-bubble { --bubble-shift: 28px; }
.journey-stepper .stepper-vehicle-cursor.is-near-end .vehicle-status-bubble { --bubble-shift: -28px; }
.journey-stepper #vehicleStatusText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-stepper .vehicle-graphic-box, .journey-stepper .wheel-spin, .journey-stepper .bubble-pulse-dot { animation: none; }
.journey-stepper .stepper-vehicle-cursor.is-driving .vehicle-graphic-box { animation: vehicleSpeedBounce 0.36s ease-in-out infinite; }
.journey-stepper .stepper-vehicle-cursor.is-driving .wheel-spin { animation: wheelRoll 0.4s linear infinite; }
.journey-stepper .stepper-vehicle-cursor.is-driving .bubble-pulse-dot { animation: dotPulse 1.4s infinite; }
.journey-stepper .stepper-vehicle-cursor.is-driving::before {
  content: '';
  position: absolute;
  top: 46px;
  right: calc(50% + 22px);
  width: 22px;
  height: 10px;
  background:
    linear-gradient(270deg, rgba(59, 130, 246, 0.85), transparent) 0 1px / 18px 2px no-repeat,
    linear-gradient(270deg, rgba(56, 189, 248, 0.75), transparent) 4px 6px / 16px 2px no-repeat;
  animation: forwardWindTrail 0.52s ease-out infinite;
  pointer-events: none;
}
@keyframes forwardWindTrail {
  0% { opacity: 0.9; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-10px); }
}

/* ── Animation đơn giao hàng bình thường (pending / pickup / transit / delivering / delivered) ── */
.journey-stepper.is-transit .stepper-track-fill,
.journey-stepper.is-delivering .stepper-track-fill {
  background: linear-gradient(90deg, #10b981 0%, #2563eb 45%, #38bdf8 70%, #2563eb 100%);
  background-size: 200% 100%;
  animation: forwardTrackFlow 1.6s linear infinite;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.42);
}
@keyframes forwardTrackFlow {
  from { background-position: 200% 0; }
  to { background-position: 0% 0; }
}
.journey-stepper.is-delivering .stepper-vehicle-cursor .vehicle-status-bubble {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -4px rgba(14, 165, 233, 0.5);
}
.journey-stepper.is-delivering .stepper-vehicle-cursor .vehicle-status-bubble::after {
  border-top-color: #0ea5e9 !important;
}
.journey-stepper.is-pending .stepper-vehicle-cursor .vehicle-graphic-box,
.journey-stepper.is-pickup .stepper-vehicle-cursor .vehicle-graphic-box {
  animation: vehicleIdleBob 1.9s ease-in-out infinite;
}
@keyframes vehicleIdleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.journey-stepper.is-delivered .stepper-track-fill {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}
.journey-stepper.is-delivered .stepper-vehicle-cursor .vehicle-status-bubble {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px -4px rgba(16, 185, 129, 0.5);
  animation: deliveredCelebrate 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1;
}
.journey-stepper.is-delivered .stepper-vehicle-cursor .vehicle-status-bubble::after {
  border-top-color: #059669 !important;
}
.journey-stepper.is-delivered .stepper-vehicle-cursor .vehicle-graphic-box {
  filter: hue-rotate(-75deg) saturate(1.2);
}
.journey-stepper.is-delivered .step-node:last-child .step-circle {
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.22);
}
@keyframes deliveredCelebrate {
  0% { transform: translate(var(--bubble-shift), 4px) scale(0.92); }
  55% { transform: translate(var(--bubble-shift), -5px) scale(1.06); }
  100% { transform: translate(var(--bubble-shift), 0) scale(1); }
}
.journey-stepper:is(.is-pending, .is-pickup, .is-transit, .is-delivering) .step-node.active .step-circle {
  animation: normalNodePulse 2s ease-in-out infinite;
}
@keyframes normalNodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  65% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
}

/* ── Animation đơn sự cố (exception) & đã hủy (cancelled) ── */
.journey-stepper .stepper-vehicle-cursor.is-crashed .vehicle-graphic-box { animation: vehicleCrash 1.05s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.12s both; }
.journey-stepper .stepper-vehicle-cursor.is-crashed .vehicle-status-bubble { background: var(--danger) !important; color: #fff !important; }
.journey-stepper .stepper-vehicle-cursor.is-crashed .vehicle-status-bubble::after { border-top-color: var(--danger) !important; }
.journey-stepper .stepper-vehicle-cursor.is-crashed::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 999px;
  border: 2px solid rgba(239, 68, 68, 0.7);
  animation: crashBeaconRing 1.5s ease-out infinite;
  pointer-events: none;
}
@keyframes crashBeaconRing {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.journey-stepper.is-exception .stepper-track-fill {
  background: repeating-linear-gradient(
    -55deg,
    #ef4444 0px,
    #ef4444 10px,
    #f59e0b 10px,
    #f59e0b 20px
  );
  background-size: 28px 100%;
  animation: hazardTrackFlow 1s linear infinite;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}
@keyframes hazardTrackFlow {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}
.journey-stepper.is-exception .step-node.active .step-circle {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
  animation: exceptionBeaconPulse 1.5s ease-in-out infinite;
}
.journey-stepper.is-exception .step-node.active .step-title {
  color: #dc2626;
  font-weight: 700;
}
@keyframes exceptionBeaconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.48); }
  60% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}
.journey-stepper.is-cancelled .stepper-track-fill {
  background: linear-gradient(90deg, #94a3b8 0%, #e11d48 100%);
  opacity: 0.75;
}
.journey-stepper.is-cancelled .stepper-vehicle-cursor .vehicle-graphic-box {
  filter: grayscale(0.85) opacity(0.72);
  animation: none;
}
.journey-stepper.is-cancelled .stepper-vehicle-cursor .vehicle-status-bubble {
  background: #be123c !important;
  color: #fff !important;
}
.journey-stepper.is-cancelled .stepper-vehicle-cursor .vehicle-status-bubble::after {
  border-top-color: #be123c !important;
}

/* ── Animation riêng cho đơn chuyển hoàn (RTS) & đã hoàn trả ── */
.journey-stepper.is-returning .stepper-track-fill,
.journey-stepper.is-returned .stepper-track-fill {
  background: repeating-linear-gradient(
    -55deg,
    #f59e0b 0px,
    #f59e0b 10px,
    #ea580c 10px,
    #ea580c 20px
  );
  background-size: 28px 100%;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}
.journey-stepper.is-returning .stepper-track-fill {
  animation: returnTrackFlow 0.85s linear infinite;
}
@keyframes returnTrackFlow {
  from { background-position: 28px 0; }
  to { background-position: 0 0; }
}
.journey-stepper .stepper-vehicle-cursor.is-returning .vehicle-graphic-box {
  filter: hue-rotate(155deg) saturate(1.5) brightness(1.04);
  animation: vehicleReturnBounce 0.42s ease-in-out infinite;
}
.journey-stepper .stepper-vehicle-cursor.is-returned .vehicle-graphic-box {
  filter: hue-rotate(155deg) saturate(1.35);
  transform: scaleX(-1);
  animation: none;
}
@keyframes vehicleReturnBounce {
  0%, 100% { transform: scaleX(-1) translateY(0) skewX(-3deg); }
  50% { transform: scaleX(-1) translateY(-2.6px) skewX(-3deg); }
}
.journey-stepper .stepper-vehicle-cursor.is-returning .wheel-spin {
  animation: wheelRollReverse 0.4s linear infinite;
}
@keyframes wheelRollReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
.journey-stepper .stepper-vehicle-cursor.is-returning .vehicle-status-bubble,
.journey-stepper .stepper-vehicle-cursor.is-returned .vehicle-status-bubble {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%) !important;
  color: #fff !important;
  border-color: rgba(254, 215, 170, 0.45) !important;
  box-shadow: 0 6px 16px -4px rgba(234, 88, 12, 0.48);
}
.journey-stepper .stepper-vehicle-cursor.is-returning .vehicle-status-bubble::after,
.journey-stepper .stepper-vehicle-cursor.is-returned .vehicle-status-bubble::after {
  border-top-color: #ea580c !important;
}
.journey-stepper .stepper-vehicle-cursor.is-returning .bubble-pulse-dot {
  background: #fef08a;
  box-shadow: 0 0 0 3px rgba(254, 240, 138, 0.4);
  animation: dotPulse 1.1s infinite;
}
.journey-stepper .stepper-vehicle-cursor.is-returning::after {
  content: '';
  position: absolute;
  top: 46px;
  left: calc(50% + 22px);
  width: 22px;
  height: 10px;
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.85), transparent) 0 1px / 18px 2px no-repeat,
    linear-gradient(90deg, rgba(234, 88, 12, 0.75), transparent) 4px 6px / 16px 2px no-repeat;
  animation: returnWindTrail 0.55s ease-out infinite;
  pointer-events: none;
}
@keyframes returnWindTrail {
  0% { opacity: 0.9; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(10px); }
}
.journey-stepper.is-returning .step-node.active .step-circle,
.journey-stepper.is-returned .step-node.active .step-circle {
  background: rgba(245, 158, 11, 0.16);
  border-color: #ea580c;
  color: #ea580c;
  animation: returnNodePulse 1.8s ease-in-out infinite;
}
.journey-stepper.is-returning .step-node.completed .step-circle,
.journey-stepper.is-returned .step-node.completed .step-circle {
  background: rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
  color: #d97706;
}
.journey-stepper.is-returning .step-node.active .step-title,
.journey-stepper.is-returned .step-node.active .step-title {
  color: #d97706;
  font-weight: 700;
}
@keyframes returnNodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.42); }
  60% { box-shadow: 0 0 0 9px rgba(234, 88, 12, 0); }
}
@keyframes journeyBubbleFloat { 0%, 100% { transform: translate(var(--bubble-shift), 0); } 50% { transform: translate(var(--bubble-shift), -2px); } }
.journey-stepper .stepper-track-bg { top: 118px; left: 48px; right: 48px; height: 2px; box-shadow: none; border: none; }
.journey-stepper .stepper-track-fill { background: var(--primary); animation: none; box-shadow: none; }
.journey-stepper .step-node { width: 72px; }
.journey-stepper .step-circle { width: 36px; height: 36px; box-shadow: none; transform: none; }
.journey-stepper .step-node.active .step-circle { background: var(--primary-subtle); border-color: var(--primary); color: var(--primary); box-shadow: none; animation: none; transform: none; }
.journey-stepper .step-node.completed .step-circle { background: var(--success-subtle); border-color: var(--success); color: var(--success); box-shadow: none; transform: none; }
.journey-stepper .step-node.active .step-title { color: var(--primary); }
.journey-stepper .step-check-badge { width: 14px; height: 14px; }

/* Latest does not mean successful: use the outcome's color instead of green. */
.timeline-item[data-state] { --milestone-tone: var(--primary); }
.timeline-item[data-state="delivered"] { --milestone-tone: var(--success); }
.timeline-item[data-state="cancelled"] { --milestone-tone: var(--danger); }
.timeline-item:is([data-state="exception"], [data-state="returning"], [data-state="returned"]) { --milestone-tone: var(--warning); }
.timeline-item.is-latest[data-state] .timeline-time,
.timeline-item.is-latest[data-state] .timeline-message,
.timeline-item.is-latest[data-state] .timeline-message-main { color: var(--milestone-tone); }
.timeline-item.is-latest[data-state] .timeline-dot { background: var(--milestone-tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--milestone-tone) 16%, transparent); }
.timeline-item.is-latest[data-state] .timeline-dot::after { background: var(--milestone-tone); border-color: var(--milestone-tone); animation: none; }
.timeline-item.is-latest[data-state] .timeline-body {
  background: color-mix(in srgb, var(--milestone-tone) 7%, transparent);
  border-color: color-mix(in srgb, var(--milestone-tone) 30%, transparent);
  animation: none;
  box-shadow: none;
}
.timeline-item.is-latest[data-state] .timeline-body::before { background: color-mix(in srgb, var(--milestone-tone) 7%, var(--surface)); border-color: color-mix(in srgb, var(--milestone-tone) 30%, transparent); }
.timeline-item.is-latest[data-state] .timeline-axis::before { background: var(--border-strong); animation: none; box-shadow: none; }
.timeline-item[data-state] .timeline-latest-badge { color: var(--milestone-tone); background: color-mix(in srgb, var(--milestone-tone) 10%, transparent); border-color: color-mix(in srgb, var(--milestone-tone) 30%, transparent); }
.timeline-item[data-state] .timeline-live-beacon { background: var(--milestone-tone); box-shadow: none; animation: none; }
@media (max-width: 540px) {
  .journey-stepper { padding: 100px 0 16px; gap: 4px; }
  .journey-stepper .stepper-road-lane { left: 28px; right: 28px; }
  .journey-stepper .step-node { width: 56px; }
  .journey-stepper .stepper-track-bg { left: 28px; right: 28px; }
  .journey-stepper .step-title { font-size: 10px; }
  .journey-progress-notice { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-stepper, .journey-stepper * { animation: none !important; transition: none !important; }
  .journey-stepper .stepper-vehicle-cursor.is-crashed .vehicle-graphic-box { transform: rotate(90deg) translateY(6px); }
  .journey-stepper .stepper-vehicle-cursor.is-crashed .cargo-box { opacity: 1; }
  .journey-stepper .stepper-vehicle-cursor.is-crashed .cargo-box:nth-child(1) { transform: translate(calc(-50% - 30px), 17px) rotate(-96deg); }
  .journey-stepper .stepper-vehicle-cursor.is-crashed .cargo-box:nth-child(2) { transform: translate(calc(-50% + 27px), 21px) rotate(118deg); }
  .journey-stepper .stepper-vehicle-cursor.is-crashed .cargo-box:nth-child(3) { transform: translate(calc(-50% + 3px), 27px) rotate(152deg); }
}

/* ── Trạng thái đã giao (không cần theo dõi) ── */
.btn-notify-main.is-delivered {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  cursor: default !important;
}

.btn-order-delete {
  color: #ef4444 !important;
}

.btn-order-delete:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* ── Giao diện nhập SĐT đối soát (J&T Express, Best Express, GHN) ── */
.search-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-input-row {
  background: var(--glass-surface-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  animation: slideDownPhone 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

@keyframes slideDownPhone {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-input-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-input-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-carrier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 3px 10px;
  border-radius: 999px;
}

.phone-input-help {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.phone-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-field-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  pointer-events: none;
}

.phone-digits-field {
  width: 100%;
  padding: 10px 38px 10px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass-surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.15s ease;
}

.phone-digits-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
  background: var(--glass-surface-hover);
}

/* ── Hộp thoại Popup Xác thực SĐT (phonePromptDialog) ── */
.phone-prompt-modal-inner {
  padding: 30px 24px 22px;
  text-align: center;
  position: relative;
}

.phone-prompt-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.phone-modal-code-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-surface-subtle);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin: 4px auto 10px;
}

.phone-modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.phone-modal-input-wrap > .phone-modal-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  pointer-events: none;
}

/* Outrank .auth-field input so its shared padding cannot cover the icon. */
.phone-modal-input-wrap > .prompt-phone-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px 14px 12px 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--glass-surface);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.15s ease;
}

.prompt-phone-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

[data-theme="dark"] .phone-input-row {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .phone-digits-field,
[data-theme="dark"] .prompt-phone-input {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

[data-theme="dark"] .phone-modal-code-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}


.tracking-tools { margin-block: 24px; }
.tracking-tools .card { padding: 24px; }
.tracking-tools details { margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.tracking-tools summary { cursor: pointer; font-weight: 600; }
.tools-actions, .tools-settings { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 16px; align-items: center; }
.tools-settings label { display: flex; gap: 6px; align-items: center; }
.tools-settings input[type="number"] { width: 60px; }
.tracking-tools input, .tracking-tools select, .tracking-tools textarea { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.tracking-tools textarea { display: block; width: 100%; margin-block: 12px; box-sizing: border-box; }
.notification-new { border-left: 3px solid var(--primary); padding: 10px; background: var(--surface); }
.notification-read { padding: 10px; color: var(--text-secondary); }
.order-note { color: var(--primary); font-size: 13px; }
.bulk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.bulk-search-hint { color: var(--text-secondary); font-size: 12px; line-height: 1.6; margin: 10px 0; }
.bulk-search-results { margin-top: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.bulk-search-results h3 { font-size: 16px; margin: 0 0 12px; }
.tools-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.account-tools-dialog { width: min(600px, calc(100vw - 28px)); max-height: 88dvh; padding: 0; border: 1px solid var(--border, #e2e8f0); border-radius: 24px; background: var(--surface, #fff); color: var(--text, #0f172a); overflow-y: auto; box-shadow: 0 24px 80px rgba(15,23,42,.24); }
.account-tools-dialog::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(4px); }
.account-profile-trigger { display: inline-flex; align-items: center; gap: 9px; padding: 5px 8px 5px 4px; background: transparent; color: inherit; border: 0; border-radius: 24px; font: inherit; cursor: pointer; transition: background .18s ease; min-width: 0; }
.account-profile-trigger:hover { background: rgba(37,99,235,.07); }
.account-profile-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.account-profile-trigger > i { font-size: 10px; color: var(--text-secondary); }
.account-profile-trigger strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-tools-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 12px; position: sticky; top: 0; z-index: 2; background: var(--surface, #fff); }
.account-tools-dialog .tracking-tools { width: auto; margin: 0; padding: 16px; }
.account-tools-dialog .tracking-tools .card { box-shadow: none; }
.account-overview { padding: 8px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.account-overview[hidden] { display: none; }
.account-overview .card { margin: 0; padding: 0; min-width: 0; box-shadow: none; background: transparent; border: 0; border-radius: 0; backdrop-filter: none; }
.account-overview h2 { margin: 0; font-size: 16px; font-weight: 750; overflow-wrap: anywhere; }
.account-overview p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.account-overview [data-account-order-summary] { font-weight: 700; color: var(--text); }
.account-info { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 18px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--border, #e2e8f0); }
.account-info div { display: grid; gap: 4px; }
.account-info div[hidden] { display: none; }
.account-info dt { font-size: 12px; color: var(--text-muted); }
.account-info dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.account-connections-card { grid-column: 1 / -1; }
.account-connection-summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border, #e2e8f0); }
.account-connection-summary span, .account-connection-summary small { color: var(--text-muted); font-size: 13px; }
.account-connection-summary small { flex-basis: 100%; }
@media (max-width: 600px) {
  .account-overview { padding: 8px 20px 0; }
  .account-tools-header { padding-inline: 20px; }
}
.account-dialog-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(148,163,184,.12); color: inherit; cursor: pointer; transition: all .2s ease; }
.account-dialog-close:hover { background: rgba(255,255,255,.18); color: #fff; }
.account-tabs { display: flex; gap: 20px; margin: 0 24px 16px; border-bottom: 1px solid var(--border, #e2e8f0); }
.account-tabs button { padding: 12px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-secondary, #64748b); font: inherit; font-size: 14px; cursor: pointer; }
.account-tabs button[aria-pressed="true"] { color: var(--primary, #2563eb); border-bottom-color: currentColor; font-weight: 700; }
.account-profile-top { display: flex; align-items: center; gap: 14px; }
.account-avatar { position: relative; display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-size: 19px; font-weight: 750; overflow: hidden; }
.account-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.account-profile-copy { min-width: 0; }
.account-profile-copy h2 { font-size: 19px; line-height: 1.4; }
.account-profile-copy p { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.account-text-button { padding: 0; border: 0; background: transparent; color: var(--primary, #2563eb); font: inherit; font-size: 13px; cursor: pointer; }
.account-text-button[hidden] { display: none; }
.account-order-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 18px 8px; border-radius: 16px; background: rgba(148,163,184,.09); }
.account-order-stats > div { display: grid; gap: 5px; text-align: center; }
.account-order-stats > div + div { border-left: 1px solid var(--border, #e2e8f0); }
.account-order-stats strong { font-size: 26px; line-height: 1.2; font-weight: 750; font-variant-numeric: tabular-nums; }
.account-order-stats span { font-size: 12px; color: var(--text-secondary, #64748b); }
.account-order-stats [data-account-attention] { color: #b45309; }
.account-primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--primary, #2563eb); color: #fff; font: inherit; font-weight: 650; font-size: 14px; cursor: pointer; }
.account-overview .tools-actions { margin: 12px 0 0; }
.account-order-summary[hidden] { display: none; }
.account-carrier-logo { width: 36px; height: 36px; flex-shrink: 0; padding: 5px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; box-sizing: border-box; }
.account-carrier-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.account-carrier-copy strong { font-size: 14px; }
.account-carrier-copy span { font-size: 12px; overflow-wrap: anywhere; }
.account-carrier-open { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(148,163,184,.10); color: var(--text, #0f172a); font-size: 20px; cursor: pointer; }
.account-signout { width: fit-content; padding: 4px 0; margin: 0 auto; border: 0; background: transparent; color: var(--text-secondary, #64748b); font: inherit; font-size: 13px; cursor: pointer; }
.account-signout:hover { color: #dc2626; }
.account-dialog-footer { padding: 16px 24px 20px; text-align: center; }
.account-dialog-footer button { color: var(--text-secondary, #64748b); font-size: 12px; }
.account-tools-dialog .tracking-tools[hidden] { display: none; }
.account-tools-dialog .tools-heading h2 { font-size: 17px; }
.account-tools-dialog .tools-settings { display: grid; gap: 16px; }
.account-tools-dialog .quiet-hours { display: flex; flex-wrap: wrap; gap: 16px; }
.account-tools-dialog .tools-settings input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary, #2563eb); }
.account-tools-dialog .tools-settings select { width: 100%; min-width: 0; }
.account-support-body { padding: 8px 24px 24px; }
.account-support-body details { margin-top: 10px; }
.account-tools-dialog button:focus-visible { outline: 2px solid var(--primary, #2563eb); outline-offset: 3px; }
#pushState.push-connected { color: #087455; background: #ecfdf5; border-color: #a7f3d0; font-weight: 600; }
#pushState.push-connected::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; margin-right: 9px; }
[data-theme="dark"] #pushState.push-connected { color: #6ee7b7; background: #113329; border-color: #24634f; }
.tools-heading h2 { margin: 0; font-size: 21px; }
.tools-heading p, .tools-empty { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
#pushState { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; line-height: 1.6; }
.tracking-tools .push-extra { margin: 0; padding: 8px 12px; }
.tools-subheading { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-top: 24px; }
.tools-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 2px 7px; border-radius: 20px; background: var(--surface); color: var(--primary); font-size: 12px; }
.device-watch { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; }
.device-watch-info { min-width: 0; overflow-wrap: anywhere; }
.device-watch strong { font-size: 15px; letter-spacing: .3px; }
.device-watch p { margin: 7px 0 0; font-size: 13px; line-height: 1.6; }
.watch-time { color: var(--text-secondary); }
.watch-warning { color: #9a5a08; background: #fff4df; border-radius: 6px; padding: 5px 9px; }
[data-theme="dark"] .watch-warning { color: #ffd18a; background: #382c18; }
.tracking-tools #quietForm { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 18px; }
.quiet-hours { display: flex; flex-wrap: wrap; gap: 16px; }
.tracking-tools summary > i { margin-right: 8px; color: var(--primary); }
.tracking-tools details[open] > summary { margin-bottom: 16px; }
.tracking-tools #notificationHistory { max-height: 360px; overflow-y: auto; }
@media (max-width: 600px) {
  .tracking-tools .card { padding: 16px; }
  .tools-heading { align-items: flex-start; }
  .tools-heading h2 { font-size: 18px; }
  .tracking-tools #quietForm { grid-template-columns: 1fr; }
  .device-watch { align-items: flex-start; flex-direction: column; }
  .device-watch > button { align-self: flex-end; }
  .tools-settings select { max-width: 100%; }
}

.shop-workspace { margin-top: 22px; margin-bottom: 20px; }
.shop-workspace h2 { margin: 12px 0; }
.shop-workspace p { color: var(--text-muted, #64748b); line-height: 1.6; }
.shop-mode-label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; background: rgba(37,99,235,.1); color: #2563eb; font-weight: 700; }
.shop-data-note { padding: 12px 16px; border-left: 3px solid #2563eb; background: rgba(37,99,235,.06); border-radius: 8px; }
.account-mode-switch { white-space: nowrap; }
.shop-session-form { display: grid; gap: 12px; margin: 16px 0; }
.shop-session-form label { display: grid; gap: 6px; }
.shop-session-form textarea, .shop-session-form input { width: 100%; padding: 10px; border: 1px solid var(--glass-border); border-radius: 10px; background: var(--card-bg, #fff); color: inherit; box-sizing: border-box; }
[data-account-mode="shop"] .client-workspace-section,
[data-account-mode="shop"] #myOrdersNav { display: none !important; }
.shop-provider-card { margin: 20px 0; padding: 20px; border: 1px solid var(--glass-border); border-radius: 16px; }
[data-account-mode="shop"] #syncSection, [data-account-mode="shop"] #savedOrders { scroll-margin-top: 100px; }




