:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --surface-warm: #fff8eb;
  --ink: #102033;
  --muted: #637387;
  --line: #d7e2ef;
  --brand: #0b5ed7;
  --brand-dark: #030144;
  --brand-mid: #071178;
  --accent: #ffb72c;
  --accent-soft: #fff0cc;
  --success: #0d8a6a;
  --danger: #b3261e;
  --info: #245f9d;
  --shadow: 0 14px 36px rgba(16, 32, 51, 0.1);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 0, rgba(255, 183, 44, 0.16), transparent 28%),
    linear-gradient(180deg, #edf5ff 0, #f7f9fd 240px, #f5f8fc 100%);
}

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

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 86px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 12px 14px 10px;
  background:
    radial-gradient(circle at 85% 0, rgba(18, 100, 216, 0.36), transparent 36%),
    linear-gradient(135deg, #030144 0%, #071178 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(3, 1, 68, 0.22);
}

.brand-row,
.section-head,
.row,
.product-actions,
.cart-line,
.order-head,
.admin-toolbar,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-head {
  align-items: flex-start;
  margin-bottom: 10px;
}

.brand-lockup {
  display: grid;
  gap: 2px;
}

.brand-logo-button {
  min-width: 0;
  flex: 0 1 auto;
  width: min(72vw, 330px);
  max-width: calc(100vw - 104px);
  min-height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}

.brand-logo-button img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.brand-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-tag {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark,
.icon-button,
.nav-item,
.qty-button {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.brand-mark {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-color: transparent;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(18, 100, 216, 0.22);
}

.icon-button {
  font-weight: 800;
}

.topbar .icon-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cart-dot {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  background: var(--accent);
  color: #2e2100;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #030144;
}

.topbar .search-input {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(3, 1, 68, 0.18);
}

.topbar .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.topbar-promo {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-top: 1px;
  scrollbar-width: none;
}

.topbar-promo::-webkit-scrollbar {
  display: none;
}

.topbar-promo span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-input,
.field,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.search-input:focus,
.field:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 100, 216, 0.14);
}

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

.button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 100, 216, 0.16);
  text-decoration: none;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.warning {
  background: var(--accent);
  color: #2e2100;
}

.button.danger {
  background: var(--danger);
}

.button:disabled,
.icon-button:disabled,
.qty-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.wide {
  width: 100%;
}

.main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.mobile-band {
  margin: 0 -14px 14px;
  padding: 18px 14px 20px;
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 183, 44, 0.34), transparent 27%),
    radial-gradient(circle at 4% 86%, rgba(13, 138, 106, 0.2), transparent 30%),
    linear-gradient(135deg, #030144, #071178 58%, #0b5ed7);
  border-bottom: 0;
  color: #fff;
}

.mobile-band .lede {
  color: rgba(255, 255, 255, 0.82);
}

.headline {
  margin: 0 0 6px;
  font-size: clamp(26px, 9vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.section-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 40px;
  white-space: nowrap;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(18, 100, 216, 0.18);
}

.quick-picks {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.06);
}

.quick-picks > span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.quick-picks div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-picks div::-webkit-scrollbar {
  display: none;
}

.quick-picks button {
  min-height: 36px;
  white-space: nowrap;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 94, 215, 0.18);
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hero-stats span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.hero-showcase {
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-product {
  position: relative;
  min-height: 154px;
  display: grid;
  grid-template-columns: 1fr 132px;
  grid-template-rows: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.hero-product span,
.hero-product small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.hero-product strong {
  align-self: end;
  font-size: 18px;
  line-height: 1.1;
}

.hero-product img {
  grid-column: 2;
  grid-row: 1 / 4;
  width: 132px;
  height: 132px;
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.trust-strip div {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 94, 215, 0.07), transparent 58%),
    var(--surface);
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.06);
}

.trust-strip strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 12px;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.category-tile {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(18, 100, 216, 0.08), rgba(255, 255, 255, 0.96)),
    var(--surface);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.06);
  cursor: pointer;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.72;
}

