/* ==========================================================================
   Slink 0.8.0 — Application Shell & Industry-Standard Retail Screens
   Grouped Backoffice, Fullscreen Hybrid POS, 5-Tab Mobile, Charts & Cards
   ========================================================================== */

/* ---- 1. Authentication Screen & Flagship Web Landing ---- */
.auth-screen {
  width: 100%;
  min-height: var(--app-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4%;
  background: radial-gradient(circle at 12% 8%, rgba(167, 243, 208, 0.42) 0%, transparent 46%),
    radial-gradient(circle at 88% 18%, rgba(226, 232, 240, 0.55) 0%, transparent 48%),
    var(--bg);
}

.auth-screen.is-web-landing {
  display: block;
  padding: 0;
}

.auth-screen.is-android-welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: var(--app-height);
  padding: 4%;
  background: #eef2f6;
}

.auth-card.android-auth-card {
  width: 100%;
  max-width: 26.5rem;
  margin-inline: auto;
  padding: 6% 5.5%;
}

@media (max-width: 540px) {
  .android-auth-card .auth-form-row-2 {
    grid-template-columns: 100%;
  }
}

.android-auth-card :is(.input, .auth-submit, .auth-mode-tab) {
  min-height: 46px;
}

.android-auth-card .input { font-size: 16px; }

.android-auth-label {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 13px;
}

.auth-card {
  width: 100%;
  max-width: 27.5rem;
  margin-inline: auto;
  padding: clamp(1.125rem, 5%, 1.625rem);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 18px 42px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.auth-mode-tab {
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 180ms var(--ease-apple), color 180ms var(--ease-apple), box-shadow 180ms var(--ease-apple);
}

.auth-mode-tab.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.auth-secondary-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.auth-captcha-field {
  margin-top: 2px;
}

.auth-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
}

.auth-captcha-img-wrap {
  flex: 1 1 auto;
  min-width: 0;
  height: 58px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-captcha-img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.auth-captcha-refresh {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
}

.auth-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.settings-email-change-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(15, 107, 78, 0.05);
  border: 1px solid rgba(15, 107, 78, 0.14);
  margin-bottom: 16px;
}

.settings-email-change-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  display: grid;
  place-items: center;
}

.auth-brand .brand-mark svg {
  width: 24px;
  height: 24px;
}

.auth-brand .brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.auth-card > p {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
}

.auth-message {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 600;
}

.auth-message.error {
  border-color: #FECACA;
  background: var(--danger-bg);
  color: #991B1B;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 14px;
  font-size: 13px;
}

.auth-footnote {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.brand-period {
  color: var(--primary);
}

/* ---- 2. Backoffice App Shell & Grouped Sidebar ---- */
.app-shell {
  width: 100%;
  max-width: 100%;
  min-height: var(--app-height);
  display: grid;
  grid-template-columns: clamp(12.5rem, 20.5%, 15.75rem) minmax(0, 1fr);
  align-items: stretch;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: var(--app-height);
  z-index: 30;
  width: 100%;
  padding: 18px 14px 14px;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 6px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.store-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: left;
  width: 100%;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.store-switcher:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.store-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.store-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.store-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-meta small {
  font-size: 11px;
  color: var(--muted);
}

.switch-chevron {
  font-size: 14px;
  color: var(--muted);
}

.sidebar-pos-cta {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 107, 78, 0.22);
}

.primary-nav {
  display: grid;
  gap: 2px;
  padding-top: 4px;
}

.nav-group {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.nav-group-label {
  padding: 4px 10px 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-link:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary);
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: none;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.nav-label {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-count {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.profile-button:hover {
  background: var(--surface-subtle);
}

.profile-avatar, .topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.profile-button > span:nth-child(2) {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.profile-button strong,
.profile-button small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-button strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.profile-button small {
  font-size: 11px;
  color: var(--muted);
}

.profile-more {
  color: var(--muted);
  font-size: 12px;
  flex: none;
}

/* Main Panel & Frosted Topbar */
.main-panel {
  width: 100%;
  max-width: 100%;
  min-height: var(--app-height);
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 3.625rem;
  height: auto;
  --view-pad-x: clamp(14px, 2.8vw, 32px);
  padding: 0.5rem var(--view-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.mobile-brand, .workspace-name {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}

.crumb { color: var(--muted); }
.crumb-separator { color: var(--border-strong); }
.crumb-current { color: var(--ink); font-weight: 700; }

.topbar-pos-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 107, 78, 0.18);
}

.topbar-pos-btn:hover {
  background: var(--primary-hover);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-right .icon-button {
  width: 36px;
  height: 36px;
  flex: none;
}

.topbar-font-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 2px;
  gap: 2px;
  height: 36px;
}

.font-step-btn {
  width: 32px !important;
  height: 30px !important;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 7px;
  letter-spacing: -0.02em;
}

.font-step-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pos-topbar .pos-font-controls {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.pos-topbar .pos-font-controls .font-step-btn,
.pos-topbar .pos-help-btn {
  color: #FFFFFF;
}

.pos-topbar .pos-help-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 700;
}

.pos-topbar .pos-font-controls .font-step-btn:hover:not(:disabled),
.pos-topbar .pos-help-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.pos-more-menu {
  position: relative;
}

.pos-more-menu summary {
  list-style: none;
  cursor: pointer;
}

.pos-more-menu summary::-webkit-details-marker {
  display: none;
}

.pos-more-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg, 0 12px 28px rgba(15, 23, 42, 0.16));
  display: grid;
  gap: 6px;
}

.pos-more-dropdown .pos-topbar-chip {
  width: 100%;
  justify-content: flex-start;
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--border);
}

.pos-more-dropdown .pos-topbar-chip.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}

.view {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding: clamp(1rem, 2.2%, 1.5rem) clamp(14px, 2.8vw, 32px) 2.25rem;
  min-width: 0;
}

.mobile-nav {
  display: none;
}

/* ---- 3. Fullscreen Hybrid POS Mode ---- */
body.pos-fullscreen .app-shell {
  display: block;
}

body.pos-fullscreen .sidebar,
body.pos-fullscreen .topbar {
  display: none !important;
}

body.pos-fullscreen .main-panel {
  margin-left: 0 !important;
  min-height: var(--app-height);
}

body.pos-fullscreen .view {
  max-width: none;
  padding: 0;
  min-height: var(--app-height);
  display: flex;
  flex-direction: column;
}

.pos-shell {
  display: flex;
  flex-direction: column;
  min-height: var(--app-height);
  background: var(--bg);
}

.pos-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: #0F3B2E;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.pos-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pos-exit-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pos-search-bar {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pos-search-bar .search-wrap {
  flex: 1;
}

.pos-search-bar .input {
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

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

.pos-topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.pos-topbar-chip:hover {
  background: rgba(255, 255, 255, 0.20);
}

.pos-topbar-chip.active {
  background: #A7F3D0;
  border-color: #A7F3D0;
  color: #064E3B;
}

.pos-warehouse-select {
  min-height: 36px;
  padding: 4px 28px 4px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
}

.pos-warehouse-select option {
  color: var(--ink);
  background: #FFFFFF;
}

.pos-workspace-body {
  flex: 1;
  width: 100%;
  padding: 1rem 2.5% 1.5rem;
  min-width: 0;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(18.5rem, 1fr);
  gap: 16px;
  align-items: start;
}

.pos-mode-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
  gap: 10px;
  margin-bottom: 14px;
}

.pos-mode-tab {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-secondary);
  text-align: left;
  box-shadow: var(--shadow-xs);
}

.pos-mode-tab strong { font-size: 13.5px; color: var(--ink); }
.pos-mode-tab small { font-size: 11.5px; color: var(--muted); }
.pos-mode-tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.pos-mode-tab.active strong,
.pos-mode-tab.active small {
  color: var(--primary-hover);
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pos-category {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
}

.pos-category.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 14px;
}

.pos-product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 204px;
  padding: 10px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.pos-product .product-thumb {
  width: 100%;
  height: 114px;
  border-radius: 10px;
  background: #F8FAFC;
  border-color: #EDF1F5;
}

.pos-product .product-thumb img {
  padding: 4px;
}

.pos-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.32;
  min-height: 2.64em;
}

.pos-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pos-catalog-header .category-scroll {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.pos-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex: none;
}

.pos-view-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.pos-view-btn.active {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.product-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.product-barcode-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}

.product-barcode-btn:hover {
  border-color: var(--border);
  background: #F8FAFC;
}

