/* Public site â€” mÃ u chá»§ Ä‘áº¡o tá»« Admin (:root Ä‘Æ°á»£c layout.php override) */
:root {
  --bg: #f5f5f5;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #fafafa;
  --border: #f0f0f0;
  --border-strong: #d9d9d9;
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.45);
  --muted2: rgba(0, 0, 0, 0.35);
  --primary: #fe2c55;
  --primary-hover: color-mix(in srgb, #fe2c55 88%, white);
  --primary-active: color-mix(in srgb, #fe2c55 75%, black);
  --primary-dim: color-mix(in srgb, #fe2c55 12%, white);
  --accent-mid: #fe2c55;
  --success-bg: #f6ffed;
  --success-border: #b7eb8f;
  --success-text: #135200;
  --danger-bg: #fff2f0;
  --danger-border: #ffccc7;
  --danger-text: #a8071a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
  --font: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --topbar-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.public-site {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

body.public-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      ellipse 100% 70% at 50% -30%,
      color-mix(in srgb, var(--primary) 14%, transparent),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 50% at 100% 20%,
      color-mix(in srgb, var(--primary) 8%, transparent),
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 40% at 0% 100%,
      color-mix(in srgb, var(--primary) 8%, transparent),
      transparent 45%
    ),
    var(--bg);
  pointer-events: none;
}

body.public-site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== App Modal (thay alert/confirm browser) ===== */
.app-modal-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.app-modal-root.is-open {
  display: block;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
}

.app-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 28px));
  border-radius: 16px;
  background: var(--bg-elevated, #fff);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  color: var(--text, rgba(0, 0, 0, 0.88));
}

.app-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #f0f0f0) 75%, transparent);
}

.app-modal-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
}

.app-modal-x {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border, #f0f0f0);
  background: var(--surface, #fff);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--text, rgba(0,0,0,0.88));
}

.app-modal-x:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border, #f0f0f0));
}

.app-modal-body {
  padding: 12px 16px 2px;
}

.app-modal-desc {
  color: var(--text, rgba(0,0,0,0.88));
  opacity: 0.92;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 14px;
}

.app-modal-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, #f0f0f0);
  background: var(--surface, #fff);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.app-modal-btn--ghost:hover {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border, #f0f0f0));
}

.app-modal-btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary, #fff);
}

.app-modal-btn--primary:hover {
  background: var(--primary-hover);
}

html.app-modal-open,
html.app-modal-open body {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s var(--ease), opacity 0.15s;
}
a:hover {
  color: var(--primary-hover);
}

/* Mobile nav */
.site-nav-cb {
  position: fixed;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}

.site-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.site-nav-cb:checked ~ .site-nav-overlay {
  display: block;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}

.nav-burger:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.nav-burger-lines {
  display: block;
  width: 20px;
  height: 14px;
  background: linear-gradient(
    to bottom,
    var(--text) 0%,
    var(--text) 12%,
    transparent 12%,
    transparent 44%,
    var(--text) 44%,
    var(--text) 56%,
    transparent 56%,
    transparent 88%,
    var(--text) 88%,
    var(--text) 100%
  );
  border-radius: 1px;
}

.site-nav-cb:checked ~ .topbar .nav-burger {
  border-color: var(--primary);
  background: var(--primary-dim);
}