.category-tile span {
  color: var(--brand-dark);
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.carousel {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.carousel-card {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
  min-height: 278px;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 183, 44, 0.34), transparent 24%),
    linear-gradient(145deg, rgba(8, 59, 130, 0.98), rgba(18, 100, 216, 0.92)),
    var(--brand-dark);
  box-shadow: var(--shadow);
}

.carousel-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  align-content: end;
}

.carousel-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.carousel-price {
  font-size: 20px;
  font-weight: 900;
}

.carousel-card .product-meta {
  color: rgba(255, 255, 255, 0.78);
}

.carousel-image {
  width: min(62vw, 280px);
  aspect-ratio: 1 / 0.82;
  justify-self: end;
  align-self: start;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.carousel-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.dot {
  min-width: 9px;
  min-height: 9px;
  padding: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #b7c7da;
  cursor: pointer;
}

.dot.active {
  width: 24px;
  background: var(--brand);
}

.carousel-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 38%);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.carousel-thumb {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.carousel-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(18, 100, 216, 0.13);
}

.carousel-thumb img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
}

.carousel-thumb span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shop-section {
  margin: 0 0 18px;
}

.section-action {
  min-height: 40px;
  padding-inline: 12px;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 46%);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.product-rail::-webkit-scrollbar {
  display: none;
}

.filter-panel,
.form-grid,
.admin-grid,
.dashboard-grid,
.product-grid,
.cart-list,
.order-list,
.customer-list,
.service-admin-form {
  display: grid;
  gap: 12px;
}

.filter-panel {
  margin: 0 0 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.file-field {
  padding: 10px;
}

.full-span {
  grid-column: 1 / -1;
}

.product-grid {
  grid-template-columns: 1fr;
}

.product-card,
.cart-item,
.order-card,
.dashboard-card,
.customer-card,
.admin-product {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  scroll-snap-align: start;
}

.product-card:active {
  transform: scale(0.99);
  border-color: rgba(18, 100, 216, 0.36);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 0.82;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 183, 44, 0.2), transparent 26%),
    var(--surface-2);
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-card:active .product-image {
  transform: scale(1.02);
}

.image-fade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(16, 32, 51, 0), rgba(16, 32, 51, 0.42));
  pointer-events: none;
}

.condition-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.product-body,
.cart-item,
.order-card,
.dashboard-card,
.customer-card,
.admin-product {
  padding: 14px;
}

.product-body {
  display: grid;
  gap: 8px;
}

.product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.product-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.status-row.compact {
  margin: 8px 0 0;
}

.rail-card .status-row.compact {
  display: none;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.spec-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.spec-pills::-webkit-scrollbar {
  display: none;
}

.spec-pills span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 8px;
  border-radius: 999px;
  background: #f7f9fd;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.price {
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-dark);
}

.old-price {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.badge:not(.warn):not(.danger) {
  border: 1px solid rgba(18, 100, 216, 0.12);
}

.badge.warn {
  background: #fff3d6;
  color: #6c4700;
}

.badge.danger {
  background: #ffe7e5;
  color: var(--danger);
}

.badge.deal {
  background: #fff1cf;
  color: #704800;
  border-color: rgba(255, 183, 44, 0.38);
}

.detail-gallery {
  margin: -14px -14px 14px;
  background: var(--surface-2);
}

.detail-gallery img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

.detail-content {
  display: grid;
  gap: 14px;
}

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

.spec {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.05);
}

