:root {
  --bg: #050914;
  --surface: rgba(15, 23, 42, .86);
  --surface-strong: rgba(10, 16, 30, .96);
  --line: rgba(151, 166, 255, .24);
  --text: #f7f9ff;
  --muted: #aab5ca;
  --brand: #5d7cff;
  --brand-2: #8b5cf6;
  --accent: #22d3ee;
  --good: #27d98b;
  --bad: #ff5570;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, .92);
  --surface-strong: rgba(255, 255, 255, .98);
  --line: rgba(38, 63, 135, .16);
  --text: #101828;
  --muted: #5b6678;
  --brand: #345dff;
  --brand-2: #7c3aed;
  --accent: #0891b2;
  --shadow: 0 18px 60px rgba(22, 34, 74, .12);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at 76% 12%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, #152043) 0%, var(--bg) 56%, color-mix(in srgb, var(--bg) 94%, #000) 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
main { min-height: 70vh; }

.topbar {
  padding: 10px 18px;
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  font-size: 14px;
}

.site-header, .admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px clamp(14px, 4vw, 74px);
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.admin-header { position: static; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; letter-spacing: 0; white-space: nowrap; }
.logo strong span, .site-footer strong span { color: var(--brand); }
.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.nav-toggle { display: none; }
.main-nav, .admin-header nav { display: flex; align-items: center; gap: 6px; }
.main-nav a, .main-nav button, .admin-header nav a {
  border: 0;
  border-radius: 8px;
  padding: 11px 13px;
  background: transparent;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}
.main-nav a:hover, .main-nav button:hover, .admin-header nav a:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.mega-wrap { position: relative; }
.mega-menu {
  position: absolute;
  top: 46px;
  left: 0;
  width: min(760px, 92vw);
  display: none;
  grid-template-columns: 1.1fr 1.1fr .9fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.mega-wrap:hover .mega-menu { display: grid; }
.mega-menu small { display: block; margin-bottom: 10px; color: var(--muted); text-transform: uppercase; font-size: 12px; }
.mega-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 6px; }
.mega-menu a span, .mega-help span, .muted, small { color: var(--muted); }
.mega-help { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; }
.search { margin-left: auto; min-width: 220px; }
input, textarea, select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
}
.lang-select { width: auto; min-width: 76px; }
.theme-toggle, .icon-btn {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle { width: 42px; height: 42px; }
.icon-btn { width: 44px; height: 44px; font-size: 22px; }
.cart-link { white-space: nowrap; font-weight: 800; }
.cart-link b { padding: 2px 8px; border-radius: 99px; background: var(--brand-2); color: #fff; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  text-align: center;
}
.btn.ghost { background: transparent; border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); color: var(--text); }
.btn.danger { background: var(--bad); }
.flash, .error {
  max-width: 1220px;
  margin: 18px auto;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--good) 12%, transparent);
}
.flash.error, .error { border-color: color-mix(in srgb, var(--bad) 38%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.success {
  max-width: 1220px;
  margin: 18px auto;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--good) 12%, transparent);
  color: var(--text);
}
.security-code-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  margin: 8px 0;
  border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line));
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), color-mix(in srgb, var(--brand-2) 14%, transparent));
  box-shadow: 0 14px 34px rgba(79, 134, 255, .16);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .18em;
}

/* Popup designer and frontend popup */
.popup-designer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .78fr);
  gap: 24px;
  align-items: start;
}
.popup-designer-form {
  display: grid;
  gap: 18px;
}
.popup-designer-toolbar,
.popup-save-actions,
.popup-bottom-actions {
  flex-wrap: wrap;
}
.popup-save-actions,
.popup-bottom-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.popup-lang-panel {
  display: none;
  gap: 14px;
}
.popup-lang-panel.active {
  display: grid;
}
.popup-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.popup-preview-panel {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}
.popup-preview-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.popup-preview-controls button {
  border: 1px solid rgba(148,163,255,.22);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}
.popup-preview-controls button.active,
.popup-preview-controls button:hover {
  background: linear-gradient(135deg, rgba(79,134,255,.28), rgba(139,92,246,.22));
  border-color: rgba(148,163,255,.45);
}
.popup-designer-stage {
  position: relative;
  min-height: 640px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,255,.22);
  overflow: hidden;
  background: radial-gradient(circle at 18% 16%, rgba(79,134,255,.22), transparent 32%), radial-gradient(circle at 82% 12%, rgba(139,92,246,.2), transparent 30%), linear-gradient(145deg, #07111f, #0d1426 58%, #111827);
}
.popup-designer-stage.is-light {
  background: radial-gradient(circle at 18% 16%, rgba(79,134,255,.18), transparent 32%), radial-gradient(circle at 82% 12%, rgba(139,92,246,.16), transparent 30%), linear-gradient(145deg, #f8fbff, #eef3ff);
}
.popup-designer-stage[data-preview-device="tablet"] { max-width: 820px; margin-inline: auto; }
.popup-designer-stage[data-preview-device="mobile"] { max-width: 420px; margin-inline: auto; }
.popup-admin-preview { position: absolute; z-index: 2; }
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  padding: 24px;
  background: rgba(2, 6, 23, var(--popup-overlay-opacity, .62));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--popup-duration, 260ms) ease, visibility var(--popup-duration, 260ms) ease;
}
.site-popup.open { opacity: 1; visibility: visible; }
.site-popup--center { place-items: center; }
.site-popup--top-left { align-items: start; justify-items: start; }
.site-popup--top-right { align-items: start; justify-items: end; }
.site-popup--bottom-left { align-items: end; justify-items: start; }
.site-popup--bottom-right { align-items: end; justify-items: end; }
.site-popup--top-bar { align-items: start; justify-items: stretch; padding: 0; }
.site-popup--bottom-bar { align-items: end; justify-items: stretch; padding: 0; }
.site-popup--top-left,
.site-popup--top-right,
.site-popup--bottom-left,
.site-popup--bottom-right {
  background: transparent;
  pointer-events: none;
}
.site-popup--top-left section,
.site-popup--top-right section,
.site-popup--bottom-left section,
.site-popup--bottom-right section { pointer-events: auto; }
.site-popup section {
  position: relative;
  width: min(var(--popup-max-width, 560px), 100%);
  max-height: min(var(--popup-max-height, 760px), calc(100vh - 48px));
  overflow: auto;
  padding: var(--popup-padding, 30px);
  border: var(--popup-border-width, 1px) solid var(--popup-border-color, rgba(148,163,255,.28));
  border-radius: var(--popup-radius, 24px);
  background: var(--popup-gradient, var(--popup-bg, #fff));
  color: var(--popup-color, #111827);
  box-shadow: 0 34px 110px rgba(0,0,0,.46);
  font-family: var(--popup-font, Inter, Arial, sans-serif);
  text-align: var(--popup-align, left);
  transform: translateY(12px);
  transition: transform var(--popup-duration, 260ms) ease, opacity var(--popup-duration, 260ms) ease;
}
.site-popup section[data-shadow="none"] { box-shadow: none; }
.site-popup section[data-shadow="strong"] { box-shadow: 0 44px 140px rgba(0,0,0,.62); }
.site-popup section[data-shadow="glow"] { box-shadow: 0 30px 110px rgba(79,134,255,.36), 0 0 0 1px rgba(148,163,255,.18); }
.site-popup--top-bar section,
.site-popup--bottom-bar section { width: 100%; max-width: none; border-radius: 0; max-height: 70vh; }
.site-popup--zoom section { transform: scale(.94); }
.site-popup--slide-top section { transform: translateY(-38px); }
.site-popup--slide-bottom section { transform: translateY(38px); }
.site-popup--slide-left section { transform: translateX(-38px); }
.site-popup--slide-right section { transform: translateX(38px); }
.site-popup--none section,
.site-popup.open section { transform: translate(0,0) scale(1); }
.site-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148,163,255,.25);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: currentColor;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.site-popup-image {
  display: block;
  width: 100%;
  max-height: 300px;
  margin-bottom: 18px;
  border-radius: calc(var(--popup-radius, 24px) * .72);
  object-fit: cover;
}
.site-popup-image[hidden] { display: none; }
.site-popup-image--left section,
.site-popup-image--right section {
  display: grid;
  grid-template-columns: minmax(160px, .82fr) 1fr;
  gap: 24px;
  align-items: center;
}
.site-popup-image--right .site-popup-image { order: 2; }
.site-popup-image--left .site-popup-image,
.site-popup-image--right .site-popup-image { height: 100%; max-height: 460px; margin: 0; }
.site-popup-image--background .site-popup-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: inherit;
  opacity: .22;
}
.site-popup-copy,
.site-popup-form { position: relative; z-index: 1; }
.site-popup small {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(79,134,255,.12);
  color: inherit;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-popup h2 {
  margin: 0 0 10px;
  color: var(--popup-title-color, currentColor);
  font-size: var(--popup-title-size, 30px);
  line-height: 1.08;
}
.site-popup h3 {
  margin: 0 0 14px;
  color: inherit;
  font-size: calc(var(--popup-text-size, 16px) + 2px);
  opacity: .82;
}
.site-popup p,
.site-popup div {
  color: inherit;
  font-size: var(--popup-text-size, 16px);
  line-height: 1.65;
}
.site-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.site-popup-actions a,
.site-popup-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: calc(var(--popup-radius, 24px) * .56);
  padding: 12px 18px;
  font-weight: 950;
  text-decoration: none;
}
.site-popup-primary,
.site-popup-form button {
  border: 0;
  background: var(--popup-button-bg, #4f86ff);
  color: var(--popup-button-color, #fff);
}
.site-popup-secondary {
  border: 1px solid currentColor;
  background: rgba(255,255,255,.08);
  color: inherit;
}
.site-popup-form { display: grid; gap: 10px; margin-top: 16px; }
.site-popup-form input {
  min-height: 44px;
  border: 1px solid rgba(148,163,255,.26);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255,255,255,.12);
  color: inherit;
}
.popup-list-card { display: grid; gap: 12px; }
@media (max-width: 1180px) {
  .popup-designer-shell { grid-template-columns: 1fr; }
  .popup-preview-panel { position: relative; top: auto; }
}
@media (max-width: 760px) {
  .popup-check-grid,
  .popup-designer-form .ap-grid-2,
  .popup-designer-form .ap-grid-3 { grid-template-columns: 1fr; }
  .popup-save-actions,
  .popup-bottom-actions { align-items: stretch; }
  .popup-save-actions .btn,
  .popup-bottom-actions .btn { width: 100%; }
  .popup-designer-stage { min-height: 520px; }
  .site-popup { padding: 14px; }
  .site-popup section { max-height: calc(100vh - 28px); }
  .site-popup-image--left section,
  .site-popup-image--right section { display: block; }
  .site-popup-image--left .site-popup-image,
  .site-popup-image--right .site-popup-image { height: auto; margin-bottom: 18px; }
}

.tp-form-builder {
  width: min(100%, var(--form-width, 760px));
  margin: 24px auto;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--form-border, var(--line));
  border-radius: var(--form-radius, 14px);
  background: var(--form-bg, var(--panel));
  color: var(--form-text, var(--text));
  box-shadow: 0 24px 70px rgba(0,0,0,.14);
  font-size: var(--form-font, 16px);
}
.tp-form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--form-gap, 16px);
}
.tp-form-field,
.tp-form-static {
  display: grid;
  gap: 8px;
  min-width: 180px;
}
.tp-form-field.w-25, .tp-form-static.w-25 { flex: 1 1 calc(25% - var(--form-gap, 16px)); }
.tp-form-field.w-50, .tp-form-static.w-50 { flex: 1 1 calc(50% - var(--form-gap, 16px)); }
.tp-form-field.w-75, .tp-form-static.w-75 { flex: 1 1 calc(75% - var(--form-gap, 16px)); }
.tp-form-field.w-100, .tp-form-static.w-100 { flex: 1 1 100%; }
.tp-form-field span {
  font-weight: 850;
}
.tp-form-field input,
.tp-form-field textarea,
.tp-form-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--form-border, var(--line));
  border-radius: calc(var(--form-radius, 14px) * .75);
  background: var(--form-field, var(--panel));
  color: var(--form-text, var(--text));
  padding: 12px 14px;
  font: inherit;
}
.tp-form-field textarea { min-height: 130px; resize: vertical; }
.tp-form-field small { color: var(--muted); line-height: 1.5; }
.tp-form-field em {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
  color: var(--form-text, var(--text));
}
.tp-form-submit {
  margin-top: var(--form-gap, 16px);
  border: 0;
  border-radius: calc(var(--form-radius, 14px) * .8);
  background: var(--form-button, var(--brand));
  color: var(--form-button-text, #fff);
  padding: 14px 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(79,134,255,.22);
}
.tp-form-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--good) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--good) 35%, transparent);
}
.tp-form-message.error {
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  border-color: color-mix(in srgb, var(--bad) 35%, transparent);
}
.tp-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.form-preview-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.form-preview-tools button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
}
.form-preview-frame {
  margin-inline: auto;
  transition: max-width .2s ease;
}
.form-preview-frame.desktop { max-width: 100%; }
.form-preview-frame.tablet { max-width: 760px; }
.form-preview-frame.mobile { max-width: 390px; }
[data-sortable-row] { cursor: grab; }
[data-sortable-row].dragging {
  opacity: .55;
  outline: 1px dashed var(--brand);
}

@media (max-width: 760px) {
  .tp-form-field.w-25,
  .tp-form-field.w-50,
  .tp-form-field.w-75,
  .tp-form-static.w-25,
  .tp-form-static.w-50,
  .tp-form-static.w-75 { flex-basis: 100%; }
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 48px;
  align-items: center;
  padding: 74px clamp(18px, 7vw, 132px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero h1 { max-width: 720px; margin: 0 0 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1.03; letter-spacing: 0; }
.hero h1::first-line { color: var(--text); }
.hero h1 { color: var(--brand); }
.hero p { max-width: 650px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 36px; }
.trust-grid, .benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-grid div, .benefits div, .panel, .product-card, .filter-panel, .detail-image, .detail-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-strong) 80%, transparent));
  box-shadow: var(--shadow);
}
.trust-grid div, .benefits div { padding: 17px; }
.trust-grid span, .benefits span { display: block; margin-top: 5px; color: var(--muted); }
.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 18% -34%;
  background: linear-gradient(105deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, var(--brand-2) 78%, transparent), transparent);
  filter: blur(9px);
  transform: skewY(-8deg);
}
.box3d {
  position: relative;
  width: 235px;
  height: 335px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 72%, #fff);
  border-radius: 8px;
  background: linear-gradient(145deg, #1b2445, #070a14);
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 0 58px color-mix(in srgb, var(--brand) 58%, transparent);
}
.box3d span, .box3d small { color: #9aa8ff; }
.energy-ring { position: absolute; bottom: 26px; width: 370px; height: 52px; border: 8px solid var(--brand-2); border-radius: 50%; box-shadow: 0 0 42px var(--brand); }

.section-head, .page-title, .products, .benefits, .shop-layout, .detail, .cart-grid, .account-grid, .site-footer, .content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.section-head h2, .page-title h1 { margin: 0 0 8px; font-size: 34px; }
.section-head p, .page-title p { margin: 0; color: var(--muted); }
.section-head a { color: var(--brand-2); font-weight: 850; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.home-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
.product-card {
  overflow: hidden;
  position: relative;
  min-height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148,163,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 22px 70px rgba(2,6,23,.28);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139,92,246,.55);
  box-shadow: 0 28px 90px rgba(79,134,255,.25);
}
.product-image {
  position: relative;
  display: block;
  aspect-ratio: 1.65;
  background:
    radial-gradient(circle at 30% 10%, rgba(79,134,255,.28), transparent 36%),
    radial-gradient(circle at 70% 80%, rgba(139,92,246,.2), transparent 34%),
    #0c1325;
}
.product-image:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(2,6,23,.42));
  pointer-events: none;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); transition: transform .24s ease; }
