/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5
 * Hallmark · genre: modern-minimal · macrostructure: Narrative Workflow + Split Studio · nav: left app-rail · footer: Ft2 static line · design-system: design.md · motion: click/focus only, no scroll reveal · contrast: pass (40-41) · slop: pass (42-49) · mobile: pass (34,49-57) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · icons: pass (30)
 */
:root {
  --color-paper: oklch(99% 0.004 240);
  --color-paper-2: oklch(97.1% 0.02 238);
  --color-paper-3: oklch(93.9% 0.033 238);
  --color-ink: oklch(20% 0.04 245);
  --color-ink-2: oklch(34% 0.034 245);
  --color-muted: oklch(47% 0.028 245);
  --color-rule: oklch(84.8% 0.036 238);
  --color-rule-2: oklch(72.8% 0.053 238);
  --color-accent: oklch(54% 0.12 242);
  --color-accent-2: oklch(68% 0.083 238);
  --color-accent-ink: oklch(99% 0.004 250);
  --color-focus: oklch(56.5% 0.13 242);
  --color-zalo: var(--color-accent);
  --color-facebook: var(--color-accent);
  --color-sky: oklch(90.2% 0.061 236);
  --color-blue-soft: oklch(92% 0.052 236);
  --color-blue-softer: oklch(96.2% 0.029 236);
  --color-blue-faint: oklch(97.8% 0.018 236);
  --color-navy: oklch(24% 0.052 245);
  --color-navy-2: oklch(31% 0.065 245);
  --color-graphite: oklch(24% 0.04 245);
  --color-graphite-2: oklch(30% 0.044 245);
  --color-graphite-ink: oklch(96.5% 0.01 240);
  --color-success: oklch(48% 0.14 155);
  --color-warning: oklch(54% 0.15 72);
  --color-error: oklch(54% 0.18 25);
  --color-shadow: oklch(24% 0.04 255 / 0.14);
  --color-overlay: oklch(19% 0.035 255 / 0.46);

  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.2rem;
  --text-lg: 1.5rem;
  --text-xl: 1.9rem;
  --text-2xl: 2.35rem;
  --text-3xl: 3rem;
  --text-display: 4.35rem;
  --text-display-s: 3.35rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --dur-reveal: 820ms;

  --rule-hair: 1px;
  --radius-input: 8px;
  --radius-card: 8px;
  --radius-panel: 8px;
  --radius-pill: 999px;
  --shadow-soft: 0 16px 38px -28px var(--color-shadow);
  --shadow-lift: 0 24px 60px -34px var(--color-shadow);
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --page-max: 1180px;

  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}