.product-barcode-btn svg {
  height: 24px;
  width: auto;
  max-width: 112px;
  display: block;
}

.product-barcode-btn small {
  font-size: 11px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.shift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}

.shift-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.shift-weekday-head {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  padding: 6px 0;
}

.shift-day-cell {
  min-height: 76px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.shift-day-cell:hover {
  border-color: var(--primary);
}

.shift-day-cell.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.shift-day-cell.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.shift-day-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.shift-mini-pill {
  font-size: 10.5px;
  line-height: 1.25;
  padding: 2px 5px;
  border-radius: 6px;
  background: #F1F5F9;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shift-mini-pill.status-completed {
  background: #DCFCE7;
  color: #166534;
}

.shift-mini-pill.status-checked_in {
  background: #DBEAFE;
  color: #1E40AF;
}

.shift-mini-pill.status-late {
  background: #FEF3C7;
  color: #92400E;
}

@media (max-width: 960px) {
  .shift-layout {
    grid-template-columns: 1fr;
  }
}

.pos-product:hover:not(:disabled) {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pos-product.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.pos-product strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pos-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.pos-stock {
  font-size: 12px;
  color: var(--muted);
}

/* POS Fast Scan Table View */
.pos-fast-scan-table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.pos-fast-scan-row {
  cursor: pointer;
}

.pos-fast-scan-row:hover td {
  background: var(--primary-soft) !important;
}

/* POS Cart Panel */
.cart-panel {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  max-height: calc(var(--app-height) - 96px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pos-bill-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.pos-bill-tab {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  flex: none;
}

.pos-bill-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
}

.pos-bill-tab button[role='tab'] {
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pos-bill-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 11px;
  display: inline-grid;
  place-items: center;
}

.pos-bill-tab.active .pos-bill-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.pos-bill-close {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 7px 4px 2px;
  font-size: 14px;
  opacity: 0.8;
}

.pos-bill-add {
  min-width: 30px;
  height: 30px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 700;
  flex: none;
}

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.cart-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.cart-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.cart-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.cart-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.cart-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 2px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-weight: 700;
}

.qty-control button:hover {
  background: var(--surface-subtle);
}

.qty-control span,
.qty-control .qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cart-line-discount-btn {
  min-height: 28px;
  padding: 2px 8px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 11.5px;
  font-weight: 600;
}

.cart-line-discount-btn.has-discount {
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.cart-customer {
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.pos-seller-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 12px;
}

.pos-seller-pills small { color: var(--muted); font-weight: 600; }

.pos-seller-pill {
  min-height: 30px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.pos-seller-pill.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.pos-inline-customer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.pos-inline-customer-row .input {
  min-height: 38px;
  font-size: 13px;
}

.pos-customer-assistant-card {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--primary-border);
  background: var(--primary-soft);
  font-size: 12px;
}

.pos-assist-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pos-assist-debt {
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed var(--primary-border);
}

.pos-assist-chip, .pos-assist-fav {
  min-height: 28px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
}

.pos-assist-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.cart-totals {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
  background: var(--surface-soft);
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.cart-total-line.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}

.cart-footer {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 8px;
}

.pos-fast-pay, .pos-standard-pay {
  display: grid;
  gap: 8px;
}

.pos-fast-presets, .pos-standard-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pos-fast-chip {
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.pos-fast-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.pos-fast-cash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pos-fast-cash-row .input {
  max-width: 150px;
  min-height: 38px;
  text-align: right;
  font-weight: 700;
}

.pos-fast-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pos-delivery-box {
  margin: 8px 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  display: grid;
  gap: 7px;
}

.pos-delivery-fields {
  display: grid;
  gap: 6px;
}

.pos-delivery-fields .input {
  min-height: 36px;
  font-size: 13px;
}

.sale-saved {
  margin-bottom: 14px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 14px;
}

.sale-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.pos-mobile-cart, .drawer-cart, .cart-close, .cart-add-product, .pos-cart-top {
  display: none;
}

/* ---- 4. Dashboard: Onboarding, Real Numbers, Charts & Action Cards ---- */
.onboarding-card {
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FFFFFF 0%, #F2FBF7 100%);
  box-shadow: var(--shadow-xs);
}

.onboarding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.onboarding-head h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-step {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.onboarding-step:hover {
  border-color: var(--primary);
}

.onboarding-step.is-done {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.onboarding-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.onboarding-step strong {
  font-size: 13.5px;
  color: var(--ink);
}

.onboarding-step small {
  font-size: 12px;
  color: var(--muted);
}

.dashboard-real-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.real-num-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  min-width: 0;
}

.real-num-card.real-num-hero {
  border-color: var(--primary-hover);
  background: linear-gradient(135deg, #0F6B4E 0%, #093B2C 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 107, 78, 0.20);
}

.real-num-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.real-num-card.real-num-hero .real-num-label { color: #A7F3D0; }

.real-num-value {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.real-num-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.real-num-card.real-num-hero .real-num-sub { color: #D1FAE5; }

.dashboard-action-panel {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}

.dashboard-action-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1024px) {
  .dashboard-action-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: left;
}

.dashboard-action-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.dashboard-action-count {
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
}

.dashboard-action-item.is-warn .dashboard-action-count { background: #FEF3C7; color: #B45309; }
.dashboard-action-item.is-danger .dashboard-action-count { background: #FEE2E2; color: #B91C1C; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.quick-action:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.quick-action strong { font-size: 14px; color: var(--ink); }
.quick-action small { font-size: 12.5px; color: var(--muted); }

/* ---- 5. SVG Charts & Reports Layout ---- */
.chart-svg-wrap {
  width: 100%;
  overflow: hidden;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.report-filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.report-filter-bar .segmented {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.report-date-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-date-inputs .input {
  width: auto;
  min-height: 40px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.report-card {
  display: grid;
  gap: 6px;
  align-content: start;
}

.report-card small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-card strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.report-card span {
  font-size: 12.5px;
  color: var(--muted);
}

.payment-donut-layout {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 1.9fr);
  gap: 16px;
  align-items: center;
}

.donut-legend {
  display: grid;
  gap: 8px;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.donut-legend-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-secondary);
}

.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}

/* ---- 6. Product 4-Tab Stock Card & Detail Tabs ---- */
.detail-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.detail-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}

.detail-tabs button.active {
  background: var(--primary);
  color: #FFFFFF;
}

.detail-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.625rem), 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.detail-kv-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.detail-kv-item small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}

.detail-kv-item strong {
  font-size: 14.5px;
  color: var(--ink);
}

/* ---- 7. Staff, Inventory Subtabs, Workspace Tabs, Finance & Settings Tabs ---- */
.inventory-subtabs,
.settings-areas {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.inventory-subtab,
.settings-areas button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}

.inventory-subtab.active,
.settings-areas button.active,
.settings-areas button[aria-selected='true'] {
  background: var(--primary);
  color: #FFFFFF;
}

.workspace-tabs,
.inventory-stock-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  padding: 4px;
  margin-bottom: 14px;
  background: var(--surface-2, #F1F5F4);
  border: 1px solid var(--border);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.workspace-tabs::-webkit-scrollbar,
.inventory-stock-filters::-webkit-scrollbar,
.settings-areas::-webkit-scrollbar,
.inventory-subtabs::-webkit-scrollbar,
.detail-tabs::-webkit-scrollbar,
.pos-topbar-actions::-webkit-scrollbar,
.category-scroll::-webkit-scrollbar {
  display: none;
}

.workspace-tabs button,
.inventory-stock-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}

.workspace-tabs button:hover,
.inventory-stock-filters button:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.workspace-tabs button[aria-current='page'],
.workspace-tabs button[aria-pressed='true'],
.workspace-tabs button.active,
.inventory-stock-filters button[aria-pressed='true'],
.inventory-stock-filters button.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 107, 78, 0.22);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.finance-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.finance-balance span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.finance-balance strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.finance-debt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(17rem, 1fr);
  gap: 16px;
  align-items: start;
}

.finance-debt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.finance-debt-search {
  margin-bottom: 12px;
  display: grid;
  gap: 6px;
}

.daily-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.daily-actions button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.daily-actions button:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.daily-actions button > span:first-child {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}

.customer-more-filters {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  margin: 8px 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
}

.mobile-only-cards {
  display: none;
}

.desktop-only-table {
  display: block;
}

.staff-row {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.staff-row:last-child { border-bottom: 0; }

.staff-person {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-person-info {
  flex: 1 1 200px;
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-person-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-perms {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.staff-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 8px 12px;
}

.staff-perm-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
}

.staff-perm-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }

/* Mobile More Drawer Menu Grid */
.more-drawer-grid {
  display: grid;
  gap: 14px;
}

.more-drawer-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.more-drawer-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.more-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
}

.more-drawer-item:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* ---- 8. Responsive Breakpoints ---- */
@media (max-width: 960px) {
  .app-shell {
    display: block;
    width: 100%;
  }
  .sidebar {
    display: none;
  }
  .main-panel {
    margin-left: 0;
    width: 100%;
    padding-bottom: calc(var(--mobile-nav-h, 4.25rem) + 0.85rem + env(safe-area-inset-bottom));
  }
  body.pos-fullscreen .main-panel {
    padding-bottom: calc(var(--pos-cart-bar-h, 4.25rem) + 0.85rem + env(safe-area-inset-bottom));
  }
  body.pos-fullscreen .mobile-nav {
    display: none !important;
  }
  .topbar {
    width: 100%;
    padding: 0.45rem 14px;
    gap: 0.45rem;
  }
  .topbar-left {
    display: none;
  }
  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    flex: none;
  }
  .mobile-brand .brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
  }
  .workspace-name {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 44%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    padding: 4px 8px;
    font-size: 11.5px;
    font-weight: 600;
  }
  .topbar-right {
    flex: none;
    gap: 4px;
  }
  .topbar-pos-btn {
    display: none;
  }
  .view {
    width: 100%;
    padding: 14px 14px 1.75rem;
  }

  /* Frosted 5-Tab Mobile Bottom Nav */
  .mobile-nav {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 0.375rem 2% calc(0.375rem + env(safe-area-inset-bottom));
    min-height: 64px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .mobile-nav-link {
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    min-height: 48px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px 2px;
  }
  .mobile-nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
  }
  .mobile-nav-link.is-pos-center {
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 107, 78, 0.25);
  }
  .mobile-nav-link .nav-icon svg {
    width: 19px;
    height: 19px;
  }

  /* Mobile POS Layout + Sticky Cart Bar + Drawer */
  .pos-layout {
    display: block;
  }
  .pos-layout > .cart-panel {
    display: none;
  }
  .pos-mobile-cart {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    width: 100%;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 0.625rem 14px calc(0.625rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  }
  .pos-mobile-cart-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    padding: 10px 12px;
    min-height: 46px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 700;
  }
  .mobile-cart-count {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
  }
  .pos-mobile-checkout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
  }
  .pos-mobile-checkout:disabled {
    background: #94A3B8;
    opacity: 1;
  }
  .drawer-cart {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .drawer-cart.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .drawer-cart .cart-panel {
    position: absolute;
    inset: auto 0 0 0;
    top: 6%;
    max-height: 94%;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .cart-close, .cart-add-product {
    display: block;
  }
  .cart-close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font-size: 20px;
  }
  .cart-add-product {
    padding: 8px 14px 0;
  }
  .cart-add-product .btn {
    width: 100%;
  }

  .desktop-table {
    display: none;
  }
  .product-list-mobile {
    display: grid;
  }
  .product-mobile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }
  .product-mobile-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
  }
  .product-card-menu-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    min-width: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    flex: none;
  }
  .product-mobile-info {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }
  .product-mobile-info strong {
    font-size: 14px;
    color: var(--ink);
    overflow-wrap: anywhere;
  }
  .product-mobile-info small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-mobile-side {
    display: grid;
    justify-items: end;
    gap: 3px;
    flex: none;
    min-width: 78px;
    text-align: right;
  }
}

