/* Parasolution theme refresh (2026-10-23).
   Modernised version of the existing look, in the spirit of the admin panel:
   deep neutral surfaces, thin borders, magenta accent, soft depth.
   Colours come from tokens, so the optional themes (black-violet, modern,
   hacker…) keep working; the default theme gets the magenta identity. */

/* ---------- Tokens ---------- */
html[data-theme="default"],
html:not([data-theme]) {
  --bg-primary: #09090b;
  --bg-secondary: #111114;
  --bg-tertiary: #18181c;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --border: #25252b;
  --accent: #bd0955;
  --accent-hover: #d6176c;
  --accent-deep: #8a0640;
  --accent-2: #e23d82;
  --accent-rgb: 189, 9, 85;
  --shadow: rgba(0, 0, 0, .45);
  color-scheme: dark;
}

html[data-theme="default"] .dashboard,
html:not([data-theme]) .dashboard {
  --accent-hover: #d6176c;
}

:root {
  --pal-radius-sm: 8px;
  --pal-radius: 12px;
  --pal-radius-lg: 16px;
  --pal-border-strong: rgba(255, 255, 255, .09);
  --pal-surface: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 60%), var(--bg-secondary);
  --pal-surface-hover: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 60%), var(--bg-secondary);
  --pal-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -18px rgba(0, 0, 0, .8);
  --pal-shadow-lift: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(var(--accent-rgb, 189, 9, 85), .18);
  --pal-accent-gradient: linear-gradient(135deg, var(--accent-hover), var(--accent) 45%, var(--accent-deep, var(--accent)));
  --pal-accent-glow: 0 10px 28px -12px rgba(var(--accent-rgb, 189, 9, 85), .75);
  --pal-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
html[data-theme="default"] body,
html:not([data-theme]) body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(1100px 520px at 50% -180px, rgba(var(--accent-rgb, 189, 9, 85), .13), transparent 70%),
    radial-gradient(700px 400px at 100% 30%, rgba(var(--accent-rgb, 189, 9, 85), .04), transparent 70%);
  background-attachment: fixed;
}

/* index.html paints #root solid to avoid a white flash; let the page glow through once styled. */
html #root { background: transparent; }

body {
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}

::selection {
  background: rgba(var(--accent-rgb, 189, 9, 85), .45);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #2c2c33 transparent;
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: #2c2c33;
  border: 3px solid transparent;
  border-radius: 10px;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--accent-rgb, 189, 9, 85), .6); }

:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 189, 9, 85), .8);
  outline-offset: 2px;
}

h1, h2, h3 {
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- Top navigation ---------- */
.home-nav {
  background: rgba(9, 9, 11, .72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--pal-border-strong);
}

.home-nav .nav-link,
.home-nav .nav-dropdown-trigger {
  border-radius: 10px;
  transition: color .15s ease, background-color .15s ease;
}

.home-nav .nav-link:not(.nav-link-primary):hover,
.home-nav .nav-dropdown-trigger:hover {
  background: rgba(255, 255, 255, .05);
  color: var(--text-primary);
}

.dashboard-header {
  background: rgba(9, 9, 11, .78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--pal-border-strong);
}

/* ---------- Buttons ---------- */
.btn-primary,
.nav-link-primary,
.product-purchase-btn:not(.product-purchase-btn-not-released),
.solution-cta,
.payments-cta-btn,
.buy-button,
.menu-explore-build-btn,
.store-buy-btn,
.login-button,
.submit-button,
.admin-btn-save,
.cookie-btn-primary {
  background: var(--pal-accent-gradient) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--pal-accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .15s var(--pal-ease), box-shadow .2s ease, filter .2s ease;
}

.btn-primary:hover,
.nav-link-primary:hover,
.product-purchase-btn:not(.product-purchase-btn-not-released):hover,
.solution-cta:hover,
.payments-cta-btn:hover,
.buy-button:not(:disabled):hover,
.menu-explore-build-btn:hover,
.store-buy-btn:hover,
.login-button:not(:disabled):hover,
.submit-button:not(:disabled):hover,
.admin-btn-save:not(:disabled):hover,
.cookie-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px rgba(var(--accent-rgb, 189, 9, 85), .85), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn-primary:active,
.product-purchase-btn:active,
.buy-button:active,
.solution-cta:active {
  transform: translateY(0);
  filter: brightness(.96);
}

.buy-button:disabled,
.login-button:disabled,
.submit-button:disabled,
.admin-btn-save:disabled {
  filter: grayscale(.4) brightness(.8);
  box-shadow: none;
  transform: none;
}

.btn-secondary,
.btn-discord,
.cookie-btn-secondary {
  border-radius: 10px;
  font-weight: 600;
}

.btn-discord {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid var(--pal-border-strong) !important;
  box-shadow: none !important;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, .16) !important;
  border-color: rgba(88, 101, 242, .55) !important;
}