html,
body {
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.app-body {
  min-height: 100dvh;
  background: var(--color-paper-2);
  position: relative;
  width: 100%;
}

.app-sidebar {
  border-inline-end: 1px solid #e2e8f0;
  background: #ffffff;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (min-width: 72.01rem) {
  .app-body {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 248px;
    height: 100vh;
    height: 100dvh;
    z-index: var(--z-sticky);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-sm) var(--space-lg);
  }

  .app-main {
    margin-left: 248px;
    width: calc(100% - 248px);
    min-width: 0;
    min-height: 100dvh;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

.app-brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  color: #0f172a;
  min-width: 0;
}

.app-brand__mark,
.user-avatar {
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: #ffffff;
  overflow: hidden;
}

.app-brand__mark {
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.app-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-brand strong {
  display: block;
  font-size: var(--text-md);
  font-weight: 900;
  line-height: 1;
}

.app-brand small {
  display: block;
  margin-top: var(--space-2xs);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.2;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.side-nav p {
  margin: var(--space-lg) var(--space-xs) var(--space-2xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-rule);
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-nav__item {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--color-ink-2);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.side-nav__item:hover {
  background: var(--color-blue-faint);
  color: var(--color-ink);
}

.side-nav__item span {
  min-width: 0;
}

.side-nav__item svg,
.app-menu-button svg,
.credit-pill svg,
.feature-panel > svg,
.empty-dashboard svg,
.account-perks svg,
.btn-primary svg,
.btn-secondary svg {
  width: 19px;
  height: 19px;
}

.side-nav__item b {
  border-radius: var(--radius-pill);
  background: var(--color-sky);
  color: var(--color-accent);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.side-nav__item.is-active {
  border-color: var(--color-rule);
  background: var(--color-sky);
  color: var(--color-accent);
  font-weight: 800;
  box-shadow: none;
}

.side-nav__item.is-active svg {
  color: var(--color-accent);
}

.side-nav__item--accent {
  border-color: transparent;
  background: transparent;
  color: var(--color-ink-2);
}

.side-nav__item--accent b {
  background: var(--color-sky);
  color: var(--color-accent);
}

@media (hover: hover) and (pointer: fine) {
  .side-nav__item--accent:hover {
    border-color: color-mix(in oklch, var(--color-accent) 12%, var(--color-rule));
    background: color-mix(in oklch, var(--color-accent) 5%, var(--color-paper));
    color: var(--color-accent);
  }
}

@media (hover: hover) and (pointer: fine) {
  .side-nav__item:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-google:hover,
  .hero-offer-button:hover,
  .credit-pill:hover {
    transform: translateY(-1px);
  }
}

.side-nav__item:active,
.btn-primary:active,
.btn-secondary:active,
.btn-google:active,
.hero-offer-button:active,
.credit-pill:active {
  transform: translateY(1px);
}

.app-main {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  padding: var(--space-sm) clamp(var(--space-lg), 3vw, var(--space-xl));
  backdrop-filter: blur(16px);
  width: 100%;
  box-sizing: border-box;
}

.app-topbar > div:not(.topbar-actions) {
  min-width: 0;
  flex: 1 1 auto;
}

.app-menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  flex-shrink: 0;
}

.app-topbar h1 {
  max-width: none;
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: normal;
  text-wrap: balance;
}

.app-topbar p {
  margin: var(--space-2xs) 0 0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
  justify-content: flex-end;
  flex-shrink: 0;
}

.credit-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-sky);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0 1rem;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.credit-pill:hover {
  background: var(--color-blue-soft);
  transform: translateY(-1px);
}

.credit-pill strong {
  color: var(--color-accent);
  font-weight: 900;
}

.credit-pill span {
  color: var(--color-navy-2);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--color-rule-2);
  background: var(--color-sky);
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   USER MENU DROPDOWN & POPOVER (Góc trên bên phải)
   ========================================================================== */
.user-menu-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 2px 6px 2px 2px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-avatar-btn:hover,
.user-menu-dropdown.is-open .user-avatar-btn {
  background: var(--color-paper-3);
}

.user-avatar-chevron {
  width: 15px;
  height: 15px;
  color: var(--color-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.user-menu-dropdown.is-open .user-avatar-chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.user-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 20px;
  box-shadow: 0 16px 42px -10px rgba(5, 33, 54, 0.16), 0 4px 12px -2px rgba(5, 33, 54, 0.08);
  padding: 1.15rem;
  z-index: var(--z-modal);
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.user-menu-dropdown.is-open .user-menu-popover {
  display: flex;
  animation: popoverSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.user-menu-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
}

.user-menu-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-sky);
  color: var(--color-accent);
  font-weight: 850;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--color-rule-2);
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.user-menu-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.user-menu-name {
  font-size: 0.96rem;
  font-weight: 850;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-email {
  font-size: 0.78rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-role {
  font-size: 0.7rem;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 2px;
}

.user-menu-credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-blue-softer);
  border: 1px solid var(--color-rule-2);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 700;
}

.user-menu-credits svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.user-menu-credits strong {
  color: var(--color-navy);
}

.user-menu-divider {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0.1rem 0;
}

.user-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-menu-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink-2);
  transition: all 0.15s ease;
  text-decoration: none;
}

.user-menu-link svg {
  width: 17px;
  height: 17px;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.user-menu-link:hover {
  background: var(--color-sky);
  color: var(--color-accent);
}

.user-menu-link:hover svg {
  color: var(--color-accent);
}

.user-menu-link--logout {
  color: #dc2626 !important;
}

.user-menu-link--logout svg {
  color: #dc2626 !important;
}

.user-menu-link--logout:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.user-menu-link--logout:hover svg {
  color: #b91c1c !important;
}

.dashboard-content {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: var(--space-xl);
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem) 2.5rem;
}

.form-app-body {
  background: var(--color-paper-2);
}

.form-app-content {
  align-content: start;
}

.form-app-hero p {
  max-width: 58ch;
}

.hero-poem span {
  display: block;
}

.hero-poem .no-break {
  white-space: nowrap;
}

.form-feature-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.form-lab-app {
  border: 0;
  background: transparent;
  padding: 0;
}

.form-lab-app > .section-head,
.form-lab-app > .lab-layout {
  width: 100%;
  margin-inline: 0;
}

.form-lab-app > .section-head {
  max-width: 72ch;
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-lab-app > .section-head h2 {
  text-wrap: balance;
}

.form-lab-app .tool-surface,
.form-lab-app .tracker-panel {
  background: var(--color-paper);
}

.topbar-login {
  min-height: 46px;
}

.welcome-strip,
.dashboard-hero,
.guide-panel,
.feature-panel,
.orders-panel,
.empty-dashboard,
.account-card {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

.welcome-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
}

.welcome-strip span,
.dashboard-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-blue-softer);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 900;
  padding: 0.26rem 0.58rem;
}

.welcome-strip h2,
.dashboard-hero h2,
.guide-panel h2,
.feature-panel h2,
.orders-panel h2,
.account-copy h1,
.account-form h2 {
  margin: 0;
  color: var(--color-ink);
  letter-spacing: 0;
}

.welcome-strip h2 {
  margin-top: var(--space-xs);
  font-size: var(--text-lg);
}