.spec strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.sticky-actions {
  position: sticky;
  bottom: 76px;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  margin: 0 -8px;
  background: rgba(246, 248, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
}

.cart-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.qty {
  display: inline-grid;
  grid-template-columns: 44px 44px 44px;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-button {
  border-radius: 0;
  border: 0;
  background: var(--surface-2);
  font-weight: 900;
}

.summary {
  position: sticky;
  bottom: 76px;
  z-index: 12;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

form.form-grid,
.auth-panel,
.checkout-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary .small {
  color: rgba(255, 255, 255, 0.76);
}

.order-steps,
.support-panel,
.policy-panel {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.step-grid div {
  min-height: 86px;
  display: grid;
  gap: 7px;
  align-content: center;
  justify-items: center;
  padding: 10px 8px;
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}

.step-grid strong {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 13px;
}

.step-grid span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.support-panel {
  display: grid;
  gap: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 183, 44, 0.28), transparent 28%),
    linear-gradient(135deg, #04105e, #030144);
  border-color: rgba(255, 255, 255, 0.1);
}

.support-panel .section-note {
  color: rgba(255, 255, 255, 0.76);
}

.support-panel .hero-kicker {
  margin-bottom: 8px;
}

.founder-preview,
.founder-profile,
.manager-card,
.values-grid article,
.receipt-paper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.founder-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px;
}

.founder-preview img {
  width: 96px;
  height: 112px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.founder-preview .hero-kicker,
.founder-profile .hero-kicker {
  margin: 0 0 8px;
  background: var(--surface-2);
  color: var(--brand-dark);
}

.founder-preview .button {
  min-height: 42px;
  margin-top: 10px;
  padding-inline: 12px;
}

.about-main {
  display: grid;
  gap: 14px;
}

.about-hero {
  margin-bottom: 0;
}

.founder-profile {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.founder-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  background: var(--surface-2);
}

.founder-copy {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.founder-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.manager-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(11, 94, 215, 0.08), transparent 62%),
    var(--surface);
}

.values-grid {
  display: grid;
  gap: 10px;
}

.values-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.values-grid strong {
  color: var(--brand-dark);
}

.values-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-hero {
  margin-bottom: 14px;
}

.service-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.service-tabs::-webkit-scrollbar {
  display: none;
}

.service-form {
  margin-bottom: 18px;
}

.form-divider {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.form-divider strong {
  color: var(--brand-dark);
}

.form-divider span {
  color: var(--muted);
  font-size: 12px;
}

.service-result,
.service-ticket {
  display: grid;
  gap: 10px;
}

.service-ticket strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.swap-options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 42%);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.swap-options::-webkit-scrollbar {
  display: none;
}

.swap-options article {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.swap-options img {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-2);
}

.swap-options strong,
.swap-options span {
  font-size: 12px;
  line-height: 1.2;
}

.service-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.service-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.service-admin-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 2px;
}

.mode-toggle .chip {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  white-space: normal;
  line-height: 1.2;
}

.mode-toggle .chip:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.catalogue-preview {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 94, 215, 0.07), transparent 58%),
    var(--surface);
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.06);
}

.catalogue-preview img {
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.catalogue-preview > div {
  display: grid;
  gap: 8px;
}

.policy-grid {
  display: grid;
  gap: 10px;
}

.policy-grid div {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f8fbff;
}

.policy-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

.policy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty {
  display: grid;
  gap: 10px;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.auth-panel,
.checkout-panel,
.admin-panel {
  display: grid;
  gap: 14px;
}

.message {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 13px;
}

.message.error {
  background: #ffe7e5;
  color: var(--danger);
  border-color: #ffc5c0;
}

.dashboard-card strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
  color: var(--brand-dark);
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tab {
  min-height: 42px;
  padding: 0 6px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.tab.active {
  background: var(--brand);
  color: #fff;
}

.admin-product {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
}

.admin-product img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.receipt-main {
  display: grid;
  gap: 12px;
}

.receipt-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.receipt-paper {
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(238, 245, 255, 0.7), transparent 160px),
    var(--surface);
}

.receipt-header {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-dark);
}

.receipt-brand {
  display: grid;
  gap: 6px;
}

.receipt-brand img {
  width: min(78vw, 318px);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.receipt-brand span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.receipt-meta strong {
  color: var(--brand);
  font-size: 13px;
}

.receipt-status {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 900;
}

.receipt-status.paid {
  background: #e5fff6;
  color: var(--success);
}

.receipt-status.unpaid {
  background: #ffe7e5;
  color: var(--danger);
}

.receipt-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.receipt-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.receipt-grid span,
.receipt-totals span,
.receipt-signature span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.receipt-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.receipt-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--surface);
}

