/**
 * License Hub storefront 1.3.9 — HARD contrast lock
 * Dark page + dark cards + light ink. Search input is white with dark text.
 * Never inherit light-on-light from broken template tokens.
 */
@import url('https://fonts.bunny.net/css?family=source-sans-3:400,500,600,700|source-serif-4:600,700&display=swap');

.lh-store {
  /* Locked palette — do not re-bind to light --imp-surface + light --imp-fg */
  --lh-fg: #e8eef7;
  --lh-bg: #0b1220;
  --lh-heading: #f8fafc;
  --lh-muted: #94a3b8;
  --lh-card: #111827;
  --lh-card-elev: #1a2332;
  --lh-line: rgba(226, 232, 240, 0.16);
  --lh-link: #7dd3fc;
  --lh-accent: #deff85;
  --lh-accent2: #059669;
  --lh-warn: #f0b429;
  --lh-radius: 14px;
  --lh-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  --lh-ink-on-accent: #0b1220;
  --lh-input-bg: #ffffff;
  --lh-input-fg: #0b1220;
  --lh-input-ph: #334155;

  font-family: var(--nf-font-body, "Source Sans 3", system-ui, sans-serif);
  color: var(--lh-fg);
  background: #0b1220 !important;
  min-height: calc(100dvh - 4.25rem);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 72px;
  position: relative;
  color-scheme: dark;
  transition: opacity 160ms ease, transform 160ms ease;
}

.lh-store.lh-soft-leaving,
.lh-store.lh-soft-entering {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.lh-store.lh-soft-ready {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .lh-store { transition: none; }
}

.lh-store * { box-sizing: border-box; }

.lh-store-wrap {
  width: min(100% - 2rem, 1680px);
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 2rem) 24px;
}

.lh-hero {
  padding: clamp(28px, 5vw, 56px) 0 22px;
  display: grid;
  gap: 0.55rem;
}
.lh-hero h1 {
  font-family: var(--nf-font-display, "Source Serif 4", Georgia, serif);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.08;
  color: var(--lh-heading) !important;
  font-weight: 700;
}
.lh-hero p {
  margin: 0;
  color: var(--lh-muted) !important;
  max-width: 52ch;
  font-size: 1.05rem;
}

.lh-store-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 24px;
}
.lh-store-bar form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}
.lh-store-bar input[type="search"],
.lh-store .lh-store-bar input[type="search"] {
  flex: 1;
  border: 1px solid #cbd5e1 !important;
  background: var(--lh-input-bg) !important;
  color: var(--lh-input-fg) !important;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  caret-color: var(--lh-input-fg);
}
.lh-store-bar input[type="search"]::placeholder,
.lh-store .lh-store-bar input[type="search"]::placeholder {
  color: var(--lh-input-ph) !important;
  opacity: 1 !important;
}
.lh-store-bar input[type="search"]:focus {
  outline: none;
  border-color: #84cc16 !important;
  box-shadow: 0 0 0 3px rgba(222, 255, 133, 0.35);
}

.lh-btn,
.lh-store a.lh-btn,
.lh-store button.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: var(--lh-ink-on-accent) !important;
  background: var(--lh-accent) !important;
  box-shadow: 0 10px 26px rgba(222, 255, 133, 0.22);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.lh-btn:hover { filter: brightness(1.05); color: var(--lh-ink-on-accent) !important; }
.lh-btn:active { transform: translateY(1px); }

/* Outline on dark page — light text, never white-fill + white-text */
.lh-btn-ghost,
.lh-store a.lh-btn-ghost,
.lh-store button.lh-btn-ghost {
  background: transparent !important;
  border: 1.5px solid rgba(232, 238, 247, 0.55) !important;
  box-shadow: none;
  color: #f8fafc !important;
}
.lh-btn-ghost:hover {
  background: rgba(248, 250, 252, 0.08) !important;
  color: #f8fafc !important;
  filter: none;
}

/* Cart trigger: solid lime like Accedi */
.lh-cart-trigger,
.lh-store button.lh-cart-trigger,
.lh-store .lh-btn.lh-cart-trigger {
  background: var(--lh-accent) !important;
  border: none !important;
  color: var(--lh-ink-on-accent) !important;
  box-shadow: 0 10px 26px rgba(222, 255, 133, 0.22);
}
.lh-cart-trigger:hover {
  color: var(--lh-ink-on-accent) !important;
  filter: brightness(1.05);
}