/* ---------- Cards ---------- */
.cheat-menu-card,
.feedback-card,
.key-feature-card,
.product-card,
.solution-card,
.video-showcase-card,
.why-external-item,
.menu-feature-panel,
.menu-mouse-card,
.store-product-card,
.admin-card,
.overview-card,
.stat-card,
.admin-stat-card,
.license-card,
.login-card,
.register-card {
  background: var(--pal-surface);
  border: 1px solid var(--border);
  border-radius: var(--pal-radius-lg);
  box-shadow: var(--pal-shadow);
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s var(--pal-ease), background .2s ease;
}

.feedback-card:hover,
.key-feature-card:hover,
.product-card:hover,
.solution-card:hover,
.video-showcase-card:hover,
.why-external-item:hover,
.store-product-card:hover {
  border-color: rgba(var(--accent-rgb, 189, 9, 85), .4);
  box-shadow: var(--pal-shadow-lift);
  background: var(--pal-surface-hover);
  transform: translateY(-2px);
}

.key-feature-card.highlight,
.product-card.featured,
.product-card.popular {
  border-color: rgba(var(--accent-rgb, 189, 9, 85), .55);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb, 189, 9, 85), .12), transparent 60%),
    var(--pal-surface);
}

.cheat-menu-info-box,
.solution-diagram-box,
.product-meta-table,
.store-meta {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  border-radius: var(--pal-radius);
}

/* Store "not available" notice (StoreNativeCatalog). */
article.store-product-card[style*="text-align: center"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 44px 40px 40px !important;
}

article.store-product-card[style*="text-align: center"] h1 { margin: 8px 0 0; font-size: 30px; }
article.store-product-card[style*="text-align: center"] p { margin: 0 0 12px; color: var(--text-secondary); }
article.store-product-card[style*="text-align: center"] .payments-cta-btn { padding: 12px 28px; width: auto; }
article.store-product-card[style*="text-align: center"] .product-badge { position: static; }

/* ---------- Sections ---------- */
.section-title {
  font-weight: 800;
  letter-spacing: -.03em;
}

.solutions-label,
.section-label,
.section-eyebrow,
.store-eyebrow {
  color: var(--accent-2, var(--accent));
  letter-spacing: .18em;
}

.product-section-subtitle,
.section-subtitle {
  color: var(--text-secondary);
}

.server-logos-section {
  background: rgba(255, 255, 255, .015);
  border-color: var(--border);
}

.cta-section-compact {
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(var(--accent-rgb, 189, 9, 85), .14), transparent 70%);
  border-top: 1px solid var(--border);
}

/* ---------- Segmented tabs ---------- */
.menu-tab,
.menu-mouse-tab,
.product-access-tab,
.product-tab,
.store-tab {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text-secondary);
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}

.menu-tab:hover,
.menu-mouse-tab:hover,
.product-access-tab:hover {
  color: var(--text-primary);
  border-color: var(--pal-border-strong);
  background: rgba(255, 255, 255, .06);
}

.menu-tab.active,
.menu-mouse-tab.active,
.product-access-tab.product-access-tab-active {
  background: var(--pal-accent-gradient) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--pal-accent-glow);
}