@media (max-width: 900px) {
  .nav-burger {
    display: inline-flex;
  }

  .topbar-inner .topbar-cluster {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(100vw - 3rem, 320px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--topbar-h) + 12px) 1.15rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateX(105%);
    transition: transform 0.28s var(--ease);
    z-index: 90;
    overflow-y: auto;
  }

  .site-nav-cb:checked ~ .topbar .topbar-cluster {
    transform: translateX(0);
  }

  .topbar-inner .topbar-nav-wrap {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    max-width: none;
    padding: 0.65rem 0;
    gap: 0.85rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar-inner .topbar-nav-split {
    width: 100%;
    height: 1px;
    min-height: 0;
    margin: 0;
    background: var(--border);
    opacity: 1;
  }

  .topbar-inner .topbar-nav-pinned,
  .topbar-inner .topbar-nav-scroll {
    width: 100%;
    overflow: visible;
  }

  .topbar-inner .nav-topbar,
  .topbar-inner .nav-guest-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .topbar-inner .topbar-nav-wrap .nav a,
  .topbar-inner .nav-guest-actions a {
    padding: 0.65rem 0.85rem;
    justify-content: flex-start;
    text-align: left;
  }

  .topbar-inner .nav-guest-actions a.btn {
    text-align: center;
    justify-content: center;
  }

  .topbar-inner .nav-topbar-panel .nav-admin {
    color: #cf1322 !important;
  }

  .topbar-inner .topbar-session {
    margin-top: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border);
    gap: 0.85rem;
  }

  .topbar-inner .topbar-session-name {
    max-width: none;
    text-align: center;
  }

  .topbar-inner .topbar-session-out {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .topbar-inner .nav-guest-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(18, 42, 76, 0.06);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-block:hover {
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--primary) 26%, transparent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-block:hover .logo {
  color: var(--primary);
}

.topbar .logo {
  font-weight: 800;
  font-size: clamp(0.9375rem, 2.4vw, 1.0825rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #141414;
  transition: color 0.18s;
}

.logo-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .logo-tagline {
    display: none;
  }
}

.topbar-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 901px) {
  .topbar-cluster {
    flex-wrap: nowrap;
  }
}

.topbar-nav-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 0.2rem 0.28rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.topbar-nav-pinned {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.topbar-nav-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  padding-right: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .topbar-nav-scroll {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.topbar-nav-scroll::-webkit-scrollbar {
  display: none;
}

.topbar-nav-split {
  flex-shrink: 0;
  width: 1px;
  height: 1.35rem;
  margin: 0 0.4rem;
  background: rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  margin: 0;
}

.nav-topbar {
  flex-shrink: 0;
  gap: 0;
}

.nav-topbar-panel {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-start;
  width: max-content;
}

.nav-guest-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-nav-wrap .nav a:not(.btn) {
  border-radius: 999px;
  padding: 0.385rem 0.6525rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.topbar-nav-wrap .nav a:not(.btn):hover {
  color: rgba(0, 0, 0, 0.88);
  background: rgba(0, 0, 0, 0.04);
}

.topbar-nav-wrap .nav a:not(.btn).active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-dim);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent),
    0 1px 2px color-mix(in srgb, var(--primary) 18%, transparent);
}

.topbar-nav-wrap .nav a.nav-admin {
  color: #cf1322 !important;
  background: rgba(255, 77, 79, 0.08);
  box-shadow: inset 0 0 0 1px rgba(207, 19, 34, 0.18);
}

.topbar-nav-wrap .nav a.nav-admin:hover {
  background: rgba(255, 77, 79, 0.13);
}

.topbar-session {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-session-name {
  font-size: 0.8325rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.78);
  max-width: min(148px, 28vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-session-out {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.4rem 0.125rem;
  text-decoration: none;
  transition: color 0.15s;
}

.topbar-session-out:hover {
  color: #a8071a;
  text-decoration: none;
}

.topbar-link-login {
  padding: 0.45rem 0.625rem !important;
  font-size: 0.84375rem !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
  border-radius: 999px !important;
}

.topbar-link-login:hover {
  color: var(--text) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

.topbar-link-login.is-active {
  color: var(--primary) !important;
  background: var(--primary-dim) !important;
}

.nav-guest-actions .btn-topbar-register.is-active-reg {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--primary) 48%, transparent),
    0 4px 16px color-mix(in srgb, var(--primary) 38%, transparent);
}

/* ThÃ´ng bÃ¡o Ä‘Æ¡n hÃ ng minh há»a â€” chá»‰ lÃ  hiá»‡u á»©ng UX, khÃ´ng pháº£i Ä‘Æ¡n thá»±c */
.fake-order-toast-root {
  position: fixed;
  z-index: 92;
  left: max(1rem, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: min(382px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 0.625rem;
  pointer-events: none;
}

.fake-order-toast-card {
  pointer-events: auto;
  padding: 0.95rem 1.05rem 0.875rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 24px rgba(15, 40, 80, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.32s var(--ease),
    transform 0.32s var(--ease);
}

.fake-order-toast-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .fake-order-toast-card {
    transform: none;
    transition-duration: 0.16s;
  }
}

.fake-order-toast-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.fake-order-toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
  font-size: 0.6275rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 90%, black);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.fake-order-toast-card--news {
  border-left: 3px solid color-mix(in srgb, var(--primary) 65%, transparent);
}

.fake-order-toast-card--news .fake-order-toast-badge {
  color: color-mix(in srgb, var(--primary) 92%, black);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.fake-order-toast-card--news .fake-order-toast-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  opacity: 0.95;
  animation: fake-toast-live 1.35s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fake-order-toast-card--news .fake-order-toast-badge::before {
    animation: none;
  }
}

@keyframes fake-toast-live {
  50% {
    opacity: 0.4;
    transform: scale(0.88);
  }
}

.fake-order-toast-ago {
  margin-left: auto;
  font-size: 0.715rem;
  font-weight: 600;
  color: var(--muted2);
}

.fake-order-toast-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.76);
}

