﻿:root {
  --bg-0: #050b14;
  --bg-1: #07111f;
  --bg-2: #0a1628;
  --surface: rgba(16, 32, 54, 0.72);
  --surface-2: rgba(19, 42, 70, 0.64);
  --surface-3: rgba(31, 58, 92, 0.58);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.085);
  --border: rgba(148, 181, 227, 0.18);
  --border-2: rgba(160, 196, 255, 0.30);
  --text: #eef6ff;
  --text-2: #c8d7ea;
  --muted: #91a5bf;
  --muted-2: #64748b;
  --blue: #6ca7ff;
  --blue-2: #3b82f6;
  --blue-3: #1d4ed8;
  --cyan: #38bdf8;
  --violet: #7c3aed;
  --green: #5ee28a;
  --green-soft: rgba(94, 226, 138, 0.14);
  --amber: #f5b84b;
  --amber-soft: rgba(245, 184, 75, 0.16);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.15);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.24);
  --glow-blue: 0 0 34px rgba(59, 130, 246, 0.24);
  --glow-violet: 0 0 38px rgba(124, 58, 237, 0.24);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --sidebar: 260px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 8%, rgba(74, 144, 226, 0.23), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.15), transparent 38rem),
    radial-gradient(circle at 60% 72%, rgba(245, 184, 75, 0.08), transparent 34rem),
    linear-gradient(135deg, var(--bg-0), var(--bg-1) 48%, #081525);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.48;
  background: transparent;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 55% 20%, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(108, 167, 255, 0.12), transparent 18rem),
    radial-gradient(circle, rgba(124, 58, 237, 0.09), transparent 22rem);
  background-position: 20% 15%, 85% 75%;
  background-repeat: no-repeat;
  animation: premiumAurora 18s var(--ease) infinite alternate;
}

@keyframes premiumAurora {
  0% {
    transform: translate3d(-1.4%, -1%, 0) scale(1);
    opacity: .82;
  }
  100% {
    transform: translate3d(1.6%, 1.2%, 0) scale(1.04);
    opacity: 1;
  }
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #b7d4ff;
}

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.04em;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 2.3vw, 42px);
  line-height: 1.05;
}

h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

p {
  color: var(--text-2);
  margin-top: 0;
}

small {
  color: var(--muted);
}

/* Premium sidebar navigation */

.top-nav {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  bottom: 20px !important;
  z-index: 100 !important;
  width: 260px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  padding: 26px 18px !important;
  background:
    linear-gradient(180deg, rgba(13, 27, 46, 0.86), rgba(5, 13, 24, 0.82)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 0%, rgba(92, 148, 255, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}

.top-nav > div:first-child {
  display: block;
  padding: 2px 8px 18px;
  border-bottom: 1px solid rgba(148, 181, 227, 0.12);
}

.top-nav > div:first-child strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.top-nav > div:first-child strong::before {
  content: "◆";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  background: linear-gradient(135deg, rgba(108,167,255,.95), rgba(124,58,237,.85));
  box-shadow: 0 0 28px rgba(82, 130, 255, 0.42);
  vertical-align: middle;
}

.top-nav > div:first-child::after {
  content: "Price Admin";
  display: block;
  margin-top: 6px;
  margin-left: 46px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .01em;
}

.top-nav > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  height: 100%;
}

.top-nav a {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid transparent;
  border-radius: 14px !important;
  color: var(--text-2) !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  transition:
    transform .22s var(--ease),
    background .22s var(--ease),
    border-color .22s var(--ease),
    color .22s var(--ease),
    box-shadow .22s var(--ease);
}

.top-nav a::before {
  width: 22px;
  display: inline-grid;
  place-items: center;
  color: #dbeafe;
  font-size: 18px;
  opacity: .9;
}

.top-nav a[href="/"]::before { content: "⌂"; }
.top-nav a[href="/products"]::before { content: "▣"; }
.top-nav a[href="/preview"]::before { content: "◉"; }
.top-nav a[href="/logs"]::before { content: "▤"; }
.top-nav a[href="/settings"]::before { content: "⚙"; }
.top-nav a[href="/system"]::before { content: "◇"; }
.top-nav a[href="/logout"]::before { content: "↪"; }

.top-nav a:hover {
  transform: translateX(3px);
  color: #ffffff !important;
  background: rgba(108, 167, 255, 0.10);
  border-color: rgba(147, 197, 253, 0.18);
}

.top-nav a.is-active {
  color: #ffffff !important;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(124, 58, 237, 0.28));
  border-color: rgba(147, 197, 253, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 14px 34px rgba(59, 130, 246, 0.20);
}

.top-nav a[href="/logout"] {
  margin-top: auto !important;
  color: #eaf2ff !important;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(148, 181, 227, 0.13);
}

.top-nav a[href="/logout"]:hover {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.26);
}

/* Layout */

body:has(.top-nav) {
  padding-left: calc(var(--sidebar) + 34px);
}

main,
.container,
.dashboard,
.page,
.products-page,
.system-page {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.products-page-v2 {
  width: min(1500px, calc(100% - 44px)) !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: 34px 0 52px !important;
}

main,
.products-page-v2,
.system-page {
  animation: pageEnter .55s var(--ease) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.992);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Glass cards */

.card,
.dashboard-card,
.product-card,
.settings-card,
.logs-card,
.preview-card,
.system-card,
.products-stat-card,
.products-toolbar,
.products-table-wrapper,
.login-box,
.login-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(26, 48, 78, 0.78), rgba(13, 29, 50, 0.60));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.card::before,
.dashboard-card::before,
.product-card::before,
.settings-card::before,
.logs-card::before,
.preview-card::before,
.system-card::before,
.products-stat-card::before,
.products-toolbar::before,
.products-table-wrapper::before,
.login-box::before,
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(96, 165, 250, 0.16), transparent 13rem);
  opacity: .86;
}

