/*
 * HoanTienX UI/UX — 2026.09
 * One shared visual layer for the existing Laravel application.
 * Kept outside the Vite entry points so the delivered release runs with its
 * original manifest. Scope new styles to .htx-ui; preserve module behavior.
 */

.htx-ui {
  --htx-canvas: #f5f6f8;
  --htx-surface: #ffffff;
  --htx-muted-surface: #f8f9fb;
  --htx-ink: #192333;
  --htx-muted: #667085;
  --htx-line: #e5e9ef;
  --htx-navy: #152338;
  --htx-radius: 18px;
  --htx-shadow: 0 4px 18px rgb(16 24 40 / 4%);
  --htx-bottom-space: 0px;
  --page: var(--htx-canvas);
  --surface: var(--htx-surface);
  --surface-muted: var(--htx-muted-surface);
  --text: var(--htx-ink);
  --muted: var(--htx-muted);
  --line: var(--htx-line);
  background: var(--htx-canvas) !important;
  color: var(--htx-ink);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html.dark .htx-ui,
html.admin-dark .htx-ui {
  --htx-canvas: #0d1523;
  --htx-surface: #162234;
  --htx-muted-surface: #1b2a3e;
  --htx-ink: #edf2f9;
  --htx-muted: #a3b1c6;
  --htx-line: #2a3a50;
  --htx-shadow: 0 4px 18px rgb(0 0 0 / 10%);
  color-scheme: dark;
}

.htx-ui *, .htx-ui *::before, .htx-ui *::after { box-sizing: border-box; }
.htx-ui :is(main, section, article, aside, form, fieldset) { min-width: 0; }
.htx-ui :is(h1, h2, h3, h4) { text-wrap: balance; }
.htx-ui :is(input, select, textarea) { max-width: 100%; }
.htx-ui :is(input, select, textarea, button) { font-family: inherit; }
.htx-ui :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.htx-ui input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]):not([type=range]),
.htx-ui select, .htx-ui textarea { font-size: 1rem; }
.htx-ui input[type=checkbox], .htx-ui input[type=radio] { accent-color: var(--brand); }
.htx-ui :is(button, [role=button], summary) { touch-action: manipulation; }
.htx-ui :is(button, input, select, textarea):disabled { cursor: not-allowed; }
.htx-ui :is(.text-\[8px\], .text-\[9px\], .text-\[10px\], .text-\[11px\]) {
  font-size: .8125rem;
  line-height: 1.5;
}
.htx-ui :is(.text-\[12px\], .text-\[13px\], .text-xs) { font-size: .875rem; line-height: 1.5; }
.htx-ui :is(.text-gray-400, .text-slate-400, .text-\[\#98a2b3\]) { color: var(--htx-muted); }
.htx-ui :is(.icon, .aicon) { flex-shrink: 0; }
.htx-ui [hidden] { display: none !important; }
.htx-ui :is(.overflow-x-auto, .table-responsive, .htx-table-scroll) {
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.htx-table-scroll { overflow-x: auto; }
.htx-ui main :is(table, .customer-table) { font-variant-numeric: tabular-nums; }
.htx-ui main :is(th, td) { line-height: 1.5; }
.htx-ui main th { font-size: .8125rem; font-weight: 650; }
.htx-ui main td { font-size: .875rem; }
.htx-ui main tbody tr:hover { background-color: rgb(148 163 184 / 5%); }
.htx-ui :is(.customer-field, .customer-filter input, .customer-filter select) {
  min-height: 46px;
  border-radius: 10px;
  font-size: 1rem;
}
.htx-ui :is(.customer-field-label, .customer-field-hint, .customer-field-error) { font-size: .875rem; }
.htx-ui .htx-skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--htx-surface);
  color: var(--htx-ink);
  box-shadow: var(--htx-shadow);
}
.htx-ui .htx-skip-link:focus { top: 12px; }
.htx-ui #main-content { scroll-margin-top: 90px; }
.htx-ui #main-content:focus { outline: none; }

/* Header: a bounded wordmark, quiet navigation and equal touch targets. */
.htx-ui .site-atmosphere { display: none; }
.htx-ui .htx-site-header {
  z-index: 40;
  background: var(--htx-surface) !important;
  border-color: var(--htx-line) !important;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgb(16 24 40 / 2%);
}
.htx-ui .htx-site-header > .site-shell {
  width: calc(100% - 48px);
  max-width: 1280px;
  min-height: 76px;
  height: auto;
  padding: 10px 0;
  gap: 20px;
}
.htx-ui .htx-site-brand { width: 158px; min-width: 0; }
.htx-ui .htx-site-brand img {
  width: auto;
  max-width: 158px;
  height: 36px;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
}
.htx-ui .htx-site-header .desktop-nav {
  min-width: 0;
  flex: 1;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
.htx-ui .desktop-nav .nav-link {
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--htx-muted);
}
.htx-ui .desktop-nav .nav-link.is-active {
  background: rgba(var(--brand-rgb), .08);
  color: var(--brand);
  box-shadow: none;
}
.htx-ui .desktop-nav .nav-link:hover { color: var(--brand); }
.htx-ui .desktop-nav .nav-link > svg { width: 18px; height: 18px; }
.htx-ui .htx-site-header > .site-shell > .ml-auto { flex-shrink: 0; gap: 8px; }
.htx-ui .htx-site-header :is(#site-search-open, #theme-toggle, #mobile-menu-button, a[aria-label="Thông báo"]) {
  width: 44px;
  height: 44px;
  border-color: var(--htx-line);
  border-radius: 11px;
  background: var(--htx-surface);
  color: var(--htx-muted);
}
.htx-ui .htx-site-header .public-desktop-auth { font-size: .875rem; white-space: nowrap; }
.htx-ui .account-menu-popover > div { padding: 8px; border-radius: 14px; border-color: var(--htx-line); }
.htx-ui .account-menu-popover :is(a, button) { min-height: 44px; font-size: .875rem; }
.htx-ui #mobile-menu {
  max-height: calc(100dvh - 150px - env(safe-area-inset-bottom, 0px));
  padding: 12px max(16px, calc((100vw - 720px) / 2));
  background: var(--htx-surface) !important;
  border-color: var(--htx-line);
  overscroll-behavior-y: contain;
}
.htx-ui .mobile-drawer-link { min-height: 48px; font-size: .9375rem; }
html.htx-nav-compact .htx-ui .public-desktop-navigation { display: none !important; }
html.htx-nav-compact .htx-ui .public-compact-navigation-trigger { display: grid !important; }
html.htx-nav-compact .htx-ui .public-compact-navigation-panel:not(.hidden) { display: block !important; }