.nav-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.nav a.active {
  color: var(--primary);
  background: var(--primary-dim);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 32%, transparent);
}

.nav a.btn.active {
  background: var(--primary);
  color: var(--on-primary, #fff);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--primary) 42%, transparent),
    0 4px 14px color-mix(in srgb, var(--primary) 38%, transparent);
}

.nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-link-quiet {
  font-weight: 600;
}

.nav-muted {
  opacity: 0.85;
}

.nav-admin {
  color: #cf1322 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--primary);
  color: var(--on-primary, #fff);
  text-decoration: none;
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--primary) 18%, transparent),
    0 2px 12px color-mix(in srgb, var(--primary) 34%, transparent);
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 42%, transparent);
  text-decoration: none;
  color: var(--on-primary, #fff);
}

.btn:active {
  transform: scale(0.98);
  background: var(--primary-active);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.8125rem;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: linear-gradient(
    135deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 45%, #9e1068)
  );
  color: var(--on-primary, #fff);
  box-shadow: 0 2px 14px color-mix(in srgb, var(--primary) 42%, transparent);
}

.main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4.5rem;
  flex: 1 0 auto;
  width: 100%;
}

.page-home .main {
  max-width: 1180px;
  padding-top: 1.25rem;
}

/* â€”â€” Trang chá»§ â€”â€” menu active theo mÃ u chá»§ Ä‘áº¡o (Primary) */
.page-home .topbar-nav-pinned .nav-topbar a.active:not(.btn) {
  color: color-mix(in srgb, var(--primary) 86%, black);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 32%, transparent),
    0 2px 10px color-mix(in srgb, var(--primary) 22%, transparent);
}

.page-home .topbar-nav-wrap .nav-topbar-panel a.active:not(.btn):not(.nav-admin) {
  color: color-mix(in srgb, var(--primary) 76%, black);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent),
    0 2px 8px color-mix(in srgb, var(--primary) 18%, transparent);
}

.home-page {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 8vw, 5rem);
}

.home-ed {
  --home-ed-max: 1120px;
}

.flash--home {
  margin-bottom: 0.75rem;
}

/* Trang chá»§ â€” layout editorial: hero 2 cá»™t, preview panel, bento, luá»“ng, tÃ­nh nÄƒng dáº¡ng hÃ ng */
.home-ed-hero {
  max-width: var(--home-ed-max);
  margin: 0 auto;
  padding: clamp(0.25rem, 1.2vw, 0.75rem) 0 clamp(2rem, 5vw, 3.35rem);
}

.home-ed-hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 960px) {
  .home-ed-hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(268px, 380px);
  }
}

.home-ed-copy {
  max-width: 56ch;
}

.home-ed-kicker {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 58%, var(--muted));
}

.home-ed-title {
  margin: 0 0 0.375rem;
  font-size: clamp(1.9rem, 5.1vw, 3.05rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 1.06;
  color: var(--text);
}

.home-ed-site {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
}

.home-ed-tagline {
  margin: 0 0 0.7rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  color: color-mix(in srgb, var(--text) 55%, var(--muted));
}

.home-ed-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.74;
  color: var(--muted);
}

.home-ed-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.375rem;
}

.home-ed-chip {
  display: inline-flex;
  padding: 0.3rem 0.82rem;
  font-size: 0.765rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--primary) 40%, var(--text));
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
}

.home-ed-chip--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.hero-cta.home-ed-actions {
  justify-content: flex-start;
}

.home-ed-link-quiet {
  border-color: transparent !important;
  font-weight: 600 !important;
  opacity: 0.88;
}

