:root {
  --font-main: "Inter", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --color-bg: #07111f;
  --color-bg-soft: #0d1b2f;
  --color-primary: #35a7ff;
  --color-primary-hover: #67c3ff;
  --color-text: #f4f7fb;
  --color-muted: #94a8bf;
  --color-card: rgba(17, 31, 52, 0.78);
  --color-border: rgba(148, 168, 191, 0.22);
  --color-success: #31d48b;
  --color-danger: #ff5f6d;
  --color-warning: #f6c85f;
  --radius-card: 8px;
  --shadow-card: 0 18px 55px rgba(0, 0, 0, 0.32);
  --transition-fast: 160ms ease;
  --home-bg: #050b14;
  --home-card: rgba(10, 20, 36, 0.84);
  --home-border: rgba(71, 136, 255, 0.18);
  --home-primary: #2f7dff;
  --home-text: #f4f7fb;
  --home-muted: #a0afc5;
  --home-glow: 0 0 36px rgba(47, 125, 255, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(53, 167, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, var(--color-bg) 0%, #0a1728 48%, #111827 100%);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-text);
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(7, 17, 31, 0.76);
  color: var(--color-text);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(53, 167, 255, 0.16);
}

button {
  cursor: pointer;
}

.site-frame,
.home-frame,
.public-shell {
  width: min(calc(100% - 40px), 1480px);
  margin: 0 auto;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background: rgba(4, 12, 23, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.home-frame,
.public-shell {
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.app-sidebar {
  position: relative;
  padding: 0 34px;
  background: transparent;
  backdrop-filter: none;
}

.app-sidebar-menu {
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(10, 21, 37, 0.76);
}

.app-sidebar-menu[open] {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.app-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.site-nav {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.app-sidebar-toggle::-webkit-details-marker {
  display: none;
}

.app-sidebar-brand {
  display: grid;
  gap: 2px;
  padding: 0 16px 14px;
}

.app-sidebar-brand strong {
  font-size: 16px;
}

.app-sidebar-brand span {
  color: var(--color-muted);
  font-size: 13px;
}

.app-sidebar-row {
  display: none;
  gap: 12px;
  padding: 0 12px 12px;
}

.app-sidebar-menu[open] .app-sidebar-row {
  display: grid;
}

.app-sidebar-nav {
  display: grid;
  gap: 8px;
}

.app-sidebar-nav a {
  display: block;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  color: var(--color-muted);
  padding: 10px 12px;
}

.app-sidebar-nav a:hover,
.app-sidebar-nav a.active {
  border-color: rgba(53, 167, 255, 0.28);
  background: rgba(53, 167, 255, 0.12);
  box-shadow: 0 0 24px rgba(53, 167, 255, 0.09);
  color: var(--color-text);
}

.app-main {
  min-width: 0;
  padding: 0 34px;
}

.admin-content {
  margin-top: 34px;
  padding-bottom: 34px;
}

.public-page,
.admin-login-shell {
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 125, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(78, 187, 255, 0.11), transparent 22rem),
    linear-gradient(180deg, #02060d 0%, #06101c 32%, var(--home-bg) 100%);
}

.public-page::before,
.admin-login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 46%, transparent 100%);
  opacity: 0.35;
}

.admin-login-frame {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  border: 1px solid var(--home-border);
  border-radius: 28px;
  background: rgba(4, 12, 23, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.app-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.app-topbar p {
  margin: 6px 0 0;
}

.app-card {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.app-card-body {
  padding: 22px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.app-table {
  min-width: 760px;
}

.app-table tbody tr {
  transition: background var(--transition-fast);
}

.app-table tbody tr:hover {
  background: rgba(53, 167, 255, 0.06);
}

.app-button,
.app-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(53, 167, 255, 0.42);
  border-radius: var(--radius-card);
  padding: 8px 13px;
  color: #06111e;
  background: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.app-button:hover {
  background: var(--color-primary-hover);
  color: #06111e;
  box-shadow: 0 0 24px rgba(53, 167, 255, 0.18);
}

.app-button-secondary {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.app-button-secondary:hover {
  border-color: rgba(53, 167, 255, 0.45);
  background: rgba(53, 167, 255, 0.12);
  color: var(--color-text);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
}

.badge-success {
  border-color: rgba(49, 212, 139, 0.38);
  background: rgba(49, 212, 139, 0.12);
  color: var(--color-success);
}

.badge-danger {
  border-color: rgba(255, 95, 109, 0.42);
  background: rgba(255, 95, 109, 0.12);
  color: var(--color-danger);
}

.badge-warning {
  border-color: rgba(246, 200, 95, 0.42);
  background: rgba(246, 200, 95, 0.12);
  color: var(--color-warning);
}

.badge-muted {
  background: rgba(148, 168, 191, 0.1);
  color: var(--color-muted);
}

.form-group {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.app-form {
  display: grid;
  gap: 16px;
}

.app-form > div {
  display: grid;
  gap: 7px;
}

.app-form label {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.app-form input[type="checkbox"] {
  width: auto;
}

.app-form p {
  margin: 0;
}

.app-notice {
  margin: 0 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  color: var(--color-text);
}

.app-notice-info {
  border-color: rgba(53, 167, 255, 0.32);
  background: rgba(53, 167, 255, 0.12);
}

.app-notice-error {
  border-color: rgba(255, 95, 109, 0.34);
  background: rgba(255, 95, 109, 0.12);
}

.admin-login-page {
  display: grid;
  place-items: center;
  padding: 40px 16px 48px;
}

.admin-login-card {
  width: min(100%, 420px);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.96), rgba(8, 18, 32, 0.88)),
    var(--color-card);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38);
}

.admin-login-header {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  text-align: center;
}

.admin-login-kicker {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-login-header p {
  margin: 0;
}

.admin-login-card .app-card-body {
  padding: 28px;
}

.admin-login-card .app-button {
  width: 100%;
  min-height: 44px;
}

.admin-login-password {
  position: relative;
}

.admin-login-password input {
  padding-right: 88px;
}

.admin-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-size: 18px;
}

.admin-login-password-toggle:hover {
  border-color: rgba(53, 167, 255, 0.45);
  background: rgba(53, 167, 255, 0.12);
}

.admin-login-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-login-help {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
}

.public-home {
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 125, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(78, 187, 255, 0.11), transparent 22rem),
    linear-gradient(180deg, #02060d 0%, #06101c 32%, var(--home-bg) 100%);
}

.public-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 46%, transparent 100%);
  opacity: 0.35;
}

.home-frame {
  position: relative;
  z-index: 1;
}

.home-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(47, 125, 255, 0.12);
  background: rgba(5, 11, 20, 0.74);
  backdrop-filter: blur(16px);
}

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--home-text);
  font-weight: 800;
}

.home-logo:hover {
  color: var(--home-text);
}

.home-logo-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(47, 125, 255, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(86, 170, 255, 0.8), rgba(16, 84, 182, 0.2) 58%, transparent 60%),
    rgba(8, 18, 32, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), var(--home-glow);
}

.home-logo-text {
  display: grid;
  gap: 1px;
}

.home-logo-text strong {
  font-size: 14px;
  text-transform: uppercase;
}

.home-logo-text span {
  color: var(--home-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.home-nav-links a {
  position: relative;
  color: var(--home-muted);
  font-size: 14px;
}

.home-nav-links a:hover,
.home-nav-links a.active {
  color: var(--home-text);
}

.home-nav-links a.active::after,
.home-nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  border-radius: 999px;
  background: var(--home-primary);
  box-shadow: var(--home-glow);
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-admin-link {
  min-height: 46px;
  border-color: rgba(47, 125, 255, 0.44);
  background: linear-gradient(180deg, rgba(36, 113, 255, 0.88), rgba(21, 77, 170, 0.92));
  color: #f8fbff;
  box-shadow: var(--home-glow);
}

.home-admin-link:hover {
  color: #f8fbff;
}

.site-nav-session-form {
  margin: 0;
}

.site-nav-session-button {
  gap: 8px;
}

.site-nav-session-button svg,
.main-nav-panel-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav-panel-link {
  gap: 8px;
}

.home-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: rgba(12, 22, 39, 0.92);
  color: var(--home-text);
  cursor: pointer;
}

.home-menu-toggle__icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.28fr);
  gap: 28px;
  padding: 34px 34px 16px;
}

.home-hero-copy {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 26px 14px 10px 8px;
}

.home-eyebrow {
  color: rgba(244, 247, 251, 0.68);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-copy h1 {
  max-width: 560px;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.98;
}

.home-highlight {
  color: var(--home-primary);
}

.home-hero-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--home-muted);
  font-size: 20px;
}

.home-access-block {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.home-access-block strong {
  color: var(--home-text);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.home-access-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 21, 37, 0.92), rgba(8, 16, 29, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-access-icon {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(47, 125, 255, 0.28);
  border-radius: 18px;
  background: rgba(8, 18, 32, 0.9);
  position: relative;
}

.home-access-icon::before,
.home-access-icon::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(244, 247, 251, 0.92);
  border-radius: 8px;
}

.home-access-icon.search::before {
  inset: 12px 16px 16px 12px;
  border-radius: 999px;
}

.home-access-icon.search::after {
  inset: auto 12px 12px auto;
  width: 14px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.92);
  transform: rotate(45deg);
  transform-origin: center;
}

.home-access-card h3 {
  font-size: 28px;
}

.home-access-card p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
}