.lh-btn-accent2 {
  background: linear-gradient(135deg, var(--lh-accent2), #047857) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(5, 150, 105, 0.25);
}
.lh-btn-accent2:hover { color: #fff !important; }
.lh-btn-sm { padding: 8px 14px; font-size: .88rem; min-height: 2.4rem; }

.lh-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.lh-card,
.lh-store a.lh-card {
  background: var(--lh-card) !important;
  border: 1px solid var(--lh-line) !important;
  border-radius: var(--lh-radius);
  overflow: hidden;
  box-shadow: var(--lh-shadow);
  transition: transform .25s ease, border-color .25s ease;
  text-decoration: none;
  color: var(--lh-fg) !important;
  display: flex;
  flex-direction: column;
}
.lh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(222, 255, 133, 0.45) !important;
  color: var(--lh-fg) !important;
}
.lh-card-media {
  aspect-ratio: 16/10;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(222, 255, 133, 0.18), transparent 55%),
    radial-gradient(90% 80% at 95% 20%, rgba(125, 211, 252, 0.16), transparent 50%),
    linear-gradient(145deg, #152033, var(--lh-card)) !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.lh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lh-card-ph {
  display: grid;
  place-items: center;
  gap: 0.55rem;
  padding: 1rem;
  text-align: center;
  width: 100%;
  height: 100%;
}
.lh-card-ph-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--lh-accent) !important;
  color: var(--lh-ink-on-accent) !important;
  box-shadow: 0 10px 24px rgba(222, 255, 133, 0.25);
}
.lh-card-ph-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lh-card-ph-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc !important;
  max-width: 16ch;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.lh-card-media--hosting {
  background:
    radial-gradient(100% 80% at 15% 10%, rgba(56, 189, 248, 0.22), transparent 55%),
    linear-gradient(150deg, #132738, var(--lh-card)) !important;
}
.lh-card-media--mail {
  background:
    radial-gradient(100% 80% at 80% 0%, rgba(222, 255, 133, 0.2), transparent 55%),
    linear-gradient(150deg, #123028, var(--lh-card)) !important;
}
.lh-card-media--tv {
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(56, 189, 248, 0.2), transparent 55%),
    linear-gradient(160deg, #152033, var(--lh-card)) !important;
}
.lh-card-media--license {
  background:
    radial-gradient(100% 80% at 20% 0%, rgba(222, 255, 133, 0.18), transparent 55%),
    linear-gradient(145deg, #1a2434, var(--lh-card)) !important;
}

.lh-card-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 8px;
  background: var(--lh-card) !important;
}
.lh-card-body h3,
.lh-store .lh-card-body h3 {
  font-family: var(--nf-font-body, "Source Sans 3", system-ui, sans-serif);
  font-size: 1.12rem;
  margin: 0;
  color: #f8fafc !important;
  font-weight: 700;
}
.lh-card-body p,
.lh-store .lh-card-body p {
  margin: 0;
  color: #94a3b8 !important;
  font-size: .92rem;
  min-height: 2.6em;
}
.lh-price,
.lh-store .lh-price {
  font-family: var(--nf-font-display, "Source Serif 4", Georgia, serif);
  font-size: 1.35rem;
  color: #7dd3fc !important;
  font-weight: 700;
}

/* PDP */
.lh-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  padding-top: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .lh-pdp { grid-template-columns: 1fr; }
}
.lh-gallery {
  background: var(--lh-card);
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius);
  overflow: hidden;
  box-shadow: var(--lh-shadow);
}
.lh-gallery-main {
  aspect-ratio: 1.1;
  background:
    radial-gradient(90% 70% at 20% 10%, rgba(222, 255, 133, 0.16), transparent 55%),
    var(--lh-card-elev);
  display: grid;
  place-items: center;
}
.lh-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.lh-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}
.lh-thumbs button {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--lh-line);
  overflow: hidden;
  padding: 0;
  background: var(--lh-card-elev);
  cursor: pointer;
}
.lh-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lh-buybox {
  position: sticky;
  top: 18px;
  background: var(--lh-card) !important;
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius);
  padding: 20px;
  box-shadow: var(--lh-shadow);
  display: grid;
  gap: 12px;
  color: var(--lh-fg);
}
.lh-buybox h1 {
  font-family: var(--nf-font-display, "Source Serif 4", Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: -.02em;
  color: var(--lh-heading) !important;
}
.lh-buybox .lh-muted { color: var(--lh-muted) !important; font-size: .92rem; }
.lh-tier {
  display: grid;
  gap: 8px;
}
.lh-tier label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lh-line);
  background: var(--lh-card-elev);
  cursor: pointer;
  color: var(--lh-fg) !important;
}
.lh-tier input { accent-color: var(--lh-accent); }
.lh-tier-detail {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--lh-line);
  background: rgba(222, 255, 133, 0.08);
}
.lh-tier-detail__title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--lh-heading) !important;
}
.lh-tier-detail__features {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  color: var(--lh-muted) !important;
  font-size: .92rem;
}
.lh-tier-detail__features li { margin-bottom: 4px; }
.lh-tier-detail__demo { width: 100%; margin-top: 4px; }
.lh-actions { display: grid; gap: 8px; }
.lh-actions .lh-btn { width: 100%; }