.btn-home-main {
  padding: 0.78rem 1.55rem !important;
  font-size: 1rem !important;
  border-radius: 999px !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 94%, black) 0%,
    var(--primary) 38%,
    color-mix(in srgb, var(--primary) 58%, white) 100%
  ) !important;
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--primary) 28%, transparent),
    0 14px 36px color-mix(in srgb, var(--primary) 42%, transparent) !important;
}

.btn-home-main:hover {
  filter: brightness(1.05);
  color: #fff !important;
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--primary) 24%, transparent),
    0 18px 42px color-mix(in srgb, var(--primary) 46%, transparent) !important;
}

.btn-home-secondary.btn-ghost {
  padding: 0.78rem 1.42rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  background: var(--surface) !important;
}

.home-ed-trust {
  list-style: none;
  margin: 1.625rem 0 0;
  padding: 1.0625rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.home-ed-trust li {
  display: inline-flex;
  align-items: center;
}

.home-ed-trust li:not(:last-child)::after {
  content: "Â·";
  margin-left: 0.875rem;
  color: color-mix(in srgb, var(--muted) 45%, transparent);
  font-weight: 700;
  pointer-events: none;
}

/* Tháº» preview bÃªn pháº£i */
.home-ed-panel {
  justify-self: stretch;
}

@media (min-width: 960px) {
  .home-ed-panel {
    position: sticky;
    top: 5.5rem;
  }
}

.home-ed-panel-frame {
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 52%, transparent) 0%,
    color-mix(in srgb, var(--primary) 25%, transparent) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 18px 48px rgba(15, 40, 80, 0.1);
}

.home-ed-panel-top {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem 0;
}

.home-ed-panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
}

.home-ed-panel-dot:nth-child(1) {
  background: #ff5f57;
}

.home-ed-panel-dot:nth-child(2) {
  background: #febc2e;
}

.home-ed-panel-dot:nth-child(3) {
  background: #28c840;
}

.home-ed-panel-body {
  margin: 0.35rem;
  padding: 1.15rem 1.35rem 1.35rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
}

.home-ed-panel-caption {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 45%, var(--muted));
}

.home-ed-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
}

.home-ed-metric {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.home-ed-metric dt {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-ed-metric dd {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.home-ed-fake-live {
  margin: 0.85rem 0 0;
  padding: 0.72rem 0.84rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 7%, transparent) 0%,
    color-mix(in srgb, var(--primary) 4%, transparent) 100%
  );
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
}

.home-ed-fake-live-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.home-ed-fake-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
  animation: home-fake-live-dot 1.25s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .home-ed-fake-live-dot {
    animation: none;
    opacity: 0.9;
  }
}

@keyframes home-fake-live-dot {
  50% {
    opacity: 0.35;
    transform: scale(0.88);
  }
}

.home-ed-fake-live-badge {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 78%, black);
}

.home-ed-fake-live-ago {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted2);
}

.home-ed-fake-live-line {
  margin: 0;
  font-size: 0.815rem;
  line-height: 1.48;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  min-height: 2.4em;
  transition: opacity 0.28s var(--ease);
}

.home-ed-panel-divider {
  height: 1px;
  margin: 1.15rem 0 0.95rem;
  background: var(--border);
}

.home-ed-panel-strong {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 88%, black),
    var(--primary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-ed-panel-soft {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-ed-panel-note {
  margin: 0.4rem 0 1.1rem;
  font-size: 0.85rem;
  line-height: 1.52;
  color: var(--muted);
}

.home-ed-panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8875rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.home-ed-panel-action:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Bento 3 cá»™t */
.home-ed-bento {
  max-width: var(--home-ed-max);
  margin: 0 auto;
  padding-top: 0.25rem;
}

.home-ed-section-title {
  margin: 0 0 1.375rem;
  font-size: clamp(1.35rem, 3.6vw, 1.8125rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
}

.home-ed-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.125rem;
}

.home-ed-bento-item {
  position: relative;
  padding: 1.65rem 1.45rem 1.5rem 1.85rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.home-ed-bento-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 55%, white)
  );
}

.home-ed-num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--primary) 55%, var(--muted));
}

.home-ed-item-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--text);
}

.home-ed-item-text {
  margin: 0;
  font-size: 0.9425rem;
  line-height: 1.64;
  color: var(--muted);
}

/* Luá»“ng dÃ¹ng nhanh */
.home-ed-flow {
  max-width: var(--home-ed-max);
  margin: 0 auto;
}

