:root {
  --bg: #f4f7fb;
  --card: rgba(255, 255, 255, 0.9);
  --card-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.25);
  --accent: #0f766e;
  --accent-2: #0f172a;
  --shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background:
  radial-gradient(circle at top left, rgba(15,118,110,.12), transparent 30%),
  radial-gradient(circle at top right, rgba(30,64,175,.12), transparent 28%),
  linear-gradient(180deg, #f8fafc, #eef2ff 55%, #f8fafc); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  gap: 24px;
  grid-template-columns: 250px 1fr;
}

.sidebar, .panel, .card, .hero, .stat, .table-card, .metric {
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.sidebar {
  border-radius: 28px;
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
}

.nav {
  margin-top: 28px;
  display: grid;
  gap: 8px;
}

.nav a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 600;
}

.nav a.active {
  background: #0f172a;
  color: white;
}

.workspace-box {
  margin-top: 28px;
  border-radius: 22px;
  padding: 18px;
  background: #0f172a;
  color: white;
}

.main { display: grid; gap: 24px; }

.panel {
  border-radius: 28px;
  padding: 22px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.title { margin: 0; font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -0.04em; }
.subtitle, .muted { color: var(--muted); line-height: 1.6; }

.actions, .header-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }

.hero {
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr .8fr;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

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

.stat {
  border-radius: 24px;
  padding: 20px;
}

.stat-value { font-size: 1.7rem; font-weight: 700; margin: 10px 0 6px; }

.two-cols {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.55fr .95fr;
}

.card, .table-card {
  border-radius: 24px;
  padding: 22px;
}

.search-row, .filters, .workspace-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input, .input, .select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  background: white;
}

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

.perfume-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: white;
}

.perfume-image-wrap {
  padding: 24px;
  background: radial-gradient(circle at top, rgba(14,165,233,0.12), transparent 55%), linear-gradient(180deg, #f8fafc, #eef2ff);
}

.perfume-image {
  width: 140px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto;
}

.perfume-body { padding: 18px; display: grid; gap: 14px; }
.perfume-head { display: flex; justify-content: space-between; gap: 12px; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill, .season {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill { background: #f1f5f9; color: #334155; }
.season { background: #ecfeff; color: #0f766e; }
.rating { background: #fef3c7; color: #92400e; border-radius: 999px; padding: 8px 12px; font-weight: 700; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }

.metric {
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

.notice {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.hidden { display: none !important; }

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

.detail-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 380px 1fr;
}

.detail-image-card, .detail-copy, .detail-block {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
}

.detail-image-card { overflow: hidden; }
.detail-image-wrap {
  padding: 28px;
  background: radial-gradient(circle at top, rgba(15,118,110,0.15), transparent 45%), linear-gradient(180deg,#f8fafc,#eef2ff);
}
.detail-image { width: 240px; height: 420px; object-fit: contain; margin: 0 auto; }
.detail-copy, .detail-block { padding: 22px; }
.detail-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.footer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .page, .hero, .two-cols, .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stats-grid, .perfume-grid, .form-grid, .detail-grid { grid-template-columns: 1fr; }
}