.product-card:hover .product-image img { transform: scale(1.055); }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 99px; background: linear-gradient(135deg, #ffae34, #ff4f9a); color: #fff; font-size: 12px; font-weight: 950; }
.discount-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #4f86ff);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(34,197,94,.24);
}
.product-body { padding: 18px; display: grid; gap: 8px; }
.product-body h3 { min-height: 44px; margin: 0; font-size: 17px; line-height: 1.25; }
.product-body h3 a { color: var(--text); }
.product-body > p:not(.muted) { min-height: 40px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.product-no-image {
  min-height: 180px;
  display: grid;
  place-items: center;
  width: 100%;
  border: 1px solid rgba(148,163,255,.2);
  border-radius: 18px;
  padding: 18px;
  background: radial-gradient(circle at 30% 0%, rgba(79,134,255,.18), transparent 36%), rgba(255,255,255,.045);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.product-gallery button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148,163,255,.18);
}
.product-main-image {
  cursor: zoom-in;
}
.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}
.product-details-link {
  display: inline-flex;
  margin-top: 10px;
  color: #9aa8ff;
  font-weight: 900;
}
.product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.product-facts div {
  border: 1px solid rgba(148,163,255,.16);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.045);
}
.product-facts span,
.product-facts b {
  display: block;
}
.product-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.product-facts b {
  margin-top: 4px;
}
.product-reviews,
.product-extra {
  margin-top: 24px;
}
.product-reviews article {
  border-bottom: 1px solid rgba(148,163,255,.14);
  padding: 14px 0;
}
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2,6,23,.86);
}
.product-lightbox[hidden] {
  display: none;
}
.product-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 18px;
  object-fit: contain;
}
.product-lightbox button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 28px;
}
.ap-gallery-admin label.dragging {
  opacity: .55;
}
@media (max-width: 760px) {
  .product-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-facts {
    grid-template-columns: 1fr;
  }
  .product-no-image {
    min-height: 140px;
  }
}
.stars { color: #ffcc3d; margin: 9px 0 16px; }
.stars span { color: var(--muted); }
.star-picker { display:flex; gap:6px; margin-top:8px; }
.star-picker button { border:0; background:transparent; color:#ffcc3d; font-size:26px; cursor:pointer; filter:drop-shadow(0 0 10px rgba(255,204,61,.24)); }
.review-summary { display:grid; grid-template-columns: minmax(180px, .8fr) 1.4fr; gap:24px; align-items:start; }
.review-summary strong { display:block; font-size:44px; line-height:1; }
.review-bars { display:grid; gap:8px; }
.review-bars p { display:grid; grid-template-columns:80px 1fr 34px; gap:10px; align-items:center; margin:0; color:var(--muted); }
.review-bars i { height:10px; border-radius:999px; overflow:hidden; background:rgba(148,163,184,.2); }
.review-bars b { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#ffcc3d,#8b5cf6); }
.product-download-info { display:grid; gap:4px; margin:18px 0; padding:16px; border:1px solid rgba(148,163,255,.22); border-radius:16px; background:rgba(255,255,255,.05); }
.product-download-info b { color:var(--text); }
.product-download-info span, .product-download-info small { color:var(--muted); }
.product-edit-section { display:grid; gap:14px; padding:18px; border:1px solid rgba(148,163,255,.16); border-radius:18px; background:rgba(255,255,255,.04); }
.product-edit-section h2 { margin:0 0 4px; }
.product-file-status { display:grid; gap:4px; padding:14px; border-radius:16px; border:1px solid rgba(148,163,255,.22); }
.product-file-status.ok { background:rgba(34,197,94,.1); border-color:rgba(34,197,94,.35); }
.product-file-status.missing { background:rgba(239,68,68,.1); border-color:rgba(239,68,68,.35); }
.admin-review-list { display:grid; gap:14px; }
.admin-review-card { display:grid; grid-template-columns:1fr auto; gap:16px; padding:16px; border:1px solid rgba(148,163,255,.18); border-radius:18px; background:rgba(255,255,255,.04); }
.admin-review-card h3 { margin:6px 0; }
.admin-review-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-content:start; }
.review-row img { width:58px; height:58px; object-fit:cover; border-radius:14px; margin-right:12px; vertical-align:middle; }
.pill { display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; border:1px solid rgba(148,163,255,.22); }
.product-premium-hero {
  width: min(1240px, calc(100% - 40px));
  margin: 46px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 28px;
  align-items: stretch;
}
.product-media-panel,
.product-buy-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148,163,255,.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(79,134,255,.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 34px 110px rgba(2,6,23,.34);
}
.product-media-panel { padding: 22px; }
.product-media-stage {
  display: grid;
  place-items: center;
  min-height: clamp(340px, 48vw, 590px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 90%, rgba(79,134,255,.3), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(139,92,246,.22), transparent 32%),
    rgba(2,6,23,.38);
}
.product-media-stage img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,.38));
}
.product-buy-panel {
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.product-kicker span,
.product-kicker b {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,255,.24);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.product-kicker b {
  color: #fff;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  border-color: transparent;
}
.product-buy-panel h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  letter-spacing: 0;
}
.product-rating-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.product-rating-line .stars { margin: 0; }
.product-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 12px 0 0;
}
.product-price-box {
  margin: 24px 0 4px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,255,.24);
  background: rgba(2,6,23,.22);
}
.product-price-box span,
.product-price-box small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.product-price-box strong {
  display: block;
  margin: 5px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}
.product-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.product-trust-strip span {
  padding: 12px 10px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(148,163,255,.18);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.product-buy-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.product-content-grid {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 24px;
}
.product-description-panel,
.product-spec-panel {
  padding: clamp(22px, 3vw, 34px);
}
.product-description-panel h2,
.product-spec-panel h2 {
  margin-top: 0;
}
.product-description {
  color: var(--muted);
  line-height: 1.75;
}
.product-description h1,
.product-description h2,
.product-description h3 {
  color: var(--text);
}
@media (max-width: 760px) {
  .review-summary, .admin-review-card { grid-template-columns:1fr; }
  .admin-review-actions { justify-content:flex-start; }
  .product-premium-hero,
  .product-content-grid {
    width: min(100% - 24px, 1240px);
    grid-template-columns: 1fr;
  }
  .product-buy-panel { padding: 22px; }
  .product-trust-strip { grid-template-columns: 1fr; }
  .product-media-stage { min-height: 280px; }
}
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-row strong, .detail-price { font-size: 22px; }
.benefits { padding-top: 0; }
.site-banners {
  width: min(1180px, calc(100% - 40px));
  margin: 32px auto;
  display: grid;
  gap: 18px;
}
.site-banner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(148,163,255,.22);
  border-radius: 22px;
  background: radial-gradient(circle at 18% 0%, rgba(79,134,255,.22), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}
:root[data-theme="light"] .site-banner { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,246,255,.9)); box-shadow: 0 22px 60px rgba(30,45,90,.12); }
.site-banner img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 18px; border: 1px solid rgba(148,163,255,.22); }
.site-banner h2 { margin: 0 0 8px; font-size: 30px; }
.site-banner p { color: var(--muted); line-height: 1.6; }
.site-popup {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.site-popup.open { opacity: 1; visibility: visible; }
.site-popup--bottom-right,
.site-popup--bottom-left {
  align-items: end;
  background: transparent;
  pointer-events: none;
}
.site-popup--bottom-right { justify-items: end; }
.site-popup--bottom-left { justify-items: start; }
.site-popup section {
  position: relative;
  width: min(var(--popup-width, 520px), 100%);
  padding: 30px;
  border-radius: var(--popup-radius, 18px);
  background: var(--popup-bg, #ffffff);
  color: var(--popup-color, #111827);
  box-shadow: 0 34px 110px rgba(0,0,0,.48);
  pointer-events: auto;
  transform: translateY(10px);
  transition: transform .22s ease, opacity .22s ease;
}
.site-popup--small { --popup-width: 420px; }
.site-popup--medium { --popup-width: 560px; }
.site-popup--large { --popup-width: 760px; }
.site-popup--zoom section { transform: scale(.94); }
.site-popup--slide section { transform: translateY(34px); }
.site-popup.open section { transform: translateY(0) scale(1); }
.site-popup button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148,163,255,.25);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: inherit;
  cursor: pointer;
}
.site-popup img {
  display: block;
  width: 100%;
  max-height: 280px;
  margin-bottom: 18px;
  border-radius: calc(var(--popup-radius, 18px) * .72);
  object-fit: cover;
}
.site-popup small { display: inline-flex; margin-bottom: 10px; color: inherit; font-weight: 900; text-transform: uppercase; opacity: .66; }
.site-popup h2 { margin: 0 0 10px; color: inherit; line-height: 1.15; }
.site-popup p,
.site-popup div { color: inherit; line-height: 1.65; }
.site-popup section > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 18px;
  border-radius: calc(var(--popup-radius, 18px) * .75);
  padding: 12px 18px;
  background: var(--popup-button-bg, #4f86ff);
  color: var(--popup-button-color, #ffffff);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel { position: sticky; top: 90px; padding: 18px; }
.filter-panel a { display: block; padding: 10px 0; color: var(--muted); }
.detail { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: center; }
.detail-image, .detail-info { padding: 26px; }
.detail-info h1 { margin: 8px 0; font-size: 46px; }
.detail-info form { margin-top: 24px; }
.panel { padding: 22px; }
.cart-grid, .account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.cart-item, .download-row, .admin-row, .line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 86px; height: 66px; object-fit: cover; border-radius: 8px; }
.cart-item form { display: flex; gap: 10px; align-items: center; }
.cart-item input { width: 80px; }
.summary { display: grid; gap: 16px; }
.summary strong { font-size: 30px; }
.empty { color: var(--muted); }
.payment-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  cursor: pointer;
}
.payment-choice input {
  width: auto;
  margin-top: 4px;
}
.payment-choice b,
.payment-choice small {
  display: block;
}
.payment-choice small {
  margin-top: 4px;
}
.auth { width: min(470px, calc(100% - 32px)); margin: 58px auto; }
.auth form, .admin-form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 750; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
legend { padding: 0 8px; color: var(--text); font-weight: 850; }
.check { display: flex; align-items: center; }
.check input { width: auto; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-cookie-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 750;
}
.cms-page-title {
  padding-top: 56px;
  padding-bottom: 12px;
}
.cms-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto 54px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-strong) 82%, transparent));
  box-shadow: var(--shadow);
  line-height: 1.75;
}
.cms-page h2,
.cms-page h3 {
  margin-top: 1.6em;
  color: var(--text);
}
.cms-page a {
  color: var(--brand);
  font-weight: 850;
}
.cms-page ul,
.cms-page ol {
  padding-left: 24px;
}
.cookie-consent {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 260;
  display: grid;
  place-items: center;
}
.cookie-consent[hidden] { display: none; }
.cookie-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(148,163,255,.28);
  border-radius: 8px;
  padding: 22px;
  background: color-mix(in srgb, var(--surface-strong) 98%, #000);
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
:root[data-theme="light"] .cookie-panel { background: rgba(255,255,255,.98); }
.cookie-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.cookie-options {
  display: grid;
  gap: 12px;
}
.cookie-category {
  grid-template-columns: auto 1fr;
  align-items: start;
  border: 1px solid rgba(148,163,255,.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.05);
}
.cookie-category input { width: auto; margin-top: 4px; }
.cookie-category small { display: block; margin-top: 5px; line-height: 1.45; }
.cookie-table {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(148,163,255,.18);
  border-radius: 8px;
  background: rgba(148,163,255,.18);
  font-size: 13px;
}
.cookie-table span {
  padding: 9px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-page { background: var(--bg); }
.admin-main { max-width: 1280px; margin: 0 auto; padding: 32px 22px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 22px; }
.admin-cards strong { display: block; margin-top: 8px; font-size: 30px; }
.admin-grid { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-row small { display: block; margin-top: 5px; color: var(--muted); }
.admin-row form { margin: 0; }
.order-box { padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-box summary { cursor: pointer; font-weight: 850; }
.ok { color: var(--good); }
.bad { color: var(--bad); }

@media (max-width: 1180px) {
  .site-header { flex-wrap: wrap; }
  .search { order: 3; width: 100%; margin-left: 0; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .hero, .detail, .cart-grid, .account-grid, .admin-grid { grid-template-columns: 1fr; }
  .trust-grid, .benefits, .admin-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar { font-size: 12px; }
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .mega-menu { position: static; width: 100%; grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero-art { min-height: 310px; }
  .products { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .trust-grid, .benefits, .admin-cards { grid-template-columns: 1fr; }
  .section-head, .site-footer, .cart-item, .download-row, .admin-row { flex-direction: column; align-items: flex-start; }
  .cart-item form { width: 100%; flex-wrap: wrap; }
  .detail-info h1 { font-size: 34px; }
  .cookie-consent { inset: auto 10px 10px; }
  .cookie-panel { padding: 16px; }
  .cookie-table { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { width: 100%; }
}

/* Premium header */
body.menu-open { overflow: hidden; }
.premium-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 85px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 255, .18);
  background:
    linear-gradient(180deg, rgba(8, 13, 26, .82), rgba(5, 9, 20, .72)),
    radial-gradient(circle at 18% 0%, rgba(93, 124, 255, .18), transparent 34%);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}
:root[data-theme="light"] .premium-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(245, 248, 255, .76)),
    radial-gradient(circle at 18% 0%, rgba(52, 93, 255, .13), transparent 34%);
  box-shadow: 0 18px 45px rgba(30, 45, 90, .12);
}
.premium-header-inner {
  width: min(1500px, 100%);
  min-height: 85px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 74px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.premium-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}
.premium-logo strong span { color: #6f82ff; }
.premium-logo-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #4778ff 0%, #8b5cf6 100%);
  box-shadow: 0 0 28px rgba(100, 112, 255, .48);
  overflow: hidden;
}
.premium-logo-icon::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.34), transparent);
  transform: rotate(24deg);
}
.premium-logo-icon i {
  position: absolute;
  bottom: 10px;
  width: 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.45);
}
.premium-logo-icon i:nth-child(1) { left: 12px; height: 13px; }
.premium-logo-icon i:nth-child(2) { left: 20px; height: 21px; }
.premium-logo-icon i:nth-child(3) { left: 28px; height: 29px; }
.premium-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.premium-nav > a,
.premium-nav-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 14px;
  background: transparent;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-weight: 800;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.premium-nav > a:hover,
.premium-nav-button:hover,
.premium-mega-wrap:hover > .premium-nav-button,
.premium-info-wrap:hover > .premium-nav-button {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 134, 255, .18), rgba(139, 92, 246, .16));
  border-color: rgba(145, 161, 255, .22);
  box-shadow: 0 0 28px rgba(93, 124, 255, .2);
  transform: translateY(-1px);
}
:root[data-theme="light"] .premium-nav > a:hover,
:root[data-theme="light"] .premium-nav-button:hover,
:root[data-theme="light"] .premium-mega-wrap:hover > .premium-nav-button,
:root[data-theme="light"] .premium-info-wrap:hover > .premium-nav-button {
  color: #172033;
}
.premium-mega-wrap,
.premium-info-wrap {
  position: relative;
}
.premium-mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-38%) translateY(10px);
  width: min(980px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr .95fr;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(145, 161, 255, .24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(6, 10, 22, .94)),
    radial-gradient(circle at 70% 0%, rgba(91, 112, 255, .24), transparent 34%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
:root[data-theme="light"] .premium-mega {
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,245,255,.96));
  box-shadow: 0 28px 80px rgba(28, 42, 86, .18), inset 0 1px 0 rgba(255,255,255,.85);
}
.premium-mega-wrap:hover .premium-mega,
.premium-mega-wrap.open .premium-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-38%) translateY(0);
}
.premium-mega small,
.premium-info-menu small {
  display: block;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--muted) 84%, #9da8ff);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mega-category,
.mega-page,
.mega-product {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 11px 10px;
  color: var(--text);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mega-category:hover,
.mega-page:hover,
.mega-product:hover {
  background: rgba(105, 124, 255, .13);
  box-shadow: 0 12px 32px rgba(69, 92, 220, .18);
  transform: translateX(3px);
}
.mega-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(69, 134, 255, .92), rgba(139, 92, 246, .92));
  box-shadow: 0 0 20px rgba(93, 124, 255, .38);
}
.mega-product img {
  width: 54px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(145, 161, 255, .22);
  border-radius: 10px;
  background: #0b1020;
}
.mega-product span,
.mega-page {
  min-width: 0;
}
.mega-product b,
.mega-page {
  font-weight: 850;
}
.mega-product em,
.mega-page span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}
.mega-support {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(145, 161, 255, .22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 85% 12%, rgba(34, 211, 238, .18), transparent 34%),
    linear-gradient(145deg, rgba(79, 134, 255, .13), rgba(139, 92, 246, .1));
}
.mega-support p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.mega-support a {
  justify-self: start;
  color: #9aa8ff;
  font-weight: 850;
}
.premium-info-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(145, 161, 255, .22);
  border-radius: 12px;
  background: rgba(9, 14, 28, .96);
  box-shadow: 0 22px 55px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