.welcome-strip p,
.dashboard-hero p,
.feature-panel p,
.empty-dashboard p,
.account-copy p,
.account-note {
  margin: var(--space-xs) 0 0;
  color: var(--color-muted);
  font-weight: 700;
  line-height: 1.65;
}

.dashboard-hero {
  min-height: 318px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(160px, 0.2fr);
  gap: var(--space-2xl);
  align-items: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-navy-2));
  color: var(--color-accent-ink);
  overflow: hidden;
  padding: var(--space-2xl);
}

.dashboard-hero h2 {
  margin-top: var(--space-sm);
  color: var(--color-accent-ink);
  font-size: var(--text-xl);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.dashboard-hero p {
  max-width: 68ch;
  color: color-mix(in oklch, var(--color-accent-ink) 82%, transparent);
}

.dashboard-kicker {
  background: color-mix(in oklch, var(--color-paper) 92%, transparent);
  color: var(--color-accent);
}

.hero-offer-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--rule-hair) solid color-mix(in oklch, var(--color-paper) 64%, transparent);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  color: var(--color-accent);
  font-weight: 900;
  justify-self: center;
  padding: 0 var(--space-xl);
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

.quick-stats,
.guide-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.quick-stats article,
.guide-grid article {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-paper);
  min-width: 0;
  padding: var(--space-lg);
}

.quick-stats span,
.quick-stats small,
.guide-grid p,
.dashboard-order small,
.feature-panel small {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.quick-stats strong {
  display: block;
  margin: var(--space-xs) 0 var(--space-2xs);
  color: var(--color-ink);
  font-size: var(--text-2xl);
  line-height: 1;
}

.guide-panel,
.orders-panel {
  padding: var(--space-2xl);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.panel-title-row a,
.account-form__head a,
.dashboard-order a {
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 900;
  white-space: nowrap;
}

.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-grid article {
  display: grid;
  gap: var(--space-xs);
  min-height: 150px;
  align-content: start;
}

.guide-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--color-accent) 14%, var(--color-paper));
  color: var(--color-accent);
  font-weight: 900;
}

.guide-grid strong {
  color: var(--color-ink);
  font-size: var(--text-base);
}

.guide-grid p {
  margin: 0;
  line-height: 1.55;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.feature-panel {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
  min-height: 230px;
  padding: var(--space-xl);
}

.feature-panel > svg {
  width: 34px;
  height: 34px;
  color: var(--color-accent);
}

.btn-primary,
.btn-secondary,
.btn-google {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 900;
  padding: 0 var(--space-md);
  white-space: nowrap;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn-secondary,
.btn-google {
  width: max-content;
  max-width: 100%;
  border-color: var(--color-rule);
  background: var(--color-paper);
  color: var(--color-accent);
}

.btn-google {
  width: 100%;
  color: var(--color-ink);
}

.btn-google:hover {
  border-color: var(--color-rule-2);
  background: var(--color-blue-faint);
}

.google-g {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-accent);
  font-weight: 900;
  line-height: 1;
}

.account-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.account-divider::before,
.account-divider::after {
  content: "";
  height: var(--rule-hair);
  background: var(--color-rule);
}

.orders-table {
  display: grid;
  gap: var(--space-xs);
}

.dashboard-order {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(110px, auto) auto;
  gap: var(--space-md);
  align-items: center;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-blue-faint);
  padding: var(--space-sm);
}

.dashboard-order strong,
.dashboard-order small {
  display: block;
}

.status-badge {
  width: max-content;
  border-radius: var(--radius-pill);
  background: var(--color-blue-softer);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 900;
  padding: 0.26rem 0.58rem;
  white-space: nowrap;
}

.status-completed {
  background: color-mix(in oklch, var(--color-success) 12%, var(--color-paper));
  color: var(--color-success);
}

.status-paid {
  background: color-mix(in oklch, var(--color-accent) 12%, var(--color-paper));
  color: var(--color-accent);
}

.status-stopped {
  background: color-mix(in oklch, var(--color-warning) 12%, var(--color-paper));
  color: var(--color-warning);
}

.empty-dashboard {
  display: grid;
  place-items: center;
  gap: var(--space-xs);
  padding: var(--space-xl);
  text-align: center;
}

.empty-dashboard svg {
  width: 42px;
  height: 42px;
  color: var(--color-accent);
}

.account-entry {
  width: min(1080px, calc(100% - (var(--page-gutter) * 2)));
  min-height: 80dvh;
  display: grid;
  place-items: center;
  margin-inline: auto;
  padding: calc(var(--space-4xl) + var(--space-lg)) 0 var(--space-2xl);
}

.account-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: var(--space-xl);
  align-items: stretch;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.account-card--login {
  max-width: 960px;
}

.account-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  padding: 2rem;
}

.account-copy h1 {
  margin-top: var(--space-sm);
  font-size: var(--text-3xl);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.account-perks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.account-perks span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 800;
  padding: 0 var(--space-sm);
}