.home-sku-form {
  display: grid;
  gap: 10px;
}

.home-sku-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.home-sku-form input {
  min-height: 46px;
  background: rgba(6, 13, 24, 0.92);
}

.home-sku-form button,
.home-qr-link {
  min-height: 46px;
}

.home-qr-link {
  width: 100%;
}

.home-scanner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  justify-content: center;
  align-content: center;
  padding: 16px;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
}

.home-scanner[hidden] {
  display: none !important;
}

.home-scanner.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.home-scanner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.78);
  backdrop-filter: blur(12px);
}

.home-scanner__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 580px);
  max-height: min(88vh, 760px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(71, 136, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.95), rgba(8, 16, 28, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  overflow: auto;
}

.home-scanner__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.home-scanner__header > div {
  display: grid;
  gap: 4px;
}

.home-scanner__eyebrow {
  color: rgba(244, 247, 251, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-scanner__text,
.home-scanner__message {
  margin: 0;
  text-align: left;
}

.home-scanner__intro,
.home-scanner__active {
  display: grid;
  gap: 14px;
}

.home-scanner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.home-scanner__message {
  color: var(--home-text);
  font-size: 14px;
}

.home-scanner__reader {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid rgba(71, 136, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(47, 125, 255, 0.14), transparent 18rem),
    rgba(4, 12, 23, 0.94);
}

.home-scanner__reader > div {
  width: 100%;
}

.home-scanner__reader video,
.home-scanner__reader canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border-radius: 18px;
}

.home-scanner__reader video {
  object-fit: cover;
}

.home-scanner__reader img {
  display: none !important;
}

body.home-scanner-open {
  overflow: hidden;
}

.home-alert {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
}

.home-alert[hidden] {
  display: none !important;
}

.home-alert.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.home-alert__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.78);
  backdrop-filter: blur(12px);
}