.home-ed-flow-shell {
  display: grid;
  gap: 2rem;
  padding: clamp(1.85rem, 5vw, 2.75rem);
  border-radius: 22px;
  background:
    radial-gradient(
      ellipse 120% 90% at 0% 0%,
      color-mix(in srgb, var(--primary) 9%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 80% at 100% 80%,
      color-mix(in srgb, var(--primary) 6%, transparent) 0%,
      transparent 50%
    ),
    color-mix(in srgb, var(--muted) 4%, var(--surface));
  border: 1px solid var(--border);
}

@media (min-width: 820px) {
  .home-ed-flow-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(260px, 1fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.25rem);
  }
}

.home-ed-section-title--light {
  margin-bottom: 0.75rem;
}

.home-ed-flow-lead {
  margin: 0 0 1.35rem;
  font-size: 1.035rem;
  line-height: 1.67;
  color: var(--muted);
  max-width: 42ch;
}

.home-ed-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: home-ed-steps;
}

.home-ed-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
}

.home-ed-steps-n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--primary) 88%, black);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.home-ed-steps-copy {
  font-size: 0.9225rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

/* Æ¯u Ä‘iá»ƒm â€” hÃ ng ngang cÃ³ icon */
.home-ed-feats {
  padding-bottom: 0.75rem;
}

.home-ed-feats-head {
  max-width: 640px;
  margin-bottom: 1.875rem;
}

.home-ed-feats-kicker {
  display: inline-block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 48%, var(--muted));
}

.home-ed-feats-lead {
  margin: 0.625rem 0 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--muted);
}

.home-ed-feat-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.home-ed-feat {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.home-ed-feat-ico {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}

.home-ed-feat-ico--violet {
  background: color-mix(in srgb, #722ed1 11%, transparent);
  color: #722ed1;
  border: 1px solid color-mix(in srgb, #722ed1 18%, transparent);
}

.home-ed-feat-ico--blue {
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}

.home-ed-feat-ico--coral {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
}

.home-ed-feat-title {
  margin: 0 0 0.375rem;
  font-size: 1.065rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--text);
}

.home-ed-feat-desc {
  margin: 0;
  font-size: 0.9175rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Atom chung badge / eyebrow cho landing */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid color-mix(in srgb, var(--primary) 36%, transparent);
}

.badge {
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, color 0.2s;
}

.badge:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, transparent);
  color: var(--primary);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2.75rem 0 1.25rem;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}

.page-intro .section-title {
  margin-bottom: 0.5rem;
}

.page-intro-lead {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 0.5rem;
  line-height: 1.6;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 72%, white)
  );
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--primary) 32%, transparent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: var(--primary-dim);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.pp-prose-mini {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.pp-prose-mini p,
.pp-prose-mini ul,
.pp-prose-mini ol {
  margin: 0 0 0.45em;
}

.pp-prose-mini p:last-child,
.pp-prose-mini ul:last-child,
.pp-prose-mini ol:last-child {
  margin-bottom: 0;
}

.pp-prose-mini ul,
.pp-prose-mini ol {
  padding-left: 1.25em;
}

.card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

/* Auth */
.auth-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-md);
}

.auth-card .section-title {
  text-align: left;
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.6rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 1.25rem;
  align-items: stretch;
}