.account-form {
  display: grid;
  gap: var(--space-sm);
  align-content: center;
}

.account-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.account-form label {
  display: grid;
  gap: var(--space-2xs);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 900;
}

.cute-input {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
  padding: 0.65rem 1rem;
  transition: all 0.2s ease;
}

.cute-input:hover {
  border-color: #cbd5e1;
}

.cute-input:focus-visible,
.cute-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3.5px rgba(23, 117, 174, 0.14);
  outline: none;
}

.account-submit {
  width: 100%;
  margin-top: var(--space-xs);
}

.account-alert {
  border: var(--rule-hair) solid color-mix(in oklch, var(--color-error) 36%, var(--color-rule));
  border-radius: var(--radius-card);
  background: color-mix(in oklch, var(--color-error) 9%, var(--color-paper));
  color: var(--color-error);
  font-size: var(--text-sm);
  font-weight: 800;
  padding: var(--space-sm);
}

.account-note {
  font-size: var(--text-sm);
}

@media (max-width: 72rem) {
  .app-body {
    display: block;
    width: 100%;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--z-modal);
    width: min(300px, calc(100% - 2rem));
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-sm) var(--space-lg);
    transform: translateX(-105%);
    transition: transform var(--dur-short) var(--ease-out);
  }

  .app-main {
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }

  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal) - 1);
    background: var(--color-overlay);
  }

  .app-menu-button {
    display: grid;
    flex-shrink: 0;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .welcome-strip,
  .dashboard-hero,
  .panel-title-row,
  .dashboard-order {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  .topbar-actions {
    margin-left: auto;
    justify-content: flex-end;
    gap: var(--space-xs);
  }

  .dashboard-content {
    padding: var(--space-md);
  }

  .dashboard-hero,
  .guide-panel,
  .orders-panel,
  .feature-panel,
  .account-card,
  .account-copy {
    padding: var(--space-md);
  }

  .quick-stats,
  .guide-grid,
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-hero h2,
  .account-copy h1 {
    font-size: var(--text-2xl);
  }

  .hero-poem .no-break {
    white-space: normal;
  }

  .hero-offer-button,
  .welcome-strip .btn-primary,
  .dashboard-order a,
  .btn-secondary {
    justify-self: start;
  }

  .account-entry {
    width: min(100% - 1.25rem, 1080px);
    padding-top: calc(var(--space-4xl) + var(--space-xl));
  }
}

@media (max-width: 26rem) {
  .credit-pill {
    padding-inline: var(--space-sm);
  }

  .credit-pill span {
    display: none;
  }

  .app-topbar h1 {
    font-size: var(--text-lg);
  }

  .account-perks span,
  .side-nav__item {
    font-size: var(--text-sm);
  }
}

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

/* Hallmark public redesign v13: narrative workflow + split studio pages. */
.app-body.form-app-body {
  background: var(--color-blue-faint);
}

.app-sidebar {
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  background: var(--color-paper);
}

.app-brand {
  grid-template-columns: 38px minmax(0, 1fr);
  padding-block-end: var(--space-sm);
}

.app-brand__mark {
  width: 38px;
  height: 38px;
  box-shadow: none;
}

.app-brand strong {
  font-size: var(--text-base);
}

.app-brand small {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 800;
}

.side-nav {
  gap: var(--space-2xs);
}

.side-nav p {
  margin: var(--space-lg) var(--space-xs) var(--space-xs);
  border-top: 0;
  color: var(--color-muted);
  font-size: var(--text-xs);
  letter-spacing: 0;
}

.side-nav p:first-child {
  margin-top: var(--space-sm);
}

.side-nav__item {
  min-height: 42px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: var(--space-sm);
  border-radius: var(--radius-card);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  padding: var(--space-xs) var(--space-sm);
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.side-nav__item svg {
  width: 18px;
  height: 18px;
}

.side-nav__item.is-active {
  border-color: color-mix(in oklch, var(--color-accent) 30%, var(--color-rule));
  background: var(--color-blue-softer);
  color: var(--color-accent);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.side-nav__item.is-active b {
  background: var(--color-paper);
}

.app-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) clamp(var(--space-lg), 3vw, var(--space-xl));
  background: color-mix(in oklch, var(--color-paper) 94%, transparent);
}

.app-topbar h1 {
  font-size: var(--text-lg);
  line-height: 1.08;
  text-wrap: pretty;
}

.app-topbar p {
  max-width: 68ch;
  font-size: var(--text-sm);
  line-height: 1.45;
}

.dashboard-content.public-workflow,
.dashboard-content.public-page-content {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  min-width: 0;
  box-sizing: border-box;
  gap: 1.5rem;
  padding: 1.25rem clamp(1rem, 2.5vw, 2rem) 2.5rem;
}

.workflow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.workflow-hero__copy,
.workflow-card,
.feature-panel,
.split-page__panel,
.price-highlight--studio,
.pricing-board {
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
}

.workflow-hero__copy {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  background: #ffffff;
  color: var(--color-ink);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: 26px;
}

.workflow-label,
.calc-index {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-sky);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.35rem 0.85rem;
  letter-spacing: 0.03em;
}