.home-alert__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid rgba(71, 136, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.95), rgba(8, 16, 28, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.home-alert__header,
.home-alert__body {
  display: grid;
  gap: 10px;
}

.home-alert__eyebrow {
  color: rgba(244, 247, 251, 0.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-alert__text {
  margin: 0;
  color: var(--home-muted);
}

.home-alert__actions {
  display: flex;
  justify-content: flex-start;
}

body.home-alert-open {
  overflow: hidden;
}

.home-hero-visual {
  position: relative;
  min-height: 640px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(47, 125, 255, 0.14);
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 125, 255, 0.18), transparent 32rem),
    linear-gradient(180deg, rgba(6, 16, 30, 0.68), rgba(5, 11, 20, 0.92));
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 15, 0.08), rgba(3, 8, 15, 0.56));
  z-index: 1;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-float {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: min(44%, 330px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(6, 14, 25, 0.85);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.home-hero-float img {
  display: block;
  width: 100%;
  height: auto;
}

.home-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(47, 125, 255, 0.08);
}

.home-benefit {
  display: grid;
  gap: 8px;
  padding: 22px 26px;
  border-right: 1px solid rgba(47, 125, 255, 0.08);
}

.home-benefit:last-child {
  border-right: 0;
}

.home-benefit-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 247, 251, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.home-benefit-icon::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid rgba(244, 247, 251, 0.9);
  border-radius: 10px;
}

.home-benefit h3,
.home-technical-card h3,
.home-side-card h3 {
  font-size: 20px;
}

.home-benefit p,
.home-technical-card p,
.home-metric p,
.home-side-card li,
.home-footer {
  color: var(--home-muted);
}

.home-section {
  padding: 34px;
}