@media (max-width: 900px) {
  .report-grid,
  .payment-donut-layout,
  .finance-debt-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-real-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }
  .real-num-card {
    padding: 13px 14px;
    gap: 4px;
  }
  .real-num-card.real-num-hero {
    grid-column: 1 / -1;
    padding: 15px 16px;
  }
  .real-num-card:not(.real-num-hero) .real-num-value {
    font-size: 18px;
  }
  .real-num-sub {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .finance-debt-placeholder {
    display: none;
  }
  .onboarding-card {
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .onboarding-head {
    margin-bottom: 8px;
  }
  .onboarding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .onboarding-step {
    padding: 8px 10px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .onboarding-step-top {
    width: auto;
    font-size: 11px;
  }
  .onboarding-step-top span:last-child {
    display: none;
  }
  .onboarding-step strong {
    font-size: 12.5px;
    line-height: 1.25;
  }
  .quick-grid,
  .daily-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .settings-areas,
  .inventory-subtabs,
  .detail-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
    gap: 4px;
    background: var(--surface-2, #F1F5F4);
    border: 1px solid var(--border);
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .settings-areas button,
  .inventory-subtab,
  .detail-tabs button {
    flex: none;
    white-space: nowrap;
    border: none;
    border-radius: 10px;
    min-height: 34px;
  }
  .pos-topbar {
    padding: 8px 10px;
    gap: 6px;
  }
  .pos-search-bar {
    flex: 1 1 0;
    min-width: 0;
  }
  .pos-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    padding-bottom: 1px;
  }
  .pos-topbar-chip {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
  .pos-warehouse-select {
    min-height: 32px;
    padding: 0 26px 0 10px;
    font-size: 12px;
  }
  .pos-more-dropdown {
    left: auto;
    right: 0;
    max-width: calc(100vw - 24px);
  }
  .pos-mode-bar {
    margin-bottom: 10px;
    gap: 8px;
  }
  .pos-mode-tab {
    min-height: 38px;
    padding: 6px 10px;
    text-align: center;
    justify-items: center;
  }
  .category-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 10px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .pos-category {
    flex: none;
    white-space: nowrap;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 720px) {
  .desktop-only-btn {
    display: none !important;
  }
  .desktop-only-table {
    display: none;
  }
  .mobile-only-cards {
    display: grid;
    gap: 8px;
  }
}

@media (min-width: 721px) {
  .mobile-task-actions,
  .product-secondary-actions,
  .inventory-secondary-actions {
    display: none;
  }
}

@media (max-width: 640px) {
  .report-filter-bar .segmented {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 14px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .report-filter-bar .segmented::-webkit-scrollbar {
    display: none;
  }
  .report-filter-bar .segmented button {
    flex: none;
    white-space: nowrap;
  }
  .report-date-form,
  .report-custom-range,
  .report-date-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .report-date-form > span,
  .report-custom-range > span,
  .report-date-range > span {
    display: none;
  }
  .report-date-form > button,
  .report-custom-range > button,
  .report-date-range > button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .cart-panel textarea,
  #pos-order-note {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
  }
  .stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .stat-card-top {
    min-height: 34px;
    align-items: flex-start;
  }
  .stat-grid .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }
  .pos-product {
    display: flex;
    flex-direction: column;
    min-height: 118px;
    padding: 10px;
    gap: 6px;
  }
  .pos-product-price {
    margin-top: auto;
  }
  .toolbar,
  .search-toolbar {
    width: 100%;
  }
  .toolbar > .search-box,
  .toolbar > .input-wrap,
  .toolbar > input[type='search'],
  .search-toolbar > .search-box,
  .search-toolbar > input[type='search'] {
    flex: 1 1 auto;
    min-width: 0;
  }
  .staff-person-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .staff-person-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .settings-panel .modal-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    padding: 14px 0 0;
    margin-top: 12px;
  }
  .integration-hardware-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .pos-exit-btn span {
    display: none;
  }
  .pos-exit-btn {
    width: 38px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
  }
  .pos-workspace-body {
    padding: 3.2%;
  }
  .more-drawer-items {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-heading h1 {
    font-size: 21px;
  }
}

.integration-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .integration-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.integration-status-card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.integration-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.integration-status-head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.integration-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.integration-badge.is-ok {
  background: var(--primary-soft);
  color: var(--primary);
}
.integration-badge.is-warn {
  background: #FEF3C7;
  color: #92400E;
}
.integration-badge.is-muted {
  background: var(--surface-2, #E2E8F0);
  color: var(--ink-secondary);
}
.settings-form-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 14px 0 0;
  margin-top: 14px;
}

/* ---- 9. Auxiliary Panels, Lists, Alerts, Order Details & Stock Count ---- */
.alert-list, .activity-list {
  display: grid;
  gap: 8px;
}

.alert-row, .activity-item, .notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.activity-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.activity-amount {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail-lines {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.detail-line, .detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.detail-line:last-child, .detail-total {
  border-bottom: 0;
}

.detail-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  padding-top: 8px;
}

.locked-page {
  padding: 28px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.pos-empty-start {
  min-height: 240px;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.pos-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
}

.pos-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

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

.quick-product-fields .full, .quick-product-tracking {
  grid-column: 1 / -1;
}

.quick-product-details {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.quick-product-details summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.quick-product-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.stock-count-stage { display: grid; gap: 12px; }
.stock-count-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); }
.stock-count-list { display: grid; gap: 8px; max-height: 42vh; overflow-y: auto; }
.stock-count-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.stock-count-qty { display: inline-flex; align-items: center; gap: 6px; }
.stock-count-qty input { width: 76px; min-height: 40px; text-align: center; }

.customer-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr)); gap: 10px; margin-bottom: 14px; }
.customer-stat { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.customer-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.625rem), 1fr)); gap: 10px; }
.customer-tag-list, .order-tags-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.customer-tag-chip, .order-tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--primary-border); color: var(--primary-hover); font-size: 12px; font-weight: 600; }