:root[data-theme="light"] .premium-info-menu { background: rgba(255,255,255,.98); }
.premium-info-wrap:hover .premium-info-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.premium-info-menu a {
  display: block;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--text);
}
.premium-info-menu a:hover { background: rgba(105, 124, 255, .13); }
.premium-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.premium-search {
  position: relative;
  width: min(260px, 18vw);
  min-width: 190px;
}
.premium-search span {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-50%);
}
.premium-search span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 3px;
  background: var(--muted);
  transform: rotate(45deg);
}
.premium-search input {
  height: 46px;
  padding-left: 42px;
  border-color: rgba(145, 161, 255, .18);
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045)),
    radial-gradient(circle at 10% 0%, rgba(93,124,255,.18), transparent 36%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 28px rgba(0,0,0,.12);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.premium-search input:focus {
  border-color: rgba(145, 161, 255, .55);
  box-shadow: 0 0 0 4px rgba(93,124,255,.12), 0 16px 35px rgba(0,0,0,.18);
  outline: none;
}
:root[data-theme="light"] .premium-search input { background: rgba(255,255,255,.82); }
.premium-lang-dropdown { position: relative; }
.premium-lang-current {
  height: 44px;
  min-width: 126px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(145, 161, 255, .22);
  border-radius: 12px;
  padding: 0 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.premium-lang-current::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
}
.premium-lang-current span,
.premium-lang-menu span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.premium-lang-current b { font-size: 13px; }
.premium-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(145, 161, 255, .22);
  border-radius: 14px;
  background: rgba(8, 13, 26, .98);
  box-shadow: 0 24px 65px rgba(0,0,0,.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
:root[data-theme="light"] .premium-lang-menu { background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(30,45,90,.16); }
.premium-lang-dropdown.open .premium-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.premium-lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 9px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.premium-lang-menu button:hover,
.premium-lang-menu button.active {
  background: linear-gradient(135deg, rgba(79,134,255,.18), rgba(139,92,246,.16));
}
.premium-actions .lang-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.premium-theme,
.premium-cart {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 161, 255, .22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
  color: var(--text);
  cursor: pointer;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.premium-theme:hover,
.premium-cart:hover {
  border-color: rgba(145, 161, 255, .48);
  box-shadow: 0 0 28px rgba(93, 124, 255, .25);
  transform: translateY(-1px);
}
.premium-theme span {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #fff 0 28%, #8da2ff 29% 58%, #3b44a8 59% 100%);
  box-shadow: 0 0 18px rgba(145, 161, 255, .4);
}
.premium-theme span::after {
  content: "";
  position: absolute;
  inset: 4px 0 4px 11px;
  border-radius: 0 20px 20px 0;
  background: rgba(7, 10, 22, .75);
}
.premium-cart span {
  width: 20px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px 3px 7px 7px;
}
.premium-cart span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 14px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.premium-cart b {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(6, 10, 22, .92);
  border-radius: 99px;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  color: #fff;
  font-size: 11px;
}
.premium-login,
.premium-register {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 900;
  white-space: nowrap;
}
.premium-login {
  border: 1px solid rgba(145, 161, 255, .22);
  color: var(--text);
  gap: 9px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.04)),
    radial-gradient(circle at 0% 0%, rgba(93,124,255,.24), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.premium-login span {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.premium-login span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 22px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  transform: translateX(-50%);
}
.premium-register {
  color: #fff;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  box-shadow: 0 12px 30px rgba(91, 112, 255, .28);
}
.premium-login:hover,
.premium-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(93, 124, 255, .28);
}
.premium-menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(145, 161, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
}
.premium-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 3px;
  background: var(--text);
  transition: transform .22s ease, opacity .22s ease;
}
.premium-menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.premium-menu-button.open span:nth-child(2) { opacity: 0; }
.premium-menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.premium-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.premium-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1320px) {
  .premium-header-inner { gap: 12px; padding-inline: 22px; }
  .premium-nav > a,
  .premium-nav-button { padding-inline: 10px; }
  .premium-search { width: 210px; min-width: 170px; }
  .premium-lang-dropdown { display: none; }
  .premium-actions .lang-select {
    position: static;
    width: 72px;
    height: 44px;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1120px) {
  .premium-search { display: none; }
  .premium-login,
  .premium-register { padding-inline: 12px; }
}

@media (max-width: 980px) {
  .premium-header-inner { min-height: 76px; }
  .premium-header { min-height: 76px; }
  .premium-menu-button { display: block; margin-left: auto; }
  .premium-nav {
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    width: min(420px, calc(100vw - 34px));
    height: 100vh;
    display: block;
    padding: 92px 18px 24px;
    overflow: auto;
    border-left: 1px solid rgba(145, 161, 255, .22);
    background:
      linear-gradient(180deg, rgba(9, 14, 28, .98), rgba(5, 9, 20, .98)),
      radial-gradient(circle at 80% 0%, rgba(93, 124, 255, .22), transparent 32%);
    box-shadow: -24px 0 80px rgba(0, 0, 0, .45);
    transform: translateX(110%);
    transition: transform .28s ease;
  }
  :root[data-theme="light"] .premium-nav {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,255,.98));
    box-shadow: -24px 0 70px rgba(30, 45, 90, .18);
  }
  .premium-nav.open { transform: translateX(0); }
  .premium-nav > a,
  .premium-nav-button {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 14px;
  }
  .premium-mega,
  .premium-info-menu {
    position: static;
    width: 100%;
    display: none;
    grid-template-columns: 1fr;
    margin: 6px 0 14px;
    padding: 14px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
  .premium-mega-wrap.open .premium-mega,
  .premium-info-wrap:hover .premium-info-menu {
    display: grid;
    transform: none;
  }
  .premium-info-menu { display: block; }
  .premium-actions {
    margin-left: 0;
    gap: 8px;
  }
  .premium-actions .lang-select { width: 64px; }
  .premium-login { display: none; }
}

@media (max-width: 620px) {
  .premium-header-inner { padding-inline: 14px; gap: 9px; }
  .premium-logo strong { font-size: 19px; }
  .premium-logo-icon { width: 38px; height: 38px; }
  .premium-actions .lang-select,
  .premium-theme { display: none; }
  .premium-cart { width: 42px; height: 42px; }
  .premium-nav { width: min(360px, calc(100vw - 24px)); }
}

