:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --ink: #111a2e;
  --muted: #66758d;
  --line: #dce3ea;
  --brand: #0f8d83;
  --brand-dark: #0b6f68;
  --accent: #1d4ed8;
  --amber: #ff9d00;
  --violet: #6a3df0;
  --good: #0a9f57;
  --shadow: 0 24px 54px rgba(13, 24, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* Final mobile spacing override for top seller/wholesaler/hospital strip */
@media (max-width: 768px) {
  body.panel-user .lk-header > .lk-utility.container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  body.panel-user .lk-header > .lk-utility.container .lk-links a {
    min-height: 32px !important;
  }

  body.panel-user .lk-header .lk-nav-wrap {
    padding-top: 6px !important;
  }
}

/* Panel brand palettes */
body.panel-user   { --panel-brand:#4CAF50; --panel-brand-dark:#2E7D32; --panel-text:#e8f5e9; --panel-muted:#c8e6c9; --panel-highlight:#3c9c43; --panel-bg:#f5fbf6; }
body.panel-admin  { --panel-brand:#2C3E50; --panel-brand-dark:#1f2d3a; --panel-text:#ecf0f1; --panel-muted:#cfd8dc; --panel-highlight:#34495e; --panel-bg:#f4f6f8; }
body.panel-hospital { --panel-brand:#00BCD4; --panel-brand-dark:#0097A7; --panel-text:#e0f7fa; --panel-muted:#b2ebf2; --panel-highlight:#00acc1; --panel-bg:#f2fbfd; }
body.panel-seller { --panel-brand:#FF9800; --panel-brand-dark:#EF6C00; --panel-text:#fff3e0; --panel-muted:#ffe0b2; --panel-highlight:#fb8c00; --panel-bg:#fff8ef; }
body.panel-wholesaler { --panel-brand:#673AB7; --panel-brand-dark:#512DA8; --panel-text:#ede7f6; --panel-muted:#d1c4e9; --panel-highlight:#5e35b1; --panel-bg:#f7f3ff; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 20%, rgba(15, 141, 131, 0.09), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(29, 78, 216, 0.1), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.82), transparent 24%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 246, 0.9);
  border-bottom: 1px solid rgba(220, 227, 234, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--brand-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 95%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 141, 131, 0.2);
}

.btn-soft {
  background: linear-gradient(180deg, #f4f8ff 0%, #ebf3ff 100%);
  color: #1d468f;
  box-shadow: inset 0 0 0 1px rgba(194, 212, 240, 0.7);
}

.btn-outline {
  border: 1px solid #c8d8ea;
  color: #204067;
  background: #fff;
  box-shadow: 0 10px 20px rgba(13, 24, 51, 0.04);
}

.btn:hover {
  transform: translateY(-1px);
}

.cart-pill {
  border-radius: 999px;
  background: #eaf2ff;
  color: #1f4da4;
  font-weight: 700;
  padding: 8px 14px;
  font-size: 0.88rem;
}

.slider {
  position: relative;
  margin: 26px 0 8px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d6e3ee;
  box-shadow: var(--shadow);
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  padding: 42px 34px;
  color: #fff;
}

.slide h1,
.slide h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
}

.slide p {
  max-width: 600px;
  line-height: 1.7;
  opacity: 0.95;
}

.slide-a { background: linear-gradient(120deg, #0f8d83 0%, #0b5560 100%); }
.slide-b { background: linear-gradient(120deg, #295ec9 0%, #0f2d76 100%); }
.slide-c { background: linear-gradient(120deg, #9354df 0%, #4a2694 100%); }

.slider-nav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.slider-nav button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #21395f;
  font-weight: 700;
  cursor: pointer;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-chip {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid #d9e4ef;
  border-radius: 16px;
  padding: 14px 12px;
  font-weight: 700;
  color: #244565;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d5e1ec;
}

.product-price {
  font-size: 1.08rem;
  font-weight: 700;
}

.hero {
  padding: 62px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.hero p {
  margin: 18px 0 26px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 630px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge {
  background: #fff;
  border: 1px solid #d8e3ee;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2d476d;
}

.hero-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid #d8e1ea;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kpi {
  background: #f8fbff;
  border: 1px solid #d9e6f3;
  border-radius: var(--radius-md);
  padding: 14px;
}

.kpi strong {
  display: block;
  font-size: 1.4rem;
}

.kpi span {
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 36px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
}

.section p.lead {
  margin: 0 0 24px;
  color: var(--muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

.card {
  background: var(--surface);
  border: 1px solid rgba(217, 225, 234, 0.9);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 34px rgba(13, 24, 51, 0.05);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: linear-gradient(180deg, #effcf9 0%, #e3f7f4 100%);
  color: #0a7269;
  box-shadow: inset 0 0 0 1px rgba(183, 232, 224, 0.85);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  font-size: 0.8rem;
  color: #405269;
  background: #f0f4f8;
  border-radius: 9px;
  padding: 6px 9px;
}

.banner {
  margin: 8px 0 30px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 224, 235, 0.9);
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 24%),
    linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow);
}

.filters {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 16px;
}

.input,
.select {
  width: 100%;
  border: 1px solid #cedae7;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}

.list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed #d8e1ea;
  color: #334861;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #d7e1ea;
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  font-size: 0.93rem;
}

th {
  color: #4a5a70;
  font-weight: 700;
  background: #f8fbff;
}

.status {
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
}

.status.pending { background: #fff6df; color: #8c6400; }
.status.ready { background: #dff6ea; color: #0a6f3c; }
.status.packed { background: #e6efff; color: #1e4fc2; }
.status.review { background: #efe9ff; color: #5a31ca; }

.footer {
  padding: 28px 0 40px;
  color: #5f6f84;
  font-size: 0.92rem;
}

.login-shell {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.login-card {
  width: min(960px, 94%);
  background: #fff;
  border-radius: 24px;
  border: 1px solid #d7e1ea;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  box-shadow: var(--shadow);
}

.login-card--single {
  grid-template-columns: 1fr;
  max-width: 560px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #5a6b80;
}

.login-links a {
  color: #1f4da4;
  font-weight: 600;
}

.login-info {
  padding: 28px;
  background: linear-gradient(170deg, #0f8d83 0%, #194ba1 100%);
  color: #fff;
}

.login-form {
  padding: 28px;
}

.role-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.role-tabs button {
  border: 1px solid #d0dceb;
  background: #fff;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
}

.role-tabs button.active {
  background: #edf5ff;
  border-color: #aac4ee;
  color: #15448e;
}

.form-row {
  margin-bottom: 12px;
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.quick-links a {
  background: #edf4ff;
  color: #244f95;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.83rem;
  font-weight: 700;
}

/* Seller dashboard */
.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
  background: var(--panel-bg, #f3f6fb);
  width: 100%;
  overflow-x: clip;
}

.dashboard-sidebar {
  background: var(--panel-brand, #0b152e);
  color: var(--panel-text, #dbe6ff);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--panel-text, #fff);
  width: 100%;
}

.dashboard-brand img {
  width: 100%;
  max-width: 230px;
  height: auto;
  object-fit: contain;
  display: block;
}

.dashboard-store strong {
  display: block;
  color: var(--panel-text, #fff);
}

.dashboard-store span {
  font-size: 0.85rem;
  color: var(--panel-muted, #9fb1d8);
}

.dashboard-nav {
  display: grid;
  gap: 10px;
}

.dashboard-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--panel-muted, #c7d6fb);
  font-weight: 600;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
  background: var(--panel-highlight, #1b2a50);
  color: var(--panel-text, #fff);
}

.nav-group { display: grid; gap: 6px; }
.nav-group summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--panel-muted, #c7d6fb); padding: 8px 12px; border-radius: 10px; display:flex; align-items:center; gap:10px; }
.nav-group summary.is-active { background: var(--panel-highlight, #1b2a50); color: var(--panel-text, #fff); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group[open] summary { background: var(--panel-highlight, #1b2a50); color: var(--panel-text, #fff); }
.nav-group a { padding: 8px 12px; border-radius: 10px; color: var(--panel-muted, #c7d6fb); font-weight: 600; display:block; margin-left:32px; }
.nav-group a:hover { background: var(--panel-highlight, #1b2a50); color: var(--panel-text, #fff); }
.nav-icon { width: 18px; height: 18px; display:inline-flex; align-items:center; justify-content:center; }
.nav-icon svg { width: 18px; height: 18px; fill: currentColor; }
.nav-caret { margin-left:auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
.nav-group[open] .nav-caret { transform: rotate(45deg); }

.dashboard-help {
  margin-top: auto;
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--panel-muted, #a9b7db);
}

.dashboard-main {
  padding: 28px 36px 48px;
  min-width: 0;
}

.dashboard-main > * {
  min-width: 0;
}

.panel-mobile-toggle {
  display: none;
}

.panel-mobile-backdrop {
  display: none;
}

.panel-sidebar-wrap {
  display: block;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--panel-brand, var(--ink));
}

.dashboard-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e1e6f0;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(16, 24, 64, 0.06);
}

.metric-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #485b7a;
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
}

.metric-card span {
  color: #7b8aa7;
  font-size: 0.86rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 18px;
}

.panel {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e1e6f0;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(16, 24, 64, 0.06);
  max-width: 100%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.panel-header a {
  color: #2c56b0;
  font-weight: 600;
}

.panel-actions {
  display: flex;
  gap: 8px;
}

.panel-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 10px;
  margin-bottom: 14px;
}

.order-list {
  display: grid;
  gap: 12px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #f7f9fd;
  border: 1px solid #e2e8f4;
}

.order-item strong {
  display: block;
}

.order-item span {
  color: #6b7a95;
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid--stacked {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #5a6b80;
}

.field span {
  font-weight: 600;
  color: #3e4f69;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.settings-grid .panel {
  min-height: 100%;
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.brand-card {
  border: 1px dashed #c9d6ea;
  border-radius: 14px;
  padding: 14px;
  background: #f7f9fd;
  display: grid;
  gap: 10px;
}

.brand-preview {
  height: 140px;
  border-radius: 12px;
  background: #e7eef9;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #4d5f7c;
}

.brand-preview--wide {
  height: 180px;
}

.brand-hint {
  font-size: 0.85rem;
  color: #6a7a94;
}

.chart-block {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 220px;
  padding: 10px 0;
}

.chart-bar {
  background: linear-gradient(180deg, #2962ff, #0d8e84);
  border-radius: 12px 12px 6px 6px;
  width: 100%;
}

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

.traffic-grid div {
  background: #f7f9fd;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e2e8f4;
  display: grid;
  gap: 6px;
}

.traffic-grid strong {
  font-size: 1rem;
}

.traffic-grid span {
  color: #60718f;
}

@media (max-width: 1200px) {
  .traffic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .dashboard-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-main {
    padding: 24px;
    width: 100%;
  }

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

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

  .panel-toolbar {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .kpi-grid,
  .login-card { grid-template-columns: 1fr; }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .filters { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide { padding: 30px 20px 64px; }
}

/* Home page layout inspired by reference screenshots */
.lk-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(7, 12, 26, 0.92) 0%, rgba(7, 12, 26, 0.75) 100%);
  backdrop-filter: blur(10px);
}

/* Make header full-width (edge-to-edge) */
.lk-header .container {
  width: 100%;
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* Keep Leaflet maps below the global header */
.leaflet-container,
.leaflet-pane {
  z-index: 1 !important;
}
.leaflet-top,
.leaflet-bottom,
.leaflet-control {
  z-index: 2 !important;
}

.lk-utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.lk-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lk-links a {
  color: #e2e8f0;
  opacity: 0.85;
}

.lk-phone {
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  color: #f8fafc;
  font-weight: 700;
}

.lk-nav-wrap {
  background: linear-gradient(90deg, #0b1224 0%, #0c1731 45%, #0b1224 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lk-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  padding: 10px 0;
}
.lk-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  padding: 9px 8px;
  cursor: pointer;
}
.lk-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: #f8fafc;
}
.lk-mobile-panel {
  display: none;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(9, 14, 31, 0.96);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.lk-mobile-backdrop {
  display: none;
}
.lk-mobile-utility {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lk-mobile-menu {
  display: grid;
  gap: 8px;
  padding: 10px 0;
}
.lk-mobile-menu a {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
.lk-mobile-actions {
  display: grid;
  gap: 10px;
}
.lk-mobile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lk-mobile-action-link,
.lk-mobile-action-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  color: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: none;
}
.lk-mobile-action-link .lk-count,
.lk-mobile-action-button .lk-count {
  margin-left: auto;
}
.lk-mobile-action-button {
  cursor: pointer;
  font: inherit;
}
.lk-mobile-action-form {
  width: 100%;
  margin: 0;
}
.lk-mobile-action-text {
  flex: 1 1 auto;
}
.lk-mobile-top-actions,
.lk-mobile-bottom-nav {
  display: none;
}
.lk-inline-search-form {
  display: none;
  margin: 0;
}
.lk-inline-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lk-inline-search {
  width: 100%;
  min-width: 0;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.1);
  color: #f8fafc;
  padding: 0 12px;
  font-size: 0.84rem;
}
.lk-inline-search::placeholder {
  color: rgba(248,250,252,0.7);
}
.lk-inline-search-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.16);
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.lk-logo {
  color: #f8fafc;
  font-weight: 800;
  font-size: 1.3rem;
  min-width: 150px;
  letter-spacing: 0.2px;
  justify-self: start;
}

.lk-logo img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}

.lk-menu {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  justify-self: center;
}

.lk-menu a {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}
.lk-menu::-webkit-scrollbar { height: 6px; }
.lk-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 999px; }
.lk-menu a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.lk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-self: end;
  margin-left: 0;
}

.lk-search {
  min-width: 280px;
  width: 280px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  padding: 0 14px;
}
.lk-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lk-search-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.14);
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.lk-search-btn:hover {
  background: rgba(255,255,255,0.22);
}

@media (max-width: 1200px) {
  .lk-actions form { display: none; }
  .lk-icon--pill span:first-of-type { display: none; }
  .lk-menu a { font-size: 0.78rem; }
}

@media (max-width: 1366px) {
  .lk-nav {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .lk-logo { justify-self: start; }
  .lk-menu { justify-self: start; }
  .lk-actions { justify-self: end; }
}

.lk-icon--pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #f8fafc;
  transition: all 0.2s ease;
}
.lk-icon--pill:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}

.lk-icon-svg {
  color: #fff;
  opacity: 0.9;
}

.lk-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b1224;
  font-size: 11px;
  font-weight: 700;
}

.lk-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lk-search {
  width: 280px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0 14px;
  font: inherit;
  height: 34px;
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
}

.lk-icon {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  font-size: 0.9rem;
}

.lk-slider {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 18px;
}

.lk-slider .slide {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.lk-slide-content {
  width: 100%;
}

.lk-slide-content h1,
.lk-slide-content h2 {
  color: #fff;
  margin: 0 0 12px;
}

.lk-slide-content p {
  color: #edf1ff;
  margin: 0 0 18px;
  max-width: 460px;
}

.lk-slide-a {
  background:
    radial-gradient(circle at 20% 40%, rgba(55, 106, 255, 0.25), transparent 30%),
    radial-gradient(circle at 80% 40%, rgba(181, 100, 255, 0.23), transparent 35%),
    linear-gradient(130deg, #090a24 0%, #03050f 100%);
}

.lk-slide-b {
  background: linear-gradient(120deg, #041731 0%, #102b61 100%);
}

.lk-slide-c {
  background: linear-gradient(120deg, #2c1557 0%, #0d1638 100%);
}

.lk-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.lk-prev { left: 16px; }
.lk-next { right: 16px; }

.lk-section {
  padding-top: 44px;
}

.lk-section h2 {
  color: #07165a;
  margin-bottom: 22px;
}

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

.lk-cat {
  text-align: center;
  background: linear-gradient(180deg, #fbfcfe 0%, #f2f5fa 100%);
  border-radius: 24px;
  padding: 12px;
  border: 1px solid rgba(224, 230, 238, 0.9);
  box-shadow: 0 16px 28px rgba(13, 24, 51, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lk-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 38px rgba(13, 24, 51, 0.08);
  border-color: rgba(191, 205, 223, 0.95);
}

.lk-cat img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
}

.lk-cat span {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #2f3b56;
  font-weight: 800;
}

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

.lk-nearby-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(214, 220, 237, 0.85);
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 34px rgba(13, 24, 51, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lk-nearby-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 44px rgba(13, 24, 51, 0.1);
  border-color: rgba(190, 202, 223, 0.95);
}

.lk-nearby-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e2e8f1;
}

.lk-nearby-card h3 {
  color: #313672;
  font-size: 1.2rem;
  margin: 12px 0 6px;
  line-height: 1.2;
}

.lk-nearby-card p {
  color: #5a638f;
  margin: 0 0 12px;
}

.lk-nearby-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.lk-nearby-actions a {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  padding: 9px 10px;
  color: #1f2f63;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid #cdd8e7;
  background: linear-gradient(180deg, #f9fbff 0%, #f1f5fb 100%);
}

.lk-nearby-actions a:last-child {
  background: #0d8e84;
  color: #fff;
  border-color: #0d8e84;
}

.lk-nearby-footer {
  margin-top: 16px;
  text-align: center;
}

.lk-nearby-footer .btn {
  font-size: 0.88rem;
  padding: 8px 14px;
}

.lk-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.lk-product-card {
  border: 1px solid rgba(227, 230, 237, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-radius: 22px;
  padding: 18px;
  position: relative;
  box-shadow: 0 18px 34px rgba(18, 25, 92, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lk-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 46px rgba(18, 25, 92, 0.12);
}

.lk-like {
    position: absolute;
    right: 14px;
    top: 12px;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    color: #343434;
    cursor: pointer;
}

.lk-like.is-active {
    color: #ef4444;
}

.lk-rating {
  margin-top: 10px;
  background: #edf0ff;
  border-radius: 999px;
  width: fit-content;
  color: #29316e;
  font-weight: 700;
  padding: 5px 14px;
}

.lk-product-card h3 {
  margin: 12px 0 6px;
}

.lk-product-card p {
  margin: 0;
  color: #4f5781;
}

.lk-price-row {
  margin: 10px 0 14px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.lk-price-row strong {
  font-size: 1rem;
  color: #12195c;
}

.lk-price-row span {
  text-decoration: line-through;
  color: #878cad;
}

.lk-price-row em {
  color: #08a7b6;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .lk-menu { display: none; }
  .lk-actions { display: none; }
  .lk-mobile-toggle { display: inline-block; justify-self: end; }
  .lk-inline-search-form {
    display: block;
    width: 100%;
    grid-column: 1 / -1;
    order: 3;
  }
  .lk-inline-search-wrap {
    border: 1px solid rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(7, 13, 30, 0.28);
  }
  .lk-inline-search {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
  }
  .lk-mobile-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    grid-column: 1 / -1;
    order: 4;
  }
  .lk-mobile-top-actions .lk-icon--mobile-highlight {
    justify-content: center;
    min-height: 38px;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.18);
    box-shadow: 0 8px 18px rgba(5, 12, 28, 0.24);
  }
  .lk-mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(8, 15, 35, 0.94), rgba(8, 15, 35, 0.98));
    border-top: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
  }
  .lk-mobile-bottom-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.22);
    color: #f8fafc;
    background: rgba(255,255,255,0.08);
    font-size: 0.84rem;
    font-weight: 700;
  }
  .lk-mobile-bottom-link.is-active {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.46);
  }
  body {
    padding-bottom: 74px;
  }
  body.panel-user {
    padding-bottom: 0;
  }
  body.panel-user .lk-mobile-bottom-nav {
    display: none !important;
  }
  .lk-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 10px;
  }
  .lk-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 55;
  }
  .lk-mobile-backdrop.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .lk-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 390px);
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-left: 1px solid rgba(255,255,255,0.14);
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
    z-index: 60;
    transform: translateX(104%);
    transition: transform 0.28s ease;
  }
  .lk-mobile-panel.is-open {
    display: block;
    transform: translateX(0);
  }
  .lk-search { width: 260px; min-width: 260px; }
  .lk-search-wrap { width: 100%; }
  .lk-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lk-nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .lk-utility { display: none; }
  .lk-logo { min-width: auto; }
  .lk-mobile-top-actions .lk-icon--mobile-highlight span:first-of-type {
    display: inline !important;
  }
  .lk-inline-search-btn {
    padding: 0 10px;
    font-size: 0.72rem;
  }
  .lk-search { flex: 1; width: auto; min-width: 0; }
  .lk-slider .slide { min-height: 260px; }
  .lk-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-nearby-grid,
  .lk-product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
  .lk-slider { max-width: 100%; border-radius: 0; }
}

/* Global mobile responsiveness for user + panels */
@media (max-width: 900px) {
  .container { width: min(1100px, 94%); }

  .lk-nav { gap: 12px; }
  .lk-logo { font-size: 1.1rem; min-width: auto; }
  .lk-search-wrap { width: 100%; }
  .lk-search { width: 100%; min-width: 0; }
  .lk-icon { font-size: 0.82rem; padding: 8px 10px; }

  .lk-slider { border-radius: 0; }
  .lk-slide-content { left: 24px; right: 24px; }

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

  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .dashboard-header h1 { font-size: 1.7rem; line-height: 1.2; word-break: break-word; }
  .dashboard-header p { word-break: break-word; }
  .dashboard-actions { width: 100%; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-header { flex-wrap: wrap; align-items: flex-start; }
  .panel-actions { flex-wrap: wrap; width: 100%; }

  .panel-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1200;
    border: 1px solid #d7deea;
    background: #fff;
    color: #1f2937;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  }

  .panel-mobile-toggle .bar {
    width: 16px;
    height: 2px;
    background: currentColor;
    position: relative;
    border-radius: 2px;
    display: inline-block;
  }
  .panel-mobile-toggle .bar::before,
  .panel-mobile-toggle .bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .panel-mobile-toggle .bar::before { top: -5px; }
  .panel-mobile-toggle .bar::after { top: 5px; }

  .panel-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1090;
  }

  .panel-sidebar-wrap {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(84vw, 320px);
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1100;
  }

  .panel-sidebar-wrap .dashboard-sidebar {
    height: 100%;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 16px;
  }

  .panel-sidebar-wrap .dashboard-nav {
    grid-template-columns: 1fr !important;
  }

  .dashboard-main {
    padding: 68px 16px 18px;
    width: 100%;
    overflow-x: hidden;
  }

  .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table {
    min-width: 620px;
    table-layout: auto;
  }

  .table-wrap th,
  .table-wrap td {
    white-space: nowrap;
    word-break: normal;
  }

  body.panel-nav-open .panel-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.panel-nav-open .panel-sidebar-wrap {
    transform: translateX(0);
  }

  body.panel-nav-open .panel-mobile-toggle {
    opacity: 0;
    pointer-events: none;
  }

  body.panel-nav-open {
    overflow: hidden;
  }
}

@media (min-width: 901px) {
  .panel-mobile-toggle,
  .panel-mobile-backdrop {
    display: none !important;
  }

  .dashboard {
    align-items: stretch;
  }

  .panel-sidebar-wrap {
    position: static;
    inset: auto;
    width: auto;
    max-width: none;
    transform: none;
    transition: none;
    display: flex;
    align-self: stretch;
    background: var(--panel-brand, #0b152e);
  }

  .panel-sidebar-wrap .dashboard-sidebar {
    min-height: 100%;
  }
}

@media (max-width: 600px) {
  .section { padding: 24px 0; }
  .section-card { padding: 16px; }

  .lk-utility { display: none; }
  .lk-nav { padding: 10px 0; }
  .lk-mobile-panel { padding: 10px; width: min(92vw, 390px); }
  .lk-mobile-menu a { font-size: 0.76rem; }
  .lk-mobile-pills .lk-icon { flex: 1 1 100%; text-align: center; }
  .lk-mobile-bottom-nav {
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .lk-mobile-bottom-link {
    min-height: 42px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .lk-slider .slide { min-height: 220px; }
  .lk-slide-content { left: 16px; right: 16px; }
  .lk-slide-content h2 { font-size: 1.25rem; }
  .lk-slide-content p { font-size: 0.92rem; }

  .lk-categories,
  .lk-nearby-grid,
  .lk-product-grid { grid-template-columns: 1fr; }

  .dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar { padding: 16px; gap: 14px; }
  .dashboard-nav { grid-template-columns: 1fr; }
  .dashboard-main { padding: 68px 14px 16px; }
  .dashboard-metrics { grid-template-columns: 1fr; }
  .panel { padding: 14px; }

  .table-wrap table { min-width: 520px; }
  .table-wrap th,
  .table-wrap td { padding: 10px 10px; font-size: 0.88rem; }
}

body.lk-menu-open {
  overflow: hidden;
}

/* Unified user header across all pages */
body.panel-user .lk-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid #e4ecf6;
  backdrop-filter: none;
}

body.panel-user .lk-header .container {
  width: min(1220px, 94%);
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
}

body.panel-user .lk-utility {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #445771;
  border-bottom: 1px solid #edf2fa;
  margin-bottom: 4px;
  font-size: 0.86rem;
}

body.panel-user .lk-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.panel-user .lk-links a {
  color: #304863;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f8ff;
  border: 1px solid #d9e5f5;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.panel-user .lk-phone {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d4f8f;
}

body.panel-user .lk-nav-wrap {
  background: transparent;
  border: 0;
  padding-bottom: 8px;
}

body.panel-user .lk-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 10px;
}

body.panel-user .lk-logo {
  color: #1d4f8f;
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1;
  order: 1;
}

body.panel-user .lk-logo img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

body.panel-user .lk-inline-search-form,
body.panel-user .lk-search-form {
  margin: 0;
}

body.panel-user .lk-inline-search-form {
  display: none;
}

body.panel-user .lk-search-wrap,
body.panel-user .lk-inline-search-wrap {
  position: relative;
  display: block;
}

body.panel-user .lk-search,
body.panel-user .lk-inline-search {
  width: clamp(220px, 18vw, 300px);
  min-width: 0;
  height: 40px;
  border-radius: 9px;
  border: 1px solid #cfdbed;
  background: #ffffff;
  color: #1f2f46;
  padding: 0 44px 0 13px;
  font-size: 0.87rem;
}

body.panel-user .lk-search::placeholder,
body.panel-user .lk-inline-search::placeholder {
  color: #8a9ab5;
}

body.panel-user .lk-search-btn,
body.panel-user .lk-inline-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid #1d4f8f;
  background: #1d4f8f;
  color: #fff;
  border-radius: 8px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

body.panel-user .lk-search-btn::before,
body.panel-user .lk-inline-search-btn::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

body.panel-user .lk-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  order: 2;
  flex-wrap: nowrap;
}

body.panel-user .lk-icon,
body.panel-user .lk-icon--pill {
  color: #1d4f8f;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #d9e5f5;
  background: #f4f8ff;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

body.panel-user .lk-icon-svg {
  color: currentColor;
  opacity: 1;
}

body.panel-user .lk-count {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1d4f8f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 0 5px;
}

body.panel-user .lk-menu {
  display: flex;
  flex: 1 1 100%;
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 6px 8px;
  min-width: 0;
  order: 3;
  align-items: center;
  background: #f3f7ff;
  border: 1px solid #dde7f6;
  border-radius: 10px;
}

body.panel-user .lk-menu a {
  color: #3d5573;
  font-size: 0.84rem;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  flex: 0 0 auto;
}

body.panel-user .lk-menu a:hover {
  color: #1d4f8f;
  background: #ffffff;
  border-color: #c5d6ef;
}

body.panel-user .lk-mobile-toggle,
body.panel-user .lk-mobile-panel,
body.panel-user .lk-mobile-backdrop {
  display: none !important;
}

@media (max-width: 1200px) {
  body.panel-user .lk-actions .lk-search-form {
    display: block;
  }
}

@media (max-width: 768px) {
  body.panel-user .lk-header {
    position: sticky;
    top: 0;
    z-index: 45;
  }

  body.panel-user .lk-header .container {
    width: 100%;
    max-width: none;
    padding: 0 12px;
  }

  body.panel-user .lk-utility {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #edf2fa;
  }

  body.panel-user .lk-utility .lk-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  body.panel-user .lk-utility .lk-links a {
    min-height: 34px;
    padding: 0 6px;
    font-size: 0.75rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  body.panel-user .lk-utility .lk-phone {
    margin-left: auto;
    font-size: 0.82rem;
  }

  body.panel-user .lk-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    row-gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0 12px;
  }

  body.panel-user .lk-mobile-toggle {
    display: inline-flex !important;
    order: 1;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
    border: 1px solid #cfdbed;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 27, 45, 0.06);
    flex-direction: column;
  }

  body.panel-user .lk-mobile-toggle span {
    display: block;
    width: 14px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #1d4f8f;
  }

  body.panel-user .lk-logo {
    font-size: 1.4rem;
    flex: 0 0 auto;
    letter-spacing: 0.1px;
    order: 2;
    margin-right: auto;
  }

  body.panel-user .lk-logo img {
    height: 44px;
  }

  body.panel-user .lk-mobile-top-actions {
    display: none !important;
  }

  body.panel-user .lk-actions { display: contents; }

  body.panel-user .lk-actions .lk-search-form {
    display: block;
    flex: 1 0 100%;
    min-width: 0;
    width: 100%;
    order: 10;
  }

  body.panel-user .lk-actions .lk-search-wrap {
    width: 100%;
    display: block;
    position: relative;
  }

  body.panel-user .lk-actions .lk-search {
    width: 100%;
    min-width: 0;
    height: 46px;
    border-radius: 999px;
    font-size: 0.96rem;
    padding: 0 46px 0 14px;
  }

  body.panel-user .lk-actions .lk-search-btn {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    background: #1d4f8f;
  }

  body.panel-user .lk-actions .lk-search-btn::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  }

  body.panel-user .lk-actions > a[href*="wishlist"] {
    display: inline-flex !important;
    height: 40px;
    min-width: 0;
    width: auto;
    border-radius: 10px;
    padding: 0 8px;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    order: 3;
  }

  body.panel-user .lk-actions > a[href*="wishlist"] .lk-icon-svg,
  body.panel-user .lk-actions > a[href*="cart"] .lk-icon-svg {
    width: 15px;
    height: 15px;
  }

  body.panel-user .lk-actions > a[href*="wishlist"] span:first-of-type,
  body.panel-user .lk-actions > a[href*="cart"] span:first-of-type {
    display: none !important;
  }

  body.panel-user .lk-actions > a[href*="cart"] {
    display: inline-flex !important;
    height: 40px;
    min-width: 0;
    width: auto;
    border-radius: 10px;
    padding: 0 8px;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    order: 4;
  }

  body.panel-user .lk-actions > a[href*="profile"] {
    display: inline-flex !important;
    height: 40px;
    border-radius: 10px;
    padding: 0 10px;
    flex: 0 0 auto;
    order: 5;
  }

  body.panel-user .lk-actions > .lk-icon:not([href*="wishlist"]):not([href*="cart"]):not([href*="profile"]),
  body.panel-user .lk-actions > form:not(.lk-search-form) {
    display: none !important;
  }

  body.panel-user .lk-menu {
    display: none;
  }

  body.panel-user .lk-mobile-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 70;
  }

  body.panel-user .lk-mobile-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.panel-user .lk-mobile-panel {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 340px);
    padding: 12px 12px 18px;
    background: #ffffff;
    border-right: 1px solid #dbe5f4;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 80;
    overflow-y: auto;
  }

  body.panel-user .lk-mobile-panel.is-open {
    transform: translateX(0);
  }

  body.panel-user .lk-mobile-utility {
    border-bottom: 1px solid #e7eef8;
    padding: 8px 0 12px;
    gap: 8px;
  }

  body.panel-user .lk-mobile-utility .lk-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  body.panel-user .lk-mobile-utility .lk-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #18324d;
    border: 1px solid #d6e3f2;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    text-align: left;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  }
  body.panel-user .lk-mobile-utility .lk-links a::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    margin-left: 12px;
  }

  body.panel-user .lk-mobile-utility .lk-phone,
  body.panel-user .lk-utility .lk-phone {
    display: none;
  }

  body.panel-user .lk-mobile-menu {
    gap: 10px;
    padding: 14px 0 10px;
  }

  body.panel-user .lk-mobile-menu a {
    display: flex;
    align-items: center;
    color: #2f4764;
    border: 1px solid #dbe5f4;
    background: #f8fbff;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 0.9rem;
  }

  body.panel-user .lk-mobile-panel .lk-search-form {
    display: none !important;
  }

  body.panel-user .lk-mobile-actions {
    gap: 10px;
    padding-top: 4px;
  }

  body.panel-user .lk-mobile-pills {
    display: grid;
    gap: 10px;
  }

  body.panel-user .lk-mobile-action-link,
  body.panel-user .lk-mobile-action-button {
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d6e3f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    color: #18324d;
    justify-content: flex-start;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  }

  body.panel-user .lk-mobile-action-link .lk-icon-svg,
  body.panel-user .lk-mobile-action-button .lk-icon-svg {
    flex: 0 0 auto;
    color: #0f766e;
  }

  body.panel-user .lk-mobile-action-link .lk-count,
  body.panel-user .lk-mobile-action-button .lk-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-primary, #0f766e), var(--site-accent, #f59e0b));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.2);
  }

  body.panel-user .lk-mobile-action-link::after,
  body.panel-user .lk-mobile-action-button::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
  }

  body.panel-user .lk-mobile-action-text {
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  body.panel-user {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body.panel-user .lk-mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #e2e8f2;
    box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
  }

  body.panel-user .lk-mobile-bottom-link {
    position: relative;
    min-height: 56px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #667085;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 4px 2px;
  }

  body.panel-user .lk-mobile-bottom-link svg {
    width: 20px;
    height: 20px;
  }

  body.panel-user .lk-mobile-bottom-link.is-active {
    background: #eef4ff;
    color: #1d4ed8;
  }

  body.panel-user .lk-mobile-bottom-link .lk-count {
    position: absolute;
    top: 4px;
    right: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1px solid #fff;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
  }
}


/* Shared responsive polish for dashboard and public panels */
html {
  scroll-behavior: smooth;
}

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

.btn,
.btn-primary,
.btn-soft,
.btn-outline,
.btn-secondary,
.input,
.select,
.field input,
.field select,
.field textarea {
  min-height: 44px;
}

.field textarea {
  min-height: 120px;
}

.dashboard {
  align-items: start;
}

.dashboard-nav a,
.nav-group summary,
.nav-group a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.dashboard-help .btn,
.dashboard-actions .btn,
.dashboard-actions a,
.panel-actions .btn,
.panel-actions a {
  justify-content: center;
}

.dashboard-main,
.dashboard-main > *,
.dashboard-main .panel,
.panel,
.panel-header,
.dashboard-header,
.dashboard-actions,
.panel-actions,
.panel-toolbar,
.form-grid,
.settings-grid {
  min-width: 0;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
}

@media (min-width: 901px) {
  .panel-sidebar-wrap {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .panel-sidebar-wrap .dashboard-sidebar {
    min-height: 100vh;
    overflow-y: auto;
  }
}

@media (max-width: 900px) {
  .dashboard-header {
    margin-bottom: 18px;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-actions .btn,
  .dashboard-actions a,
  .panel-actions .btn,
  .panel-actions a {
    width: 100%;
  }

  .panel {
    border-radius: 16px;
  }

  .dashboard-brand img {
    max-width: 180px;
  }

  .dashboard-help {
    gap: 10px;
  }

  .dashboard-help form,
  .dashboard-help .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .panel-header h2 {
    font-size: 1.05rem;
  }

  .dashboard-main {
    padding-top: 74px;
  }

  .dashboard-brand img {
    max-width: 150px;
  }
}