.home-section-header {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.home-section-header h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.home-section-header p {
  max-width: 620px;
  margin: 0;
}

.home-technical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-technical-card,
.home-side-card,
.home-metric {
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: var(--home-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.home-technical-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.home-technical-icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(244, 247, 251, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.home-technical-icon::before,
.home-technical-icon::after {
  content: "";
  position: absolute;
}

.home-technical-icon.manuales::before {
  inset: 12px 14px;
  border: 2px solid rgba(244, 247, 251, 0.9);
  border-radius: 8px 4px 4px 8px;
}

.home-technical-icon.manuales::after {
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(244, 247, 251, 0.9);
  transform: translateX(-50%);
}

.home-technical-icon.garantia::before {
  left: 14px;
  right: 14px;
  top: 10px;
  bottom: 12px;
  border: 2px solid rgba(244, 247, 251, 0.9);
  border-radius: 14px 14px 18px 18px;
  clip-path: polygon(50% 0%, 100% 18%, 100% 72%, 50% 100%, 0% 72%, 0% 18%);
}

.home-technical-icon.garantia::after {
  width: 14px;
  height: 8px;
  left: 20px;
  top: 26px;
  border-left: 2px solid rgba(244, 247, 251, 0.9);
  border-bottom: 2px solid rgba(244, 247, 251, 0.9);
  transform: rotate(-45deg);
}

.home-technical-icon.procedimientos::before {
  left: 15px;
  right: 15px;
  top: 11px;
  bottom: 11px;
  border: 2px solid rgba(244, 247, 251, 0.9);
  border-radius: 10px;
}

.home-technical-icon.procedimientos::after {
  left: 21px;
  right: 21px;
  top: 21px;
  height: 2px;
  background: rgba(244, 247, 251, 0.9);
  box-shadow: 0 8px 0 rgba(244, 247, 251, 0.9), 0 16px 0 rgba(244, 247, 251, 0.9);
}

.home-technical-link {
  color: var(--home-primary);
  font-weight: 700;
}

.home-platform {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 320px;
  gap: 22px;
}

.home-dashboard-card {
  border: 1px solid var(--home-border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.82), rgba(8, 16, 28, 0.88));
  overflow: hidden;
}

.home-dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 8px;
}

.home-dashboard-toolbar strong {
  color: var(--home-text);
}

.home-dashboard-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  padding: 0 18px 18px;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 20px;
}

.home-metric {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.home-metric strong {
  font-size: 14px;
  color: var(--home-text);
}

.home-metric span {
  color: var(--home-text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.home-side-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.home-side-card img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  border-radius: 18px;
}

.home-side-card ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-side-card li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  position: relative;
}

.home-side-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--home-primary);
  box-shadow: var(--home-glow);
}

.home-side-card li strong {
  color: var(--home-text);
}

.home-footer {
  padding: 0 34px 28px;
  text-align: center;
  font-size: 14px;
}

.legal-page {
  padding: 24px 34px 34px;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 32px;
  border: 1px solid var(--home-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.92), rgba(8, 16, 29, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--home-glow);
}

.legal-page-title {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  color: var(--home-text);
}