/* Homepage: put the actual cashback tool in the first viewport. */
.htx-ui .home-flow-bg {
  padding-top: 42px;
  padding-bottom: 56px;
  background: var(--htx-canvas) !important;
}
.htx-ui .home-hero { width: 100%; max-width: 1328px; padding-inline: 24px; }
.htx-ui .htx-hero-grid { align-items: stretch; gap: 28px; }
.htx-ui .htx-hero-copy { width: 100%; min-width: 0; max-width: none; }
.htx-ui .htx-hero-copy > * + * { margin-top: 18px; }
.htx-ui .htx-hero-copy > span:first-child {
  border-radius: 7px;
  padding: 5px 9px;
  font-size: .8125rem;
  font-weight: 650;
  background: rgba(var(--brand-rgb), .08);
}
.htx-ui .htx-hero-copy > h1 {
  margin-top: 18px;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
  color: var(--htx-ink);
}
.htx-ui .htx-hero-copy > p { max-width: 640px; color: var(--htx-muted); font-size: 1rem; line-height: 1.7; }
.htx-ui .htx-hero-copy > p:last-child { font-size: .875rem; }
.htx-ui .cashback-analyzer {
  max-width: none;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--htx-line) !important;
  border-radius: 20px;
  background: var(--htx-surface) !important;
  background-image: none !important;
  box-shadow: 0 8px 28px rgb(16 24 40 / 5%);
  backdrop-filter: none;
  text-align: left;
}
html.dark .htx-ui .home-flow-bg .cashback-analyzer { background: var(--htx-surface) !important; border-color: var(--htx-line) !important; }
.htx-ui .htx-analyzer-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.htx-analyzer-heading > span { display: grid; width: 42px; height: 42px; flex-shrink: 0; place-items: center; border-radius: 12px; background: rgba(var(--brand-rgb), .09); color: var(--brand); }
.htx-analyzer-heading svg { width: 21px; height: 21px; }
.htx-ui .htx-analyzer-heading h2 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.4; color: var(--htx-ink); }
.htx-ui .htx-analyzer-heading p { margin: 3px 0 0; color: var(--htx-muted); font-size: .875rem; line-height: 1.5; }
.htx-ui .cashback-analyzer > .flex { gap: 8px; padding-bottom: 16px; border-color: var(--htx-line); }
.htx-ui .cashback-analyzer > .flex > span:first-child { font-size: .8125rem; letter-spacing: 0; text-transform: none; color: var(--htx-muted); line-height: 1.5; }
.htx-ui .platform-choice {
  position: relative;
  height: auto;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--htx-line);
  border-radius: 10px;
  background: var(--htx-muted-surface);
  color: var(--htx-muted);
  font-size: .875rem;
  transition: background .15s, border-color .15s;
}
.htx-ui .platform-choice:has(input:checked) {
  background: rgba(var(--brand-rgb), .08);
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.htx-ui .platform-choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.htx-ui .platform-choice svg { width: 17px; height: 17px; }
.htx-ui #cashback-form { margin-top: 18px; }
.htx-ui .cashback-url-shell {
  min-height: 54px;
  border-radius: 11px;
  border-color: var(--htx-line);
  background: var(--htx-muted-surface);
}
.htx-ui .cashback-url-shell:focus-within { border-color: var(--brand); }
.htx-ui .cashback-url-input { width: 0; min-width: 0; font-size: 1rem; color: var(--htx-ink); }
.htx-ui #cashback-paste { width: 40px; height: 44px; margin-left: 4px; }
.htx-ui #cashback-form > div:first-of-type > button {
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 11px;
  font-size: .9375rem;
  line-height: 1.4;
  font-weight: 650;
  box-shadow: 0 3px 10px rgba(var(--brand-rgb), .15);
}
.htx-ui .cashback-analyzer > .grid { gap: 12px; margin-top: 16px; padding-top: 14px; border-color: var(--htx-line); }
.htx-ui .cashback-analyzer > .grid button { min-height: 40px; align-items: center; font-size: .8125rem; line-height: 1.5; }
.htx-ui #cashback-form-feedback { font-size: .875rem; line-height: 1.6; }
.htx-ui .hero-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 28px;
  border: 1px solid #263851 !important;
  border-radius: 22px;
  background: #152338 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: none;
}
.htx-ui .hero-stat-card > div:first-child { gap: 10px; padding-bottom: 20px; border-color: #33445a; color: #b9c6d9; font-size: .8125rem; letter-spacing: .025em; line-height: 1.6; }
.htx-ui .hero-stat-card > div + div { margin-top: 8px; }
.htx-ui .hero-stat-card .hero-stat-row {
  height: auto;
  min-height: 98px;
  padding: 22px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #33445a;
  border-radius: 0;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none;
}
.htx-ui .hero-stat-row:last-child { border-bottom: 0; }
.htx-ui .hero-stat-row > span:first-child { width: 42px; height: 42px; flex-shrink: 0; background: #263951; color: #ffc3b5; border-radius: 12px; }
.htx-ui .hero-stat-row > span:last-child { min-width: 0; }
.htx-ui .hero-stat-row small { font-size: .875rem; font-weight: 450; color: #b9c6d9 !important; }
.htx-ui .hero-stat-row b { font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.4; font-weight: 700; letter-spacing: -.025em; color: #fff !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html.dark .htx-ui .home-flow-bg .hero-stat-card { background: #152338 !important; border-color: #33445a !important; color: #fff !important; }
html.dark .htx-ui .home-flow-bg .hero-stat-card .hero-stat-row { background: transparent !important; border-color: #33445a !important; color: #fff !important; }
html.dark .htx-ui .home-flow-bg .hero-stat-card small { color: #b9c6d9 !important; }
.htx-ui .home-section-shell { max-width: 1328px; padding: 48px 24px 0; }
.htx-ui .home-section-frame { padding: 28px; border: 1px solid var(--htx-line); border-radius: 20px; background: var(--htx-surface); box-shadow: var(--htx-shadow); }
.htx-ui .home-section-title { font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; color: var(--htx-ink) !important; }
.htx-ui .home-section-description { font-size: 1rem; color: var(--htx-muted) !important; }
.htx-ui .home-section-kicker { padding: 0; border: 0; border-radius: 0; background: none; font-size: .8125rem; letter-spacing: .025em; }
.htx-ui .home-section-content { margin-top: 24px; }
.htx-ui .home-section-action { min-height: 44px; border-radius: 10px; font-size: .875rem; box-shadow: none; background: var(--htx-surface); border-color: var(--htx-line); }
.htx-ui :is(.home-surface-card, .home-empty-state) { border-radius: 14px; border-color: var(--htx-line); background: var(--htx-surface); box-shadow: none; }
html.dark .htx-ui :is(.home-section-frame, .home-surface-card, .home-empty-state) { background: var(--htx-surface); border-color: var(--htx-line); }
.htx-ui .timeline-copy { opacity: 1; }
.htx-ui .timeline-step.is-active :is(.timeline-copy, .timeline-icon) { transform: none; }
.htx-ui .timeline-ping { display: none; }
.htx-ui :is([data-home-section=timeline], [data-home-section=notices], [data-home-section=guide]) { width: 100%; max-width: 1328px; margin-inline: auto; padding: 48px 24px 0; background: transparent; }
.htx-ui .cashback-timeline { padding: 28px; border-radius: 20px; border-color: var(--htx-line) !important; background: var(--htx-surface) !important; box-shadow: var(--htx-shadow); }
html.dark .htx-ui .cashback-timeline { background: var(--htx-surface) !important; }
.htx-ui .cashback-timeline h2 { font-size: 1.75rem; line-height: 1.4; font-weight: 700; }
.htx-ui .timeline-axis { margin-block: 32px; }
.htx-ui .cashback-timeline > div:first-child { margin-bottom: 24px; }
.htx-ui :is(.htx-home-coupon-action, .htx-home-coupon-copy) { min-height: 44px; font-size: .875rem; box-shadow: none; }
.htx-ui .htx-home-coupon-card { padding: 20px; border-radius: 14px; border-color: var(--htx-line); background: var(--htx-surface); box-shadow: none; }
.htx-ui :is(.htx-home-coupon-title, .htx-home-coupon-platform-name) { font-size: .9375rem; line-height: 1.5; }
.htx-ui :is(.htx-home-coupon-sub, .htx-home-coupon-expiry, .htx-home-coupon-description) { font-size: .8125rem; line-height: 1.6; }

/* Member workspace: a useful sidebar, generous content and plain page titles. */
.htx-ui .customer-zone { min-height: calc(100dvh - 76px); background: var(--htx-canvas) !important; overflow: visible; }
.htx-ui .customer-shell { max-width: 1328px; padding: 32px 24px 48px; }
.htx-ui .customer-shell > .grid { gap: 28px; }
.htx-ui .customer-sidebar { padding: 22px 12px; border-radius: var(--htx-radius); border-color: var(--htx-line); box-shadow: none; }
.htx-ui .customer-sidebar > div:first-child { padding-bottom: 20px; }
.htx-ui .customer-side-link { min-height: 46px; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: .875rem; font-weight: 550; }
.htx-ui .customer-side-link.is-active { font-weight: 650; background: rgba(var(--brand-rgb), .09) !important; color: var(--brand); }
.htx-ui .customer-side-link svg { width: 18px; height: 18px; }
.htx-ui .customer-referral-card { border-radius: 12px; background: var(--htx-muted-surface) !important; border-color: var(--htx-line) !important; }
.htx-ui .customer-referral-card > span:last-child { display: none; }
.htx-ui .customer-referral-card > div { max-width: none; }
.htx-ui .customer-referral-card h4 { font-size: .9375rem; line-height: 1.5; }
.htx-ui .customer-referral-card p { font-size: .8125rem; }
.htx-ui .customer-referral-card a { min-height: 40px; font-size: .875rem; }
.htx-ui .customer-page-header,
.htx-ui .htx-orders-hero {
  min-height: 0;
  padding: 0 0 22px;
  margin: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--htx-line);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
.htx-ui .customer-page-header-main { max-width: 100%; flex: 1; gap: 14px; }
.htx-ui .customer-page-title { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.35; text-transform: none; letter-spacing: -.025em; }
.htx-ui .customer-page-description { margin-top: 7px; font-size: .9375rem; line-height: 1.6; }
.htx-ui .customer-eyebrow { margin-bottom: 5px; font-size: .8125rem; font-weight: 600; line-height: 1.4; letter-spacing: .02em; text-transform: none; }
.htx-ui .customer-page-header .customer-page-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; box-shadow: none; }
.htx-ui :is(.customer-page-watermark, .htx-orders-hero-art) { display: none; }
.htx-ui .customer-page-actions { margin-left: 0; gap: 10px; }
.htx-ui .customer-page-actions :is(button, a) { min-height: 44px; line-height: 1.5; font-size: .875rem; }
.htx-ui :is(.customer-panel, .customer-surface) { border-radius: var(--htx-radius); border-color: var(--htx-line); background: var(--htx-surface); box-shadow: var(--htx-shadow); }
html.dark .htx-ui :is(.customer-sidebar, .customer-panel, .customer-surface, .customer-empty) { background: var(--htx-surface) !important; border-color: var(--htx-line) !important; box-shadow: var(--htx-shadow) !important; }
.htx-ui .htx-stat { padding: 22px; }
.htx-ui .htx-stat > div { flex-wrap: wrap-reverse; }
.htx-ui .htx-stat > div > div { flex: 1 1 130px; }
.htx-ui .htx-stat p:first-child { font-size: .875rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--htx-muted); }
.htx-ui .htx-stat-value { font-size: clamp(1.375rem, 2.3vw, 1.875rem); line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.htx-ui .htx-customer-empty-state { min-height: 210px; padding: 32px 22px; border-radius: 16px; background: var(--htx-surface); box-shadow: none; }
.htx-ui .htx-customer-empty-state__icon { box-shadow: none; background: var(--htx-muted-surface); border-color: var(--htx-line); }
.htx-ui .htx-customer-empty-state__title { font-size: 1rem; font-weight: 650; line-height: 1.5; }
.htx-ui .htx-customer-empty-state__description { font-size: .9375rem; }
.htx-ui .customer-surface > .htx-customer-empty-state { border: 0; border-radius: 0; }
.htx-ui .customer-dashboard-page { overflow: visible; }
.htx-ui .customer-dashboard-page > div:first-child h1 { font-size: 1.75rem; line-height: 1.35; font-weight: 700; text-transform: none; }
.htx-ui .customer-dashboard-page > div:first-child p { font-size: .9375rem; }
.htx-ui .dashboard-summary-grid { gap: 16px; }
.htx-ui .wallet-balance-card { min-height: 225px; border-radius: 18px; background: #152338; box-shadow: none; }
.htx-ui .wallet-balance-card > i { display: none; }
.htx-ui #wallet-balance-value { font-size: clamp(1.5rem, 2.5vw, 2.125rem); line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.htx-ui .wallet-balance-card .dashboard-card-title { color: #cbd5e1; }
.htx-ui .dashboard-card-title { font-size: .875rem; font-weight: 550; letter-spacing: 0; text-transform: none; }
.htx-ui :is(.dashboard-action-primary, .dashboard-action-secondary) { min-height: 44px; height: auto; padding: 10px 14px; font-size: .875rem; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.htx-ui .dashboard-action-primary { color: #162338 !important; background: #fff !important; box-shadow: none; }
.htx-ui .dashboard-action-secondary { color: #fff; }
.htx-ui .wallet-balance-card > div:last-child { flex-wrap: wrap; }
.htx-ui .dashboard-stat-card { min-height: 225px; padding: 22px; }
.htx-ui .dashboard-stat-card > div > p { font-size: clamp(1.375rem, 2.3vw, 1.875rem); line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.htx-ui .dashboard-stat-card .customer-stat-icon { width: 40px; height: 40px; flex-shrink: 0; }
.htx-ui .dashboard-detail-card { min-height: 0 !important; }
.htx-ui .dashboard-list-row { border-color: var(--htx-line); border-radius: 12px; box-shadow: none; }
.htx-ui .htx-orders-hero-copy { max-width: 100%; gap: 14px; }
.htx-ui .htx-orders-hero-title { font-size: 1.75rem; line-height: 1.35; text-transform: none; font-weight: 700; color: var(--htx-ink); }
.htx-ui .htx-orders-hero-text { font-size: .9375rem; line-height: 1.6; color: var(--htx-muted); }
.htx-ui .htx-orders-toolbar { padding: 18px; border-radius: 16px; box-shadow: none; background: var(--htx-surface); border-color: var(--htx-line); }
.htx-ui .htx-orders-tabs { gap: 6px; }
.htx-ui .htx-orders-tab { min-height: 44px; padding: 10px 12px; font-size: .875rem; font-weight: 550; line-height: 1.5; border-radius: 9px; }
.htx-ui .htx-orders-tab .count { font-size: .8125rem; }
.htx-ui .htx-orders-tab.is-all.active { background: var(--brand); box-shadow: none; }
.htx-ui .htx-orders-filter-toggle { min-height: 44px; font-size: .875rem; border-radius: 10px; }
.htx-ui .htx-customer-menu { display: none; }

/* Authentication shares the same type and spacing system. */
.htx-ui .auth-page { padding: 40px 24px; min-height: calc(100dvh - 76px); background: var(--htx-canvas); overflow: visible; }
.htx-ui .auth-card { max-width: 1000px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 22px; border-color: var(--htx-line); box-shadow: 0 12px 40px rgb(16 24 40 / 7%); }
.htx-ui .auth-story { min-height: 620px; padding: 36px; background: #152338; }
.htx-ui :is(.auth-orb, .auth-story-glow) { display: none; }
.htx-ui .auth-story::after { display: none; }
.htx-ui .auth-story-logo { max-width: 180px; padding: 10px 14px; min-height: 50px; border-radius: 10px; box-shadow: none; }
.htx-ui .auth-story-logo img { max-width: 148px; max-height: 32px; }
.htx-ui .auth-story-copy { padding-block: 36px; }
.htx-ui .auth-story-copy > h2 { font-size: 2rem; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.htx-ui .auth-story-copy > p:not(.auth-story-kicker) { font-size: 1rem; }
.htx-ui .auth-story-kicker { font-size: .8125rem; line-height: 1.5; letter-spacing: .025em; text-transform: none; }
.htx-ui .auth-story-item strong { font-size: .9375rem; }
.htx-ui .auth-story-item small, .htx-ui .auth-story-foot { font-size: .8125rem; line-height: 1.5; }
.htx-ui .auth-panel { padding: 36px 40px; background: var(--htx-surface); }
.htx-ui .auth-heading { gap: 12px; margin-top: 24px; }
.htx-ui .auth-heading h1 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.htx-ui .auth-heading p { font-size: .8125rem; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.htx-ui .auth-heading-icon { width: 42px; height: 42px; border-radius: 12px; box-shadow: none; }
.htx-ui :is(.auth-submit, .auth-google-button) { min-height: 50px; font-size: .9375rem; border-radius: 11px; box-shadow: none; }
.htx-ui .auth-input-shell { min-height: 50px; border-radius: 11px; }
.htx-ui .auth-field :is(input, select) { font-size: 1rem; }
.htx-ui .auth-tabs a { min-height: 44px; }
.htx-ui .auth-tabs:has(> a:only-child) { grid-template-columns: minmax(0, 1fr); }
.htx-ui .auth-description { font-size: 1rem; line-height: 1.65; }
.htx-ui :is(.auth-field-error, .auth-field-hint, .auth-footer, .auth-divider, .auth-alert, .auth-alert strong) { font-size: .875rem; line-height: 1.6; }

/* The actual back office, with all its existing routes and actions intact. */
.htx-ui.htx-admin { --panel: var(--htx-canvas); }
.htx-ui #admin-sidebar { background: #142236; border-right: 1px solid #23364f; box-shadow: none; }
.htx-ui #admin-sidebar > div:first-child { min-height: 76px; height: auto; padding-block: 16px; background: #142236; border-color: #2b3a50; }
.htx-ui #admin-sidebar .brand-copy b { font-size: 1rem; letter-spacing: 0; }
.htx-ui #admin-sidebar .brand-copy small { margin-top: 3px; font-size: .75rem; letter-spacing: .04em; color: #a6b6cc; }
.htx-ui #admin-navigation { padding: 18px 12px; }
.htx-ui #admin-sidebar :is(.admin-link, .admin-group > summary) { min-height: 46px; border-radius: 10px; font-size: .875rem; line-height: 1.5; font-weight: 500; color: #bdc9da; }
.htx-ui #admin-sidebar .admin-link.active { background: rgba(var(--brand-rgb), .17); color: #ffb29f; box-shadow: inset 3px 0 var(--brand); }
.htx-ui #admin-sidebar :is(.admin-link, .admin-group > summary):hover { background: #22354e; color: #fff; }
.htx-ui #admin-sidebar .admin-child-list { margin-left: 18px; padding-left: 12px; }
.htx-ui #admin-sidebar .aicon { width: 19px; height: 19px; }
.htx-ui #admin-close { min-width: 40px; min-height: 44px; font-size: 1.5rem; }
.htx-ui #admin-content-shell { background: var(--htx-canvas); }
.htx-ui #admin-content-shell > header {
  top: 0;
  min-height: 76px;
  height: auto;
  padding: 12px 28px;
  border-color: var(--htx-line);
  background: var(--htx-surface);
  box-shadow: none;
}
.htx-ui :is(#admin-menu, #admin-theme-toggle) { width: 44px; height: 44px; border: 1px solid var(--htx-line); border-radius: 10px; }
.htx-ui .admin-search-shell { min-height: 44px; border-radius: 10px; background: var(--htx-muted-surface); }
.htx-ui .admin-search-shortcut { font-size: .75rem; }
.htx-ui #admin-user-toggle { min-height: 44px; }
.htx-ui #admin-user-toggle > span:nth-child(2) { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.htx-ui #admin-user-toggle small { font-size: .8125rem; }
.htx-ui #admin-user-menu { width: min(290px, calc(100vw - 32px)); border-radius: 14px; overflow-wrap: anywhere; }
.htx-ui #admin-user-menu :is(a, button) { min-height: 44px; font-size: .875rem; }
.htx-ui .htx-admin-main { max-width: 1680px; margin-inline: auto; padding: 28px; }
.htx-ui .htx-admin-main h1 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.htx-ui .htx-admin-main h2 { font-size: 1rem; line-height: 1.5; }
.htx-ui .htx-admin-main > section { border-color: var(--htx-line); }
.htx-ui #dashboard-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.htx-ui .htx-admin-stat { min-height: 154px; padding: 22px; border-radius: 16px; border-color: var(--htx-line); box-shadow: none; }
.htx-ui .htx-admin-stat > div { gap: 12px; flex-wrap: wrap-reverse; }
.htx-ui .htx-admin-stat > div > div { flex: 1 1 140px; }
.htx-ui .htx-admin-stat p { min-height: 0; font-size: .8125rem; line-height: 1.5; letter-spacing: .015em; font-weight: 550; color: var(--htx-muted); }
.htx-ui .htx-admin-stat b { font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.35; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--htx-ink); overflow-wrap: anywhere; }
.htx-ui .htx-admin-stat small { margin-top: 10px; font-size: .8125rem; line-height: 1.5; }
.htx-ui .htx-admin-stat > div > span { width: 40px; height: 40px; }
.htx-ui #dashboard-growth-panel { padding: 24px; border-radius: 18px; box-shadow: none; }
.htx-ui #dashboard-chart-legend { justify-content: flex-start; font-size: .8125rem; }
.htx-ui .htx-admin-main form :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), select) { min-height: 44px; }
.htx-ui .htx-admin-main :is(.admin-generated-modal-close, [data-admin-modal-close]) { min-width: 44px; min-height: 44px; }
.htx-ui .htx-admin-main :is(.customer-field-label, label.text-\[10px\], label.text-\[11px\]) { font-size: .875rem; }
.htx-ui .htx-admin-main .overflow-x-auto > table { min-width: 640px; }
.htx-ui.htx-drawer-open { overflow: hidden; }

/* Vouchers and withdrawals retain their specialized structures. */
.htx-ui :is(.htx-coupon-page, .withdraw-page) { background: var(--htx-canvas); }
.htx-ui .htx-coupon-shell { max-width: 1328px; }
.htx-ui .htx-coupon-hero { padding-block: 30px; border-radius: 0; background: transparent; }
.htx-ui .htx-coupon-hero h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.3; }
.htx-ui :is(.htx-coupon-tools, .withdraw-card) { border-color: var(--htx-line); border-radius: 18px; box-shadow: var(--htx-shadow); }
.htx-ui :is(.withdraw-label, .withdraw-save-link, .withdraw-saved, .withdraw-field > small, .withdraw-otp small) { font-size: .875rem; line-height: 1.6; }
.htx-ui :is(.withdraw-channel > span, .withdraw-submit) { min-height: 48px; font-size: .9375rem; }
.htx-ui .withdraw-card-title { font-size: 1.125rem; }

/* Modal dimensions follow the visible viewport, including an open keyboard. */
.htx-ui #site-search-modal { padding-top: min(12vh, 96px); padding-bottom: 20px; }
.htx-ui #site-search-modal > div { max-height: calc(var(--htx-viewport-height, 100dvh) - 120px); overflow-y: auto; border-radius: 18px; }
.htx-ui #site-search-results { max-height: min(360px, 55dvh); }
.htx-ui :is(#cashback-guide-modal, #cashback-notices-modal, [data-admin-modal]) { overflow-y: auto; overscroll-behavior: contain; }
.htx-ui :is(#cashback-guide-modal, #cashback-notices-modal, [data-admin-modal]) > section { max-height: calc(var(--htx-viewport-height, 100dvh) - 40px); overflow-y: auto; }
.htx-ui #mobile-account-sheet-dialog { max-height: calc(var(--htx-viewport-height, 100dvh) - 32px); bottom: max(12px, env(safe-area-inset-bottom, 0px)); border-radius: 22px; }
.htx-ui #support-widget-panel { border-color: var(--htx-line); border-radius: 18px; box-shadow: 0 12px 40px rgb(16 24 40 / 15%); }
.htx-ui #support-widget-panel :is(a, button) { min-height: 44px; }
.htx-ui #support-widget-toggle { width: 48px; height: 48px; box-shadow: 0 4px 16px rgba(var(--brand-rgb), .18); }

/* Footer support remains available without covering mobile content. */
.htx-ui .site-footer { padding-top: 36px; background: #142236 !important; backdrop-filter: none; }
.htx-ui .site-footer :is(.brand-logo-light, .brand-logo-dark) { max-width: 168px; max-height: 40px; width: auto; object-fit: contain; }
.htx-ui .site-footer p { line-height: 1.8; }
.htx-ui .site-footer :is(.text-gray-400, .text-slate-400) { color: #a6b6cc; }
.htx-ui .htx-footer-help { max-width: 1232px; margin: 0 auto 28px; padding: 0 24px 24px; border-bottom: 1px solid #2b3a50; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #cbd5e1; font-size: .9375rem; }
.htx-ui .htx-footer-help button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; padding: 10px 16px; border: 1px solid #41526a; border-radius: 10px; color: #fff; background: #23354b; font-size: .875rem; }
.htx-footer-help svg { width: 18px; height: 18px; }
.htx-ui .public-mobile-bottom-navigation {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-height: calc(76px + env(safe-area-inset-bottom, 0px));
  height: auto;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  border-color: var(--htx-line);
  background: var(--htx-surface) !important;
  box-shadow: 0 -2px 12px rgb(16 24 40 / 4%);
  backdrop-filter: none;
}
.htx-ui .mobile-bottom-item { min-height: 64px; padding: 0 2px; gap: 4px; color: var(--htx-muted); }
.htx-ui .mobile-bottom-item > span:last-child { max-width: 100%; font-size: .75rem; line-height: 1.35; white-space: normal; overflow-wrap: break-word; }
.htx-ui .mobile-bottom-item .mobile-bottom-icon { height: 30px; width: 44px; border-radius: 10px; }
.htx-ui .mobile-bottom-item.is-active { color: var(--brand); font-weight: 650; }
.htx-ui .mobile-bottom-item.is-active::before { display: none; }
.htx-ui .mobile-bottom-item.is-active .mobile-bottom-icon { background: rgba(var(--brand-rgb), .1); }

@media (min-width: 1024px) {
  .htx-ui .htx-hero-split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .htx-ui .htx-hero-classic { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .htx-ui .htx-hero-grid > * { grid-column: auto; }
  .htx-ui .htx-hero-centered { max-width: 840px; margin-inline: auto; grid-template-columns: minmax(0, 1fr); }
  .htx-ui .customer-shell > .grid { grid-template-columns: 248px minmax(0, 1fr); }
  .htx-ui .customer-shell > .grid > aside { position: sticky; top: 96px; max-height: calc(100dvh - 112px); overflow-y: auto; scrollbar-width: thin; border-radius: 18px; }
}
@media (min-width: 1600px) { .htx-ui #dashboard-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1279px) {
  .htx-ui .htx-site-header > .site-shell { gap: 16px; }
  .htx-ui .htx-hero-copy > h1 { font-size: 2.25rem; }
  .htx-ui .cashback-analyzer { padding: 20px; }
  .htx-ui .hero-stat-card { padding: 24px; }
  .htx-ui .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .htx-ui .dashboard-summary-grid .wallet-balance-card { grid-column: 1 / -1; min-height: 200px; }
  .htx-ui #dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .htx-ui .htx-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .htx-ui .home-flow-bg { padding-top: 30px; }
  .htx-ui .htx-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .htx-ui .htx-hero-copy > h1 { max-width: 760px; font-size: clamp(1.875rem, 4.8vw, 2.625rem); }
  .htx-ui .htx-hero-copy > p { max-width: none; }
  .htx-ui .hero-stat-card { padding: 22px; }
  .htx-ui .hero-stat-card > div + div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
  .htx-ui .hero-stat-card .hero-stat-row { display: block; min-height: 0; padding: 0; border: 0; }
  .htx-ui .hero-stat-row > span:first-child { display: none; }
  .htx-ui .hero-stat-row small { font-size: .8125rem; }
  .htx-ui .hero-stat-row b { font-size: 1.5rem; }
  .htx-ui .customer-shell { padding-top: 24px; }
  .htx-ui .htx-customer-menu { display: block; margin-bottom: 24px; border: 1px solid var(--htx-line); border-radius: 12px; background: var(--htx-surface); }
  .htx-ui .htx-customer-menu > summary { display: flex; align-items: center; min-height: 50px; padding: 12px 16px; gap: 10px; color: var(--htx-ink); font-size: .9375rem; font-weight: 600; cursor: pointer; list-style: none; }
  .htx-ui .htx-customer-menu > summary::-webkit-details-marker { display: none; }
  .htx-customer-menu svg { width: 18px; height: 18px; flex-shrink: 0; }
  .htx-ui .htx-customer-menu > summary > span { flex: 1; }
  .htx-ui .htx-customer-menu[open] > summary { border-bottom: 1px solid var(--htx-line); }
  .htx-ui .htx-customer-menu[open] > summary > svg:last-child { transform: rotate(180deg); }
  .htx-ui .htx-customer-menu > nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px; }
  .htx-ui .htx-customer-menu nav a { display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 10px; border-radius: 8px; color: var(--htx-muted); font-size: .875rem; line-height: 1.5; }
  .htx-ui .htx-customer-menu a[aria-current=page] { background: rgba(var(--brand-rgb), .08); color: var(--brand); font-weight: 650; }
  .htx-ui #admin-sidebar { width: min(300px, calc(100vw - 48px)); }
  .htx-ui #admin-content-shell > header { padding: 10px 20px; }
  .htx-ui .htx-admin-main { padding: 24px 20px; }
  .htx-ui .auth-card { max-width: 560px; grid-template-columns: minmax(0, 1fr); }
  .htx-ui .auth-story { display: none; }
  .htx-ui .auth-panel { padding: 32px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .htx-ui .dashboard-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .htx-ui .dashboard-summary-grid .wallet-balance-card { grid-column: auto; }
  .htx-ui .wallet-balance-card { padding: 22px; }
}
@media (max-width: 767px) {
  .htx-ui.site-body:not(.auth-shell-page) { --htx-bottom-space: calc(88px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--htx-bottom-space); }
  .htx-ui .htx-site-header > .site-shell { width: calc(100% - 32px); min-height: 68px; gap: 12px; padding-block: 10px; }
  .htx-ui .htx-site-brand { width: 132px; }
  .htx-ui .htx-site-brand img { max-width: 132px; height: 32px; max-height: 32px; }
  .htx-ui .htx-site-header > .site-shell > .ml-auto { gap: 6px; }
  .htx-ui .htx-site-header #theme-toggle { display: none; }
  .htx-ui .htx-site-header :is(.public-desktop-account, .public-desktop-auth) { display: none; }
  .htx-ui .htx-site-header .public-compact-navigation-trigger { display: grid; }
  .htx-ui :is(.home-hero, .home-section-shell) { padding-inline: 16px; }
  .htx-ui .home-flow-bg { padding-top: 26px; padding-bottom: 36px; }
  .htx-ui .htx-hero-copy > * + * { margin-top: 14px; }
  .htx-ui .htx-hero-copy > h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.3; }
  .htx-ui .htx-hero-copy > p { line-height: 1.65; }
  .htx-ui .cashback-analyzer { padding: 18px; margin-top: 22px; border-radius: 16px; }
  .htx-ui .htx-analyzer-heading { gap: 10px; margin-bottom: 16px; }
  .htx-ui .htx-analyzer-heading p { font-size: .875rem; }
  .htx-ui .cashback-analyzer > .flex > span:first-child { flex-basis: 100%; margin-bottom: 3px; }
  .htx-ui .hero-stat-card { border-radius: 16px; padding: 20px; }
  .htx-ui .hero-stat-card > div + div { gap: 16px; }
  .htx-ui .hero-stat-row b { font-size: 1.25rem; }
  .htx-ui .home-section-shell { padding-top: 32px; }
  .htx-ui :is([data-home-section=timeline], [data-home-section=notices], [data-home-section=guide]) { padding: 32px 16px 0; }
  .htx-ui .cashback-timeline { padding: 20px; border-radius: 16px; }
  .htx-ui .home-section-frame { padding: 20px; border-radius: 16px; }
  .htx-ui .home-section-action { width: auto; }
  .htx-ui .customer-shell { padding: 20px 16px 32px; }
  .htx-ui .customer-page-header { flex-wrap: wrap; gap: 16px; padding-bottom: 20px; }
  .htx-ui .customer-page-header-main { align-items: flex-start; gap: 12px; }
  .htx-ui .customer-page-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .htx-ui .customer-page-title { font-size: 1.5rem; }
  .htx-ui .customer-page-description { font-size: .9375rem; }
  .htx-ui .customer-dashboard-page > div:first-child h1 { font-size: 1.5rem; }
  .htx-ui .dashboard-summary-grid { gap: 12px; }
  .htx-ui .dashboard-stat-card { min-height: 174px !important; padding: 18px; }
  .htx-ui .dashboard-stat-card > div > div { flex-direction: column-reverse; gap: 12px; }
  .htx-ui .dashboard-stat-card > div > p { font-size: 1.375rem; margin-top: 14px; }
  .htx-ui .dashboard-stat-card > span { font-size: .8125rem; white-space: normal; }
  .htx-ui .htx-orders-hero-title { font-size: 1.5rem; }
  .htx-ui .htx-orders-toolbar { padding: 14px; }
  .htx-ui .htx-orders-toolbar-top { align-items: stretch; }
  .htx-ui .htx-orders-tabs { flex-wrap: nowrap; width: 100%; padding-bottom: 6px; overflow-x: auto; }
  .htx-ui .htx-orders-tab { flex-shrink: 0; }
  .htx-ui .auth-page { padding: 24px 16px; min-height: calc(100dvh - 68px); }
  .htx-ui .auth-panel { padding: 24px; }
  .htx-ui .auth-card { border-radius: 18px; }
  .htx-ui .auth-heading { align-items: flex-start; }
  .htx-ui #admin-content-shell > header { min-height: 68px; padding: 10px 16px; }
  .htx-ui .htx-admin-main { padding: 22px 16px; }
  .htx-ui #dashboard-stat-grid { gap: 12px; }
  .htx-ui .htx-admin-stat { padding: 18px; }
  .htx-ui #dashboard-growth-panel { padding: 18px; }
  .htx-ui #dashboard-chart-legend { row-gap: 10px; }
  .htx-ui #support-widget-toggle { display: none; }
  .htx-ui #support-widget-panel {
    inset: auto 16px calc(92px + env(safe-area-inset-bottom, 0px)) 16px !important;
    width: auto;
    max-width: none;
    max-height: calc(var(--htx-viewport-height, 100dvh) - 120px - env(safe-area-inset-bottom, 0px));
  }
  .htx-ui #scroll-to-top { position: relative; inset: auto !important; margin: 16px 16px 16px auto; transform: none; }
  .htx-ui .htx-footer-help { flex-direction: column; align-items: flex-start; padding-inline: 16px; font-size: .875rem; }
  .htx-ui .site-footer { padding-top: 28px; }
  .htx-ui #site-search-modal { padding: 16px; }
  .htx-ui #site-search-modal > div { max-height: calc(var(--htx-viewport-height, 100dvh) - 32px); }
  .htx-ui #site-search-submit { display: none; }
}
@media (max-width: 719px) {
  .htx-ui #cashback-form > div:first-of-type { flex-direction: column; gap: 10px; }
  .htx-ui #cashback-form > div:first-of-type > button { width: 100%; }
}
@media (max-width: 479px) {
  .htx-ui .htx-site-brand { width: 112px; flex-shrink: 1; }
  .htx-ui .htx-site-brand img { max-width: 112px; height: 30px; max-height: 30px; }
  .htx-ui .hero-stat-card > div + div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .htx-ui .hero-stat-card .hero-stat-row:last-child { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #33445a; }
  .htx-ui .hero-stat-row:last-child b { font-size: 1.5rem; }
  .htx-ui .cashback-analyzer > .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .htx-ui .cashback-analyzer > .grid button { justify-content: flex-start; text-align: left; }
  .htx-ui .htx-customer-menu > nav { grid-template-columns: minmax(0, 1fr); }
  .htx-ui .htx-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .htx-ui #dashboard-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .htx-ui .htx-admin-stat { min-height: 128px; }
  .htx-ui .htx-admin-stat > div > div { flex-basis: 160px; }
  .htx-ui .auth-panel { padding: 24px 18px; }
  .htx-ui .auth-heading h1 { font-size: 1.5rem; }
}

/* Appearance preview still respects the administrator's explicit device mode. */
html.appearance-preview-mobile .htx-ui.site-body:not(.auth-shell-page) { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
html.appearance-preview-mobile .htx-ui .htx-hero-grid { grid-template-columns: minmax(0, 1fr); }
html.appearance-preview-mobile .htx-ui .htx-hero-grid > * { grid-column: auto; }
html.appearance-preview-mobile .htx-ui .htx-site-header #theme-toggle { display: none; }
html.appearance-preview-mobile .htx-ui #support-widget-toggle { display: none; }

@media (prefers-reduced-motion: reduce) {
  .htx-ui *, .htx-ui *::before, .htx-ui *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .htx-ui :is(.htx-site-header, .public-mobile-bottom-navigation, .customer-shell > .grid > aside, #admin-sidebar, #support-widget-toggle, #scroll-to-top, .htx-customer-menu, .site-footer) { display: none !important; }
  .htx-ui #admin-content-shell { margin-left: 0 !important; }
  .htx-ui .customer-shell > .grid { display: block; }
  .htx-ui.site-body { padding-bottom: 0 !important; }
}