.catalog-more { position: relative; }
.catalog-more summary { list-style: none; cursor: pointer; }
.catalog-more summary::-webkit-details-marker { display: none; }
.catalog-more:not([open]) > div { display: none !important; }
.catalog-more[open] > div { position: absolute; right: 0; top: calc(100% + 0.375rem); z-index: 25; width: min(16.25rem, 86vw); max-width: 90vw; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); }
.catalog-more > div .btn { justify-content: flex-start; text-align: left; }

.warehouse-transfer-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.warehouse-transfer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.warehouse-transfer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.breakdown-row:last-child { border-bottom: 0; }
.lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.side-stack { display: grid; gap: 16px; }

@media (max-width: 900px) {
  .lower-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .quick-product-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .auth-card { padding: 20px 18px; }
}

/* Sapo / KiotViet-Grade Settings Hub & Apple Toggle Switches */
.settings-card {
  padding: 20px;
}

.settings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.settings-card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

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

.settings-paper-field {
  max-width: 320px;
  margin-bottom: 16px;
}

.settings-toggle-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.settings-toggle-row:last-child {
  border-bottom: 0;
}

.settings-toggle-copy {
  display: grid;
  gap: 2px;
}

.settings-toggle-copy strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.settings-toggle-copy small {
  font-size: 12.5px;
  color: var(--muted);
}

.ui-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 44px;
  height: 26px;
}

.ui-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ui-switch-track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #CBD5E1;
  transition: background-color 200ms var(--ease-apple);
}

.ui-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22);
  transition: transform 220ms var(--spring-snappy);
}

.ui-switch input:checked + .ui-switch-track {
  background: var(--primary);
}

.ui-switch input:checked + .ui-switch-track::after {
  transform: translateX(18px);
}

.ui-switch input:focus-visible + .ui-switch-track {
  outline: 3px solid rgba(15, 107, 78, 0.28);
  outline-offset: 2px;
}

.settings-partner-groups {
  display: grid;
  gap: 16px;
}

.settings-partner-group h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.settings-partner-list {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.settings-partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.settings-partner-row:last-child {
  border-bottom: 0;
}

.channel-partner-bar {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.settings-partner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.settings-partner-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.settings-partner-info small {
  display: block;
  font-size: 12px;
}

.settings-partner-badge {
  min-width: 42px;
  height: 32px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.settings-partner-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.partner-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.partner-status-pill.is-ok,
.partner-status-pill.is-ready {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.partner-apology-box {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 6px 0;
}

.partner-apology-box p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

@media (max-width: 780px) {
  .settings-bank-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Public storefront */

.lp-page,
.auth-screen.is-web-auth,
.auth-screen.is-android-welcome {
  --lp-font: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --lp-canvas: #EEF3F9;
  --lp-ink: #0F172A;
  --lp-ink-secondary: #334155;
  --lp-ink-muted: #64748B;
  --lp-blue: #0E5E46;
  --lp-blue-hover: #147A5C;
  --lp-blue-soft: rgba(14, 94, 70, 0.10);
  --lp-emerald: #0E5E46;
  --lp-emerald-soft: rgba(14, 94, 70, 0.10);
  --lp-spring-snappy: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-spring-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lp-page,
.auth-screen.is-web-auth {
  background:
    radial-gradient(1100px 640px at 12% -4%, rgba(154, 212, 192, 0.48) 0%, rgba(154, 212, 192, 0) 64%),
    radial-gradient(960px 580px at 88% 8%, rgba(174, 206, 244, 0.46) 0%, rgba(174, 206, 244, 0) 62%),
    linear-gradient(180deg, #ECF1F8 0%, #E2EAF4 50%, #E6EEF7 100%);
  color: var(--lp-ink);
  font-family: var(--lp-font);
}

.lp-ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

@media (max-width: 820px) {
  .lp-ambient-canvas {
    display: none !important;
  }
}

/* Override bare .auth-screen when acting as full Landing + Portal container */

/* Optical Liquid Glass Dual-Rim Surface */
.lp-glass {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.86) 0%, rgba(246, 250, 254, 0.68) 52%, rgba(234, 242, 250, 0.58) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(195%);
  backdrop-filter: blur(28px) saturate(195%);
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow:
    inset 0 2px 0 #FFFFFF,
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    inset 0 -1.5px 0 rgba(15, 23, 42, 0.06),
    0 32px 68px -14px rgba(15, 23, 42, 0.24),
    0 14px 30px -6px rgba(15, 23, 42, 0.13),
    0 4px 10px rgba(15, 23, 42, 0.07);
}

.lp-sheen-host {
  position: relative;
  overflow: hidden;
}

.lp-sheen-host::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 280ms ease;
  background: radial-gradient(
    460px circle at var(--sheen-x, 50%) var(--sheen-y, 0%),
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.18) 38%,
    rgba(255, 255, 255, 0) 72%
  );
  z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
  .lp-sheen-host:hover::before {
    opacity: 1;
  }
}

.lp-sheen-host > * {
  position: relative;
  z-index: 1;
}

/* Crisp Solid White Inner Card (Two-Layer Readability Architecture) */
.lp-solid-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  border: 1px solid rgba(15, 23, 42, 0.13);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    0 16px 34px -8px rgba(15, 23, 42, 0.14),
    0 6px 14px -4px rgba(15, 23, 42, 0.08),
    0 2px 4px rgba(15, 23, 42, 0.04);
}

/* Brand Lockup (Apple Silver-Obsidian + Retail Blue Precision Dot) */
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--lp-ink);
  text-decoration: none;
  cursor: pointer;
}

.lp-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #174d41 0%, #123f35 100%);
  color: #f7f8f4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px -4px rgba(18, 63, 53, 0.32);
  flex: none;
}

.lp-brand-mark svg {
  width: 24px;
  height: 24px;
}

.lp-brand-text {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--lp-ink);
}

.lp-brand-dot {
  color: var(--lp-blue);
}

/* Tactile Spring Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 240ms var(--lp-spring-elastic),
    box-shadow 240ms var(--lp-spring-snappy),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.lp-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.lp-btn:active:not(:disabled) {
  transform: scale(0.965) translateY(0);
  transition-duration: 90ms;
}

.lp-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #188867 0%, #0E5E46 65%, #0A4B38 100%);
  color: #FFFFFF;
  border-color: rgba(10, 66, 50, 0.48);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.38),
    inset 0 -2px 0 rgba(5, 38, 28, 0.42),
    0 16px 32px -6px rgba(14, 94, 70, 0.46),
    0 5px 12px -2px rgba(15, 23, 42, 0.16);
}

.lp-btn-primary::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 48%;
  transform: skewX(-22deg) translateX(0);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  transition: transform 620ms var(--lp-spring-snappy);
}

.lp-btn-primary:hover:not(:disabled)::after {
  transform: skewX(-22deg) translateX(360%);
}

.lp-btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #1C9672 0%, #106B50 65%, #0C5640 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.46),
    inset 0 -2px 0 rgba(5, 38, 28, 0.46),
    0 20px 36px -6px rgba(14, 94, 70, 0.54),
    0 6px 14px -2px rgba(15, 23, 42, 0.20);
}

.lp-btn-dark {
  background: linear-gradient(180deg, #26282E 0%, #111114 100%);
  color: #FFFFFF;
  border-color: rgba(17, 17, 20, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 26px -6px rgba(15, 23, 42, 0.30),
    0 3px 8px rgba(15, 23, 42, 0.14);
}

.lp-btn-dark:hover:not(:disabled) {
  background: linear-gradient(180deg, #30333B 0%, #191A1F 100%);
}

.lp-btn-glass {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F6FA 100%);
  color: var(--lp-ink);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    inset 0 -1.5px 0 rgba(15, 23, 42, 0.05),
    0 10px 22px -6px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06);
}

.lp-btn-glass:hover:not(:disabled) {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    0 14px 26px -6px rgba(15, 23, 42, 0.16),
    0 4px 8px rgba(15, 23, 42, 0.07);
}

.lp-btn-lg {
  min-height: 50px;
  padding: 0 26px;
  font-size: 15px;
}

/* ==========================================================================
   1. FLOATING DYNAMIC FROSTED NAVBAR
   ========================================================================== */