/* "External" UI chrome used cyan; the product artwork (DVD boxes) keeps its colours. */
.menu-features-tabs-external .menu-tab:hover {
  color: var(--text-primary) !important;
  border-color: var(--pal-border-strong) !important;
  background: rgba(255, 255, 255, .06) !important;
}

.menu-features-tabs-external .menu-tab:hover:before { background: var(--accent) !important; }

.menu-feature-content-external .menu-feature-panel {
  border-color: var(--border) !important;
  box-shadow: var(--pal-shadow) !important;
}

.menu-feature-content-external .menu-feature-list li:before,
.menu-feature-list li:before {
  background: var(--accent) !important;
  box-shadow: 0 0 8px rgba(var(--accent-rgb, 189, 9, 85), .6) !important;
}

.menu-explore-build-btn.external.active,
.menu-build-choice-box-external {
  border-color: rgba(var(--accent-rgb, 189, 9, 85), .5) !important;
}

/* Store hero frame: accent chrome around the product box. */
.packaging-showcase {
  border-color: rgba(var(--accent-rgb, 189, 9, 85), .45) !important;
  border-radius: var(--pal-radius-lg) !important;
  background:
    radial-gradient(80% 120% at 0% 50%, rgba(var(--accent-rgb, 189, 9, 85), .12), transparent 60%),
    var(--pal-surface) !important;
  box-shadow: 0 30px 70px -40px rgba(var(--accent-rgb, 189, 9, 85), .7), var(--pal-shadow) !important;
}

.packaging-showcase .packaging-showcase-solution-tag {
  background: var(--pal-accent-gradient) !important;
  border-color: transparent !important;
  border-radius: 8px;
}

.packaging-showcase .packaging-showcase-bar { background: var(--accent) !important; color: var(--accent) !important; }

/* ---------- Badges & small accents ---------- */
.product-badge,
.feedback-badge,
.solution-card-tag {
  border-radius: 999px;
  letter-spacing: .06em;
}

.feedback-badge {
  background: rgba(var(--accent-rgb, 189, 9, 85), .14);
  color: #ff8fbd;
  border: 1px solid rgba(var(--accent-rgb, 189, 9, 85), .35);
}

.feedback-avatar {
  background: var(--pal-accent-gradient);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 189, 9, 85), .25);
}

.why-icon {
  background: radial-gradient(circle at 30% 20%, var(--accent-hover), var(--accent-deep, var(--accent))) !important;
  box-shadow: var(--pal-accent-glow);
}

/* ---------- Payments block ---------- */
.payments-section {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.payments-section-glow {
  background: radial-gradient(80% 80% at 0% 50%, rgba(var(--accent-rgb, 189, 9, 85), .22), transparent 70%) !important;
}

.payments-card.payments-card-primary {
  background: linear-gradient(145deg, #7a0a3b, #3a0520) !important;
  box-shadow: 0 30px 60px -25px rgba(var(--accent-rgb, 189, 9, 85), .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="datetime-local"],
select,
textarea {
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 189, 9, 85), .2) !important;
  outline: none;
}

/* ---------- Login / register ---------- */
/* Inline-styled "Generate password" button next to the password field. */
button[style*="rgb(113, 54, 138)"] {
  background: rgba(var(--accent-rgb, 189, 9, 85), .14) !important;
  border: 1px solid rgba(var(--accent-rgb, 189, 9, 85), .45) !important;
  border-radius: 10px !important;
  color: #ffd1e3 !important;
  font-weight: 600;
  transition: background-color .15s ease;
}

button[style*="rgb(113, 54, 138)"]:hover {
  background: rgba(var(--accent-rgb, 189, 9, 85), .26) !important;
}

.killfeed-entry {
  border-color: var(--pal-border-strong) !important;
  background: rgba(17, 17, 20, .82) !important;
  border-radius: 10px !important;
}

.killfeed-killer { color: #ff6aa6 !important; }

/* ---------- Footer ---------- */
.home-footer {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015));
  border-top: 1px solid var(--border);
}

