/* Kapponi 19X9 · Interface polish 2026
   Presentation-only layer. Preserve IDs, callbacks and state classes. */
:root {
  --kp-ink: #050405;
  --kp-panel: #0b090b;
  --kp-panel-raised: #100c0f;
  --kp-line: rgba(255, 255, 255, .085);
  --kp-line-wine: rgba(157, 54, 77, .34);
  --kp-wine: #8d233d;
  --kp-wine-bright: #c6536c;
  --kp-ivory: #f4eef0;
  --kp-muted: #a69ba0;
}

/* Keep the shell calm and establish a consistent reading width. */
#mainApp {
  background: var(--kp-ink) !important;
  color: var(--kp-ivory);
}
#mainApp .top-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 68px;
  border-bottom: 1px solid var(--kp-line-wine) !important;
  background: rgba(5, 4, 5, .88) !important;
  backdrop-filter: blur(18px) saturate(1.1);
}
#mainApp .logo-small {
  letter-spacing: -.04em;
}
#mainApp .logo-small::after {
  content: 'DIGITAL STORE';
  margin-left: 9px;
  padding-left: 9px;
  border-left: 1px solid var(--kp-line);
  color: #766b71;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}
#mainApp .top-icons > button,
#mainApp .language-select {
  border: 1px solid transparent;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
#mainApp .top-icons > button:hover,
#mainApp .language-select:hover {
  border-color: var(--kp-line-wine);
  background: rgba(141, 35, 61, .13) !important;
  transform: translateY(-1px);
}
#mainApp .store-nav {
  z-index: 70;
  border-bottom: 1px solid var(--kp-line) !important;
  background: rgba(8, 7, 8, .76) !important;
  backdrop-filter: blur(14px);
}
#mainApp .store-nav-inner {
  min-height: 56px;
}
#mainApp .store-nav-link {
  position: relative;
  color: #988c93;
  transition: color .18s ease, background .18s ease;
}
#mainApp .store-nav-link.active {
  color: var(--kp-ivory) !important;
  background: rgba(141, 35, 61, .13) !important;
}
#mainApp .store-nav-link.active::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  border-radius: 3px;
  background: var(--kp-wine-bright);
  box-shadow: 0 0 14px rgba(198, 83, 108, .4);
}

/* Home: more editorial, less dashboard-like. */
#homeSection .home-command {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--kp-line-wine) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 84% 20%, rgba(141, 35, 61, .17), transparent 25rem),
    linear-gradient(135deg, #100b0e 0%, #080708 63%, #050405 100%) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32) !important;
}
#homeSection .home-command::after {
  content: 'K / 19X9';
  position: absolute;
  right: 30px;
  bottom: 22px;
  color: rgba(224, 158, 171, .27);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .3em;
}
#homeSection .home-command-copy h1,
#homeSection #shopTitle {
  max-width: 560px;
  font-size: clamp(48px, 7vw, 88px) !important;
  line-height: .91 !important;
  letter-spacing: -.07em !important;
}
#homeSection .home-command-copy h1 em,
#homeSection #shopTitle em {
  color: var(--kp-wine-bright) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
#homeSection .home-primary-action,
#homeSection .home-spotlight-link,
#homeSection .home-endcap .home-primary-action {
  border: 1px solid rgba(255, 158, 177, .18) !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #a52e4c, #64162b) !important;
  box-shadow: 0 12px 28px rgba(95, 16, 39, .24) !important;
}
#homeSection .home-secondary-action {
  border-radius: 11px !important;
  background: rgba(255, 255, 255, .025) !important;
}
#homeSection .home-spotlight {
  border: 1px solid rgba(198, 83, 108, .28) !important;
  border-radius: 18px !important;
  background: linear-gradient(155deg, rgba(30, 14, 20, .95), rgba(10, 8, 10, .96)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 20px 60px rgba(0, 0, 0, .24) !important;
}
#homeSection .home-quick-section,
#homeSection .home-reviews-new,
#homeSection .home-live-community,
#homeSection .home-endcap {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}
#homeSection .home-quick-card {
  border: 1px solid var(--kp-line) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, rgba(22, 14, 17, .9), rgba(10, 9, 10, .96)) !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
#homeSection .home-quick-card:hover {
  border-color: rgba(198, 83, 108, .48) !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(65, 14, 29, .2) !important;
}
#homeSection .home-quick-icon {
  border: 1px solid rgba(198, 83, 108, .2) !important;
  color: var(--kp-wine-bright) !important;
  background: rgba(141, 35, 61, .13) !important;
}
#homeSection .home-feature-strip {
  border-top: 1px solid var(--kp-line-wine) !important;
  border-bottom: 1px solid var(--kp-line) !important;
  background: transparent !important;
}
#homeSection .home-live-community {
  border: 1px solid var(--kp-line-wine) !important;
  border-radius: 20px !important;
  background: linear-gradient(120deg, #100b0e, #080708) !important;
}

/* Catalog and downloads: quiet surfaces, stronger product hierarchy. */
#productsSection .catalog-hero,
#downloadsSection .downloads-hero {
  border: 1px solid var(--kp-line-wine) !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, #110b0f, #080708) !important;
}
#productsSection .search-box {
  border: 1px solid var(--kp-line) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .035) !important;
}
#productsSection .search-box:focus-within {
  border-color: rgba(198, 83, 108, .58) !important;
  box-shadow: 0 0 0 4px rgba(141, 35, 61, .13) !important;
}
#catalogo .product-card,
#downloadsGrid .download-resource-card {
  border: 1px solid var(--kp-line) !important;
  border-radius: 16px !important;
  background: linear-gradient(155deg, #120d10, #090809) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18) !important;
}
#catalogo .product-card:hover,
#downloadsGrid .download-resource-card:hover {
  border-color: rgba(198, 83, 108, .48) !important;
  box-shadow: 0 18px 46px rgba(65, 14, 29, .23) !important;
  transform: translateY(-3px);
}
#productsSection .filter-btn.active,
#productsSection .filter-btn:hover {
  border-color: rgba(198, 83, 108, .42) !important;
  color: #f8e7eb !important;
  background: rgba(141, 35, 61, .22) !important;
}

/* Drawers and modals read as one product system. */
#mainApp .account-menu,
#mainApp .cart-drawer,
#mainApp .modal-content,
#mainApp .reviews-content {
  border: 1px solid var(--kp-line-wine) !important;
  background: linear-gradient(155deg, #120d10, #080708) !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .65) !important;
}
#mainApp .account-menu-item {
  border-color: transparent !important;
  border-radius: 10px !important;
}
#mainApp .account-menu-item:hover {
  border-color: var(--kp-line-wine) !important;
  background: rgba(141, 35, 61, .12) !important;
}
#mainApp :where(.auth-btn, .continue-btn, .checkout-btn, .review-submit-btn, .contact-btn) {
  border-radius: 11px !important;
}

@media (max-width: 760px) {
  #mainApp .logo-small::after { display: none; }
  #homeSection .home-command-copy h1,
  #homeSection #shopTitle { font-size: clamp(46px, 15vw, 68px) !important; }
  #homeSection .home-command::after { right: 18px; bottom: 16px; }
  #homeSection .home-quick-section,
  #homeSection .home-reviews-new,
  #homeSection .home-live-community,
  #homeSection .home-endcap { width: calc(100% - 28px); }
  #mainApp .store-nav-link.active::after { right: 9px; left: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  #mainApp * { transition-duration: .01ms !important; }
}