.lp-page {
  width: 100%;
  overflow-x: clip;
}

.lp-container {
  width: min(1260px, calc(100% - clamp(24px, 5vw, 64px)));
  margin: 0 auto;
}

.lp-header-wrap {
  position: sticky;
  top: 14px;
  z-index: 30;
  padding: clamp(8px, 1.8vw, 14px) clamp(12px, 2.5vw, 20px) 0;
}

.lp-header {
  width: min(1260px, 100%);
  margin: 0 auto;
  min-height: 66px;
  padding: 10px 14px 10px 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 16px);
  transition: background-color 240ms ease, box-shadow 240ms var(--lp-spring-snappy), border-color 240ms ease, transform 240ms var(--lp-spring-snappy);
}

.lp-header-wrap.is-scrolled .lp-header {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 254, 0.88) 100%);
  border-color: rgba(15, 23, 42, 0.17);
  box-shadow:
    inset 0 2px 0 #FFFFFF,
    0 24px 48px -12px rgba(15, 23, 42, 0.24),
    0 8px 18px -4px rgba(15, 23, 42, 0.12);
}

.lp-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.lp-nav-link {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--lp-ink-secondary);
  font-size: clamp(13px, 1.02vw, 14px);
  font-weight: 500;
  padding: 8px clamp(9px, 1vw, 15px);
  border-radius: 9999px;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 200ms var(--lp-spring-snappy);
}

.lp-nav-link:hover {
  background: rgba(255, 255, 255, 0.66);
  color: var(--lp-ink);
}

.lp-nav.has-glider .lp-nav-link.active {
  color: var(--lp-blue);
  font-weight: 700;
  background: transparent;
}

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-status-banner {
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 13px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.10);
  font-size: 14px;
  color: var(--lp-ink-secondary);
}

.lp-status-banner.error {
  background: #FEF2F2;
  border-color: rgba(220, 38, 38, 0.22);
  color: #991B1B;
}

/* ==========================================================================
   2. HERO SECTION (2-COLUMN KIOTVIET/SAPO SAAS CONVERSION + LIVE POS MOCKUP)
   ========================================================================== */
.lp-hero {
  padding: clamp(22px, 4.2vh, 48px) 0 clamp(22px, 3.8vh, 42px);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(24px, 3.5vw, 44px);
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 12px rgba(15, 23, 42, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-ink-secondary);
  margin-bottom: 22px;
}

.lp-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-blue);
  box-shadow: 0 0 0 4px rgba(14, 94, 70, 0.16);
}

.lp-hero-title {
  margin: 0;
  font-size: clamp(1.95rem, 3.8vw, 3.35rem);
  font-weight: 800;
  line-height: 1.11;
  letter-spacing: -0.038em;
  color: var(--lp-ink);
}

.lp-hero-title span {
  background: linear-gradient(180deg, #147A5C 0%, #0B4A38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero-lead {
  margin: 20px 0 28px;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--lp-ink-secondary);
  max-width: 58ch;
}

/* Quick Store Launch Form (KiotViet/Sapo Conversion Bar) */
.lp-quickstart-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    0 18px 38px -10px rgba(15, 23, 42, 0.13),
    0 4px 10px rgba(15, 23, 42, 0.05);
  max-width: 600px;
}

.lp-quickstart-form:focus-within {
  border-color: rgba(14, 94, 70, 0.45);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    0 0 0 4px rgba(14, 94, 70, 0.12),
    0 18px 38px -10px rgba(15, 23, 42, 0.14);
}

.lp-quickstart-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 15px;
  color: var(--lp-ink);
  outline: none;
}

.lp-quickstart-input::placeholder {
  color: #7A7F89;
}

.lp-hero-subactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.lp-inline-link {
  border: 0;
  background: transparent;
  padding: 6px 2px;
  font-size: 14px;
  color: var(--lp-ink-secondary);
  cursor: pointer;
}

.lp-inline-link strong {
  color: var(--lp-blue);
  font-weight: 700;
}

.lp-inline-link:hover strong {
  text-decoration: underline;
}

.lp-trust-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.lp-trust-checks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lp-ink-secondary);
}

.lp-check-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lp-emerald-soft);
  color: var(--lp-emerald);
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

/* ==========================================================================
   3. METRICS & ARCHITECTURE STRIP
   ========================================================================== */
.lp-strip-section {
  padding: 16px 0 44px;
}

.lp-strip-grid {
  border-radius: 26px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 16px;
}

.lp-strip-item {
  border-radius: 18px;
  padding: 22px 24px;
  display: grid;
  gap: 8px;
}

.lp-strip-item span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lp-blue);
}

.lp-strip-item strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-ink);
  letter-spacing: -0.02em;
}

.lp-strip-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--lp-ink-muted);
}

/* ==========================================================================
   4. BENTO FEATURE ECOSYSTEM (#lp-features)
   ========================================================================== */
.lp-section {
  padding: clamp(40px, 6vw, 68px) 0;
  scroll-margin-top: 90px;
}

.lp-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.lp-section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.15;
  color: var(--lp-ink);
}

.lp-section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--lp-ink-secondary);
}

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

.lp-bento-card {
  grid-column: span 4;
  border-radius: 26px;
  padding: clamp(26px, 2.8vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 280ms var(--lp-spring-elastic), box-shadow 280ms var(--lp-spring-snappy);
}

.lp-bento-card.span-7 {
  grid-column: span 7;
}

.lp-bento-card.span-5 {
  grid-column: span 5;
}

.lp-bento-card:hover {
  transform: translateY(-4px);
}

.lp-bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8F5F0 100%);
  border: 1px solid rgba(14, 94, 70, 0.20);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    0 10px 20px -5px rgba(14, 94, 70, 0.20),
    0 2px 6px rgba(15, 23, 42, 0.06);
  color: var(--lp-blue);
}

.lp-bento-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-bento-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
}

.lp-bento-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.66;
  max-width: 54ch;
  color: var(--lp-ink-secondary);
}

.lp-bento-preview {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
}

.lp-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--lp-ink-secondary);
  font-variant-numeric: tabular-nums;
}

.lp-preview-row strong {
  color: var(--lp-ink);
  font-weight: 700;
}

.lp-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--lp-blue-soft);
  color: var(--lp-blue);
}

.lp-pill-tag.ok {
  background: var(--lp-emerald-soft);
  color: var(--lp-emerald);
}

/* ==========================================================================
   5. MULTI-INDUSTRY SOLUTIONS (#lp-industries — KIOTVIET/SAPO TABS)
   ========================================================================== */
.lp-industry-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.lp-industry-tab {
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: rgba(255, 255, 255, 0.80);
  color: var(--lp-ink-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 220ms var(--lp-spring-snappy), border-color 220ms ease, transform 220ms var(--lp-spring-elastic);
}

.lp-industry-tab:hover {
  background: #FFFFFF;
  color: var(--lp-ink);
  transform: translateY(-1px);
}

.lp-industry-tab.active:hover {
  transform: none;
}

.lp-industry-tab.active {
  background: var(--lp-blue);
  color: #FFFFFF;
  border-color: var(--lp-blue);
  box-shadow: 0 12px 24px -6px rgba(14, 94, 70, 0.34);
}

.lp-industry-tabs.has-glider .lp-industry-tab.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #FFFFFF;
}

.lp-industry-panel {
  border-radius: 30px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 34px;
}

.lp-industry-copy h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
}

.lp-industry-copy p {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--lp-ink-secondary);
}

.lp-industry-points {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.lp-industry-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--lp-ink);
}

.lp-industry-cards {
  display: grid;
  gap: 12px;
}

.lp-industry-metric-card {
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lp-industry-metric-card strong {
  display: block;
  font-size: 15px;
  color: var(--lp-ink);
}

.lp-industry-metric-card small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--lp-ink-muted);
}