.card,
.dashboard-card,
.product-card,
.settings-card,
.logs-card,
.preview-card,
.system-card {
  padding: 24px;
}

.dashboard-card,
.product-card,
.system-card,
.products-stat-card,
.products-toolbar,
.products-table-wrapper {
  transition:
    transform .24s var(--ease),
    border-color .24s var(--ease),
    box-shadow .24s var(--ease),
    background .24s var(--ease);
}

.dashboard-card:hover,
.product-card:hover,
.system-card:hover,
.products-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 197, 253, 0.34);
  box-shadow: var(--shadow), var(--glow-blue);
}

/* Dashboard/cards */

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

.dashboard-card p,
.product-card p,
.card p {
  color: var(--text-2);
}

/* Alerts */

.alert,
.success,
.error,
.system-alert {
  position: relative;
  padding: 14px 16px;
  margin: 16px 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  backdrop-filter: blur(18px);
  animation: softDrop .38s var(--ease) both;
}

@keyframes softDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success,
.alert-success,
.system-alert-success {
  color: #baf7c8;
  background: var(--green-soft);
  border-color: rgba(94, 226, 138, 0.22);
}

.error,
.alert-error,
.system-alert-error {
  color: #ffd0d0;
  background: var(--red-soft);
  border-color: rgba(255, 107, 107, 0.24);
}

/* Forms */

form {
  margin: 0;
}

label {
  color: var(--text-2);
  font-weight: 800;
}

input,
select,
textarea {
  width: auto;
  max-width: 100%;
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid rgba(148, 181, 227, 0.20);
  border-radius: 13px;
  color: var(--text);
  background: rgba(4, 12, 24, 0.34);
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition:
    border-color .18s var(--ease),
    box-shadow .18s var(--ease),
    background .18s var(--ease),
    transform .18s var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: rgba(200, 215, 234, 0.55);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(108, 167, 255, 0.62);
  background: rgba(8, 21, 38, 0.72);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.13),
    inset 0 1px 0 rgba(255,255,255,.08);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--blue-2);
}

button,
.button,
.btn,
.system-button,
input[type="submit"] {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px !important;
  border: 1px solid rgba(148, 181, 227, 0.22);
  border-radius: 13px !important;
  color: var(--text) !important;
  background:
    linear-gradient(135deg, rgba(30, 55, 88, 0.80), rgba(15, 29, 50, 0.68));
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition:
    transform .18s var(--ease),
    box-shadow .18s var(--ease),
    border-color .18s var(--ease),
    background .18s var(--ease);
}

button::after,
.button::after,
.btn::after,
.system-button::after,
input[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-120%);
  transition: transform .55s var(--ease);
}

button:hover,
.button:hover,
.btn:hover,
.system-button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.42);
  box-shadow: 0 14px 30px rgba(0,0,0,.22), var(--glow-blue);
}