/* Premium auth pages */
.login-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 54px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .84fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-strong) 86%, transparent));
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.login-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 20%, rgba(93,124,255,.32), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(34,211,238,.18), transparent 30%),
    linear-gradient(145deg, #071123, #050914 64%, #0a0e1c);
}
.login-visual::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 170px;
  background: linear-gradient(100deg, transparent, rgba(79,134,255,.82), rgba(139,92,246,.72), transparent);
  filter: blur(10px);
  transform: rotate(-11deg);
}
.login-orbit {
  position: absolute;
  width: 430px;
  height: 112px;
  bottom: 130px;
  border: 8px solid rgba(115, 91, 255, .78);
  border-radius: 50%;
  box-shadow: 0 0 46px rgba(93,124,255,.6);
}
.login-product {
  position: relative;
  width: 245px;
  height: 350px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(155, 168, 255, .8);
  border-radius: 14px;
  background: linear-gradient(145deg, #202947, #070b16);
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  box-shadow: 0 0 70px rgba(93,124,255,.55);
}
.login-product span { align-self: end; }
.login-product b { color: #8da2ff; align-self: start; }
.login-product small { position: absolute; bottom: 58px; color: #cbd4ff; font-size: 18px; letter-spacing: .08em; }
.login-visual-card {
  position: absolute;
  width: 220px;
  padding: 16px;
  border: 1px solid rgba(145,161,255,.28);
  border-radius: 14px;
  background: rgba(8, 14, 28, .66);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
}
.login-visual-card.top { top: 76px; left: 58px; }
.login-visual-card.bottom { right: 54px; bottom: 74px; }
.login-visual-card span { display: block; margin-top: 5px; color: #aeb9d2; }
.login-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 100% 0%, rgba(93,124,255,.12), transparent 28%),
    color-mix(in srgb, var(--surface-strong) 94%, transparent);
}
.login-copy p {
  margin: 0 0 10px;
  color: #8da2ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.login-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}
.login-copy span { color: var(--muted); font-size: 17px; }
.login-form {
  display: grid;
  gap: 16px;
}
.login-form label { color: var(--text); }
.login-form input {
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input { padding-right: 54px; }
.password-field button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.password-field button::before {
  content: "";
  position: absolute;
  inset: 10px 7px;
  border: 2px solid var(--muted);
  border-radius: 50% 50% 45% 45%;
}
.password-field button::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.password-field button.visible { background: rgba(93,124,255,.18); }
.login-meta {
  display: flex;
  justify-content: flex-end;
}
.login-meta a,
.login-register a {
  color: #8da2ff;
  font-weight: 900;
}
.login-submit {
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 18px 38px rgba(91,112,255,.28);
}
.login-register {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .login-shell {
    grid-template-columns: 1fr;
    margin: 28px auto;
  }
  .login-visual {
    min-height: 360px;
  }
  .login-product {
    width: 185px;
    height: 260px;
    font-size: 28px;
  }
  .login-orbit {
    width: 310px;
    bottom: 54px;
  }
  .login-visual-card {
    display: none;
  }
}

@media (max-width: 560px) {
  .login-shell {
    width: calc(100% - 20px);
    border-radius: 14px;
  }
  .login-visual { display: none; }
  .login-panel { padding: 28px 18px; }
  .login-register { flex-direction: column; align-items: center; }
}

/* Tippilot exact premium header */
body.menu-open,
body.modal-open { overflow: hidden; }
body.has-fixed-header {
  padding-top: 126px;
}

/* Unified Mega Menu v2 — authoritative frontend layout */
.tp-nav-button {
  gap: 8px;
}
.tp-nav-chevron {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.tp-mega-wrap.open .tp-nav-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.tp-mega-wrap:not(.open) > .tp-mega {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.tp-mega-wrap.open > .tp-mega {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
@media (min-width: 1024px) {
  .tp-mega-wrap > .tp-mega {
    position: fixed !important;
    top: var(--tp-mega-top, 132px) !important;
    left: 50% !important;
    width: min(1180px, calc(100vw - 48px)) !important;
    max-width: 1180px !important;
    max-height: calc(100vh - var(--tp-mega-top, 132px) - 18px);
    grid-template-columns: minmax(170px, .9fr) minmax(270px, 1.45fr) minmax(170px, .9fr) minmax(240px, 1.12fr) !important;
    gap: 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 22px !important;
    transform: translate(-50%, 10px) !important;
  }
  .tp-mega-wrap.open > .tp-mega {
    transform: translate(-50%, 0) !important;
  }
}
.tp-mega-column {
  min-width: 0;
}
.tp-mega-column > small {
  min-height: 20px;
  margin: 0 0 10px;
}
.tp-mega-category,
.tp-mega-page {
  width: 100%;
  min-height: 39px;
  border-radius: 9px;
  padding: 7px 9px;
}
.tp-mega-category span,
.tp-mega-page span,
.tp-mega-product span {
  min-width: 0;
}
.tp-mega-product {
  width: 100%;
  min-height: 76px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 7px;
}
.tp-mega-product img {
  width: 68px;
  height: 58px;
  flex: 0 0 68px;
  border-radius: 9px;
}
.tp-mega-product b,
.tp-mega-product small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-mega-product b {
  white-space: nowrap;
}
.tp-mega-product small {
  display: -webkit-box;
  max-width: none;
  margin-bottom: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-transform: none;
  letter-spacing: 0;
}
.tp-mega-product strong {
  padding: 2px 7px;
}
.tp-mega-promo {
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
}
.tp-promo-visual {
  height: 125px;
  border-radius: 10px;
}
.tp-mega-promo h3 {
  font-size: 19px;
}
.tp-mega-promo p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.tp-mega-promo a {
  min-height: 40px;
  border-radius: 9px;
}
@media (max-width: 1023px) {
  .tp-mega-wrap:not(.open) > .tp-mega {
    display: none !important;
  }
  .tp-mega-wrap.open > .tp-mega {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(68vh, 720px);
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow-y: auto !important;
    margin-top: 8px;
    padding: 14px !important;
    transform: none !important;
  }
}
@media (max-width: 620px) {
  .tp-mega-wrap.open > .tp-mega {
    grid-template-columns: 1fr !important;
  }
  .tp-mega-promo {
    order: 4;
  }
}

/* Tippilot admin 2026 — shared shell and SQL dashboard */
.admin-premium {
  --ap-bg: #0b1520;
  --ap-panel: #172431;
  --ap-panel-2: #1a2936;
  --ap-line: rgba(148, 163, 184, .17);
  --ap-text: #f5f7fb;
  --ap-muted: #9ba9b9;
  margin: 0;
  background: radial-gradient(circle at 56% 42%, rgba(21, 47, 67, .45), transparent 43%), #0b1520;
  color: var(--ap-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}
.admin-premium .ap-sidebar {
  width: 212px;
  padding: 12px 10px 58px;
  border-right: 1px solid var(--ap-line);
  background: linear-gradient(180deg, #192734, #152330);
  box-shadow: none;
}
.admin-premium .ap-brand {
  height: 44px;
  gap: 10px;
  margin: 0 6px 10px;
  color: #f2efff;
  font-size: 15px;
  letter-spacing: .035em;
}
.admin-premium .ap-brand > span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4a74ff, #8859ed);
  box-shadow: 0 6px 18px rgba(84, 85, 240, .35);
  font-size: 16px;
}
.admin-premium .ap-brand b span { color: #d3c6ff; }
.admin-premium .ap-menu { display: block; }
.admin-premium .ap-menu a {
  position: relative;
  min-height: 30px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 7px;
  margin: 0 0 1px;
  border: 0;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  color: #f4f7fb;
  transform: none;
  box-shadow: none;
}
.admin-premium .ap-menu a:hover { background: rgba(115, 126, 236, .12); transform: none; }
.admin-premium .ap-menu a.active {
  border: 0;
  background: linear-gradient(90deg, rgba(92, 83, 215, .58), rgba(88, 80, 190, .48));
  box-shadow: inset 0 -2px #7765ef;
  transform: none;
}
.admin-premium .ap-menu i {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
  color: #eef2f7;
  font-size: 13px;
  font-weight: 500;
}
.admin-premium .ap-menu b { font-size: 11px; font-weight: 500; }
.admin-premium .ap-menu em {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #4776ed;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}
.admin-premium .ap-menu-group { margin: 12px 0 0; }
.admin-premium .ap-menu-group h2 {
  display: flex;
  justify-content: space-between;
  margin: 0 6px 5px;
  color: #b8c3d1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .025em;
}
.admin-premium .ap-menu-group h2 span { font-size: 11px; }
.admin-premium .ap-collapse {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 212px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--ap-line);
  padding: 0 18px;
  background: #152330;
  color: #edf1f6;
  font: inherit;
  cursor: pointer;
}
.admin-premium .ap-collapse i { font-style: normal; font-size: 16px; }
.admin-premium .ap-shell { margin-left: 212px; min-height: 100vh; }
.admin-premium .ap-topbar {
  height: 52px;
  justify-content: flex-start;
  padding: 0 16px 0 24px;
  background: rgba(9, 18, 28, .92);
  border-bottom: 1px solid var(--ap-line);
  box-shadow: none;
  backdrop-filter: blur(15px);
}
.admin-premium .ap-search {
  width: 278px;
  height: 31px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ap-line);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(255,255,255,.035);
}
.admin-premium .ap-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--ap-text);
  font-size: 11px;
}
.admin-premium .ap-search kbd { white-space: nowrap; color: #c1c9d4; font: 10px inherit; }
.admin-premium .ap-actions { margin-left: auto; gap: 2px; align-self: stretch; }
.admin-premium .ap-dropdown, .admin-premium .ap-theme { height: 100%; }
.admin-premium .ap-dropdown > button, .admin-premium .ap-theme, .admin-premium .ap-mobile-toggle {
  height: 100%;
  min-height: 0;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, .1);
  border-radius: 0;
  background: transparent;
  color: #f2f5f8;
}
.admin-premium .ap-theme { width: 43px; padding: 0; font-size: 18px; }
.admin-premium .ap-bell > button, .admin-premium .ap-mail > button { width: 43px; padding: 0; font-size: 17px; }
.admin-premium .ap-bell b, .admin-premium .ap-mail b {
  top: 4px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  background: #7758df;
  font-size: 8px;
}
.admin-premium .ap-mail b { background: #4776ed; }
.admin-premium .ap-profile > button {
  min-width: 184px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  text-align: left;
}
.admin-premium .ap-profile button > span:nth-child(2) { flex: 1; display: grid; }
.admin-premium .ap-profile strong { font-size: 11px; }
.admin-premium .ap-profile small { color: #aeb9c6; font-size: 9px; }
.admin-premium .ap-profile i { font-style: normal; }
.admin-premium .ap-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8a06e, #6a3f36);
  color: white;
  font-weight: 800;
}
.admin-premium .ap-dropdown > div {
  top: calc(100% + 1px);
  border-radius: 7px;
  background: #172431;
}
.admin-premium .ap-main { min-height: calc(100vh - 94px); padding: 18px 22px; }
.admin-premium .ap-dashboard-heading, .admin-premium .ap-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-premium .ap-dashboard-heading h1, .admin-premium .ap-page-heading h1 { margin: 0; font-size: 21px; }
.admin-premium .ap-dashboard-heading p, .admin-premium .ap-page-heading p { margin: 3px 0 0; color: #b4c0ce; font-size: 11px; }
.admin-premium .ap-date-range, .admin-premium .ap-subtle-button, .admin-premium .ap-card-title > span {
  border: 1px solid var(--ap-line);
  border-radius: 5px;
  padding: 8px 11px;
  background: rgba(255,255,255,.035);
  color: #fff;
  font-size: 10px;
}
.admin-premium .ap-date-range { display: flex; align-items: center; gap: 8px; padding-block: 5px; }
.admin-premium .ap-date-range select { border: 0; outline: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.admin-premium .ap-date-range option { background: #172431; color: #fff; }
.admin-premium .ap-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.admin-premium .ap-kpi {
  position: relative;
  min-height: 170px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  border-radius: 7px;
  padding: 20px 17px 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.admin-premium .ap-kpi-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 192, 131, .25);
  color: #a8f1d5;
  font-size: 25px;
}
.admin-premium .ap-kpi-orders .ap-kpi-icon { background: rgba(0,162,224,.22); color: #1bcdfb; }
.admin-premium .ap-kpi-customers .ap-kpi-icon { background: rgba(108,79,213,.26); color: #b89cff; }
.admin-premium .ap-kpi-visitors .ap-kpi-icon { background: rgba(227,130,24,.25); color: #ff9c1d; }
.admin-premium .ap-kpi-copy { display: grid; align-content: start; }
.admin-premium .ap-kpi-copy > span { font-size: 10px; }
.admin-premium .ap-kpi-copy strong { margin: 3px 0 1px; font-size: 20px; }
.admin-premium .ap-kpi-copy b { color: #26c88d; font-size: 10px; }
.admin-premium .ap-kpi-copy b.down { color: #ff525a; }
.admin-premium .ap-kpi-copy small { margin-top: 3px; color: #bdc7d2; font-size: 9px; }
.admin-premium .ap-sparkline { position: absolute; left: 14px; right: 14px; bottom: 12px; width: calc(100% - 28px); height: 48px; }
.admin-premium .ap-card, .admin-premium .ap-stat-card {
  border: 1px solid var(--ap-line);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  box-shadow: none;
}
.admin-premium .ap-card { padding: 17px; }
.admin-premium .ap-card h2 { margin: 0; font-size: 14px; }
.admin-premium .ap-dashboard-top {
  display: grid;
  grid-template-columns: 1.5fr .9fr 1.07fr;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-premium .ap-dashboard-top > .ap-card { min-height: 312px; }
.admin-premium .ap-card-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-premium .ap-card-title .ap-subtle-button { padding: 7px 10px; }
.admin-premium .ap-chart-legend { display: flex; align-items: center; gap: 7px; margin: 30px 0 4px 36px; font-size: 9px; }
.admin-premium .ap-chart-legend i { width: 17px; height: 5px; border-radius: 4px; background: #8554ea; }
.admin-premium .ap-chart-legend i:nth-of-type(2) { margin-left: 12px; background: #344355; }
.admin-premium .ap-line-chart-wrap { height: 218px; }
.admin-premium .ap-line-chart-wrap canvas { width: 100%; height: 100%; }
.admin-premium .ap-status-content { min-height: 260px; display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: 14px; }
.admin-premium .ap-donut {
  width: 174px;
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2cb67d 0 var(--paid), #ff9f1c var(--paid) var(--pending), #3478de var(--pending) var(--processing), #ff4d4d var(--processing) 360deg);
}
.admin-premium .ap-donut > div {
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #172531;
  text-align: center;
}
.admin-premium .ap-donut strong { font-size: 25px; }
.admin-premium .ap-donut span { font-size: 11px; }
.admin-premium .ap-status-legend { display: grid; gap: 14px; }
.admin-premium .ap-status-legend > span { display: grid; grid-template-columns: 9px 1fr; gap: 2px 7px; }
.admin-premium .ap-status-legend i { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: #2cb67d; }
.admin-premium .ap-status-legend .pending i { background: #ff9f1c; }
.admin-premium .ap-status-legend .processing i { background: #3478de; }
.admin-premium .ap-status-legend .cancelled i { background: #ff4d4d; }
.admin-premium .ap-status-legend b { font-size: 10px; }
.admin-premium .ap-status-legend small { grid-column: 2; font-size: 9px; }
.admin-premium .ap-activity-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
  font-size: 10px;
}
.admin-premium .ap-activity-row i { font-style: normal; }
.admin-premium .ap-activity-row time { color: #c0cad5; font-size: 9px; white-space: nowrap; }
.admin-premium .ap-activity-panel .ap-subtle-button { display: inline-flex; margin-top: 19px; }
.admin-premium .ap-orders-panel { padding: 16px 17px 7px; }
.admin-premium .ap-table-wrap { overflow-x: auto; }
.admin-premium .ap-orders-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 10px; }
.admin-premium .ap-orders-table th, .admin-premium .ap-orders-table td { border-top: 1px solid var(--ap-line); padding: 9px 8px; text-align: left; white-space: nowrap; }
.admin-premium .ap-orders-table th { font-weight: 600; }
.admin-premium .ap-orders-table td small { display: block; color: #b5c0cc; font-size: 9px; }
.admin-premium .ap-product-dot { width: 7px; height: 7px; display: inline-block; margin-right: 8px; border-radius: 50%; background: #785aea; }
.admin-premium .ap-order-status { display: inline-block; border-radius: 3px; padding: 4px 6px; color: #fff; }
.admin-premium .ap-order-status.paid { background: #20855f; }
.admin-premium .ap-order-status.pending { background: #b66410; }
.admin-premium .ap-order-status.processing { background: #3264bf; }
.admin-premium .ap-order-status.cancelled { background: #b64149; }
.admin-premium .ap-icon-button { width: 24px; height: 24px; display: inline-grid; place-items: center; margin-right: 4px; border: 1px solid var(--ap-line); border-radius: 5px; color: #e5ebf2; background: rgba(255,255,255,.035); }
.admin-premium .ap-footer {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ap-line);
  padding: 0 22px;
  color: #b4c0cc;
  background: rgba(9,18,28,.75);
  font-size: 10px;
}
.admin-premium.sidebar-collapsed .ap-sidebar { width: 64px; }
.admin-premium.sidebar-collapsed .ap-brand b,
.admin-premium.sidebar-collapsed .ap-menu a span,
.admin-premium.sidebar-collapsed .ap-menu a em,
.admin-premium.sidebar-collapsed .ap-menu-group h2,
.admin-premium.sidebar-collapsed .ap-collapse span { display: none; }
.admin-premium.sidebar-collapsed .ap-shell { margin-left: 64px; }
.admin-premium.sidebar-collapsed .ap-collapse { width: 64px; }
.admin-premium.sidebar-collapsed .ap-menu a { grid-template-columns: 1fr; }

:root[data-theme="light"] .admin-premium {
  --ap-bg: #eef2f7; --ap-panel: #fff; --ap-text: #14202c; --ap-muted: #657383;
  background: #eef2f7; color: var(--ap-text);
}
:root[data-theme="light"] .admin-premium .ap-sidebar,
:root[data-theme="light"] .admin-premium .ap-collapse { background: #f8fafc; color: #1c2a37; }
:root[data-theme="light"] .admin-premium .ap-menu a { color: #263544; }
:root[data-theme="light"] .admin-premium .ap-topbar,
:root[data-theme="light"] .admin-premium .ap-footer { background: rgba(255,255,255,.9); }
:root[data-theme="light"] .admin-premium .ap-card,
:root[data-theme="light"] .admin-premium .ap-kpi { background: #fff; box-shadow: 0 8px 25px rgba(30,50,70,.05); }
:root[data-theme="light"] .admin-premium .ap-dropdown > button,
:root[data-theme="light"] .admin-premium .ap-theme { color: #172431; }
:root[data-theme="light"] .admin-premium .ap-donut > div { background: #fff; }

@media (max-width: 1280px) {
  .admin-premium .ap-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-premium .ap-dashboard-top { grid-template-columns: 1.5fr 1fr; }
  .admin-premium .ap-activity-panel { grid-column: 1 / -1; min-height: auto; }
}
@media (max-width: 900px) {
  .admin-premium .ap-sidebar { transform: translateX(-105%); width: 212px; }
  .admin-premium .ap-sidebar.open { transform: translateX(0); }
  .admin-premium .ap-shell, .admin-premium.sidebar-collapsed .ap-shell { margin-left: 0; }
  .admin-premium .ap-mobile-toggle { display: inline-grid; place-items: center; width: 40px; }
  .admin-premium .ap-search { width: min(260px, 45vw); }
  .admin-premium .ap-profile > button { min-width: 54px; }
  .admin-premium .ap-profile button > span:nth-child(2), .admin-premium .ap-profile button > i { display: none; }
}
@media (max-width: 680px) {
  .admin-premium .ap-kpi-grid, .admin-premium .ap-dashboard-top { grid-template-columns: 1fr; }
  .admin-premium .ap-kpi { min-height: 150px; }
  .admin-premium .ap-status-panel, .admin-premium .ap-activity-panel { grid-column: auto; }
  .admin-premium .ap-dashboard-heading { gap: 14px; }
  .admin-premium .ap-date-range { display: none; }
  .admin-premium .ap-search { display: none; }
  .admin-premium .ap-theme { margin-left: auto; }
}
.tp-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 181;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 78px);
  background: #050914;
  border-bottom: 1px solid rgba(148, 163, 255, .12);
  color: #aab4ca;
  font-size: 13px;
  font-weight: 700;
}
.tp-topbar a {
  color: #aab4ca;
  transition: color .2s ease;
}
.tp-topbar a:hover { color: #f7f9ff; }
.tp-topbar div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.tp-header {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 180;
  height: 90px;
  border-bottom: 1px solid rgba(148, 163, 255, .18);
  background:
    radial-gradient(circle at 20% -30%, rgba(86, 113, 255, .18), transparent 34%),
    linear-gradient(180deg, rgba(7, 12, 25, .82), rgba(5, 9, 18, .72));
  backdrop-filter: blur(24px) saturate(1.24);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .34);
  transition: height .24s ease, background .24s ease, box-shadow .24s ease, border-color .24s ease, backdrop-filter .24s ease;
  will-change: height, background, box-shadow;
}
:root[data-theme="light"] .tp-header {
  background:
    radial-gradient(circle at 20% -30%, rgba(86, 113, 255, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(245, 248, 255, .78));
  box-shadow: 0 18px 50px rgba(33, 49, 100, .14);
}
.tp-header.is-scrolled {
  height: 78px;
  border-bottom-color: rgba(148, 163, 255, .28);
  background:
    radial-gradient(circle at 20% -35%, rgba(86, 113, 255, .14), transparent 30%),
    linear-gradient(180deg, rgba(5, 9, 18, .9), rgba(4, 7, 14, .82));
  backdrop-filter: blur(30px) saturate(1.28);
  -webkit-backdrop-filter: blur(30px) saturate(1.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
}
:root[data-theme="light"] .tp-header.is-scrolled {
  background:
    radial-gradient(circle at 20% -35%, rgba(86, 113, 255, .1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 249, 255, .84));
  box-shadow: 0 16px 42px rgba(33, 49, 100, .16);
}
.tp-header-inner {
  height: 90px;
  width: min(1540px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(18px, 5vw, 78px);
  transition: height .24s ease, gap .24s ease;
}
.tp-header.is-scrolled .tp-header-inner { height: 78px; gap: 16px; }
.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 25px;
  font-weight: 950;
  white-space: nowrap;
  transition: font-size .24s ease, gap .24s ease, transform .24s ease;
}
.tp-header.is-scrolled .tp-brand { font-size: 23px; gap: 10px; }
.tp-brand strong span { color: #6578ff; }
.tp-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(93,124,255,.32);
  transition: width .24s ease, height .24s ease, border-radius .24s ease;
}
.tp-brand-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  box-shadow: 0 0 34px rgba(93, 124, 255, .48);
  overflow: hidden;
  transition: width .24s ease, height .24s ease, border-radius .24s ease, box-shadow .24s ease;
}
.tp-header.is-scrolled .tp-brand-logo,
.tp-header.is-scrolled .tp-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}
.tp-brand-icon::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.34), transparent);
  transform: rotate(25deg);
}
.tp-brand-icon i {
  position: absolute;
  bottom: 10px;
  z-index: 1;
  width: 7px;
  border-radius: 7px;
  background: #fff;
}
.tp-brand-icon i:nth-child(1) { left: 12px; height: 13px; }
.tp-brand-icon i:nth-child(2) { left: 21px; height: 22px; }
.tp-brand-icon i:nth-child(3) { left: 30px; height: 30px; }
.tp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tp-nav > a,
.tp-nav-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  background: transparent;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-weight: 850;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tp-nav > a:hover,
.tp-nav-button:hover,
.tp-mega-wrap:hover .tp-nav-button {
  color: #fff;
  background: linear-gradient(135deg, rgba(79, 134, 255, .17), rgba(139, 92, 246, .15));
  box-shadow: 0 0 30px rgba(93, 124, 255, .22);
  transform: translateY(-1px);
}
:root[data-theme="light"] .tp-nav > a:hover,
:root[data-theme="light"] .tp-nav-button:hover,
:root[data-theme="light"] .tp-mega-wrap:hover .tp-nav-button { color: #111827; }
.tp-mega-wrap { position: relative; }
.tp-mega-wrap::after {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  top: 100%;
  height: 22px;
  pointer-events: none;
}
.tp-mega-wrap:hover::after,
.tp-mega-wrap.open::after {
  pointer-events: auto;
}
.tp-mega {
  position: absolute;
  top: calc(100% + 14px);
  left: var(--tp-mega-left, 50%);
  width: min(1280px, calc(100vw - 54px));
  display: grid;
  grid-template-columns: 1.05fr 1.45fr 1.05fr 1.25fr;
  gap: 26px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 75% 0%, rgba(79, 134, 255, .2), transparent 32%),
    linear-gradient(145deg, rgba(13, 21, 40, .98), rgba(5, 9, 19, .96));
  box-shadow: 0 34px 100px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(var(--tp-mega-x, -34%)) translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 80;
}
:root[data-theme="light"] .tp-mega {
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(242,246,255,.96));
  box-shadow: 0 34px 80px rgba(25, 40, 88, .18);
}
.tp-mega-wrap:hover .tp-mega,
.tp-mega-wrap.open .tp-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(var(--tp-mega-x, -34%)) translateY(0);
}
.tp-mega small {
  display: block;
  margin-bottom: 14px;
  color: #8f9bb7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tp-mega-category,
.tp-mega-page {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 16px;
  padding: 0 12px;
  color: var(--text);
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.tp-mega-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  object-fit: contain;
  border-radius: 8px;
}
.tp-mega-category::before,
.tp-mega-page::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  box-shadow: 0 0 16px rgba(93, 124, 255, .5);
}
.tp-mega-category:hover,
.tp-mega-page:hover,
.tp-mega-product:hover {
  background: rgba(100, 120, 255, .13);
  box-shadow: 0 14px 32px rgba(68, 88, 220, .18);
  transform: translateX(4px);
}
.tp-mega-product {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 8px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.tp-mega-product img {
  width: 78px;
  height: 62px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 14px;
  background: #0a1020;
}
.tp-mega-product b,
.tp-mega-product em,
.tp-mega-product small,
.tp-mega-product strong {
  display: block;
}
.tp-mega-product strong {
  width: max-content;
  margin-bottom: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.tp-mega-product small {
  max-width: 230px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.tp-mega-product em {
  margin-top: 4px;
  color: #9ba7c0;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}
.tp-mega-promo {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(148, 163, 255, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 12%, rgba(34, 211, 238, .18), transparent 35%),
    linear-gradient(145deg, rgba(79, 134, 255, .14), rgba(139, 92, 246, .12));
}
.tp-promo-visual {
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 255, .24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 20%, rgba(79, 134, 255, .42), transparent 30%),
    linear-gradient(145deg, #17203d, #070b16);
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.22);
}
.tp-promo-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.tp-promo-visual b { color: #8fa2ff; }
.tp-promo-visual small { color: #dbe3ff; }
.tp-mega-promo h3 { margin: 0; font-size: 24px; }
.tp-mega-promo p { margin: 0; color: var(--muted); line-height: 1.55; }
.tp-mega-promo a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(93,124,255,.28);
}
.tp-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 11px;
}
.tp-search {
  position: relative;
  width: clamp(230px, 18vw, 330px);
}
.tp-search span {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #9aa6bd;
  border-radius: 50%;
  transform: translateY(-50%);
}
.tp-search span::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 4px;
  background: #9aa6bd;
  transform: rotate(45deg);
}
.tp-search input {
  height: 50px;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 16px;
  padding: 0 16px 0 46px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px rgba(0,0,0,.12);
}
.tp-search input:focus {
  outline: none;
  border-color: rgba(148, 163, 255, .55);
  box-shadow: 0 0 0 4px rgba(93,124,255,.13), 0 18px 38px rgba(0,0,0,.18);
}
.tp-language { position: relative; }
.tp-language-current {
  height: 50px;
  min-width: 152px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 16px;
  padding: 0 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  cursor: pointer;
}
.tp-language-current::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #8f9bb7;
  border-bottom: 2px solid #8f9bb7;
  transform: rotate(45deg) translateY(-2px);
}
.tp-language-current span,
.tp-language-menu span { font-size: 18px; }
.tp-language-current b { font-size: 13px; }
.tp-language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 16px;
  background: rgba(8, 13, 26, .98);
  box-shadow: 0 28px 70px rgba(0,0,0,.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
:root[data-theme="light"] .tp-language-menu { background: rgba(255,255,255,.98); box-shadow: 0 28px 60px rgba(25,40,88,.16); }
.tp-language.open .tp-language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tp-language-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  padding: 11px 12px;
  background: transparent;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
  text-align: left;
}
.tp-language-menu button:hover,
.tp-language-menu button.active {
  background: linear-gradient(135deg, rgba(79,134,255,.18), rgba(139,92,246,.16));
}
.tp-actions .lang-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.tp-theme,
.tp-cart,
.tp-login {
  height: 50px;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tp-theme,
.tp-cart {
  position: relative;
  width: 50px;
  display: grid;
  place-items: center;
}
.tp-theme:hover,
.tp-cart:hover,
.tp-login:hover {
  border-color: rgba(148, 163, 255, .55);
  box-shadow: 0 0 34px rgba(93, 124, 255, .28);
  transform: translateY(-1px);
}
.tp-theme span {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(90deg, #fff 0 50%, #6578ff 50% 100%);
  box-shadow: 0 0 18px rgba(148, 163, 255, .45);
}
.tp-cart span {
  width: 22px;
  height: 17px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 4px 4px 8px 8px;
}
.tp-cart span::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  width: 15px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.tp-cart b {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #050914;
  border-radius: 99px;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  color: #fff;
  font-size: 11px;
}
.tp-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-weight: 950;
}
.tp-login span {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 10px 0 -5px currentColor;
}
.tp-mobile-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
}
.tp-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 3px;
  background: var(--text);
}
.tp-mobile-overlay,
.tp-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.tp-mobile-overlay { z-index: 90; }
.tp-mobile-overlay.open,
.tp-login-overlay.open {
  opacity: 1;
  visibility: visible;
}
.tp-scroll-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 170;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 255, .34);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, rgba(79, 134, 255, .94), rgba(139, 92, 246, .94));
  color: #fff;
  box-shadow: 0 18px 48px rgba(38, 57, 170, .34), 0 10px 26px rgba(0,0,0,.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(.94);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tp-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.tp-scroll-top:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(210, 220, 255, .72);
  box-shadow: 0 22px 58px rgba(73, 96, 230, .42), 0 12px 28px rgba(0,0,0,.32);
}
.tp-scroll-top:focus-visible {
  outline: 3px solid rgba(148, 163, 255, .75);
  outline-offset: 4px;
}
.tp-scroll-top span {
  width: 14px;
  height: 14px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}
:root[data-theme="light"] .tp-scroll-top {
  box-shadow: 0 18px 42px rgba(68, 86, 180, .24), 0 8px 20px rgba(30,45,90,.16);
}
.tp-login-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(940px, calc(100vw - 28px));
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 255, .24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(5,9,19,.98));
  box-shadow: 0 38px 120px rgba(0,0,0,.56);
  transform: translate(-50%, -46%) scale(.96);
  transition: transform .24s ease;
}
.tp-login-overlay.open .tp-login-modal { transform: translate(-50%, -50%) scale(1); }
:root[data-theme="light"] .tp-login-modal { background: linear-gradient(145deg, #fff, #f3f6ff); }
.tp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 255, .22);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}
.tp-modal-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 16%, rgba(79,134,255,.34), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(139,92,246,.24), transparent 34%),
    linear-gradient(145deg, #071123, #050914);
}
.tp-modal-wave {
  position: absolute;
  width: 130%;
  height: 150px;
  background: linear-gradient(100deg, transparent, rgba(79,134,255,.82), rgba(139,92,246,.72), transparent);
  filter: blur(10px);
  transform: rotate(-12deg);
}
.tp-modal-product {
  position: relative;
  width: 220px;
  height: 318px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 181, 255, .8);
  border-radius: 16px;
  background: linear-gradient(145deg, #202947, #070b16);
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 0 70px rgba(93,124,255,.56);
}
.tp-modal-product span { align-self: end; }
.tp-modal-product b { align-self: start; color: #8fa2ff; }
.tp-modal-product small { position: absolute; bottom: 54px; font-size: 17px; color: #dbe3ff; }
.tp-premium-mockup {
  position: relative;
  width: min(360px, 82%);
  min-height: 420px;
  display: grid;
  place-items: center;
}
.tp-mockup-orbit {
  position: absolute;
  bottom: 56px;
  width: 320px;
  height: 74px;
  border: 7px solid rgba(108, 99, 255, .78);
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(93,124,255,.8));
}
.tp-mockup-card {
  position: relative;
  z-index: 1;
  width: 255px;
  min-height: 360px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(169,181,255,.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 18%, rgba(79,134,255,.32), transparent 28%),
    linear-gradient(145deg, rgba(34,43,75,.98), rgba(6,10,21,.98));
  box-shadow: 0 0 80px rgba(93,124,255,.55), 0 28px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.1);
  transform: perspective(900px) rotateY(-9deg) rotateX(4deg);
}
.tp-mockup-card.join { transform: perspective(900px) rotateY(9deg) rotateX(4deg); }
.tp-mockup-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 950;
  letter-spacing: .04em;
}
.tp-mockup-logo img,
.tp-mockup-logo .tp-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  object-fit: contain;
}
.tp-mockup-logo b span { color: #8fa2ff; }
.tp-mockup-screen {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.tp-mockup-screen span {
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(169,181,255,.2);
}
.tp-mockup-screen span:nth-child(2) { width: 76%; }
.tp-mockup-screen span:nth-child(3) { width: 58%; background: linear-gradient(135deg, #4f86ff, #8b5cf6); }
.tp-mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tp-mockup-stats i {
  height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(169,181,255,.18);
}
.tp-modal-form {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 54px;
}
.tp-modal-form h2 {
  margin: 0 0 8px;
  font-size: 42px;
}
.tp-modal-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}
.tp-modal-form form { display: grid; gap: 15px; }
.tp-modal-form label {
  color: var(--text);
  font-weight: 850;
}
.tp-modal-form input {
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.tp-password-field {
  position: relative;
  display: block;
}
.tp-password-field input { padding-right: 58px; }
.tp-password-field button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}
.tp-password-field button::before {
  content: "";
  position: absolute;
  inset: 11px 7px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 45% 45%;
}
.tp-password-field button::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tp-password-field button.visible {
  color: #8fa2ff;
  background: rgba(93,124,255,.12);
}
.tp-forgot,
.tp-modal-form p a {
  color: #8fa2ff;
  font-weight: 950;
}
.tp-submit {
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(93,124,255,.3);
  cursor: pointer;
}
.tp-modal-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}
.tp-modal-switch button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  margin-left: 6px;
  background: linear-gradient(135deg, rgba(79,134,255,.22), rgba(139,92,246,.2));
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(93,124,255,.16);
}
.tp-modal-switch button:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(93,124,255,.24); }

@media (max-width: 1320px) {
  .tp-search { width: 230px; }
  .tp-language-current { min-width: 58px; }
  .tp-language-current b { display: none; }
}
@media (max-width: 1120px) {
  .tp-search { display: none; }
  .tp-nav > a,
  .tp-nav-button { padding-inline: 10px; }
}
@media (max-width: 980px) {
  body.has-fixed-header { padding-top: 114px; }
  .tp-topbar { padding-inline: 16px; }
  .tp-topbar div { display: none; }
  .tp-header,
  .tp-header-inner { height: 78px; }
  .tp-header.is-scrolled,
  .tp-header.is-scrolled .tp-header-inner { height: 70px; }
  .tp-header-inner { padding-inline: 16px; }
  .tp-brand { order: 1; }
  .tp-actions { order: 2; margin-left: auto; }
  .tp-mobile-toggle { display: block; order: 3; margin-left: 0; }
  .tp-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: min(420px, calc(100vw - 30px));
    height: 100vh;
    display: block;
    box-sizing: border-box;
    padding: 96px 18px 24px;
    overflow: auto;
    border-left: 1px solid rgba(148, 163, 255, .22);
    background: linear-gradient(180deg, rgba(8,13,26,.98), rgba(5,9,18,.98));
    box-shadow: -28px 0 90px rgba(0,0,0,.46);
    transform: translateX(110%);
    transition: transform .26s ease;
  }
  .tp-nav.open { transform: translateX(0); }
  .tp-nav > a,
  .tp-nav-button {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 8px;
  }
  .tp-mega {
    position: static;
    width: 100%;
    box-sizing: border-box;
    display: none;
    grid-template-columns: 1fr;
    margin: 8px 0 14px;
    padding: 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .tp-mega-wrap::after { display: none; }
  .tp-mega-wrap { width: 100%; }
  .tp-mega-wrap.open .tp-mega { display: grid; transform: none; }
  .tp-mega-wrap:hover .tp-mega { transform: none; }
  .tp-actions { margin-left: auto; }
  .tp-login {
    width: 50px;
    min-width: 50px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }
  .tp-login span { margin: 0; }
}
@media (max-width: 720px) {
  .tp-brand strong { font-size: 19px; }
  .tp-language { display: none; }
  .tp-theme { display: none; }
  .tp-login-modal {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: calc(100vh - 26px);
    overflow: auto;
  }
  .tp-modal-art { min-height: 210px; }
  .tp-premium-mockup { min-height: 210px; transform: scale(.72); }
  .tp-modal-form { padding: 54px 22px 28px; }
  .tp-modal-form h2 { font-size: 34px; }
}

/* Premium admin dashboard */
.admin-premium {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(79,134,255,.16), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(139,92,246,.14), transparent 28%),
    linear-gradient(180deg, #050914, #070b16 58%, #04070f);
  color: var(--text);
}
:root[data-theme="light"] .admin-premium {
  background: linear-gradient(180deg, #f4f7fb, #eaf0ff);
}
.ap-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: 312px;
  padding: 22px 16px;
  overflow-y: auto;
  border-right: 1px solid rgba(148,163,255,.18);
  background:
    linear-gradient(180deg, rgba(9,15,30,.92), rgba(5,9,18,.88)),
    radial-gradient(circle at 0% 0%, rgba(79,134,255,.2), transparent 30%);
  backdrop-filter: blur(24px);
  box-shadow: 22px 0 70px rgba(0,0,0,.28);
}
:root[data-theme="light"] .ap-sidebar {
  background: rgba(255,255,255,.86);
  box-shadow: 18px 0 55px rgba(30,45,90,.1);
}
.ap-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 22px;
  font-size: 22px;
  font-weight: 950;
}
.ap-brand > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  color: #fff;
  box-shadow: 0 0 32px rgba(93,124,255,.42);
}
.ap-brand b span { color: #7187ff; }
.ap-menu {
  display: grid;
  gap: 8px;
}
.ap-menu a {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px;
  color: var(--text);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ap-menu a:hover,
.ap-menu a.active {
  border-color: rgba(148,163,255,.28);
  background: linear-gradient(135deg, rgba(79,134,255,.18), rgba(139,92,246,.12));
  box-shadow: 0 16px 36px rgba(36,56,150,.18);
  transform: translateX(3px);
}
.ap-menu i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: #9aa8ff;
  font-style: normal;
  font-weight: 950;
}
.ap-menu b,
.ap-menu small {
  display: block;
}
.ap-menu small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.ap-shell {
  min-height: 100vh;
  margin-left: 312px;
}
.ap-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 38px);
  border-bottom: 1px solid rgba(148,163,255,.18);
  background: rgba(7,12,25,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
:root[data-theme="light"] .ap-topbar { background: rgba(255,255,255,.82); }
.ap-title small {
  color: #9aa8ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ap-title h1 {
  margin: 4px 0 0;
  font-size: 28px;
}
.ap-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ap-dropdown {
  position: relative;
}
.ap-dropdown > button,
.ap-theme,
.ap-mobile-toggle {
  min-height: 44px;
  border: 1px solid rgba(148,163,255,.24);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}
.ap-dropdown > div {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(148,163,255,.24);
  border-radius: 16px;
  background: rgba(8,13,26,.98);
  box-shadow: 0 26px 70px rgba(0,0,0,.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
:root[data-theme="light"] .ap-dropdown > div { background: rgba(255,255,255,.98); }
.ap-dropdown:hover > div {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ap-dropdown a,
.ap-dropdown span {
  display: grid;
  gap: 3px;
  border-radius: 12px;
  padding: 10px;
  color: var(--text);
}
.ap-dropdown a:hover { background: rgba(100,120,255,.14); }
.ap-dropdown small { color: var(--muted); }
.ap-bell button { position: relative; width: 48px; padding: 0; }
.ap-bell b {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: #ff4f68;
  color: #fff;
  font-size: 11px;
}
.ap-main {
  padding: clamp(18px, 3vw, 38px);
}
.ap-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.ap-stat-card,
.ap-card {
  border: 1px solid rgba(148,163,255,.2);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    radial-gradient(circle at 100% 0%, rgba(79,134,255,.12), transparent 32%);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
:root[data-theme="light"] .ap-stat-card,
:root[data-theme="light"] .ap-card {
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 50px rgba(30,45,90,.11);
}
.ap-stat-card {
  min-height: 145px;
  display: grid;
  align-content: space-between;
  padding: 20px;
}
.ap-stat-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(79,134,255,.3), rgba(139,92,246,.24));
  color: #b8c4ff;
  font-style: normal;
}
.ap-stat-card span { color: var(--muted); font-weight: 800; }
.ap-stat-card strong { font-size: 28px; }
.ap-dashboard-grid,
.ap-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ap-card {
  padding: 22px;
}
.ap-card h2 {
  margin: 0 0 16px;
}
.ap-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148,163,255,.14);
}
.ap-list-row small {
  display: block;
  margin-top: 4px;
}
.ap-bars {
  min-height: 210px;
  display: flex;
  align-items: end;
  gap: 12px;
}
.ap-bars div {
  flex: 1;
  display: grid;
  align-items: end;
  gap: 8px;
  text-align: center;
}
.ap-bars span {
  display: block;
  min-height: 8px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #4f86ff, #8b5cf6);
  box-shadow: 0 0 24px rgba(93,124,255,.35);
}
.ap-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ap-pill {
  display: inline-flex;
  margin: 0 8px 8px 0;
  border: 1px solid rgba(148,163,255,.24);
  border-radius: 999px;
  padding: 9px 13px;
}
.ap-pill.active,
.ap-pill:hover { background: linear-gradient(135deg, rgba(79,134,255,.2), rgba(139,92,246,.16)); }
.ap-preview {
  border: 1px solid rgba(148,163,255,.18);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.06);
}
.mega-admin-preview { overflow: hidden; }
.tp-mega.admin-visible {
  position: static;
  width: 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 1;
}
.mega-admin-section {
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.ap-actions-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-status-ok,
.ap-status-warn { border-radius: 18px; padding: 18px; font-weight: 900; }
.ap-status-ok { background: rgba(39,217,139,.12); color: #27d98b; }
.ap-status-warn { background: rgba(245,158,11,.13); color: #f59e0b; }
.ap-mail-preview {
  width: 100%;
  min-height: 430px;
  border: 1px solid rgba(148,163,255,.22);
  border-radius: 18px;
  background: #fff;
}
.email-builder-shell {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(330px, 1fr) minmax(360px, 1.05fr);
  gap: 20px;
  align-items: start;
}
.email-builder-panel,
.email-preview-panel {
  min-width: 0;
}
.email-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.email-variable-row,
.email-block-tools,
.email-preview-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.email-variable,
.email-block-tools button,
.email-preview-toggle button,
.email-block-item header button {
  border: 1px solid rgba(148,163,255,.24);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}
.email-variable:hover,
.email-block-tools button:hover,
.email-preview-toggle button.active,
.email-preview-toggle button:hover,
.email-block-item header button:hover {
  background: linear-gradient(135deg, rgba(79,134,255,.22), rgba(139,92,246,.16));
  border-color: rgba(148,163,255,.42);
}
.email-block-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.email-block-item {
  border: 1px solid rgba(148,163,255,.2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,.05);
}
.email-block-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.email-block-item header span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.email-block-fields {
  display: grid;
  gap: 12px;
}
.email-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.email-live-preview {
  min-height: 720px;
  transition: width .2s ease;
}
.email-live-preview.mobile {
  width: 390px;
  max-width: 100%;
  display: block;
  margin-inline: auto;
}
.ap-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.seo-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.seo-status-card {
  border: 1px solid rgba(148,163,255,.22);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.seo-status-card b,
.seo-status-card span {
  display: block;
}
.seo-status-card b {
  margin-bottom: 6px;
  font-size: 14px;
  color: #9aa8ff;
  text-transform: uppercase;
}
.seo-status-card span {
  font-size: 20px;
  font-weight: 950;
}
.seo-status-card.ok { border-color: rgba(39,217,139,.32); }
.seo-status-card.warn { border-color: rgba(245,158,11,.36); }
.seo-tabs {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.seo-tabs a {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148,163,255,.2);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 850;
}
.seo-tabs a span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(79,134,255,.18);
  color: #aebaff;
}
.seo-tabs a.active,
.seo-tabs a:hover {
  border-color: rgba(148,163,255,.38);
  background: linear-gradient(135deg, rgba(79,134,255,.2), rgba(139,92,246,.14));
}
.seo-form h2 {
  margin-top: 0;
}
.seo-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.seo-language-grid section {
  border: 1px solid rgba(148,163,255,.18);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.04);
}
.seo-language-grid h3 {
  margin: 0 0 12px;
}
.cms-editor textarea {
  min-height: 120px;
  resize: vertical;
}
.cms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.cms-tabs button {
  min-height: 40px;
  border: 1px solid rgba(148,163,255,.24);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.cms-tabs button.active,
.cms-tabs button:hover {
  background: linear-gradient(135deg, rgba(79,134,255,.28), rgba(139,92,246,.2));
  border-color: rgba(148,163,255,.42);
}
.cms-lang-panel {
  display: none;
}
.cms-lang-panel.active {
  display: grid;
}
.popup-designer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 22px;
  align-items: start;
}
.popup-designer-form,
.popup-designer-side {
  display: grid;
  gap: 18px;
}
.ap-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ap-card-head span {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ap-card-head h2 {
  margin: 0;
}
.ap-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.popup-fieldset {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148,163,255,.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255,255,255,.04);
}
.popup-fieldset h3 {
  margin: 0;
  font-size: 17px;
}
.popup-designer-stage {
  position: sticky;
  top: 96px;
  min-height: 520px;
  border: 1px solid rgba(148,163,255,.16);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(148,163,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148,163,255,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148,163,255,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148,163,255,.08) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}
.popup-admin-preview {
  position: absolute;
  z-index: 1;
}
.popup-admin-preview:not(.open) {
  opacity: 0;
  visibility: hidden;
}
.popup-admin-preview.site-popup--bottom-right,
.popup-admin-preview.site-popup--bottom-left {
  padding: 18px;
}
.popup-admin-preview section {
  max-height: calc(100% - 32px);
  overflow-y: auto;
}
.popup-admin-preview img[hidden],
.popup-admin-preview a[hidden] {
  display: none;
}
.ap-gallery-admin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.ap-gallery-admin label {
  border: 1px solid rgba(148,163,255,.22);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255,255,255,.06);
}
.ap-gallery-admin img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  border-radius: 12px;
}
.product-live-preview { position: sticky; top: 100px; }
.ap-bars.revenue span { background: linear-gradient(180deg, #27d98b, #4f86ff); }
.ap-support-item {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148,163,255,.14);
  padding-bottom: 14px;
}
.ap-mobile-toggle { display: none; }
.ap-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
}
.ap-overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 1180px) {
  .ap-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ap-dashboard-grid,
  .ap-grid-2,
  .ap-settings-grid,
  .email-builder-shell,
  .popup-designer { grid-template-columns: 1fr; }
  .seo-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-language-grid { grid-template-columns: 1fr; }
  .email-live-preview { min-height: 560px; }
  .popup-designer-stage { position: relative; top: auto; min-height: 500px; }
}
@media (max-width: 900px) {
  .ap-sidebar { transform: translateX(-105%); transition: transform .24s ease; }
  .ap-sidebar.open { transform: translateX(0); }
  .ap-shell { margin-left: 0; }
  .ap-mobile-toggle { display: inline-flex; align-items: center; }
  .ap-topbar { height: auto; min-height: 78px; flex-wrap: wrap; padding-block: 12px; }
  .ap-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .ap-stat-grid { grid-template-columns: 1fr; }
  .ap-actions { width: 100%; justify-content: space-between; }
  .ap-dropdown > button { padding-inline: 10px; }
  .site-banner { grid-template-columns: 1fr; }
  .ap-gallery-admin { grid-template-columns: 1fr 1fr; }
  .ap-grid-3 { grid-template-columns: 1fr; }
  .seo-dashboard,
  .seo-tabs { grid-template-columns: 1fr; }
  .email-style-grid { grid-template-columns: 1fr; }
  .email-preview-head,
  .email-block-item header { align-items: flex-start; flex-direction: column; }
  .email-block-tools button,
  .email-variable { flex: 1 1 130px; }
  .email-live-preview { min-height: 480px; }
}

/* Premium user dashboard */
.user-premium {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(79,134,255,.16), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(139,92,246,.14), transparent 28%),
    linear-gradient(180deg, #050914, #070b16);
}
:root[data-theme="light"] .user-premium { background: linear-gradient(180deg, #f5f8ff, #eaf0ff); }
.ua-top {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(16px,4vw,60px);
  border-bottom: 1px solid rgba(148,163,255,.18);
  background: rgba(7,12,25,.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
:root[data-theme="light"] .ua-top { background: rgba(255,255,255,.86); }
.ua-brand { display:flex; align-items:center; gap:12px; font-weight:950; font-size:22px; }
.ua-brand img { width:42px; height:42px; object-fit:cover; border-radius:16px; box-shadow:0 0 28px rgba(93,124,255,.35); }
.ua-brand span { color:#7187ff; }
.ua-top-menu { display:flex; gap:8px; margin-inline:auto; }
.ua-top-menu a {
  border-radius:16px;
  padding:12px 14px;
  color:var(--muted);
  font-weight:850;
}
.ua-top-menu a:hover { color:var(--text); background:rgba(100,120,255,.13); }
.ua-profile { position:relative; display:flex; align-items:center; gap:10px; }
.ua-status { border:1px solid rgba(39,217,139,.35); border-radius:999px; padding:7px 10px; color:#27d98b; font-weight:900; font-size:12px; }
.ua-profile button {
  display:flex; align-items:center; gap:10px;
  border:1px solid rgba(148,163,255,.22);
  border-radius:16px;
  padding:8px 12px;
  background:rgba(255,255,255,.07);
  color:var(--text);
  cursor:pointer;
}
.ua-profile img { width:36px; height:36px; object-fit:cover; border-radius:50%; }
.ua-profile-menu {
  position:absolute; top:calc(100% + 12px); right:0; min-width:260px;
  display:grid; gap:4px; padding:12px;
  border:1px solid rgba(148,163,255,.22); border-radius:18px;
  background:rgba(8,13,26,.98); box-shadow:0 28px 70px rgba(0,0,0,.38);
  opacity:0; visibility:hidden; transform:translateY(8px); transition:.2s ease;
}
:root[data-theme="light"] .ua-profile-menu { background:rgba(255,255,255,.98); }
.ua-profile:hover .ua-profile-menu { opacity:1; visibility:visible; transform:translateY(0); }
.ua-profile-menu a,.ua-profile-menu small { border-radius:12px; padding:9px 10px; }
.ua-profile-menu a:hover { background:rgba(100,120,255,.14); }
.ua-profile-menu small { color:var(--muted); }
.ua-sidebar {
  position:fixed; inset:82px auto 0 0; width:286px; z-index:70;
  padding:20px 14px; overflow:auto;
  border-right:1px solid rgba(148,163,255,.18);
  background:linear-gradient(180deg,rgba(9,15,30,.92),rgba(5,9,18,.88));
  backdrop-filter:blur(20px);
}
:root[data-theme="light"] .ua-sidebar { background:rgba(255,255,255,.88); }
.ua-sidebar a {
  display:grid; grid-template-columns:38px 1fr; align-items:center; gap:10px;
  border:1px solid transparent; border-radius:16px;
  padding:10px; margin-bottom:8px; color:var(--text); font-weight:850;
  transition:.2s ease;
}
.ua-sidebar a:hover,.ua-sidebar a.active {
  background:linear-gradient(135deg,rgba(79,134,255,.18),rgba(139,92,246,.12));
  border-color:rgba(148,163,255,.26); transform:translateX(3px);
}
.ua-sidebar i { width:38px; height:38px; display:grid; place-items:center; border-radius:14px; background:rgba(255,255,255,.08); color:#9aa8ff; font-style:normal; }
.ua-main { margin-left:286px; padding:clamp(18px,3vw,38px); }
.ua-title h1 { margin:0 0 20px; font-size:34px; }
.ua-welcome,.ua-panel,.ua-product-grid article,.ua-card-grid article {
  border:1px solid rgba(148,163,255,.2); border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  box-shadow:0 22px 65px rgba(0,0,0,.22); backdrop-filter:blur(18px);
}
:root[data-theme="light"] .ua-welcome,:root[data-theme="light"] .ua-panel,:root[data-theme="light"] .ua-product-grid article,:root[data-theme="light"] .ua-card-grid article { background:rgba(255,255,255,.88); box-shadow:0 18px 50px rgba(30,45,90,.11); }
.ua-welcome { padding:26px; margin-bottom:20px; }
.ua-welcome h2 { margin:0 0 8px; font-size:32px; }
.ua-welcome p { margin:0; color:var(--muted); }
.ua-card-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:20px; }
.ua-card-grid article { padding:22px; display:grid; gap:10px; }
.ua-card-grid span { color:var(--muted); font-weight:850; }
.ua-card-grid strong { font-size:34px; }
.ua-panel { padding:22px; }
.ua-row {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 0; border-bottom:1px solid rgba(148,163,255,.14);
}
.ua-row small { display:block; margin-top:4px; color:var(--muted); }
.ua-row code { border:1px solid rgba(148,163,255,.22); border-radius:12px; padding:9px 11px; background:rgba(255,255,255,.06); }
.ua-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.ua-form { display:grid; gap:14px; }
.ua-message { display:grid; gap:8px; border-bottom:1px solid rgba(148,163,255,.14); padding:14px 0; }
.ua-message.unread { border-left:4px solid #4f86ff; padding-left:14px; }
.ua-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.ua-product-grid article { padding:18px; }
.ua-product-grid img { width:100%; aspect-ratio:1.35; object-fit:cover; border-radius:16px; margin-bottom:14px; }
.ua-order { border-bottom:1px solid rgba(148,163,255,.14); padding:14px 0; }
.ua-mobile { display:none; border:1px solid rgba(148,163,255,.22); border-radius:16px; background:rgba(255,255,255,.07); color:var(--text); padding:10px 13px; }
.ua-overlay { position:fixed; inset:0; z-index:60; background:rgba(0,0,0,.55); opacity:0; visibility:hidden; }
.ua-overlay.open { opacity:1; visibility:visible; }

@media (max-width:1100px){
  .ua-card-grid{grid-template-columns:repeat(2,1fr)}
  .ua-product-grid,.ua-grid-2{grid-template-columns:1fr}
  .ua-top-menu{display:none}
}
@media (max-width:860px){
  .ua-mobile{display:block; margin-left:auto}
  .ua-sidebar{transform:translateX(-105%); transition:.24s ease}
  .ua-sidebar.open{transform:translateX(0)}
  .ua-main{margin-left:0}
  .ua-top{gap:10px}
  .ua-profile button b{display:none}
}
@media (max-width:560px){
  .ua-card-grid{grid-template-columns:1fr}
  .ua-row{align-items:flex-start; flex-direction:column}
  .ua-status{display:none}
}

/* Responsive polish */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
main,
.tp-header,
.tp-header-inner,
.tp-nav,
.tp-actions,
.tp-mega,
.product-card,
.panel,
.ap-card,
.ua-panel,
.cms-page,
.cookie-panel {
  min-width: 0;
}

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

td,
th,
input,
textarea,
select,
button,
.btn,
.tp-nav > a,
.tp-nav-button,
.tp-mega-product b,
.tp-mega-product small,
.tp-mega-promo p,
.product-body h3,
.detail-info h1,
.cart-item,
.line,
.ap-list-row,
.ua-row {
  overflow-wrap: anywhere;
  word-break: normal;
}

img,
video,
iframe {
  max-width: 100%;
}

.btn,
button {
  max-width: 100%;
  white-space: normal;
}

.tp-header {
  width: 100%;
}

.tp-header-inner {
  width: min(1540px, 100%);
  padding-inline: clamp(14px, 3vw, 54px);
}

.tp-brand {
  flex: 0 0 auto;
}

.tp-nav {
  min-width: 0;
}

.tp-actions {
  flex: 0 1 auto;
}

.tp-search {
  max-width: min(280px, 28vw);
}

.tp-mega {
  max-width: calc(100vw - 40px);
  overflow: hidden;
}

.tp-mega section,
.tp-mega-promo,
.tp-mega-product span {
  min-width: 0;
}

.tp-mega-product {
  min-width: 0;
}

.tp-mega-product img,
.detail-image img,
.product-image img,
.site-banner img,
.ua-product-grid img,
.cart-item img {
  max-width: 100%;
  height: auto;
}

.detail-image img,
.product-image img,
.site-banner img,
.ua-product-grid img {
  width: 100%;
  object-fit: cover;
}

.admin-form,
.auth,
.login-shell,
.tp-modal-form form {
  max-width: 100%;
}

.ap-main,
.ua-main {
  max-width: 100%;
  overflow-x: hidden;
}

.ap-card,
.ua-panel,
.panel,
.cms-page {
  overflow-x: auto;
}

.ap-list-row,
.ua-row,
.line,
.cart-item {
  min-width: 0;
}

.ap-actions-inline {
  min-width: 0;
}

@media (min-width: 1200px) {
  .products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .shop-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .detail {
    grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  }

  .cart-grid,
  .account-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .tp-header-inner {
    gap: 10px;
    padding-inline: 18px;
  }

  .tp-brand strong {
    font-size: 20px;
  }

  .tp-nav > a,
  .tp-nav-button {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .tp-search {
    display: none;
  }

  .tp-language-current {
    min-width: 48px;
  }

  .tp-login {
    padding-inline: 10px;
  }

  .tp-mega {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
  }

  .tp-mega-product {
    align-items: flex-start;
  }

  .tp-mega-product img {
    width: 62px;
    height: 54px;
  }

  .tp-mega-product small {
    max-width: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    gap: 30px;
    padding-inline: 34px;
  }

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

  .shop-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .detail {
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1fr);
    gap: 28px;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .cart-grid,
  .account-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .ap-sidebar {
    width: 280px;
  }

  .ap-shell {
    margin-left: 280px;
  }
}

@media (max-width: 1023px) {
  .tp-header,
  .tp-header-inner {
    height: 78px;
  }

  .tp-header.is-scrolled,
  .tp-header.is-scrolled .tp-header-inner {
    height: 70px;
  }

  .tp-header-inner {
    padding-inline: 16px;
    gap: 10px;
  }

  .tp-mobile-toggle {
    display: block;
    order: 3;
    margin-left: 0;
  }

  .tp-brand {
    order: 1;
  }

  .tp-actions {
    order: 2;
    margin-left: auto;
  }

  .tp-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: min(420px, calc(100vw - 28px));
    height: 100dvh;
    display: block;
    box-sizing: border-box;
    padding: 92px 18px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid rgba(148,163,255,.22);
    background: linear-gradient(180deg, rgba(8,13,26,.98), rgba(5,9,18,.98));
    box-shadow: -28px 0 90px rgba(0,0,0,.46);
    transform: translateX(110%);
    transition: transform .26s ease;
  }

  :root[data-theme="light"] .tp-nav {
    background: rgba(255,255,255,.98);
  }

  .tp-nav.open {
    transform: translateX(0);
  }

  .tp-nav > a,
  .tp-nav-button {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .tp-mega {
    position: static;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: none;
    grid-template-columns: 1fr;
    margin: 8px 0 14px;
    padding: 14px;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .tp-mega-wrap::after {
    display: none;
  }
  .tp-mega-wrap {
    width: 100%;
  }

  .tp-mega-wrap.open .tp-mega {
    display: grid;
    transform: none;
  }

  .tp-mega-wrap:hover .tp-mega {
    transform: none;
  }

  .tp-actions {
    margin-left: auto;
    gap: 8px;
    flex: 0 0 auto;
  }

  .tp-search {
    display: none;
  }

  .tp-login {
    width: 50px;
    min-width: 50px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .tp-login span {
    margin: 0;
  }

  .hero,
  .detail,
  .cart-grid,
  .account-grid,
  .admin-grid,
  .ua-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 24px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(34px, 7vw, 54px);
  }

  .hero-art {
    min-height: 300px;
  }

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

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .product-live-preview {
    position: static;
  }

  .detail {
    gap: 22px;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .site-banner {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  }

  .tp-login-modal {
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  .ap-sidebar {
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .ap-sidebar.open {
    transform: translateX(0);
  }

  .ap-shell {
    margin-left: 0;
  }

  .ap-mobile-toggle {
    display: inline-flex;
    align-items: center;
  }

  .ap-topbar {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .ap-actions {
    margin-left: auto;
  }

  .ap-grid-2,
  .ap-settings-grid,
  .ap-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ua-sidebar {
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .ua-sidebar.open {
    transform: translateX(0);
  }

  .ua-main {
    margin-left: 0;
  }

  .ua-mobile {
    display: block;
    margin-left: auto;
  }

  .ua-top-menu {
    display: none;
  }

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

@media (min-width: 768px) and (max-width: 1023px) {
  .section-head,
  .page-title,
  .products,
  .benefits,
  .shop-layout,
  .detail,
  .cart-grid,
  .account-grid,
  .site-footer,
  .content {
    padding-inline: 24px;
  }

  .trust-grid,
  .benefits,
  .ap-stat-grid,
  .ua-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-item,
  .line,
  .ap-list-row,
  .ua-row {
    align-items: flex-start;
  }

  .cookie-panel {
    width: min(720px, calc(100vw - 28px));
  }
}

@media (max-width: 767px) {
  .tp-topbar {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .tp-topbar div {
    display: none;
  }

  .tp-brand strong {
    font-size: 19px;
  }

  .tp-brand-icon {
    width: 38px;
    height: 38px;
  }

  .tp-language,
  .tp-theme {
    display: none;
  }

  .tp-nav {
    width: min(390px, calc(100vw - 20px));
    padding: 88px 14px 22px;
  }

  .tp-mega {
    padding: 12px;
    gap: 12px;
  }

  .tp-mega section,
  .tp-mega-promo {
    width: 100%;
    box-sizing: border-box;
  }

  .tp-mega-category,
  .tp-mega-page,
  .tp-mega-product {
    width: 100%;
    box-sizing: border-box;
  }

  .tp-mega-product {
    min-height: 74px;
    gap: 10px;
  }

  .tp-mega-product img {
    width: 58px;
    height: 52px;
    flex: 0 0 58px;
  }

  .tp-mega-promo {
    padding: 14px;
  }

  .tp-promo-visual {
    min-height: 130px;
    height: 130px;
  }

  .section-head,
  .page-title,
  .products,
  .benefits,
  .shop-layout,
  .detail,
  .cart-grid,
  .account-grid,
  .site-footer,
  .content {
    padding: 24px 16px;
  }

  .section-head,
  .site-footer,
  .cart-item,
  .download-row,
  .admin-row,
  .line,
  .ap-list-row,
  .ua-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2,
  .page-title h1 {
    font-size: 28px;
  }

  .hero {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero p {
    font-size: 16px;
  }

  .actions,
  .ap-actions-inline,
  .cookie-actions {
    width: 100%;
  }

  .actions .btn,
  .ap-actions-inline .btn,
  .cookie-actions .btn,
  .summary .btn,
  .detail-info .btn,
  .auth .btn {
    width: 100%;
  }

  .trust-grid,
  .benefits,
  .products,
  .admin-cards,
  .ap-stat-grid,
  .ua-card-grid,
  .ua-product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    width: 100%;
  }

  .product-body h3 {
    min-height: 0;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .price-row form,
  .price-row button {
    width: 100%;
  }

  .detail-image,
  .detail-info,
  .panel,
  .cms-page,
  .ap-card,
  .ua-panel {
    padding: 18px;
  }

  .detail-info h1 {
    font-size: 30px;
  }

  .cart-item form {
    width: 100%;
    flex-wrap: wrap;
  }

  .cart-item input {
    width: min(100%, 120px);
  }

  .site-banner {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-popup {
    padding: 12px;
  }

  .site-popup section {
    width: 100%;
    max-width: var(--popup-width, 560px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 24px 18px;
  }

  .site-popup--bottom-right,
  .site-popup--bottom-left {
    justify-items: center;
  }

  .site-popup img {
    max-height: 210px;
  }

  .tp-login-modal {
    grid-template-columns: 1fr;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }

  .tp-modal-art {
    min-height: 190px;
  }

  .tp-modal-form {
    padding: 48px 18px 22px;
  }

  .tp-modal-form h2 {
    font-size: 30px;
  }

  .auth {
    width: calc(100% - 24px);
    margin: 28px auto;
  }

  .ap-sidebar,
  .ua-sidebar {
    width: min(312px, calc(100vw - 34px));
  }

  .ap-main,
  .ua-main {
    padding: 16px;
  }

  .ap-topbar,
  .ua-top {
    height: auto;
    min-height: 74px;
    padding: 12px 14px;
  }

  .ap-title h1,
  .ua-title h1 {
    font-size: 25px;
  }

  .ap-actions,
  .ua-profile {
    width: 100%;
    justify-content: space-between;
  }

  .ap-dropdown > div,
  .ua-profile-menu {
    right: auto;
    left: 0;
    width: min(300px, calc(100vw - 32px));
  }

  .cookie-consent {
    inset: auto 10px 10px;
  }

  .cookie-panel {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .cookie-category {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cookie-table {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .cms-tabs {
    width: 100%;
  }

  .cms-tabs button {
    flex: 1 1 72px;
  }
}

@media (max-width: 480px) {
  .tp-header-inner {
    padding-inline: 10px;
  }

  .tp-brand strong {
    font-size: 17px;
  }

  .tp-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .tp-mobile-toggle,
  .tp-cart,
  .tp-login {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .tp-nav {
    width: calc(100vw - 12px);
    padding-inline: 12px;
  }

  .tp-actions {
    gap: 6px;
  }

  .hero,
  .section-head,
  .page-title,
  .products,
  .benefits,
  .shop-layout,
  .detail,
  .cart-grid,
  .account-grid,
  .site-footer,
  .content {
    padding-inline: 12px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .box3d {
    width: 190px;
    height: 270px;
  }

  .energy-ring {
    width: 260px;
  }

  .product-body,
  .detail-image,
  .detail-info,
  .panel,
  .cms-page,
  .ap-card,
  .ua-panel {
    padding: 15px;
  }

  .detail-info h1,
  .section-head h2,
  .page-title h1 {
    font-size: 26px;
  }

  .tp-login-modal {
    width: calc(100vw - 12px);
  }

  .tp-modal-art {
    min-height: 150px;
  }

  .tp-premium-mockup {
    min-height: 160px;
    transform: scale(.62);
  }

  .tp-modal-form {
    padding: 44px 14px 18px;
  }

  .tp-modal-form h2 {
    font-size: 26px;
  }

  .site-popup section,
  .cookie-panel {
    border-radius: 8px;
  }

  .popup-fieldset,
  .popup-designer-stage {
    border-radius: 8px;
  }

  .popup-designer-stage {
    min-height: 430px;
  }

  .ap-main,
  .ua-main {
    padding: 12px;
  }

  .ap-dropdown > button,
  .ap-theme,
  .ap-mobile-toggle,
  .ua-profile button {
    padding-inline: 10px;
  }

  .ua-brand {
    font-size: 18px;
  }

  .ua-profile button b,
  .ua-status {
    display: none;
  }

  .cookie-consent {
    inset: auto 6px 6px;
  }

  .cookie-panel {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 12px;
  }

  .cookie-copy p,
  .cookie-category small {
    font-size: 13px;
  }
}

/* Final popup overrides keep the designer/front-end output above older popup rules. */
.popup-designer-shell { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(380px,.78fr); gap: 24px; align-items: start; }
.popup-designer-shell .popup-preview-panel { position: sticky; top: 90px; display: grid; gap: 16px; }
.popup-designer-shell .popup-designer-stage { position: relative; min-height: 640px; border-radius: 22px; border: 1px solid rgba(148,163,255,.22); overflow: hidden; background: radial-gradient(circle at 18% 16%, rgba(79,134,255,.22), transparent 32%), radial-gradient(circle at 82% 12%, rgba(139,92,246,.2), transparent 30%), linear-gradient(145deg, #07111f, #0d1426 58%, #111827); }
.popup-designer-shell .popup-designer-stage.is-light { background: radial-gradient(circle at 18% 16%, rgba(79,134,255,.18), transparent 32%), radial-gradient(circle at 82% 12%, rgba(139,92,246,.16), transparent 30%), linear-gradient(145deg, #f8fbff, #eef3ff); }
.popup-lang-panel { display: none; gap: 14px; }
.popup-lang-panel.active { display: grid; }
.popup-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; }
.popup-preview-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.popup-preview-controls button { border: 1px solid rgba(148,163,255,.22); border-radius: 12px; padding: 9px 12px; background: rgba(255,255,255,.06); color: var(--text); font-weight: 850; cursor: pointer; }
.popup-preview-controls button.active, .popup-preview-controls button:hover { background: linear-gradient(135deg, rgba(79,134,255,.28), rgba(139,92,246,.22)); border-color: rgba(148,163,255,.45); }
.popup-admin-preview { position: absolute; z-index: 2; }
.site-popup { position: fixed; inset: 0; z-index: 220; display: grid; padding: 24px; background: rgba(2,6,23,var(--popup-overlay-opacity,.62)); background: color-mix(in srgb, var(--popup-overlay,#020617) var(--popup-overlay-percent,62%), transparent); opacity: 0; visibility: hidden; transition: opacity var(--popup-duration,260ms) ease, visibility var(--popup-duration,260ms) ease; }
.site-popup.open { opacity: 1; visibility: visible; }
.site-popup--center { place-items: center; }
.site-popup--top-left { align-items: start; justify-items: start; }
.site-popup--top-right { align-items: start; justify-items: end; }
.site-popup--bottom-left { align-items: end; justify-items: start; }
.site-popup--bottom-right { align-items: end; justify-items: end; }
.site-popup--top-bar { align-items: start; justify-items: stretch; padding: 0; }
.site-popup--bottom-bar { align-items: end; justify-items: stretch; padding: 0; }
.site-popup--top-left, .site-popup--top-right, .site-popup--bottom-left, .site-popup--bottom-right { background: transparent; pointer-events: none; }
.site-popup--top-left section, .site-popup--top-right section, .site-popup--bottom-left section, .site-popup--bottom-right section { pointer-events: auto; }
.site-popup section { position: relative; width: min(var(--popup-max-width,560px),100%); max-height: min(var(--popup-max-height,760px),calc(100vh - 48px)); overflow: auto; padding: var(--popup-padding,30px); border: var(--popup-border-width,1px) solid var(--popup-border-color,rgba(148,163,255,.28)); border-radius: var(--popup-radius,24px); background: var(--popup-gradient,var(--popup-bg,#fff)); color: var(--popup-color,#111827); box-shadow: 0 34px 110px rgba(0,0,0,.46); font-family: var(--popup-font,Inter,Arial,sans-serif); text-align: var(--popup-align,left); transform: translateY(12px); transition: transform var(--popup-duration,260ms) ease, opacity var(--popup-duration,260ms) ease; }
.site-popup section[data-shadow="none"] { box-shadow: none; }
.site-popup section[data-shadow="strong"] { box-shadow: 0 44px 140px rgba(0,0,0,.62); }
.site-popup section[data-shadow="glow"] { box-shadow: 0 30px 110px rgba(79,134,255,.36), 0 0 0 1px rgba(148,163,255,.18); }
.site-popup--top-bar section, .site-popup--bottom-bar section { width: 100%; max-width: none; border-radius: 0; max-height: 70vh; }
.site-popup--zoom section { transform: scale(.94); }
.site-popup--slide-top section { transform: translateY(-38px); }
.site-popup--slide-bottom section { transform: translateY(38px); }
.site-popup--slide-left section { transform: translateX(-38px); }
.site-popup--slide-right section { transform: translateX(38px); }
.site-popup--none section, .site-popup.open section { transform: translate(0,0) scale(1); }
.site-popup-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border: 1px solid rgba(148,163,255,.25); border-radius: 14px; background: rgba(255,255,255,.12); color: currentColor; font-size: 24px; line-height: 1; cursor: pointer; backdrop-filter: blur(12px); }
.site-popup-image { display: block; width: 100%; max-height: 300px; margin-bottom: 18px; border-radius: calc(var(--popup-radius,24px) * .72); object-fit: cover; }
.site-popup-image[hidden] { display: none; }
.site-popup-image--left section, .site-popup-image--right section { display: grid; grid-template-columns: minmax(160px,.82fr) 1fr; gap: 24px; align-items: center; }
.site-popup-image--right .site-popup-image { order: 2; }
.site-popup-image--left .site-popup-image, .site-popup-image--right .site-popup-image { height: 100%; max-height: 460px; margin: 0; }
.site-popup-image--background .site-popup-image { position: absolute; inset: 0; z-index: 0; height: 100%; max-height: none; margin: 0; border-radius: inherit; opacity: .22; }
.site-popup-copy, .site-popup-form { position: relative; z-index: 1; }
.site-popup small { display: inline-flex; margin-bottom: 10px; border-radius: 999px; padding: 6px 10px; background: rgba(79,134,255,.12); color: inherit; font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.site-popup h2 { margin: 0 0 10px; color: var(--popup-title-color,currentColor); font-size: var(--popup-title-size,30px); line-height: 1.08; }
.site-popup h3 { margin: 0 0 14px; color: inherit; font-size: calc(var(--popup-text-size,16px) + 2px); opacity: .82; }
.site-popup p, .site-popup div { color: inherit; font-size: var(--popup-text-size,16px); line-height: 1.65; }
.site-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.site-popup-actions a, .site-popup-form button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: calc(var(--popup-radius,24px) * .56); padding: 12px 18px; font-weight: 950; text-decoration: none; }
.site-popup-primary, .site-popup-form button { border: 0; background: var(--popup-button-bg,#4f86ff); color: var(--popup-button-color,#fff); }
.site-popup-secondary { border: 1px solid currentColor; background: rgba(255,255,255,.08); color: inherit; }
.site-popup-form { display: grid; gap: 10px; margin-top: 16px; }
.site-popup-form input { min-height: 44px; border: 1px solid rgba(148,163,255,.26); border-radius: 14px; padding: 0 14px; background: rgba(255,255,255,.12); color: inherit; }
@media (max-width: 1180px) {
  .popup-designer-shell { grid-template-columns: 1fr; }
  .popup-designer-shell .popup-preview-panel { position: relative; top: auto; }
}
@media (max-width: 760px) {
  .popup-check-grid, .popup-designer-form .ap-grid-2, .popup-designer-form .ap-grid-3 { grid-template-columns: 1fr; }
  .popup-save-actions, .popup-bottom-actions { align-items: stretch; }
  .popup-save-actions .btn, .popup-bottom-actions .btn { width: 100%; }
  .popup-designer-shell .popup-designer-stage { min-height: 520px; }
  .site-popup { padding: 14px; }
  .site-popup section { max-height: calc(100vh - 28px); }
  .site-popup-image--left section, .site-popup-image--right section { display: block; }
  .site-popup-image--left .site-popup-image, .site-popup-image--right .site-popup-image { height: auto; margin-bottom: 18px; }
}

/* Unified compact admin design system */
.admin-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-premium .btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}
.admin-premium .ap-card {
  border-radius: 16px;
  padding: 18px;
}
.admin-premium .ap-list-row {
  gap: 10px;
  padding: 12px 0;
}
.admin-premium .ap-list-row .btn {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 13px;
}
.admin-page-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-page-header h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0;
}
.admin-toolbar,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-actions.compact {
  gap: 6px;
}
.admin-card {
  border: 1px solid rgba(148,163,255,.18);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
:root[data-theme="light"] .admin-card {
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(30,45,90,.1);
}
.admin-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(148,163,255,.14);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-table code {
  white-space: nowrap;
}
.admin-button,
.admin-button-primary,
.admin-button-secondary,
.admin-button-danger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.admin-button-small {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 13px;
  border-radius: 8px;
}
.admin-button-primary {
  background: linear-gradient(135deg, #4f86ff, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(79,134,255,.22);
}
.admin-button-secondary {
  border-color: rgba(148,163,255,.25);
  background: rgba(255,255,255,.055);
  color: var(--text);
}
.admin-button-danger {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.35);
  color: #fecaca;
}
:root[data-theme="light"] .admin-button-danger {
  color: #b91c1c;
}
.admin-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}
.admin-status.is-active {
  background: rgba(39,217,139,.16);
  color: #6ee7b7;
}
.admin-status.is-muted {
  background: rgba(148,163,184,.16);
  color: var(--muted);
}
.admin-tabs,
.admin-device-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-tabs button,
.admin-device-switcher button {
  min-height: 36px;
  border: 1px solid rgba(148,163,255,.22);
  border-radius: 10px;
  padding-inline: 12px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}
.admin-tabs button.active,
.admin-device-switcher button.active,
.admin-tabs button:hover,
.admin-device-switcher button:hover {
  border-color: rgba(148,163,255,.42);
  background: linear-gradient(135deg, rgba(79,134,255,.22), rgba(139,92,246,.16));
}
.admin-preview-panel {
  position: sticky;
  top: 90px;
}
.admin-form label,
.admin-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.form-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .58fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.form-builder-main {
  display: grid;
  gap: 18px;
}
.form-preview-frame {
  width: 100%;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(148,163,255,.16);
  border-radius: 18px;
  background: radial-gradient(circle at 18% 0%, rgba(79,134,255,.13), transparent 34%), rgba(255,255,255,.04);
  overflow-x: auto;
  transition: max-width .2s ease;
}
.form-preview-frame.is-desktop { max-width: 1180px; }
.form-preview-frame.is-tablet { max-width: 768px; }
.form-preview-frame.is-mobile { max-width: 375px; }
.tp-form-builder {
  width: min(var(--form-width, 760px), 100%);
  margin-inline: auto;
  padding: var(--form-padding, 24px);
  border: 1px solid color-mix(in srgb, var(--form-border, #dbe3f0) 88%, transparent);
  border-radius: var(--form-radius, 14px);
  background: var(--form-bg, #fff);
  color: var(--form-text, #111827);
  font-size: var(--form-font, 16px);
}
.tp-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--form-gap, 16px);
}
.tp-form-grid.is-one .tp-form-field,
.tp-form-grid.is-one .tp-form-static {
  grid-column: span 4;
}
.tp-form-field,
.tp-form-static {
  grid-column: span 4;
}
.tp-form-field.w-25,
.tp-form-static.w-25 { grid-column: span 1; }
.tp-form-field.w-50,
.tp-form-static.w-50 { grid-column: span 2; }
.tp-form-field.w-75,
.tp-form-static.w-75 { grid-column: span 3; }
.tp-form-field.w-100,
.tp-form-static.w-100 { grid-column: span 4; }
.tp-form-field span {
  color: var(--form-label, var(--form-text));
}
.tp-form-field input,
.tp-form-field textarea,
.tp-form-field select {
  width: 100%;
  border: 1px solid var(--form-border, #dbe3f0);
  border-radius: calc(var(--form-radius, 14px) * .72);
  padding: 11px 12px;
  background: var(--form-field, #fff);
  color: var(--form-field-text, #111827);
}
.tp-form-field input:focus,
.tp-form-field textarea:focus,
.tp-form-field select:focus {
  outline: 2px solid color-mix(in srgb, var(--form-focus, #4f86ff) 45%, transparent);
  border-color: var(--form-focus, #4f86ff);
}
.tp-form-submit {
  min-height: 42px;
  margin-top: var(--form-gap, 16px);
  border: 0;
  border-radius: calc(var(--form-radius, 14px) * .82);
  padding: 0 18px;
  background: var(--form-button, #4f86ff);
  color: var(--form-button-text, #fff);
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 1180px) {
  .form-builder-layout,
  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-preview-panel {
    position: relative;
    top: auto;
  }
}
@media (max-width: 700px) {
  .admin-page-header {
    display: grid;
    align-items: start;
  }
  .admin-actions,
  .admin-toolbar {
    width: 100%;
  }
  .admin-table {
    min-width: 760px;
  }
  .tp-form-field.w-25,
  .tp-form-field.w-50,
  .tp-form-field.w-75,
  .tp-form-static.w-25,
  .tp-form-static.w-50,
  .tp-form-static.w-75 {
    grid-column: span 4;
  }
}

/* Final shop visual overrides */
.products.home-products {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.products.home-products .product-card {
  min-height: 100%;
}
@media (min-width: 1280px) {
  .products.home-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1530px) {
  .products.home-products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .products.home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .products.home-products {
    grid-template-columns: 1fr;
  }
}
.product-premium-hero,
.product-content-grid {
  box-sizing: border-box;
}
@media (max-width: 980px) {
  .product-premium-hero,
  .product-content-grid {
    width: min(100% - 24px, 1240px);
    grid-template-columns: 1fr;
  }
}

/* Focused fixes: compact product page and cleaner cart */
.products.home-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-premium-hero {
  width: min(1080px, calc(100% - 40px));
  margin-top: 28px;
  gap: 20px;
  grid-template-columns: minmax(0, .95fr) minmax(340px, .85fr);
}
.product-media-panel {
  padding: 16px;
  border-radius: 20px;
}
.product-media-stage {
  min-height: clamp(260px, 34vw, 430px);
  border-radius: 16px;
}
.product-media-stage img {
  max-height: 390px;
}
.product-buy-panel {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
}
.product-buy-panel h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
}
.product-lead {
  font-size: 15px;
  line-height: 1.55;
}
.product-price-box {
  margin-top: 16px;
  padding: 15px;
  border-radius: 16px;
}
.product-price-box strong {
  font-size: clamp(26px, 3vw, 34px);
}
.product-download-info {
  margin: 12px 0;
  padding: 13px;
  border-radius: 14px;
}
.product-trust-strip {
  margin: 12px 0;
  gap: 8px;
}
.product-trust-strip span {
  padding: 9px 8px;
}
.product-content-grid {
  width: min(1080px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: 18px;
}
.product-description-panel,
.product-spec-panel {
  padding: 20px;
}
.product-description {
  line-height: 1.6;
}
.cart-grid {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 34px;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}
.cart-item img,
.cart-item .product-no-image {
  width: 92px;
  height: 70px;
  min-height: 70px;
  border-radius: 12px;
  object-fit: cover;
}
.cart-item-info {
  display: grid;
  gap: 4px;
}
.cart-item-info b {
  font-size: 16px;
}
.cart-item-info span {
  color: var(--muted);
  font-weight: 800;
}
.cart-update-form {
  display: grid;
  grid-template-columns: 76px auto;
  gap: 8px;
  align-items: center;
}
.cart-update-form input {
  width: 76px;
  min-height: 42px;
  text-align: center;
}
.cart-update-form .btn,
.cart-remove-form .btn {
  min-height: 42px;
  padding: 0 14px;
}
.cart-remove-form {
  display: flex;
}
.summary {
  border-radius: 18px;
}
@media (max-width: 900px) {
  .products.home-products,
  .product-premium-hero,
  .product-content-grid,
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .cart-update-form,
  .cart-remove-form {
    grid-column: 2;
  }
}
@media (max-width: 560px) {
  .cart-grid,
  .product-premium-hero,
  .product-content-grid {
    width: min(100% - 24px, 1080px);
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
  .cart-item img,
  .cart-item .product-no-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1.5;
  }
  .cart-update-form,
  .cart-remove-form {
    grid-column: auto;
    width: 100%;
  }
  .cart-update-form {
    grid-template-columns: 1fr;
  }
  .cart-update-form input,
  .cart-update-form .btn,
  .cart-remove-form .btn {
    width: 100%;
  }
}

/* Mega Menu v3 */
[data-mega-version="3"] {
  --mega-border: rgba(148, 163, 255, .16);
  --mega-soft: rgba(255, 255, 255, .045);
  grid-template-columns: minmax(210px, .9fr) minmax(460px, 1.75fr) minmax(230px, .92fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--mega-border) !important;
  border-radius: 14px !important;
  background: #0d1724 !important;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .5) !important;
}
[data-mega-version="3"] .tp-mega-heading {
  grid-column: 1 / -1;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--mega-border);
  padding: 0 22px;
  background: linear-gradient(90deg, rgba(79, 134, 255, .08), rgba(139, 92, 246, .08));
}
[data-mega-version="3"] .tp-mega-heading div {
  display: flex;
  align-items: center;
  gap: 16px;
}
[data-mega-version="3"] .tp-mega-heading div > span {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .04em;
}
[data-mega-version="3"] .tp-mega-heading div > span span { color: #8b72ef; }
[data-mega-version="3"] .tp-mega-heading strong { color: #c2ccda; font-size: 13px; }
[data-mega-version="3"] .tp-mega-heading > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a99af5;
  font-size: 13px;
  font-weight: 800;
}
[data-mega-version="3"] .tp-mega-column {
  min-width: 0;
  padding: 22px;
}
[data-mega-version="3"] .tp-mega-column > small {
  min-height: 0;
  margin: 0 0 3px;
  color: #f5f7fb;
  font-size: 13px;
  letter-spacing: .045em;
}
[data-mega-version="3"] .tp-mega-column > p {
  margin: 0 0 15px;
  color: #77879a;
  font-size: 11px;
}
[data-mega-version="3"] .tp-mega-links {
  border-right: 1px solid var(--mega-border);
}
[data-mega-version="3"] .tp-mega-category {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  margin-bottom: 3px;
  border-radius: 8px;
  padding: 6px 8px;
}
[data-mega-version="3"] .tp-mega-category::before { display: none; }
[data-mega-version="3"] .tp-mega-category > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(119, 88, 232, .14);
  color: #ad9aff;
  font-style: normal;
}
[data-mega-version="3"] .tp-mega-category .tp-mega-icon {
  width: 18px;
  height: 18px;
  margin: 0;
}
[data-mega-version="3"] .tp-mega-category > span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-mega-version="3"] .tp-mega-category > span small {
  overflow: hidden;
  margin: 1px 0 0;
  color: #758598;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
[data-mega-version="3"] .tp-mega-category > b { color: #667589; font-size: 17px; }
[data-mega-version="3"] .tp-mega-products { border-right: 1px solid var(--mega-border); }
[data-mega-version="3"] .tp-mega-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
[data-mega-version="3"] .tp-mega-product {
  min-height: 104px;
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px;
  background: var(--mega-soft);
}
[data-mega-version="3"] .tp-mega-product:hover {
  border-color: rgba(139, 92, 246, .3);
  background: rgba(119, 88, 232, .1);
  transform: translateY(-2px);
}
[data-mega-version="3"] .tp-mega-product img {
  width: 82px;
  height: 78px;
  border-radius: 8px;
}
[data-mega-version="3"] .tp-mega-product b { font-size: 13px; }
[data-mega-version="3"] .tp-mega-product small {
  margin: 3px 0;
  color: #7f8da0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
[data-mega-version="3"] .tp-mega-product em { color: #b8acf9; font-size: 12px; }
[data-mega-version="3"] .tp-mega-product strong { font-size: 8px; }
[data-mega-version="3"] .tp-mega-side {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 22px;
}
[data-mega-version="3"] .tp-mega-side .tp-mega-pages { padding: 0 0 16px; }
[data-mega-version="3"] .tp-mega-page {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 12px;
}
[data-mega-version="3"] .tp-mega-page::before { display: none; }
[data-mega-version="3"] .tp-mega-page > b { color: #65758a; }
[data-mega-version="3"] .tp-mega-promo {
  position: relative;
  min-height: 190px;
  align-content: end;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, .24);
  border-radius: 11px;
  padding: 16px;
  background: linear-gradient(145deg, #182b47, #1b1839);
}
[data-mega-version="3"] .tp-mega-promo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}
[data-mega-version="3"] .tp-mega-promo > span,
[data-mega-version="3"] .tp-mega-promo h3,
[data-mega-version="3"] .tp-mega-promo p,
[data-mega-version="3"] .tp-mega-promo a { position: relative; z-index: 1; }
[data-mega-version="3"] .tp-mega-promo > span { color: #a99af5; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
[data-mega-version="3"] .tp-mega-promo h3 { color: #fff; font-size: 17px; }
[data-mega-version="3"] .tp-mega-promo p { color: #aebbc9; font-size: 11px; }
[data-mega-version="3"] .tp-mega-promo a {
  min-height: 36px;
  margin-top: 4px;
  border-radius: 7px;
  font-size: 11px;
}
:root[data-theme="light"] [data-mega-version="3"] {
  --mega-border: rgba(62, 76, 98, .13);
  --mega-soft: #f5f7fb;
  background: #fff !important;
}
:root[data-theme="light"] [data-mega-version="3"] .tp-mega-heading div > span,
:root[data-theme="light"] [data-mega-version="3"] .tp-mega-column > small { color: #142131; }
:root[data-theme="light"] [data-mega-version="3"] .tp-mega-heading strong { color: #657386; }
@media (max-width: 1023px) {
  [data-mega-version="3"] {
    grid-template-columns: 1fr 1fr !important;
    max-height: 72vh !important;
  }
  [data-mega-version="3"] .tp-mega-heading { grid-column: 1 / -1; }
  [data-mega-version="3"] .tp-mega-links { border-bottom: 1px solid var(--mega-border); }
  [data-mega-version="3"] .tp-mega-products { border-right: 0; border-bottom: 1px solid var(--mega-border); }
  [data-mega-version="3"] .tp-mega-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 680px) {
  [data-mega-version="3"] { grid-template-columns: 1fr !important; }
  [data-mega-version="3"] .tp-mega-heading { padding: 10px 14px; }
  [data-mega-version="3"] .tp-mega-heading strong { display: none; }
  [data-mega-version="3"] .tp-mega-column { padding: 16px; }
  [data-mega-version="3"] .tp-mega-product-grid { grid-template-columns: 1fr; }
  [data-mega-version="3"] .tp-mega-side { grid-column: auto; grid-template-columns: 1fr; padding: 16px; }
}

.tp-mega-clean{width:min(1180px,calc(100vw - 32px));padding:24px}.tp-mega-clean-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px}.tp-mega-clean-column{grid-column:span var(--mega-width);min-width:0}.tp-mega-clean-column h3{margin:0 0 14px;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.tp-mega-clean-column h4{margin:14px 0 8px}.tp-mega-clean-item{display:flex;justify-content:space-between;gap:12px;padding:10px 8px;border-radius:10px}.tp-mega-clean-item:hover{background:rgba(127,127,127,.09)}.tp-mega-clean-item span{display:grid;gap:3px}.tp-mega-clean-item small{font-size:12px}.tp-mega-clean-item em{font-size:11px;font-style:normal}.tp-mega-type-button{background:var(--primary);color:#fff;margin-top:8px}.tp-mega-image img,.tp-mega-promo-clean img{display:block;width:100%;border-radius:12px}.tp-mega-promo-clean{display:grid;gap:8px}.tp-mega-empty{grid-column:1/-1;padding:35px;text-align:center;color:var(--muted)}@media(max-width:900px){.tp-mega-clean-grid{grid-template-columns:1fr}.tp-mega-clean-column{grid-column:1/-1}}