/* ==========================================================================
   6. 3-STEP ONBOARDING WORKFLOW & TRUST FOOTER
   ========================================================================== */
.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.lp-step-card {
  border-radius: 24px;
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.lp-step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lp-ink);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
}

.lp-step-card h3 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-ink);
}

.lp-step-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--lp-ink-secondary);
}

.lp-cta-banner {
  margin: 28px 0 56px;
  border-radius: 32px;
  padding: clamp(36px, 5vw, 56px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #114A3B 0%, #0E5E46 55%, #157A5C 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
    0 32px 68px -14px rgba(14, 75, 58, 0.42),
    0 12px 28px -8px rgba(15, 23, 42, 0.18);
}

.lp-cta-banner .lp-eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  box-shadow: none;
}

.lp-cta-banner .lp-eyebrow-dot {
  background: #c8f36c;
  box-shadow: 0 0 0 4px rgba(200, 243, 108, 0.22);
}

.lp-cta-banner h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  max-width: 24ch;
  color: #FFFFFF;
}

.lp-cta-banner p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
}

.lp-cta-banner .lp-btn-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF7F1 100%);
  color: #0E5E46;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 16px 32px -8px rgba(5, 38, 28, 0.45);
}

.lp-cta-banner .lp-btn-primary:hover:not(:disabled) {
  background: #FFFFFF;
}

.lp-cta-banner .lp-btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.lp-cta-banner .lp-btn-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.lp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.lp-footer {
  padding: 8px 0 44px;
  display: grid;
  gap: 28px;
}

.lp-footer-trust-strip {
  border-radius: 26px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.lp-footer-trust-card {
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  gap: 6px;
}

.lp-footer-trust-card strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lp-blue);
}

.lp-footer-trust-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-ink-secondary);
}

.lp-footer-grid {
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: start;
}

.lp-footer-brand {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.lp-footer-brand p {
  margin: 0;
  max-width: 38ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--lp-ink-secondary);
}

.lp-footer-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-footer-col {
  display: grid;
  gap: 12px;
}

.lp-footer-col h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-ink);
}

.lp-footer-links {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.lp-footer-links a,
.lp-footer-links button {
  border: 0;
  background: transparent;
  padding: 3px 0;
  color: var(--lp-ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.lp-footer-links a:hover,
.lp-footer-links button:hover {
  color: var(--lp-blue);
  text-decoration: underline;
}

.lp-footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12.5px;
  color: var(--lp-ink-muted);
}

/* ==========================================================================
   8. RESPONSIVE ADAPTATION (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 980px) {
  .lp-nav {
    display: none;
  }
  .lp-hero-grid,
  .lp-industry-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .lp-hero-copy,
  .lp-stage-wrap {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }
  .lp-bento-card,
  .lp-bento-card.span-7,
  .lp-bento-card.span-5 {
    grid-column: span 6;
  }
  .lp-bento-grid > .lp-bento-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .lp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .auth-portal-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 470px;
  }
  .auth-portal-topbar {
    max-width: 470px;
  }
  .auth-portal-aside {
    display: none;
  }
}

@media (max-width: 680px) {
  .lp-header-wrap {
    top: 8px;
    padding: 8px 12px 0;
  }
  .lp-header {
    min-height: 56px;
    padding: 8px 10px 8px 14px;
  }
  .lp-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .lp-brand-text {
    font-size: 20px;
  }
  .lp-header-actions {
    gap: 6px;
  }
  .lp-header-actions .lp-btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .lp-hero {
    padding: 22px 0 24px;
  }
  .lp-quickstart-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 8px;
  }
  .lp-quickstart-input {
    height: 44px;
    padding: 0 10px;
  }
  .lp-quickstart-form .lp-btn {
    width: 100%;
  }
  .lp-bento-card,
  .lp-bento-card.span-7,
  .lp-bento-card.span-5,
  .lp-bento-grid > .lp-bento-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    padding: 20px;
  }
  .lp-industry-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }
  .lp-section {
    padding: 40px 0;
  }
  .lp-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .auth-portal-wrap {
    padding: 12px 12px 22px;
  }
  .auth-portal-shell {
    padding: 9px;
    border-radius: 22px;
  }
  .auth-portal-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .auth-form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-portal-card .input {
    min-height: 44px;
    height: 44px;
    font-size: 16px;
  }
}

/* ==========================================================================
   9. 3D MULTI-DEVICE PERSPECTIVE HERO SHOWCASE (REAL SLINK SCREENSHOTS)
   ========================================================================== */
.lp-stage-wrap {
  position: relative;
  display: grid;
  gap: 14px;
}

.lp-stage-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lp-stage-tabs {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 8px 20px -6px rgba(15, 23, 42, 0.08);
  gap: 4px;
}

.lp-stage-tab {
  position: relative;
  z-index: 1;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--lp-ink-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 220ms var(--lp-spring-snappy);
}

.lp-stage-tab:hover {
  color: var(--lp-ink);
}

.lp-stage-tab.active {
  background: linear-gradient(180deg, #147A5C 0%, #0E5E46 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 14px -4px rgba(14, 94, 70, 0.34);
}

.lp-stage-tabs.has-glider .lp-stage-tab.active {
  background: transparent;
  box-shadow: none;
  color: #FFFFFF;
}

.lp-3d-stage {
  position: relative;
  perspective: 1550px;
  padding: clamp(8px, 1.4vw, 16px) clamp(8px, 1.8vw, 18px) clamp(16px, 2.4vw, 28px) 0;
  min-height: 0;
  display: flex;
  align-items: center;
}

.lp-3d-desktop {
  position: relative;
  width: 89%;
  border-radius: 22px;
  padding: 9px;
  background: linear-gradient(145deg, #FFFFFF 0%, #DCE4F0 55%, #BCC8DA 100%);
  border: 1.5px solid rgba(15, 23, 42, 0.20);
  box-shadow:
    inset 0 2px 0 #FFFFFF,
    7px 8px 0 -1px #C5D0E0,
    8px 9px 0 0 rgba(15, 23, 42, 0.22),
    -26px 38px 68px -12px rgba(15, 23, 42, 0.32),
    -8px 16px 28px -6px rgba(15, 23, 42, 0.18);
  transform: rotateY(calc(-11deg + var(--stage-ry, 0deg))) rotateX(calc(4.5deg + var(--stage-rx, 0deg)));
  transform-style: preserve-3d;
  transition: transform 320ms var(--lp-spring-snappy), box-shadow 520ms var(--lp-spring-snappy);
  animation: lpFloatDesktop 6.5s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .lp-3d-stage:hover .lp-3d-desktop {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-3px);
  }
}

.lp-3d-desktop-screen {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #F4F7FB;
  border: 1px solid rgba(15, 23, 42, 0.09);
}

.lp-3d-desktop-bar {
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.lp-3d-desktop-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}

.lp-3d-desktop-bar span {
  margin-left: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
}

.lp-3d-desktop-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.lp-3d-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.06) 36%,
    rgba(255, 255, 255, 0) 58%
  );
}

/* Foreground Overlapping 3D Angled Titanium / Silver Smartphone */
.lp-3d-phone-anchor {
  position: absolute;
  right: 0;
  bottom: clamp(4px, 1vw, 10px);
  width: 31%;
  min-width: 104px;
  max-width: 198px;
  z-index: 4;
  transform: translate3d(var(--phone-shift-x, 0px), var(--phone-shift-y, 0px), 0) rotateY(calc(-17deg + var(--stage-ry, 0deg))) rotateX(calc(7deg + var(--stage-rx, 0deg))) rotateZ(-2.5deg);
  transform-style: preserve-3d;
  transition: transform 360ms var(--lp-spring-elastic);
  animation: lpFloatPhone 5.8s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .lp-3d-stage:hover .lp-3d-phone-anchor {
    transform: rotateY(-10deg) rotateX(3deg) rotateZ(-1deg) translateY(-6px);
  }
}

.lp-3d-phone-body {
  position: relative;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(145deg, #F8FAFC 0%, #CBD5E1 32%, #475569 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1.5px 1px #FFFFFF,
    inset 0 -2px 4px rgba(15, 23, 42, 0.35),
    7px 7px 0 -1px #64748B,
    8px 8px 0 0 rgba(15, 23, 42, 0.32),
    -24px 34px 58px -6px rgba(15, 23, 42, 0.44),
    -8px 14px 24px -4px rgba(15, 23, 42, 0.24);
}

.lp-3d-phone-bezel {
  position: relative;
  border-radius: 28px;
  padding: 5px;
  background: #14171F;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lp-3d-phone-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #F4F7FB;
}

.lp-3d-phone-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 13px;
  border-radius: 9999px;
  background: #0F172A;
  z-index: 3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.lp-3d-phone-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
}