.auth-aside {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 120% 90% at 30% 20%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 90% 70% at 80% 75%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 92%, var(--primary) 8%);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.auth-aside h2 {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.auth-aside p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.auth-aside .auth-aside-foot {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-aside ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: rgba(0, 0, 0, 0.74);
  line-height: 1.55;
  font-size: 0.92rem;
}

.auth-aside li + li {
  margin-top: 0.4rem;
}

.auth-subtitle {
  margin: 0.25rem 0 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.auth-field {
  margin-bottom: 0.9rem;
}

.auth-field .auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.35rem;
}

.auth-field label {
  margin: 0;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  padding-left: 0.95rem;
  padding-right: 0.95rem;
  margin-bottom: 0;
}

.auth-input-wrap.has-eye input {
  padding-right: 3.35rem;
}

.auth-input-wrap input:focus + .auth-eye,
.auth-input-wrap input:focus ~ .auth-eye {
  border-color: color-mix(in srgb, var(--primary) 28%, rgba(0, 0, 0, 0.08));
}

.auth-eye {
  position: absolute;
  right: 0.3rem;
  top: 5px;
  bottom: 5px;
  margin: 0;
  transform: none;
  width: 38px;
  height: auto;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 900;
  /* emoji dễ lệch theo font, dùng icon mask */
  font-size: 0;
  line-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 2;
  transition: transform 0.15s var(--ease), background-color 0.18s var(--ease);
}

.auth-eye::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  /* Heroicons: eye (solid) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 5c-7.633 0-11 7-11 7s3.367 7 11 7 11-7 11-7-3.367-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-2.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 5c-7.633 0-11 7-11 7s3.367 7 11 7 11-7 11-7-3.367-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-2.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E");
}

.auth-eye.is-on::before {
  /* Heroicons: eye-slash (solid) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3.53 2.47a.75.75 0 0 0-1.06 1.06l2.01 2.01C2.21 7.31 1 9.53 1 12c0 0 3.367 7 11 7 2.01 0 3.75-.49 5.2-1.21l3.27 3.27a.75.75 0 1 0 1.06-1.06l-18-18ZM12 17.5c-4.81 0-7.78-3.66-9.12-5.5.52-.72 1.34-1.7 2.44-2.61l1.86 1.86A4.98 4.98 0 0 0 7 12a5 5 0 0 0 7.75 4.18l1.41 1.41c-1.18.57-2.55.91-4.16.91Zm-1.5-7.06 3.06 3.06a2.5 2.5 0 0 0-3.06-3.06Zm9.02 4.73-2.02-2.02c.92-.93 1.6-1.9 2.02-2.53-1.34-1.84-4.31-5.5-9.12-5.5-.94 0-1.8.14-2.6.36L6.9 4.58A12.9 12.9 0 0 1 12 4c7.633 0 11 7 11 7 0 0-1.17 2.43-3.48 4.17ZM9.88 7.56l4.56 4.56A2.5 2.5 0 0 0 9.88 7.56Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3.53 2.47a.75.75 0 0 0-1.06 1.06l2.01 2.01C2.21 7.31 1 9.53 1 12c0 0 3.367 7 11 7 2.01 0 3.75-.49 5.2-1.21l3.27 3.27a.75.75 0 1 0 1.06-1.06l-18-18ZM12 17.5c-4.81 0-7.78-3.66-9.12-5.5.52-.72 1.34-1.7 2.44-2.61l1.86 1.86A4.98 4.98 0 0 0 7 12a5 5 0 0 0 7.75 4.18l1.41 1.41c-1.18.57-2.55.91-4.16.91Zm-1.5-7.06 3.06 3.06a2.5 2.5 0 0 0-3.06-3.06Zm9.02 4.73-2.02-2.02c.92-.93 1.6-1.9 2.02-2.53-1.34-1.84-4.31-5.5-9.12-5.5-.94 0-1.8.14-2.6.36L6.9 4.58A12.9 12.9 0 0 1 12 4c7.633 0 11 7 11 7 0 0-1.17 2.43-3.48 4.17ZM9.88 7.56l4.56 4.56A2.5 2.5 0 0 0 9.88 7.56Z'/%3E%3C/svg%3E");
}

.auth-eye:hover {
  background: rgba(0, 0, 0, 0.045);
  transform: none;
}

.auth-eye:active {
  background: rgba(0, 0, 0, 0.07);
  transform: none;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0.35rem 0 0.85rem;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.72);
}

.auth-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.auth-legal {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-foot {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    max-width: 460px;
    padding: 0.75rem 0 2rem;
  }
  .auth-aside {
    order: -1;
  }
}

.g-recaptcha-wrap {
  margin: 0.75rem 0 1rem;
  transform-origin: top left;
}

/* Footer */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  margin-top: 2rem;
  background: var(--surface);
  margin-top: auto;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: left;
}

/* ===== Footer v2 (đồng bộ toàn site) ===== */
.footer-v2 {
  display: grid;
  gap: 12px;
}

.footer-v2-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 14px;
  align-items: start;
}

.footer-v2-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 0;
}

.footer-v2-logo {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.footer-v2-name {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 14px;
}

.footer-v2-desc {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 650;
  line-height: 1.55;
  max-width: 60ch;
  font-size: 13px;
}

.footer-v2-extra {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.60);
  font-weight: 750;
  font-size: 13px;
}

.footer-v2-col {
  display: grid;
  gap: 8px;
  padding: 0;
}