.receipt-table th,
.receipt-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.receipt-table th {
  background: var(--brand-dark);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
}

.receipt-table td:first-child,
.receipt-table td:nth-child(3),
.receipt-table th:first-child,
.receipt-table th:nth-child(3) {
  text-align: center;
}

.receipt-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.receipt-totals {
  display: grid;
  gap: 8px;
  margin-left: auto;
}

.receipt-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.receipt-totals .grand {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.receipt-totals .grand span,
.receipt-totals .grand strong {
  color: #fff;
}

.receipt-totals .words {
  display: grid;
  align-items: start;
}

.receipt-bottom {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.receipt-note {
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.receipt-note strong {
  color: var(--brand);
  font-size: 12px;
}

.receipt-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.receipt-signature {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}

.receipt-signature img {
  width: 156px;
  height: 86px;
  object-fit: contain;
}

.receipt-signature strong {
  font-size: 12px;
}

.receipt-signature small {
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
}

.receipt-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--brand-dark);
  text-align: center;
  color: var(--brand);
  letter-spacing: 0;
}

.nav-item {
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  background: transparent;
  border-color: transparent;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.nav-label {
  line-height: 1;
}

.nav-item.active {
  color: var(--brand);
  background: var(--surface-2);
  border-color: var(--line);
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 86px;
  z-index: 40;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.hide {
  display: none;
}

@media (min-width: 680px) {
  .topbar {
    grid-template-columns: 1fr minmax(280px, 520px);
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
  }

  .topbar-promo {
    display: flex;
    grid-column: 1 / -1;
  }

  .main {
    padding: 22px 24px;
  }

  .mobile-band {
    margin-left: -24px;
    margin-right: -24px;
    padding: 24px;
  }

  .hero-showcase {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
  }

  .hero-product {
    min-height: 260px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    align-content: end;
  }

  .hero-product img {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: 190px;
    height: 150px;
  }

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

  .founder-preview {
    grid-template-columns: 120px 1fr;
    padding: 14px;
  }

  .founder-preview img {
    width: 120px;
    height: 136px;
  }

  .founder-profile {
    grid-template-columns: 310px 1fr;
    align-items: stretch;
  }

  .founder-photo {
    height: 100%;
    max-height: none;
  }

  .manager-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

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

  .receipt-paper {
    padding: 24px;
  }

  .receipt-header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .receipt-meta {
    justify-items: end;
    text-align: right;
  }

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

  .receipt-totals {
    width: min(100%, 440px);
  }

  .receipt-bottom {
    grid-template-columns: 1fr 260px;
    align-items: stretch;
  }

  .catalogue-preview {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }

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

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

  .carousel-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 280px;
  }

  .carousel-image {
    order: 2;
    width: 280px;
  }

  .product-rail {
    grid-auto-columns: minmax(190px, 24%);
  }

  .sticky-actions,
  .summary {
    bottom: 88px;
  }

}

@media (min-width: 420px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-actions {
    align-items: stretch;
  }

  .product-actions .button {
    min-height: 44px;
    padding-inline: 10px;
  }
}

@media (min-width: 980px) {
  .app-shell {
    padding-bottom: 0;
  }

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

  .product-rail {
    grid-auto-columns: minmax(210px, 22%);
  }

  .admin-grid {
    grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
    align-items: start;
  }

  .bottom-nav {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 620px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

}

@media print {
  :root {
    background: #fff;
  }

  body {
    background: #fff;
  }

  .topbar,
  .bottom-nav,
  .toast,
  .no-print {
    display: none !important;
  }

  .app-shell {
    min-height: auto;
    padding-bottom: 0;
  }

  .main {
    width: 100%;
    padding: 0;
  }

  .receipt-paper {
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .receipt-table {
    min-width: 0;
  }

  .receipt-table-wrap {
    overflow: visible;
  }

  .receipt-header {
    grid-template-columns: 1fr auto;
  }

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

  .receipt-bottom {
    grid-template-columns: 1fr 240px;
  }
}