.legal-content {
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content--empty {
  margin: 0;
  color: var(--home-text);
}

.legal-content > :first-child {
  margin-top: 0;
}

.legal-content > :last-child {
  margin-bottom: 0;
}

.legal-content h1 {
  margin: 0 0 18px;
  color: var(--home-text);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

.legal-content h2 {
  margin: 28px 0 14px;
  color: var(--home-text);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 1.4rem;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content li::marker {
  color: var(--home-primary);
}

.legal-content strong {
  color: var(--home-text);
  font-weight: 700;
}

.legal-content hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid rgba(71, 136, 255, 0.22);
}

.legal-content a {
  color: var(--home-primary);
}

.legal-content a:hover {
  color: #8eb8ff;
}

@media (min-width: 768px) {
  .app-sidebar-menu {
    display: block;
    padding: 12px 16px;
  }

  .app-sidebar-toggle {
    display: none;
  }

  .app-sidebar-brand {
    padding: 0;
  }

  .app-sidebar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    margin-top: 16px;
  }

  .app-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 860px) {
  .app-main {
    padding: 0 16px;
  }

  .app-shell,
  .public-page,
  .admin-login-shell,
  .public-home {
    margin: 0;
    padding: 10px;
  }

  .site-frame,
  .public-shell,
  .admin-login-frame,
  .home-frame {
    width: 100%;
    border-radius: 22px;
  }

  .app-sidebar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-topbar {
    display: grid;
  }

  .home-nav {
    top: 8px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo toggle"
      "links links"
      "actions actions";
    align-items: center;
    gap: 12px 16px;
  }

  .home-logo {
    grid-area: logo;
  }

  .home-menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    flex-direction: row;
    justify-self: end;
    align-self: center;
  }

  .home-nav-links,
  .home-nav-actions {
    display: none;
    width: 100%;
  }

  .home-nav-links {
    grid-area: links;
  }

  .home-nav-actions {
    grid-area: actions;
  }

  .home-nav.is-open .home-nav-links,
  .home-nav.is-open .home-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .home-nav.is-open .home-nav-links {
    gap: 14px;
    padding-top: 4px;
  }

  .home-nav-links a {
    text-align: right;
  }

  .home-nav-links a.active::after,
  .home-nav-links a:hover::after {
    bottom: -6px;
  }

  .home-nav.is-open .home-nav-actions {
    gap: 10px;
    padding-top: 2px;
  }

  .home-admin-link,
  .main-nav-panel-link {
    width: auto;
    max-width: 100%;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 16px 10px;
  }

  .home-hero-copy {
    padding: 4px 2px;
  }

  .home-hero-copy h1 {
    font-size: 46px;
  }

  .home-hero-copy p {
    font-size: 18px;
  }

  .home-access-grid {
    grid-template-columns: 1fr;
  }

  .home-sku-form-row {
    grid-template-columns: 1fr;
  }

  .home-scanner__dialog {
    width: min(100%, 420px);
    max-height: calc(100vh - 32px);
    padding: 18px;
    border-radius: 24px;
    margin: auto;
  }

  .home-scanner__actions {
    display: grid;
  }

  .home-scanner__actions .app-button,
  .home-scanner__actions .app-button-secondary,
  .home-scanner__header .app-button-secondary {
    width: 100%;
  }

  .home-scanner__header {
    display: grid;
  }

  .home-alert__dialog {
    width: min(100%, 420px);
    padding: 18px;
    border-radius: 24px;
  }

  .home-hero-visual {
    min-height: 320px;
  }

  .home-hero-float {
    width: 46%;
    right: 10px;
    bottom: 10px;
  }

  .home-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 0;
  }

  .home-benefit {
    justify-items: center;
    align-content: center;
    min-height: 138px;
    padding: 18px 14px;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(11, 21, 37, 0.92), rgba(8, 16, 29, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    text-align: center;
  }

  .home-benefit:nth-child(2n) {
    border-right: 1px solid var(--home-border);
  }

  .home-benefit p,
  .home-technical-card p,
  .home-technical-link {
    display: none;
  }

  .home-benefit-icon,
  .home-technical-icon {
    width: 56px;
    height: 56px;
  }

  .home-benefit h3,
  .home-technical-card h3 {
    font-size: 16px;
    text-align: center;
  }

  .home-section,
  .home-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .legal-page {
    padding: 18px 16px 24px;
  }

  .legal-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .home-platform,
  .home-metrics {
    grid-template-columns: 1fr;
  }

  .home-technical-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .home-technical-card {
    justify-items: center;
    align-content: center;
    min-height: 142px;
    padding: 16px 12px;
    text-align: center;
  }

  .home-dashboard-preview {
    aspect-ratio: 16 / 10;
  }

  .admin-login-card {
    width: min(100%, 390px);
  }
}

@media (max-width: 560px) {
  .admin-login-page {
    padding: 24px 12px 28px;
  }

  .admin-login-card {
    width: min(100%, 360px);
  }

  .admin-login-card .app-card-body {
    padding: 22px 18px;
  }

  .home-scanner {
    padding: 12px;
    place-items: center;
    justify-content: center;
    align-content: center;
  }

  .home-scanner__dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 20px;
  }

  .home-scanner__header,
  .home-scanner__intro,
  .home-scanner__active {
    justify-items: start;
  }

  .home-scanner__text,
  .home-scanner__message,
  .home-scanner__eyebrow,
  .home-scanner__header h2 {
    text-align: left;
  }

  .home-scanner__reader {
    min-height: 240px;
  }

  .home-alert {
    padding: 12px;
  }

  .home-alert__dialog {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .home-logo-text strong {
    font-size: 13px;
  }

  .home-logo-text span {
    font-size: 10px;
  }

  .home-hero-copy h1 {
    font-size: 38px;
  }

  .home-benefits {
    grid-template-columns: 1fr 1fr;
  }

  .home-technical-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-benefit h3,
  .home-technical-card h3,
  .home-side-card h3 {
    font-size: 18px;
  }

  .home-benefit h3,
  .home-technical-card h3 {
    font-size: 15px;
    line-height: 1.15;
  }
}