.workflow-hero h2 {
  max-width: 22ch;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.75rem, 2.5vw, 2.3rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.workflow-hero__copy p {
  max-width: 54ch;
  margin: 0;
  color: var(--color-ink-2);
  font-size: 0.98rem;
  font-weight: 450;
  line-height: 1.65;
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.workflow-actions .btn-primary,
.workflow-actions .btn-secondary {
  width: max-content;
}

.workflow-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-md);
  background: #ffffff;
  padding: clamp(1.3rem, 2vw, 1.85rem);
  border-radius: 26px;
}

.workflow-card strong {
  color: var(--color-ink);
  font-size: 1.1rem;
  font-weight: 850;
}

.workflow-card ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-card li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--color-rule);
  color: var(--color-ink-2);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.65rem 0;
}

.workflow-card li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-sky);
  color: var(--color-accent);
  font-weight: 850;
  font-size: 0.82rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.workflow-stages {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.workflow-section-head,
.pricing-board__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.workflow-section-head h2,
.pricing-board__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 850;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.workflow-section-head a,
.pricing-board__head p {
  background: var(--color-sky);
  color: var(--color-accent);
  font-weight: 750;
  font-size: 0.88rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  text-decoration: none;
}

.workflow-section-head a:hover {
  background: var(--color-blue-soft);
  transform: translateY(-1px);
}

.workflow-stage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

.workflow-stage-list article {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.workflow-stage-list article:hover {
  border-color: var(--color-rule-2);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.workflow-stage-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: var(--color-sky);
  color: var(--color-accent);
  font-weight: 850;
  font-size: 0.8rem;
  padding: 0.22rem 0.65rem;
  border-radius: 8px;
  line-height: 1;
}

.workflow-stage-list h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.35;
}

.workflow-stage-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.workflow-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 0;
}

.workflow-support .feature-panel {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.4rem;
  transition: all 0.2s ease;
}

.workflow-support .feature-panel:hover {
  border-color: var(--color-rule-2);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.workflow-support .feature-panel h2 {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--color-ink);
  margin: 0;
}

.workflow-support .feature-panel p {
  color: var(--color-ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.workflow-support .feature-panel .btn-secondary {
  align-self: flex-start;
  margin-top: 0.35rem;
  min-height: 38px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
}

.feature-panel--quiet {
  background: linear-gradient(135deg, #ffffff 0%, #edf8fc 100%) !important;
}

.live-lab.form-lab-app {
  display: grid;
  gap: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-top: var(--space-2xl);
}

.form-lab-app > .section-head {
  max-width: 74ch;
  margin: 0;
}

.form-lab-app > .section-head h2 {
  font-size: var(--text-2xl);
}

.form-lab-app > .section-head p {
  margin-top: var(--space-sm);
  color: var(--color-muted);
}

.form-lab-app .lab-layout,
.dashboard-content .lab-layout {
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.form-lab-app .tool-surface,
.form-lab-app .tracker-panel {
  border-color: var(--color-rule);
  box-shadow: none;
}

.split-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.75rem;
  align-items: center;
}

.split-page__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.split-page__copy .eyebrow {
  width: max-content;
  display: inline-flex;
  align-items: center;
  background: var(--color-sky);
  color: var(--color-accent);
  border: 1px solid var(--color-rule-2);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.2rem;
}

.split-page__copy h1 {
  max-width: 28ch;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  text-wrap: balance;
  margin: 0;
}

.split-page__copy .lead {
  max-width: 60ch;
  margin: 0.2rem 0 0;
  color: var(--color-ink-2);
  font-size: 0.94rem;
  font-weight: 450;
  line-height: 1.55;
}

.split-page__panel {
  display: grid;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.65rem;
}

.split-page__panel div {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--color-rule);
  padding-top: 0.75rem;
}

.split-page__panel div:first-child {
  border-top: 0;
  padding-top: 0;
}

.split-page__panel span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-sky);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 8px;
}

.split-page__panel strong {
  color: var(--color-navy);
  font-size: var(--text-md);
  font-weight: 800;
}

.split-page__panel p {
  margin: 0;
  color: var(--color-ink-2);
  font-weight: 450;
  line-height: 1.6;
}

.service-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  border: none;
}

.service-table article {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 4px 16px -4px rgba(5, 33, 54, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.service-table article:hover {
  border-color: var(--color-rule-2);
  box-shadow: 0 12px 28px -8px rgba(5, 33, 54, 0.08);
  transform: translateY(-3px);
}

.service-table svg {
  width: 34px;
  height: 34px;
  color: var(--color-accent);
  background: var(--color-sky);
  padding: 6px;
  border-radius: 10px;
}

.service-table h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
}

.service-table p {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}

.closing-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
  color: #0f172a;
  padding: 2.2rem;
}

.closing-band h2 {
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 850;
  margin: 0;
}