.lp-3d-phone-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 28px;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: 4;
}

.lp-3d-phone-shadow {
  position: absolute;
  bottom: -18px;
  left: 10%;
  width: 82%;
  height: 22px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.28);
  filter: blur(14px);
  z-index: -1;
}

.lp-stage-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.09);
  font-size: 12.5px;
  color: var(--lp-ink-secondary);
}

.lp-stage-note strong {
  color: var(--lp-ink);
}

@media (max-width: 720px) {
  .lp-stage-controls {
    justify-content: flex-start;
  }
  .lp-stage-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .lp-stage-tab {
    padding: 6px 8px;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lp-3d-stage {
    min-height: 0;
    padding: 6px 6px 16px 0;
  }
  .lp-3d-desktop {
    width: 89%;
    transform: rotateY(-5deg) rotateX(2deg);
    border-radius: 16px;
    padding: 5px;
  }
  .lp-3d-desktop-bar {
    height: 20px;
    padding: 0 8px;
  }
  .lp-3d-phone-anchor {
    width: 31%;
    min-width: 96px;
    max-width: 148px;
    bottom: 4px;
    transform: rotateY(-10deg) rotateX(4deg) rotateZ(-1.5deg);
  }
  .lp-3d-phone-body {
    border-radius: 24px;
    padding: 5px;
  }
  .lp-3d-phone-bezel {
    border-radius: 20px;
    padding: 3px;
  }
  .lp-3d-phone-screen {
    border-radius: 17px;
  }
  .lp-3d-phone-island {
    width: 36px;
    height: 9px;
    top: 5px;
  }
}

/* ==========================================================================
   ANDROID APK DOWNLOAD BUTTONS & DEDICATED DOWNLOAD SECTION
   ========================================================================== */
.lp-hero-subactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.lp-apk-hero-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  gap: 7px;
  text-decoration: none;
}



.lp-download-section {
  padding-top: 8px;
}

.lp-download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
}

.lp-download-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.lp-download-copy .lp-eyebrow {
  justify-self: start;
}

.lp-download-copy h2 {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
}

.lp-download-copy p {
  margin: 0;
  color: var(--lp-ink-secondary);
  font-size: 15px;
  line-height: 1.62;
}

.lp-download-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 4px;
}

.lp-download-points > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lp-ink);
}

.lp-download-cta-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 22px;
  border-radius: 22px;
}

.lp-download-cta-box strong {
  font-size: 18px;
  color: var(--lp-ink);
}

.lp-apk-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lp-ink-muted);
}

.lp-apk-download-cta {
  width: 100%;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  margin-top: 4px;
  white-space: normal;
  text-align: center;
}


@media (max-width: 900px) {
  .lp-download-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .lp-download-card {
    padding: 18px;
    border-radius: 22px;
  }
  .lp-download-cta-box {
    padding: 16px;
  }
  .lp-apk-hero-btn {
    width: 100%;
    justify-content: center;
  }
}


.auth-screen.is-web-landing,
.auth-screen.is-web-auth {
  display: block;
  padding: 0;
}
.lp-page { position: relative; min-height: 100vh; min-height: 100dvh; }
.lp-page::before,
.auth-screen.is-web-auth::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, #47628833 1px, transparent 1.5px) 5px 8px / 54px 54px;
}
.lp-page .lp-ambient-canvas,
.auth-screen.is-web-auth .lp-ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lp-page .lp-header-wrap {
  position: sticky;
  top: 12px;
  z-index: 40;
}
.lp-page .lp-container {
  position: relative;
  z-index: 1;
}
.lp-page [id] { scroll-margin-top: calc(var(--lp-header-h, 88px) + 18px); }
.auth-home-link { text-align: center; margin: 0 0 12px; }
@media (max-width: 420px) {
  .lp-page .lp-header-actions .lp-btn { white-space: nowrap; padding: 0 10px; font-size: 12px; min-height: 36px; }
}

/* ==========================================================================
   10. UNIVERSAL GLIDING TAB PILL, SCROLL REVEALS & MOTION CHOREOGRAPHY
   ========================================================================== */
.has-glider {
  position: relative;
}

.has-glider > button {
  position: relative;
  z-index: 1;
}

.slink-tab-glider {
  position: absolute;
  left: var(--glider-left, 0%);
  top: var(--glider-top, 0%);
  width: var(--glider-width, 0%);
  height: var(--glider-height, 0%);
  transform: none;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  border-radius: 9999px;
  will-change: left, width;
}

.slink-tab-glider.is-visible {
  opacity: 1;
}

.slink-tab-glider.is-ready {
  transition:
    left 320ms cubic-bezier(0.22, 1, 0.36, 1),
    top 240ms cubic-bezier(0.22, 1, 0.36, 1),
    width 320ms cubic-bezier(0.22, 1, 0.36, 1),
    height 240ms ease,
    opacity 180ms ease;
}

.lp-nav > .slink-tab-glider {
  background: rgba(14, 94, 70, 0.11);
  border: 1px solid rgba(14, 94, 70, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lp-stage-tabs > .slink-tab-glider,
.lp-industry-tabs > .slink-tab-glider {
  background: linear-gradient(180deg, #168363 0%, #0E5E46 100%);
  box-shadow: 0 8px 20px -5px rgba(14, 94, 70, 0.38);
}

.auth-mode-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #EFF4F9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
}

.auth-mode-tabs > .slink-tab-glider {
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
}

.auth-mode-tabs.has-glider .auth-mode-tab {
  position: relative;
  z-index: 1;
  background: transparent;
  cursor: pointer;
}

.auth-mode-tabs.has-glider .auth-mode-tab.active {
  background: transparent;
  box-shadow: none;
  color: var(--lp-blue);
}

.workspace-tabs > .slink-tab-glider,
.inventory-stock-filters > .slink-tab-glider,
.inventory-subtabs > .slink-tab-glider,
.settings-areas > .slink-tab-glider {
  border-radius: 10px;
  background: var(--primary);
  box-shadow: 0 4px 10px -2px rgba(15, 107, 78, 0.28);
}

.detail-tabs > .slink-tab-glider {
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 4px 10px -2px rgba(15, 107, 78, 0.28);
}

.workspace-tabs.has-glider button[aria-current='page'],
.workspace-tabs.has-glider button[aria-pressed='true'],
.workspace-tabs.has-glider button.active,
.inventory-stock-filters.has-glider button[aria-pressed='true'],
.inventory-stock-filters.has-glider button.active,
.inventory-subtabs.has-glider .inventory-subtab.active,
.detail-tabs.has-glider button.active,
.settings-areas.has-glider button.active,
.settings-areas.has-glider button[aria-selected='true'] {
  background: transparent;
  box-shadow: none;
  color: #FFFFFF;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition:
    opacity 540ms var(--lp-spring-snappy) var(--reveal-delay, 0ms),
    transform 620ms var(--lp-spring-snappy) var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.is-morphing {
  animation: lpMorphIn 380ms var(--lp-spring-snappy) both;
}

@keyframes lpMorphIn {
  from { opacity: 0.35; transform: translateY(6px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lpFloatDesktop {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes lpFloatPhone {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes slinkAuthSwap {
  from { opacity: 0.4; transform: translateY(8px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   11. LIVING 2-COLUMN WEB AUTH PORTAL (LOGIN / REGISTER / RESET / INVITE)
   ========================================================================== */
.auth-portal-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2.2vh, 24px) clamp(14px, 3vw, 24px);
}

.auth-portal-topbar {
  width: min(940px, 100%);
  margin: 0 auto clamp(12px, 2vh, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-portal-main {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
}

.auth-portal-shell {
  width: min(940px, 100%);
  border-radius: 28px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 14px;
  align-items: stretch;
}

.auth-portal-aside {
  padding: clamp(20px, 2.4vw, 26px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.72) 0%, rgba(232, 242, 250, 0.56) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 #FFFFFF;
}

.auth-aside-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 5px 11px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid rgba(14, 94, 70, 0.16);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lp-blue);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.08);
}

.auth-portal-aside h2 {
  margin: 10px 0 6px;
  font-size: clamp(1.2rem, 1.8vw, 1.48rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
}

.auth-portal-aside p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lp-ink-secondary);
}

.auth-aside-showcase {
  position: relative;
  padding: 6px 4px 10px;
  perspective: 900px;
}

.auth-aside-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #F4F7FB;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    0 20px 38px -12px rgba(15, 23, 42, 0.24),
    0 4px 10px -2px rgba(15, 23, 42, 0.10);
  transform: rotateY(4deg) rotateX(2.5deg);
  transition: transform 420ms var(--lp-spring-snappy);
}

@media (hover: hover) and (pointer: fine) {
  .auth-portal-shell:hover .auth-aside-frame {
    transform: rotateY(1.5deg) rotateX(1deg) translateY(-2px);
  }
}

.auth-aside-showcase-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.4;
  object-fit: cover;
  object-position: top left;
}

.auth-aside-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 94, 70, 0.18);
  box-shadow: 0 10px 20px -6px rgba(15, 23, 42, 0.18);
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-blue);
  white-space: nowrap;
}

.auth-aside-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.auth-aside-chip-top {
  top: 14px;
  right: -2px;
  animation: lpFloatPhone 5.4s ease-in-out infinite;
}

.auth-aside-chip-bottom {
  bottom: 2px;
  left: 6px;
  animation: lpFloatDesktop 6.2s ease-in-out infinite;
}

.auth-aside-highlights {
  display: grid;
  gap: 8px;
}

.auth-aside-item {
  padding: 9px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.auth-aside-item strong {
  display: block;
  font-size: 12.5px;
  color: var(--lp-ink);
}

.auth-aside-item small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--lp-ink-muted);
}

.auth-aside-apk {
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-aside-apk .lp-inline-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lp-blue);
}