button:hover::after,
.button:hover::after,
.btn:hover::after,
.system-button:hover::after,
input[type="submit"]:hover::after {
  transform: translateX(120%);
}

button:disabled,
.system-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button[type="submit"],
.btn-primary,
.button-primary,
.system-button-primary,
input[type="submit"] {
  color: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.34) !important;
  background:
    linear-gradient(135deg, rgba(67, 120, 220, 0.96), rgba(86, 64, 212, 0.92)) !important;
  box-shadow:
    0 18px 42px rgba(59, 130, 246, 0.24),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* Login */

.login-page,
.login-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
}

body:not(:has(.top-nav)) main,
body:not(:has(.top-nav)) .container {
  width: 100%;
  padding: 0;
}

.login-box,
.login-card {
  width: min(480px, 100%);
  padding: 38px;
  border-radius: 30px;
  animation: loginFloat .7s var(--ease) both;
}

@keyframes loginFloat {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.98);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.login-box h1,
.login-card h1 {
  text-align: center;
  margin-bottom: 10px;
}

.login-box h1::before,
.login-card h1::before {
  content: "🔒";
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 20px;
  background: rgba(108, 167, 255, 0.12);
  box-shadow: var(--glow-blue);
}

.login-box label,
.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.login-box input,
.login-card input {
  width: 100%;
}

.login-box button,
.login-card button {
  width: 100%;
  margin-top: 8px;
}

/* Tables */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  background: rgba(6, 15, 29, 0.46);
}

th,
td {
  border-bottom: 1px solid rgba(148, 181, 227, 0.105);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

tbody tr {
  transition: background .16s var(--ease), transform .16s var(--ease);
}

tbody tr:hover {
  background: rgba(108, 167, 255, 0.055);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Products */

.products-header,
.system-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 22px !important;
  margin-bottom: 22px !important;
}

.products-header p,
.system-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.products-header-actions,
.system-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.products-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.products-stat-card {
  min-height: 120px;
  padding: 22px !important;
}

.products-stat-card span {
  display: block;
  color: var(--text-2);
  font-weight: 750;
  margin-bottom: 8px;
}

.products-stat-card strong {
  display: block;
  color: #ffffff;
  font-size: 36px !important;
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 0 0 24px rgba(147, 197, 253, 0.12);
}

.products-toolbar {
  padding: 18px !important;
  margin-bottom: 16px !important;
}

.products-toolbar-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: end !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 14px !important;
}

.products-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}

#productsSearch {
  min-width: 330px;
}

.products-toolbar .system-button,
.products-page-v2 button.system-button,
.products-page-v2 a.system-button {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.products-pagination {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

#productsPageInfo {
  color: var(--text-2);
  font-weight: 850;
}

.products-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px !important;
  margin-top: 4px !important;
}

.products-summary strong {
  color: #ffffff;
}

.products-table-wrapper {
  overflow: auto;
}

.products-table {
  min-width: 1080px;
}

.products-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.products-table th,
.products-table td {
  padding: 13px 14px !important;
}

.product-title-cell {
  min-width: 400px !important;
  max-width: 620px !important;
  color: var(--text-2);
}

.product-eur-input {
  width: 154px;
  max-width: 154px !important;
}

.product-status,
.system-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: lowercase;
  border: 1px solid transparent;
}

.product-status-active,
.system-status-ok {
  color: #baf7c8;
  background: rgba(43, 157, 84, 0.18);
  border-color: rgba(94, 226, 138, 0.18);
}

.product-status-paused,
.system-status-warning {
  color: #ffd88a;
  background: rgba(245, 184, 75, 0.15);
  border-color: rgba(245, 184, 75, 0.18);
}

.product-status-draft,
.product-status-unknown {
  color: #d7e3f5;
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.18);
}

.system-status-error {
  color: #ffc6c6;
  background: var(--red-soft);
  border-color: rgba(255, 107, 107, 0.20);
}

.products-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 14px !important;
  background:
    linear-gradient(135deg, rgba(20, 39, 65, 0.88), rgba(10, 22, 39, 0.82));
  border: 1px solid rgba(148, 181, 227, 0.22);
  border-radius: 22px !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.products-save-bar .system-button-primary {
  min-width: 300px !important;
}

.products-save-bar span {
  color: var(--muted);
}

/* System page */