.lh-tabs {
  margin-top: 28px;
  background: var(--lh-card);
  border: 1px solid var(--lh-line);
  border-radius: var(--lh-radius);
  overflow: hidden;
}
.lh-tabbar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--lh-line);
  overflow-x: auto;
}
.lh-tabbar button {
  background: transparent;
  border: none;
  color: var(--lh-muted);
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
}
.lh-tabbar button.active {
  color: var(--lh-heading) !important;
  box-shadow: inset 0 -2px 0 var(--lh-accent);
}
.lh-tabpanel { padding: 20px; display: none; color: var(--lh-fg); }
.lh-tabpanel.active { display: block; }
.lh-tabpanel .lh-prose {
  line-height: 1.65;
  color: var(--lh-fg) !important;
}
.lh-compare {
  width: 100%;
  border-collapse: collapse;
}
.lh-compare th, .lh-compare td {
  border-bottom: 1px solid var(--lh-line);
  padding: 10px 8px;
  text-align: left;
  font-size: .92rem;
  color: var(--lh-fg) !important;
}
.lh-geo {
  background: rgba(222, 255, 133, 0.08);
  border: 1px solid var(--lh-line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.lh-geo h3 { margin: 0 0 8px; color: var(--lh-heading) !important; }
.lh-geo ul { margin: 0; padding-left: 18px; color: var(--lh-muted) !important; }

.lh-cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--lh-card);
  border-radius: var(--lh-radius);
  overflow: hidden;
  border: 1px solid var(--lh-line);
}
.lh-cart-table th, .lh-cart-table td {
  padding: 14px;
  border-bottom: 1px solid var(--lh-line);
  text-align: left;
  color: var(--lh-fg) !important;
}
.lh-checkout-gateways {
  display: grid;
  gap: 10px;
}
.lh-gateway {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--lh-line);
  background: var(--lh-card-elev);
  cursor: pointer;
  color: var(--lh-fg) !important;
}
.lh-gateway input { accent-color: var(--lh-accent); }
.lh-gateway-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  padding: .35rem .5rem;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--lh-line);
  color: var(--lh-muted);
}
.lh-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--lh-muted) !important;
}

/* Cart drawer */
.lh-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100200;
  pointer-events: none;
}
.lh-cart-drawer:not([hidden]) {
  pointer-events: auto;
}
.lh-cart-drawer[hidden] {
  display: none !important;
}
.lh-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.lh-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: var(--lh-card) !important;
  color: var(--lh-fg) !important;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  animation: lh-cart-slide 0.28s ease;
  border-left: 1px solid var(--lh-line);
  color-scheme: dark;
}
@keyframes lh-cart-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.lh-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--lh-line);
  background: rgba(222, 255, 133, 0.08);
}
.lh-cart-drawer__head h2 {
  margin: 0;
  font-family: var(--nf-font-display, "Source Serif 4", Georgia, serif);
  font-size: 1.25rem;
  color: var(--lh-heading) !important;
}
.lh-cart-drawer__close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--lh-muted);
  width: 40px;
  height: 40px;
  border-radius: 999px;
}
.lh-cart-drawer__close:hover {
  background: rgba(222, 255, 133, 0.18);
  color: var(--lh-heading);
}
.lh-cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
}
.lh-cart-drawer__empty {
  color: var(--lh-muted);
  text-align: center;
  padding: 2rem 1rem;
  margin: 0;
}
.lh-cart-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lh-cart-drawer__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--lh-line);
  border-radius: 12px;
  background: var(--lh-card-elev);
}
.lh-cart-drawer__item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.lh-cart-drawer__item-main strong {
  font-size: 0.95rem;
  color: var(--lh-heading) !important;
}
.lh-cart-drawer__item-side {
  display: grid;
  gap: 6px;
  justify-items: end;
  align-content: start;
  font-weight: 600;
  white-space: nowrap;
  color: var(--lh-fg);
}
.lh-cart-drawer__remove {
  border: 0;
  background: transparent;
  color: var(--lh-warn);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.lh-cart-drawer__foot {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--lh-line);
  display: grid;
  gap: 8px;
  background: var(--lh-card);
}
.lh-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  color: var(--lh-muted);
}
.lh-cart-drawer__subtotal strong {
  color: var(--lh-link) !important;
  font-size: 1.15rem;
  font-family: var(--nf-font-display, "Source Serif 4", Georgia, serif);
}
.lh-cart-drawer__foot .lh-btn {
  width: 100%;
  text-align: center;
}
body.lh-cart-open {
  overflow: hidden;
}

button.lh-cart-trigger,
.lh-cart-trigger {
  cursor: pointer;
}

@media (max-width: 560px) {
  .lh-store-bar form { width: 100%; }
  .lh-store-bar .lh-btn { width: 100%; }
}