.auth-portal-card {
  border-radius: 20px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
}

.auth-portal-card.is-swapping {
  animation: slinkAuthSwap 320ms var(--lp-spring-snappy) both;
}

.auth-portal-card h1 {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
}

.auth-portal-subtitle {
  margin: 4px 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--lp-ink-muted);
}

.auth-portal-card .auth-message {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #ECFDF5;
  border: 1px solid rgba(14, 94, 70, 0.22);
  color: #065F46;
  font-size: 13px;
  line-height: 1.5;
}

.auth-portal-card .auth-message.error {
  background: #FEF2F2;
  border-color: rgba(220, 38, 38, 0.22);
  color: #991B1B;
}

.auth-portal-card .auth-message a {
  color: var(--lp-blue);
  font-weight: 700;
}

.auth-portal-card .auth-form {
  display: grid;
  gap: 11px;
}

.auth-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-portal-card .input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-ink-secondary);
  margin: 0 0 4px;
}

.auth-portal-card .input {
  min-height: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #F8FAFC;
  color: var(--lp-ink);
  font-size: 14px;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.auth-portal-card .input:hover {
  border-color: rgba(15, 23, 42, 0.24);
  background: #FFFFFF;
}

.auth-portal-card .input:focus {
  border-color: var(--lp-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(14, 94, 70, 0.14);
}

.auth-portal-card .auth-password-toggle {
  color: var(--lp-ink-muted);
}

.auth-portal-card .auth-password-toggle:hover,
.auth-portal-card .auth-password-toggle:focus-visible {
  background: rgba(14, 94, 70, 0.08);
  color: var(--lp-blue);
}

.auth-password-meter {
  display: grid;
  gap: 5px;
}

.auth-password-meter-track {
  height: 5px;
  border-radius: 9999px;
  background: #E2E8F0;
  overflow: hidden;
}

.auth-password-meter-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #F59E0B;
  transition: width 220ms var(--lp-spring-snappy), background-color 220ms ease;
}

.auth-password-meter.is-strong .auth-password-meter-bar {
  background: #16A34A;
}

.auth-password-meter.is-mismatch .auth-password-meter-bar {
  background: #DC2626;
}

.auth-password-meter-hint {
  font-size: 11.5px;
  color: var(--lp-ink-muted);
}

.auth-password-meter.is-match .auth-password-meter-hint {
  color: #0E5E46;
  font-weight: 600;
}

.auth-password-meter.is-mismatch .auth-password-meter-hint {
  color: #B91C1C;
  font-weight: 600;
}

.auth-portal-card .auth-submit {
  min-height: 44px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #188867 0%, #0E5E46 65%, #0A4B38 100%);
  color: #FFFFFF;
  border: 1px solid rgba(10, 66, 50, 0.48);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.36),
    inset 0 -2px 0 rgba(5, 38, 28, 0.40),
    0 16px 32px -6px rgba(14, 94, 70, 0.44);
}

.auth-portal-card .auth-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #1C9672 0%, #106B50 65%, #0C5640 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.44),
    inset 0 -2px 0 rgba(5, 38, 28, 0.44),
    0 20px 36px -6px rgba(14, 94, 70, 0.52);
}

.auth-portal-card .auth-switch {
  width: auto;
  margin: 10px 0 0;
  padding: 4px 2px;
  min-height: 32px;
  color: var(--lp-blue);
  font-size: 13px;
  font-weight: 600;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.auth-portal-card .auth-switch:hover {
  text-decoration: underline;
}

.auth-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--lp-ink-muted, #64746c);
  font-size: 12px;
  font-weight: 600;
}

.auth-oauth-divider::before,
.auth-oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.auth-oauth-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #16221d;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.auth-oauth-btn:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(15, 107, 78, 0.36);
}

.auth-oauth-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-oauth-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.auth-portal-card .auth-footnote {
  margin-top: auto;
  padding-top: 14px;
  color: var(--lp-ink-muted);
  font-size: 12px;
  text-align: left;
}

.auth-portal-card .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 6px;
}

.auth-portal-card .legal-links a {
  color: var(--lp-ink-muted);
  font-size: 12.5px;
  text-decoration: none;
}

.auth-portal-card .legal-links a:hover {
  color: var(--lp-blue);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-portal-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }
  .auth-portal-topbar {
    max-width: 480px;
  }
  .auth-portal-aside {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-portal-wrap {
    padding: 12px 12px 22px;
  }
  .auth-portal-shell {
    padding: 9px;
    border-radius: 22px;
  }
  .auth-portal-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .auth-form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-portal-card .input {
    min-height: 44px;
    height: 44px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-3d-desktop,
  .lp-3d-phone-anchor,
  .auth-aside-chip-top,
  .auth-aside-chip-bottom,
  .auth-portal-card.is-swapping,
  .is-morphing {
    animation: none !important;
  }
  .slink-tab-glider.is-ready,
  [data-reveal],
  .lp-btn,
  .lp-btn-primary::after {
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- VietQR Fullscreen, AI Quick-Order & OCR ---- */
.settings-vietqr-preview {
  margin-top: 14px;
}

.modal-vietqr-fullscreen .modal-card {
  max-width: 480px;
}

.modal-vietqr-fullscreen .vietqr-svg {
  width: min(260px, 70vw);
  height: auto;
}

.vietqr-fullscreen-body {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.vietqr-fullscreen-amount {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  color: var(--primary-hover, #0d5c46);
  letter-spacing: -0.02em;
}

.vietqr-fullscreen-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 360px;
}

.vietqr-fullscreen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  width: 100%;
}

.pos-ai-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.pos-ai-input-wrap {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

.pos-ai-input-wrap .input {
  flex: 1 1 160px;
  min-width: 0;
}

.pos-ai-mic-btn.is-listening {
  border-color: #d93025;
  color: #b3261e;
  background: rgba(217, 48, 37, 0.08);
}

.pos-ai-status {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
}

.pos-ai-status.is-error {
  color: #b3261e;
}

.receive-ai-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.receive-ai-status {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
}

.receive-ai-status.is-error {
  color: #b3261e;
}

/* Receipt review lives alongside the editable purchase form. */
[data-receive-ai-review] { display: grid; gap: 10px; margin-block: 8px; }
[data-receive-ai-review][hidden] { display: none; }
[data-photo-summary] { padding: 10px; margin: 0; background: var(--surface-subtle); border-radius: 8px; overflow-wrap: anywhere; }
[data-receive-ai-review] img { display: block; max-width: 100%; max-height: 60vh; object-fit: contain; margin-inline: auto; }
[data-receive-lines] > summary, [data-receive-ai-review] summary { cursor: pointer; min-height: 36px; font-weight: 650; }
.photo-line-needs-review { border-inline-start: 3px solid var(--warning, #854410); }
.photo-unit-check:not([hidden]) { display: flex; align-items: center; gap: 8px; min-height: 40px; }
[data-photo-product-editor] { margin-top: 10px; }