.system-page {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 52px !important;
}

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

.system-card-wide {
  margin-top: 16px;
}

.system-card dl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px 14px;
  margin: 0;
}

.system-card dt {
  color: var(--muted);
  font-weight: 800;
}

.system-card dd {
  margin: 0;
  color: var(--text-2);
  word-break: break-word;
}

.system-table th,
.system-table td {
  padding: 12px 14px;
}

/* Settings / logs / preview fallback */

.settings-form,
.form-grid {
  display: grid;
  gap: 14px;
}

.settings-form label,
.form-grid label {
  display: grid;
  gap: 8px;
}

.logs-list,
.preview-list {
  display: grid;
  gap: 12px;
}

/* Generic compatibility */

.muted,
.text-muted,
.system-muted {
  color: var(--muted) !important;
}

.center {
  text-align: center;
}

hr {
  border: 0;
  border-top: 1px solid rgba(148, 181, 227, 0.13);
}

/* Reveal animations */

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
}

.reveal-item.is-visible {
  animation: revealItem .55s var(--ease) both;
}

@keyframes revealItem {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.premium-ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.24);
  animation: ripple .65s var(--ease);
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(12);
    opacity: 0;
  }
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: rgba(4, 12, 24, 0.65);
}

::-webkit-scrollbar-thumb {
  background: rgba(108, 167, 255, 0.26);
  border: 3px solid rgba(4, 12, 24, 0.65);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 167, 255, 0.44);
}

/* Responsive */

@media (max-width: 1160px) {
  :root {
    --sidebar: 0px;
  }

  body:has(.top-nav) {
    padding-left: 0;
  }

  .top-nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: auto !important;
    border-radius: 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
  }

  .top-nav > div:first-child {
    border-bottom: 0;
    padding: 0;
  }

  .top-nav > div:first-child strong {
    font-size: 20px;
  }

  .top-nav > div:first-child strong::before {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .top-nav > div:first-child::after {
    display: none;
  }

  .top-nav > div:last-child {
    flex-direction: row !important;
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .top-nav a {
    min-height: 38px;
    padding: 8px 10px !important;
  }

  .top-nav a[href="/logout"] {
    margin-top: 0 !important;
  }

  .dashboard-grid,
  .cards-grid,
  .system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .products-pagination {
    margin-left: 0 !important;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 28px;
  }

  main,
  .container,
  .dashboard,
  .page,
  .products-page,
  .products-page-v2,
  .system-page {
    width: min(100% - 24px, 1180px) !important;
    padding-top: 22px !important;
  }

  .top-nav {
    display: block !important;
  }

  .top-nav > div:last-child {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .top-nav a {
    margin: 0 !important;
  }

  .products-header,
  .system-header {
    display: block !important;
  }

  .products-header-actions,
  .system-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .dashboard-grid,
  .cards-grid,
  .system-grid,
  .products-stats-grid {
    grid-template-columns: 1fr !important;
  }

  #productsSearch {
    min-width: 0;
    width: 100%;
  }

  .products-toolbar-row {
    align-items: stretch !important;
  }

  .products-save-bar {
    display: grid;
    bottom: 8px;
  }

  .products-save-bar .system-button-primary {
    width: 100%;
    min-width: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
/* Stage 22.1 premium dark layout fixes */

body:not(.login-body) {
  padding-left: 304px !important;
}

body.login-body {
  padding-left: 0 !important;
}

nav,
.top-nav {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  bottom: 20px !important;
  z-index: 100 !important;
  width: 260px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  padding: 26px 18px !important;
  background:
    linear-gradient(180deg, rgba(13, 27, 46, 0.92), rgba(5, 13, 24, 0.88)) !important;
  border: 1px solid rgba(148, 181, 227, 0.18) !important;
  border-radius: 24px !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(24px) !important;
  overflow: hidden !important;
}

nav > div:first-child,
.top-nav > div:first-child {
  display: block !important;
  padding: 2px 8px 18px !important;
  border-bottom: 1px solid rgba(148, 181, 227, 0.12) !important;
}

nav > div:first-child strong,
.top-nav > div:first-child strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 28px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.06em !important;
}

nav > div:first-child strong::before,
.top-nav > div:first-child strong::before {
  content: "◆" !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  margin-right: 10px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  background: linear-gradient(135deg, rgba(108,167,255,.95), rgba(124,58,237,.85)) !important;
  box-shadow: 0 0 28px rgba(82, 130, 255, 0.42) !important;
  vertical-align: middle !important;
}

nav > div:first-child::after,
.top-nav > div:first-child::after {
  content: "Price Admin" !important;
  display: block !important;
  margin-top: 6px !important;
  margin-left: 46px !important;
  color: #91a5bf !important;
  font-size: 15px !important;
}

nav > div:last-child,
.top-nav > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  height: 100% !important;
}

nav a,
.top-nav a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: #c8d7ea !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    background .22s cubic-bezier(.2,.8,.2,1),
    border-color .22s cubic-bezier(.2,.8,.2,1),
    color .22s cubic-bezier(.2,.8,.2,1),
    box-shadow .22s cubic-bezier(.2,.8,.2,1) !important;
}