.closing-band p {
  max-width: 76ch;
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   ABOUT PAGE MODERN REDESIGN (CLEAN FULL-WIDTH & BALANCED TIMELINE)
   ========================================================================== */

/* Button Telegram / Contact Inline */
.btn-telegram,
.btn-zalo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  border-radius: var(--radius-pill);
  min-height: 46px;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-telegram:hover,
.btn-zalo:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.18);
}

.btn-telegram img,
.btn-zalo img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* 1. Hero Unified Card */
.about-hero-unified {
  margin-bottom: 2rem;
}

.about-hero-unified__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-sky);
  color: var(--color-accent);
  border: 1px solid var(--color-rule-2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.about-badge svg {
  width: 14px;
  height: 14px;
}

.about-hero-unified__title {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 850;
  color: var(--color-navy);
  line-height: 1.35;
  margin: 0 auto;
  max-width: 820px;
  text-wrap: balance;
}

.about-hero-unified__lead {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 780px;
  margin: 0.85rem auto 1.5rem;
  text-wrap: balance;
}

.about-hero-unified__lead strong {
  color: var(--color-navy);
  font-weight: 750;
}

/* 4 Feature Chips in Hero */
.about-hero-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 1.75rem;
}

.about-hero-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-hero-chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-rule-2);
  background: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(5, 33, 54, 0.06);
}

.about-hero-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-sky);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
}

.about-hero-chip__icon svg {
  width: 18px;
  height: 18px;
}

.about-hero-chip strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-navy);
}

.about-hero-chip span {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
}

.about-hero-unified__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.about-hero-unified__actions .btn-primary,
.about-hero-unified__actions .btn-secondary {
  min-height: 46px;
  padding: 0 1.35rem;
  font-size: 0.9rem;
  font-weight: 750;
}

/* 2. Process 4 Steps Section */
.about-process-section {
  margin-bottom: 2.25rem;
}

.about-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-process-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-process-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-rule-2);
  box-shadow: 0 12px 26px -6px rgba(5, 33, 54, 0.08);
}

.step-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.step-num-pill {
  font-size: 0.72rem;
  font-weight: 850;
  color: var(--color-accent);
  background: var(--color-sky);
  border: 1px solid var(--color-rule-2);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.step-icon {
  color: #94a3b8;
  width: 20px;
  height: 20px;
}

.about-process-step-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
}

.about-process-step-card p {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* 3. 4 Pillars Section */
.about-pillars-section {
  margin-bottom: 2.25rem;
}

.about-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.about-section-tag {
  display: inline-flex;
  align-items: center;
  background: var(--color-sky);
  color: var(--color-accent);
  border: 1px solid var(--color-rule-2);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.about-section-title {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 850;
  color: var(--color-navy);
  margin: 0;
  text-wrap: balance;
}

.about-section-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
  text-wrap: balance;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-rule-2);
  box-shadow: 0 12px 28px -8px rgba(5, 33, 54, 0.08);
}

.about-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-sky);
  color: var(--color-accent);
  border: 1px solid var(--color-rule-2);
}

.about-pillar-icon svg {
  width: 22px;
  height: 22px;
}

.about-pillar-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
}

.about-pillar-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* 4. Comparison Card */
.about-comparison-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.25rem;
}

.comparison-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.comparison-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 850;
  color: var(--color-navy);
  margin: 0;
  text-wrap: balance;
}

.comparison-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.comparison-col {
  border-radius: 20px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.comparison-col--manual {
  background: #fff8f8;
  border: 1px solid #fee2e2;
}

.comparison-col--dienform {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.comparison-col__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comparison-col__head h3 {
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--color-navy);
  margin: 0;
}

.comparison-badge {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  width: max-content;
}

.comparison-badge.is-manual {
  background: #fee2e2;
  color: #b91c1c;
}

.comparison-badge.is-dienform {
  background: #dcfce7;
  color: #15803d;
}

.comparison-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comparison-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #334155;
}

.comparison-item strong {
  color: var(--color-navy);
  font-weight: 750;
}

.comparison-item.is-negative svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #dc2626;
  margin-top: 2px;
}

.comparison-item.is-positive svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #16a34a;
  margin-top: 2px;
}

/* 5. Call to Action Banner */
.about-cta-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9fd 100%);
  border: 1px solid var(--color-rule-2);
  border-radius: 26px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.about-cta-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.about-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-sky);
  color: var(--color-accent);
  border: 1px solid var(--color-rule-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}

.about-cta-pill svg {
  width: 14px;
  height: 14px;
}

.about-cta-content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 850;
  color: var(--color-navy);
  margin: 0;
  text-wrap: balance;
}

.about-cta-content p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  text-wrap: balance;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.about-cta-actions .btn-primary,
.about-cta-actions .btn-secondary {
  min-height: 46px;
  padding: 0 1.35rem;
  font-size: 0.9rem;
  font-weight: 750;
}