.footer-v2-title {
  font-weight: 800;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  font-size: 13px;
}

.footer-v2-col a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.66);
  font-weight: 700;
  padding: 3px 0;
  transition: color 0.15s var(--ease);
  font-size: 13px;
}

.footer-v2-col a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-v2-kv {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.footer-v2-k {
  font-size: 12px;
  opacity: 0.6;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-v2-v {
  font-weight: 800;
  margin-top: 4px;
  font-size: 13px;
}

.footer-v2-help {
  margin-top: 4px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 13px;
}

.footer-v2-help:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-v2-bottom {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 700;
  font-size: 12.5px;
}

.footer-v2-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-v2-links a {
  color: rgba(0, 0, 0, 0.62);
  font-weight: 700;
  text-decoration: none;
  padding: 0;
  transition: color 0.15s var(--ease);
  font-size: 12.5px;
}

.footer-v2-links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .footer-v2-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-v2-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 1.25rem 1rem;
  }
}

.footer-brand {
  margin-bottom: 1.25rem;
}

.footer-logo-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.footer-logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0.75rem auto 0;
  line-height: 1.55;
}

.footer-copy {
  font-size: 0.8125rem;
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.footer-tagline {
  font-size: 0.78rem;
  margin: 0;
}

.muted {
  color: var(--muted);
}

.form {
  max-width: 100%;
  margin: 0;
}

.form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: var(--primary);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 22%, transparent);
}

.form textarea {
  min-height: 88px;
  resize: vertical;
}

.form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.flash--error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data th {
  color: var(--muted);
  font-weight: 600;
}

.stat-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Widget liÃªn há»‡ ná»•i (contact_widgets_render) â€” trang public */
.site-cw-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 899;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.site-cw-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-cw-item:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.site-cw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-cw-fallback {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 480px) {
  .site-cw-stack {
    right: 16px;
    bottom: 16px;
  }
}

/* Trang chá»§: báº£n xem nhanh bÃ i viáº¿t + nick */
.home-ed-discovery {
  max-width: var(--home-ed-max, 1120px);
  margin: 0 auto 2rem;
  width: 100%;
  text-align: left;
}

.home-discovery-block {
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-discovery-block + .home-discovery-block {
  margin-top: 1.25rem;
}

.home-discovery-block-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.home-discovery-subh {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.home-discovery-empty {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.home-discovery-list {
  margin: 0 0 0.875rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.home-discovery-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 0.75rem;
  margin-bottom: 0;
}

.home-discovery-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.home-discovery-item:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-sm);
}

.home-discovery-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary-dim, rgba(22, 119, 255, 0.08));
}

.home-discovery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-discovery-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.home-discovery-item-title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--text);
}

.home-discovery-item-ex,
.home-discovery-item-meta {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.home-discovery-item-pill {
  font-size: 0.75rem;
  text-transform: none;
}

.home-discovery-more {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Blog public (bai-viet.php) */
.blog-pub-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.blog-pub-h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.blog-pub-meta {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.blog-pub-meta-sep {
  margin: 0 0.35rem;
}

.blog-pub-bc a {
  color: var(--primary);
  font-size: 0.875rem;
  text-decoration: none;
}

.blog-pub-bc a:hover {
  text-decoration: underline;
}

.blog-pub-cover {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-pub-cover img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.blog-pub-excerpt {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.blog-pub-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.blog-pub-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-pub-footer-nav {
  margin: 2rem 0 0;
}

.blog-pub-back {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.blog-pub-back:hover {
  text-decoration: underline;
}

.blog-pub-list-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.8vw, 1.875rem);
  font-weight: 800;
}

.blog-pub-list-intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.blog-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.125rem;
}

.blog-pub-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-pub-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: var(--shadow-sm);
}

.blog-pub-card-media {
  aspect-ratio: 16 / 9;
  background: var(--primary-dim, rgba(22, 119, 255, 0.08));
}

.blog-pub-card-media--ph {
  min-height: 140px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 18%, transparent),
    var(--surface)
  );
}

.blog-pub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-pub-card-body {
  padding: 0.875rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-pub-card-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-pub-card-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-pub-card-ex {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.blog-pub-card-cta {
  margin-top: 0.35rem;
  font-size: 0.8375rem;
  font-weight: 600;
  color: var(--primary);
}

/* Cửa hàng nick: assets/css/nick-storefront.css */