nav a:hover,
.top-nav a:hover {
  transform: translateX(3px) !important;
  color: #ffffff !important;
  background: rgba(108, 167, 255, 0.10) !important;
  border-color: rgba(147, 197, 253, 0.18) !important;
}

nav a.is-active,
.top-nav a.is-active {
  color: #ffffff !important;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.34), rgba(124, 58, 237, 0.28)) !important;
  border-color: rgba(147, 197, 253, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 14px 34px rgba(59, 130, 246, 0.20) !important;
}

nav a[href="/logout"],
.top-nav a[href="/logout"] {
  margin-top: auto !important;
  color: #eaf2ff !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(148, 181, 227, 0.13) !important;
}

main,
.container,
.dashboard,
.page,
.products-page,
.system-page {
  width: min(1480px, calc(100% - 44px)) !important;
  margin: 0 auto !important;
  padding: 34px 0 52px !important;
}

.products-page-v2 {
  width: min(1500px, calc(100% - 44px)) !important;
  max-width: 1500px !important;
  margin: 0 auto !important;
  padding: 34px 0 52px !important;
}

.dashboard,
main {
  color: #eef6ff !important;
}

.dashboard > div,
.dashboard-card,
.card,
.product-card {
  background:
    linear-gradient(135deg, rgba(26, 48, 78, 0.78), rgba(13, 29, 50, 0.60)) !important;
  border: 1px solid rgba(148, 181, 227, 0.18) !important;
  border-radius: 26px !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24) !important;
  padding: 24px !important;
}

.login-page {
  min-height: 100vh !important;
  display: grid !important;
  place-items: center !important;
  padding: 26px !important;
}

.login-card {
  width: min(480px, 100%) !important;
  padding: 38px !important;
  border-radius: 30px !important;
  background:
    linear-gradient(135deg, rgba(26, 48, 78, 0.78), rgba(13, 29, 50, 0.60)) !important;
  border: 1px solid rgba(148, 181, 227, 0.22) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(24px) !important;
}

.login-card h1 {
  text-align: center !important;
  margin-bottom: 10px !important;
}

.login-subtitle,
.login-note {
  text-align: center !important;
  color: #91a5bf !important;
}

.login-card label {
  display: grid !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
  color: #c8d7ea !important;
}

.login-card input {
  width: 100% !important;
}

.login-card button {
  width: 100% !important;
  margin-top: 8px !important;
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
}

.reveal-item.is-visible {
  animation: revealItem .55s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes revealItem {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.premium-ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.24);
  animation: ripple .65s cubic-bezier(.2,.8,.2,1);
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(12);
    opacity: 0;
  }
}

@media (max-width: 1160px) {
  body:not(.login-body) {
    padding-left: 0 !important;
  }

  nav,
  .top-nav {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: auto !important;
    border-radius: 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
  }

  nav > div:first-child,
  .top-nav > div:first-child {
    border-bottom: 0 !important;
    padding: 0 !important;
  }

  nav > div:first-child strong,
  .top-nav > div:first-child strong {
    font-size: 20px !important;
  }

  nav > div:first-child::after,
  .top-nav > div:first-child::after {
    display: none !important;
  }

  nav > div:last-child,
  .top-nav > div:last-child {
    flex-direction: row !important;
    height: auto !important;
    flex-wrap: wrap !important;
  }

  nav a,
  .top-nav a {
    min-height: 38px !important;
    padding: 8px 10px !important;
  }

  nav a[href="/logout"],
  .top-nav a[href="/logout"] {
    margin-top: 0 !important;
  }
}