@media (max-width: 64rem) {
  .about-hero-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 42rem) {
  .about-hero-chips {
    grid-template-columns: 1fr;
  }

  .about-process-grid {
    grid-template-columns: 1fr;
  }

  .about-pillars-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-unified__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-hero-unified__actions .btn-primary,
  .about-hero-unified__actions .btn-secondary,
  .about-hero-unified__actions .btn-zalo,
  .about-cta-actions .btn-primary,
  .about-cta-actions .btn-secondary,
  .about-cta-actions .btn-zalo {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   HOME PAGE NCKH DIRECTION SECTION
   ========================================================================== */

.home-nckh-direction {
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}

.home-nckh-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.home-nckh-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 850;
  color: var(--color-navy);
  margin: 0;
  text-wrap: balance;
}

.home-nckh-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
  text-wrap: balance;
}

.home-nckh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-nckh-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-nckh-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-rule-2);
  background: #ffffff;
  box-shadow: 0 10px 24px -6px rgba(5, 33, 54, 0.08);
}

.nckh-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-sky);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.nckh-card-icon svg {
  width: 22px;
  height: 22px;
}

.nckh-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nckh-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nckh-card-body h3 {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--color-navy);
  margin: 0;
}

.nckh-card-body p {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.btn-nckh-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-nckh-card:hover .btn-nckh-link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.btn-nckh-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.home-nckh-card:hover .btn-nckh-link svg {
  transform: translateX(4px);
}

@media (max-width: 52rem) {
  .home-nckh-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FORM LAB STREAMLINED SINGLE COLUMN LAYOUT
   ========================================================================== */

.form-lab-app .lab-layout {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.form-lab-app .workspace-main {
  width: 100%;
  display: grid;
  gap: var(--space-lg);
}

/* ==========================================================================
   DEDICATED ORDER TRACKING PAGE (/tra-cuu-don)
   ========================================================================== */

.tracker-page-container {
  max-width: 980px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tracker-page-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}

.search-card-header {
  margin-bottom: 1.5rem;
}

.search-card-header h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 850;
  color: var(--color-navy);
  margin: 0.25rem 0 0.4rem;
}

.search-card-header p {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.tracker-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.tracker-main-input {
  width: 100%;
  padding-left: 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-track-submit {
  min-height: 48px;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.tracker-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.tracker-controls-row .track-tabs {
  display: flex;
  gap: 0.5rem;
}

.btn-refresh-track {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-track:hover {
  background: #f1f5f9;
  color: var(--color-navy);
  border-color: #cbd5e1;
}

.btn-refresh-track svg {
  width: 14px;
  height: 14px;
}

.tracker-page-results {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-soft);
}

.tracker-loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 550;
}

.spin-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.empty-tracker-box {
  text-align: center;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.empty-tracker-icon {
  width: 48px;
  height: 48px;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.empty-tracker-box h3 {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--color-navy);
  margin: 0;
}

.empty-tracker-box p {
  font-size: 0.9rem;
  color: #64748b;
  max-width: 480px;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.btn-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
}

.track-order-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.help-grid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 2px 8px -2px rgba(5, 33, 54, 0.04);
}

.help-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-card-icon svg {
  width: 20px;
  height: 20px;
}

.help-grid-card h3 {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--color-navy);
  margin: 0 0 0.3rem;
}

.help-grid-card p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.help-grid-card a {
  color: #0284c7;
  text-decoration: underline;
}

.tracker-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.tracker-cta-banner h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: #ffffff;
}

.tracker-cta-banner p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.tracker-cta-banner .btn-primary {
  flex-shrink: 0;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  font-weight: 750;
  white-space: nowrap;
}

.tracker-cta-banner .btn-primary:hover {
  background: #7dd3fc;
}

@media (max-width: 52rem) {
  .track-order-help-grid {
    grid-template-columns: 1fr;
  }

  .tracker-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracker-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-track-submit {
    width: 100%;
    justify-content: center;
  }
}


.price-highlight--studio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 22px;
  padding: 1.5rem 1.85rem;
  box-shadow: 0 4px 20px -4px rgba(5, 33, 54, 0.05);
}

.price-highlight--studio span {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-highlight--studio strong {
  color: var(--color-accent);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.15rem 0;
}

.price-highlight--studio small {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-board {
  display: grid;
  gap: 1.25rem;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: 24px;
  padding: 1.6rem 1.85rem;
}

.pricing-board__head p {
  max-width: 58ch;
  margin: 0;
  color: var(--color-muted);
  text-align: right;
}

.pricing-board .calculator-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-board .calculator-copy {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  border-top: 2px solid var(--color-accent);
  padding-top: 1rem;
}

.pricing-board .calculator-copy h3 {
  font-size: var(--text-xl);
}

.pricing-board .calculator-panel {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-panel);
  background: var(--color-blue-faint);
  padding: var(--space-lg);
}

/* ==========================================================================
   APP SITE FOOTER (Chân trang cao cấp cho Giới thiệu, Bảng giá, v.v.)
   ========================================================================== */
.app-site-footer {
  width: 100%;
  max-width: 1280px;
  margin: 2.5rem auto 1.5rem;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  box-sizing: border-box;
}

.site-footer-card {
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 4px 20px -4px rgba(5, 33, 54, 0.05);
  box-sizing: border-box;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0f172a;
}

.footer-brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.footer-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.2;
}

.footer-brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  max-width: 44ch;
}

