:root {
  --deep: #35345f;
  --navy: #5e63a9;
  --ink: #202238;
  --text: #34364f;
  --muted: #6d7086;
  --line: #deddf1;
  --white: #ffffff;
  --field: #f7f3ff;
  --mint: #cff5e7;
  --blue: #cdebff;
  --rose: #ffd7e4;
  --warning: #fff1d6;
  --shadow: 0 18px 44px rgba(53, 52, 95, 0.14);
  --soft-shadow: 0 10px 28px rgba(53, 52, 95, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--text);
  background: #fbfcff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(222, 221, 241, 0.8);
  background: rgba(251, 252, 255, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
.shell-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--deep);
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.shell-header nav {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

main {
  padding: 34px clamp(18px, 4vw, 46px) 60px;
}

.locked-state,
.dashboard {
  max-width: 1180px;
  margin: 0 auto;
}

.locked-state {
  display: grid;
  gap: 16px;
  max-width: 680px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.locked-state h1,
.dashboard-hero h1,
.card-head h2 {
  margin: 0;
  color: var(--deep);
  line-height: 1.05;
}

.locked-state h1,
.dashboard-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.locked-state p,
.dashboard-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button,
.ghost-button {
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--deep);
  box-shadow: var(--soft-shadow);
}

.button.danger {
  color: #8d263b;
  background: #fff1f5;
}

.ghost-button {
  color: var(--deep);
  background: var(--field);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(53, 52, 95, 0.11);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef8ff 62%, #fff8ee 100%);
  box-shadow: var(--shadow);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.event-meta span,
.status-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 900;
}

.status-card {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 20px;
  border: 1px solid rgba(53, 52, 95, 0.1);
  border-radius: 8px;
  background: var(--white);
}

.status-card strong {
  color: var(--deep);
  font-size: 28px;
}

.status-card small {
  color: var(--muted);
  line-height: 1.45;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 24px;
  margin-top: 24px;
}

.editor-card,
.preview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-head h2 {
  font-size: 25px;
}

form,
label,
fieldset {
  display: grid;
  gap: 8px;
}

form {
  gap: 14px;
}

label,
legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--field);
  font-weight: 750;
}

input,
select {
  min-height: 46px;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.price-row {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 8px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

fieldset label,
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

fieldset input,
.toggle-label input {
  width: 18px;
  min-height: 18px;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-preview img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(53, 52, 95, 0.1);
  border-radius: 8px;
  background: #fbfcff;
}

.product-card img,
.empty-image {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--field);
}

.empty-image {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.product-card h3 {
  margin: 0;
  color: var(--deep);
}

.product-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.product-tags span {
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--deep);
  background: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product-actions button {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--deep);
  background: var(--field);
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  padding: 20px;
  border: 1px dashed rgba(94, 99, 169, 0.35);
  border-radius: 8px;
  color: var(--muted);
  background: #f7fbff;
  line-height: 1.6;
  font-weight: 750;
}

@media (max-width: 980px) {
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell-header,
  .shell-header nav,
  .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding: 20px 16px 46px;
  }

  .dashboard-hero,
  .editor-card,
  .preview-card,
  .locked-state {
    padding: 18px;
  }

  .form-row,
  .product-card {
    grid-template-columns: 1fr;
  }
}
