/* Lumen Gallery — Showroom Demo Design System */
:root {
  --ink: #1a2744;
  --ink-soft: #2a3a5c;
  --ink-muted: #4a5a78;
  --gold: #b89b6a;
  --gold-soft: #d4c4a4;
  --gold-bg: rgba(184, 155, 106, 0.12);
  --surface: #ffffff;
  --canvas: #f4f6f9;
  --canvas-2: #eef1f6;
  --line: #e2e6ef;
  --text: #2c3340;
  --text-muted: #7a8499;
  --text-faint: #a0a8b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26, 39, 68, 0.06);
  --shadow-hover: 0 12px 40px rgba(26, 39, 68, 0.1);
  --nav-h: 72px;
  --side-w: 260px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Layout */
.app-shell {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  grid-template-rows: var(--nav-h) 1fr;
  height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(184, 155, 106, 0.08), transparent 55%),
    radial-gradient(900px 500px at -5% 100%, rgba(26, 39, 68, 0.05), transparent 50%),
    linear-gradient(180deg, #f8f9fc 0%, var(--canvas) 40%, var(--canvas-2) 100%);
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(26, 39, 68, 0.2);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  color: var(--gold-soft);
}

.brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(184, 155, 106, 0.25);
}

.role-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 155, 106, 0.25);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  padding: 24px 16px;
  overflow-y: auto;
}

.nav-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 12px 10px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 4px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}

.nav-item:hover {
  background: rgba(26, 39, 68, 0.04);
  color: var(--ink);
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 39, 68, 0.18);
}

.nav-item.active svg {
  opacity: 1;
  color: var(--gold-soft);
}

.main {
  overflow: auto;
  padding: 28px 32px 40px;
}

.page {
  display: none;
  animation: fadeUp 0.35s var(--ease);
}

.page.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.page-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 39, 68, 0.16);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 24px rgba(26, 39, 68, 0.22);
}

.btn-gold {
  background: linear-gradient(135deg, #c9ae7d 0%, var(--gold) 100%);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(184, 155, 106, 0.28);
}

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

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  background: #fafbfd;
  transform: translateY(-1px);
}

.btn-soft {
  background: rgba(26, 39, 68, 0.05);
  color: var(--ink);
}

.btn-soft:hover {
  background: rgba(26, 39, 68, 0.09);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Cards & surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 155, 106, 0.14), transparent 70%);
  pointer-events: none;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 550;
}

.stat-value {
  margin-top: 10px;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-trend {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
}

.panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.panel-title span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Dashboard showcase */
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.hero-panel {
  min-height: 360px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88)),
    linear-gradient(160deg, #1a2744 0%, #2f466e 55%, #3d516f 100%);
  background-blend-mode: normal;
  color: var(--ink);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% 40%, rgba(184, 155, 106, 0.35), transparent 55%),
    linear-gradient(120deg, #1a2744 0%, #243556 45%, #2c3f5e 100%);
  z-index: 0;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 196, 164, 0.35);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-panel h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 480px;
  line-height: 1.2;
}

.hero-panel p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  max-width: 420px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}

.hero-glow {
  position: absolute;
  right: 40px;
  bottom: 30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 210, 0.55) 0%, rgba(184, 155, 106, 0.15) 40%, transparent 70%);
  filter: blur(2px);
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.activity-item:hover {
  border-color: var(--line);
  background: #fafbfd;
  transform: translateX(3px);
}

.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.activity-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 650;
}

.activity-item span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Catalog */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow);
}

.search-box input:focus {
  border-color: rgba(26, 39, 68, 0.35);
  box-shadow: 0 0 0 4px rgba(26, 39, 68, 0.06);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 39, 68, 0.25);
  box-shadow: var(--shadow);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.product-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.product-thumb {
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-thumb .lamp {
  width: 70px;
  height: 110px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease);
}

.product-card:hover .lamp {
  transform: scale(1.06) translateY(-4px);
}

.product-thumb .aura {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 220, 0.55), transparent 70%);
  bottom: 10px;
  filter: blur(4px);
  transition: opacity 0.35s var(--ease);
}

.product-body {
  padding: 16px 18px 20px;
}

.product-series {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.product-body h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.product-sku {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}

.gallery-main {
  height: 420px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}

.gallery-thumb.active {
  border-color: var(--ink);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.detail-meta h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.meta-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14.5px;
  margin: 0 0 20px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.specs th,
.specs td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.specs th {
  width: 36%;
  color: var(--text-muted);
  font-weight: 550;
  background: var(--canvas);
}

.specs td {
  color: var(--ink);
  font-weight: 600;
}

.qr-block {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.04), rgba(184, 155, 106, 0.08));
  border: 1px solid var(--line);
}

.qr-preview {
  width: 108px;
  height: 108px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qr-preview canvas {
  width: 88px !important;
  height: 88px !important;
}

.selling-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.point {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 550;
}

.point::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
  vertical-align: middle;
}

/* Import / QR */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.upload-zone {
  padding: 36px 24px;
  border: 1.5px dashed rgba(26, 39, 68, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fafbfd, #f3f5f9);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.upload-zone:hover {
  border-color: var(--gold);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.upload-zone .icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(26, 39, 68, 0.06);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.upload-zone h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
}

.upload-zone p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.qr-card {
  padding: 18px;
  text-align: center;
}

.qr-card .mini-thumb {
  height: 72px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: grid;
  place-items: center;
}

.qr-card h4 {
  margin: 10px 0 4px;
  font-size: 14px;
  color: var(--ink);
}

.qr-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Table */
.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.data-table td {
  padding: 16px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background 0.2s var(--ease);
}

.data-table tbody tr:hover {
  background: rgba(26, 39, 68, 0.025);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.status-new {
  background: rgba(26, 39, 68, 0.08);
  color: var(--ink);
}

.status-follow {
  background: var(--gold-bg);
  color: #8a7040;
}

.status-done {
  background: rgba(60, 130, 100, 0.12);
  color: #2f6b52;
}

.link-btn {
  background: none;
  border: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--gold);
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
}

.setting-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  position: relative;
  cursor: pointer;
  transition: background 0.25s var(--ease);
  flex-shrink: 0;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease);
}

.toggle.on {
  background: var(--ink);
}

.toggle.on::after {
  transform: translateX(20px);
}

.backup-box {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.04), rgba(184, 155, 106, 0.1));
  border: 1px solid var(--line);
  margin-top: 8px;
}

.backup-box h4 {
  margin: 0 0 6px;
  color: var(--ink);
}

.backup-box p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 45, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  width: min(560px, 100%);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(20, 28, 45, 0.25);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--canvas);
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 18px;
  transition: all 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.modal-body {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fafbfd;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.2s var(--ease);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(26, 39, 68, 0.35);
  box-shadow: 0 0 0 4px rgba(26, 39, 68, 0.06);
  background: #fff;
}

.modal-footer {
  padding: 16px 24px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 200;
  box-shadow: 0 12px 32px rgba(26, 39, 68, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

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

  .dash-grid,
  .detail-layout,
  .split-2,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: var(--nav-h) auto 1fr;
  }

  .sidebar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-label {
    display: none;
  }

  .nav-item {
    flex-shrink: 0;
    margin-bottom: 0;
    white-space: nowrap;
  }

  .main {
    padding: 20px;
  }

  .page-header h2 {
    font-size: 22px;
  }

  .selling-points {
    grid-template-columns: 1fr;
  }
}