.footer-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.footer-perk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-blue-faint);
  color: var(--color-accent);
  border: 1px solid var(--color-rule);
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-perk-badge svg {
  width: 13px;
  height: 13px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.footer-links-list li a:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer-links-list li a svg {
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  transition: color 0.15s ease;
}

.footer-links-list li a:hover svg {
  color: var(--color-accent);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.footer-telegram-btn,
.footer-zalo-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-telegram-btn:hover,
.footer-zalo-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.15);
}

.footer-telegram-icon,
.footer-zalo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.footer-telegram-icon img,
.footer-zalo-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.footer-telegram-btn strong,
.footer-zalo-btn strong {
  display: block;
  color: #0369a1;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-telegram-btn span,
.footer-zalo-btn span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

.footer-system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 1.75rem 0 1.25rem;
}

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

@media (max-width: 60rem) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 72rem) {
  .app-body.form-app-body {
    display: block;
    width: 100%;
  }

  .workflow-hero,
  .workflow-support,
  .split-page,
  .pricing-board .calculator-shell,
  .closing-band,
  .lab-layout,
  .tuner-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-card {
    align-content: start;
  }

  .pricing-board__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-board__head p {
    text-align: left;
  }
}

@media (max-width: 48rem) {
  .dashboard-content.public-workflow,
  .dashboard-content.public-page-content {
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-md);
  }

  .app-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .app-topbar .topbar-actions {
    margin-left: auto;
    justify-content: flex-end;
  }

  .workflow-hero__copy,
  .workflow-card,
  .workflow-stages,
  .workflow-support .feature-panel,
  .split-page__panel,
  .pricing-board,
  .closing-band {
    padding: var(--space-lg);
  }

  .workflow-hero__copy {
    min-height: 0;
  }

  .workflow-hero h2,
  .split-page__copy h1,
  .price-highlight--studio strong {
    font-size: var(--text-2xl);
  }

  .workflow-stage-list {
    grid-template-columns: 1fr;
  }

  .workflow-stage-list article,
  .service-table article {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
  }

  .workflow-section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-actions .btn-primary,
  .workflow-actions .btn-secondary,
  .pricing-board .text-cta {
    width: 100%;
  }

  .split-page {
    min-height: 0;
  }

  .footer-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 26rem) {
  .workflow-hero h2,
  .split-page__copy h1 {
    font-size: var(--text-xl);
  }

  .workflow-card li {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-brand small {
    display: none;
  }
}

/* ==========================================
   CHƯƠNG TRÌNH GIỚI THIỆU BẠN BÈ (REFERRAL PANEL)
   ========================================== */
.referral-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.referral-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.referral-title-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.referral-title-group p {
  color: #64748b;
  font-size: 0.925rem;
  margin: 0;
  line-height: 1.5;
}

.referral-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.referral-share-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.referral-link-input {
  flex: 1;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 0.01em;
}

.btn-copy-ref {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-ref:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-copy-ref.is-copied {
  background: #059669;
}

.referral-stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ref-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-stat-card span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.ref-stat-card strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

.ref-stat-card small {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 700;
}

.referral-history-box {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.referral-history-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.referral-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.referral-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.referral-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.ref-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ref-badge-status.is-ordered {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ref-badge-status.is-registered {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.ref-badge-status.is-blocked {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.referral-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 14px;
  font-size: 0.9rem;
}

.referral-notice-bar {
  margin-top: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================================================== */
/* NỔI BẬT CHƯƠNG TRÌNH GIỚI THIỆU TRÊN SIDEBAR NGƯỜI DÙNG */
/* ==================================================== */
.side-nav__item--referral {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95) 0%, rgba(224, 231, 255, 0.85) 100%) !important;
  border: 1.5px solid #a5b4fc !important;
  color: #312e81 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px -2px rgba(99, 102, 241, 0.22);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.side-nav__item--referral:hover {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
  border-color: #818cf8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -2px rgba(99, 102, 241, 0.35);
}

.side-nav__item--referral i {
  color: #4f46e5 !important;
}

.nav-badge-gift {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 2.5px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  animation: pulseGiftBadge 2s infinite ease-in-out;
}

@keyframes pulseGiftBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(239, 68, 68, 0.55); }
}

/* 3 BƯỚC NHẬN THƯỞNG TRỰC QUAN (ROADMAP CARDS) */
.referral-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .referral-steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.ref-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.ref-step-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -3px rgba(37, 99, 235, 0.12);
}

.ref-step-num {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ref-step-card strong {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-step-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.ref-step-reward {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