.footer-social-link,
.footer-terms-link {
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.footer-social-link:hover,
.footer-terms-link:hover {
  color: var(--text-primary);
}

/* ---------- Modals & toasts ---------- */
.modal,
.modal-content,
.confirm-popup,
.purchase-popup,
.welcome-modal {
  border-radius: var(--pal-radius-lg);
  border: 1px solid var(--pal-border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02);
}

.cookie-banner-inner {
  background: rgba(17, 17, 20, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--pal-border-strong);
  border-radius: var(--pal-radius-lg);
}

@media (prefers-reduced-motion: reduce) {
  .feedback-card:hover,
  .key-feature-card:hover,
  .product-card:hover,
  .solution-card:hover,
  .video-showcase-card:hover,
  .why-external-item:hover,
  .store-product-card:hover,
  .btn-primary:hover,
  .product-purchase-btn:hover,
  .buy-button:hover,
  .solution-cta:hover {
    transform: none;
  }
}

/* ---------- Shared site footer (PalSiteFooter) ---------- */
/* Pages still render their own legacy footer copies; only the shared one is shown. */
#root .home-footer:not(.pal-site-footer) { display: none !important; }

.pal-site-footer {
  margin-top: 0;
  padding: 56px 0 28px;
}

.pal-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.pal-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
}

.pal-footer-logo {
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}

.pal-footer-logo .footer-brand {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text-primary);
}

.pal-footer-logo .footer-solution {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent);
}

.pal-footer-tagline {
  max-width: 300px;
  margin: 10px 0 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.pal-site-footer .footer-social {
  display: flex;
  gap: 8px;
}

.pal-site-footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-secondary);
}

.pal-site-footer .footer-social-link:hover {
  border-color: rgba(var(--accent-rgb, 189, 9, 85), .5);
  background: rgba(var(--accent-rgb, 189, 9, 85), .12);
  color: #fff;
}

.pal-footer-col h4 {
  margin: 4px 0 14px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pal-footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pal-footer-link {
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
  opacity: .78;
  transition: opacity .15s ease, color .15s ease;
}

.pal-footer-link:hover { opacity: 1; color: #fff; }

.pal-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.pal-site-footer .footer-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.pal-site-footer .footer-payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 860px) {
  .pal-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pal-footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .pal-site-footer { padding-top: 40px; }
  .pal-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .pal-footer-bottom { flex-direction: column; align-items: flex-start; }
  .pal-site-footer .footer-payment-methods { flex-wrap: wrap; }
}

/* ---------- Home hero call to action ---------- */
.pal-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.pal-hero-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.pal-hero-cta .pal-hero-cta-alt {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--pal-border-strong);
  color: var(--text-primary);
  transition: background-color .15s ease, border-color .15s ease;
}

.pal-hero-cta .pal-hero-cta-alt:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

@media (max-width: 480px) {
  .pal-hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Lifetime offer ---------- */
.product-card.pal-lifetime-card {
  border-color: rgba(var(--accent-rgb, 189, 9, 85), .55);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--accent-rgb, 189, 9, 85), .14), transparent 60%),
    var(--pal-surface);
}

.product-card.pal-lifetime-card .product-badge {
  background: var(--pal-accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ---------- Terms page under the shared navigation ---------- */
.home-nav ~ .login-container {
  min-height: auto;
  padding-top: 112px;
  padding-bottom: 64px;
}

/* ---------- Product previews on Affiliation / Resellers ---------- */
.affiliation-menu-box,
.resellers-menu-box {
  padding: 10px !important;
  background: var(--pal-surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--pal-radius-lg) !important;
  box-shadow: 0 40px 80px -40px rgba(var(--accent-rgb, 189, 9, 85), .45), var(--pal-shadow) !important;
}

.affiliation-menu-box img,
.resellers-menu-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ---------- 404: the shared navigation replaces the page's own mini nav ---------- */
.home-nav ~ .notfound-container .notfound-nav { display: none; }
.home-nav ~ .notfound-container { padding-top: 72px; }
