:root {
  --bg: #fffaf8;
  --bg-strong: #fff1f4;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --line: rgba(164, 118, 133, 0.16);
  --ink: #3f2e36;
  --muted: #73626a;
  --rose: #cc869a;
  --rose-deep: #a95f75;
  --blush: #f7dce3;
  --champagne: #f3e6d8;
  --sage: #dfe7df;
  --success: #2f7a66;
  --warning: #a36c24;
  --danger: #a9485c;
  --shadow: 0 24px 70px rgba(123, 86, 102, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(247, 220, 227, 0.8), transparent 30%),
    radial-gradient(circle at top right, rgba(243, 230, 216, 0.68), transparent 28%),
    linear-gradient(180deg, #fffefe 0%, var(--bg) 62%, #fff7fa 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

h1,
h2,
h3,
.font-display {
  font-family: "Fraunces", serif;
}

.shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.soft-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.solid-card {
  background: var(--surface-strong);
  border: 1px solid rgba(164, 118, 133, 0.12);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(123, 86, 102, 0.08);
}

.section-eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.hero-orb {
  position: absolute;
  inset: auto auto 12% -6%;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 228, 233, 0.86), rgba(243, 230, 216, 0.18));
  filter: blur(12px);
}

.hero-orb-right {
  position: absolute;
  inset: 6% -4% auto auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(223, 231, 223, 0.58), rgba(255, 241, 244, 0.22));
  filter: blur(10px);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-size: 0.96rem;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: white;
  box-shadow: 0 16px 32px rgba(169, 95, 117, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border: 1px solid rgba(164, 118, 133, 0.16);
}

.ghost-button {
  background: transparent;
  color: var(--rose-deep);
  border: 1px solid rgba(169, 95, 117, 0.2);
}

.catalog-card {
  position: relative;
  overflow: hidden;
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: 1rem auto auto 1rem;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 220, 227, 0.88), rgba(243, 230, 216, 0));
  filter: blur(2px);
}

.catalog-card.featured {
  border-color: rgba(169, 95, 117, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 244, 247, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-rose {
  background: rgba(209, 139, 154, 0.12);
  color: var(--rose-deep);
}

.pill-sage {
  background: rgba(159, 186, 165, 0.15);
  color: var(--success);
}

.pill-warm {
  background: rgba(243, 230, 216, 0.86);
  color: #8c6545;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.status-checkout_created,
.status-checkout_expired {
  background: rgba(243, 230, 216, 0.92);
  color: var(--warning);
}

.status-paid_pending_upload,
.status-processing_media {
  background: rgba(247, 220, 227, 0.9);
  color: var(--rose-deep);
}

.status-ready_for_shipping,
.status-shipped,
.status-delivered {
  background: rgba(223, 231, 223, 0.88);
  color: var(--success);
}

.status-processing_error {
  background: rgba(245, 208, 216, 0.9);
  color: var(--danger);
}

.metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 248, 0.88));
  border: 1px solid rgba(164, 118, 133, 0.12);
  border-radius: 24px;
  padding: 1.25rem;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(223, 231, 223, 0.58);
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose-deep), var(--rose), #ecb6c3);
  transition: width 0.24s ease;
}

.file-input {
  width: 100%;
  padding: 1rem;
  border-radius: 20px;
  border: 1px dashed rgba(169, 95, 117, 0.28);
  background: rgba(255, 255, 255, 0.88);
}

.admin-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 247, 0.9)),
    radial-gradient(circle at 20% 10%, rgba(247, 220, 227, 0.85), transparent 38%);
  border-right: 1px solid var(--line);
}

.admin-main {
  min-width: 0;
  padding: 1.5rem;
}

.admin-topbar,
.admin-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(123, 86, 102, 0.08);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.admin-panel {
  padding: 1.25rem;
}

.admin-nav-link {
  width: 100%;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 800;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  color: var(--rose-deep);
  background: rgba(247, 220, 227, 0.58);
  transform: translateX(3px);
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
}

.admin-filter-row label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}

.admin-filter-row input,
.admin-filter-row select,
.admin-inline-input,
.admin-inline-select {
  min-height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(164, 118, 133, 0.18);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  outline: none;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-metric {
  min-height: 128px;
  border-radius: 24px;
  border: 1px solid rgba(164, 118, 133, 0.12);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 244, 0.86)),
    radial-gradient(circle at top right, rgba(223, 231, 223, 0.5), transparent 36%);
  padding: 1.15rem;
  box-shadow: 0 18px 45px rgba(123, 86, 102, 0.07);
}

.admin-chart {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  min-height: 220px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.admin-chart-bar {
  min-width: 34px;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, var(--rose-deep), var(--rose), var(--blush));
  box-shadow: 0 12px 24px rgba(169, 95, 117, 0.18);
}

.admin-table-wrap {
  overflow: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(123, 86, 102, 0.07);
}

.admin-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff5f8;
  color: var(--rose-deep);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(164, 118, 133, 0.12);
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.admin-table tr:hover td {
  background: rgba(255, 250, 248, 0.72);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-mini-button {
  border-radius: 999px;
  border: 1px solid rgba(169, 95, 117, 0.2);
  padding: 0.45rem 0.7rem;
  color: var(--rose-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-log-pre {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 20px;
  background: #2f2730;
  color: #fff6f8;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.global-message {
  position: sticky;
  top: 0.75rem;
  z-index: 60;
  width: min(920px, calc(100% - 1.5rem));
  margin: 0.75rem auto 0;
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(164, 118, 133, 0.12);
  backdrop-filter: blur(18px);
}

.message-info {
  background: rgba(255, 248, 250, 0.92);
  color: var(--ink);
}

.message-success {
  background: rgba(238, 248, 242, 0.95);
  color: var(--success);
}

.message-error {
  background: rgba(255, 240, 243, 0.95);
  color: var(--danger);
}

.message-warning {
  background: rgba(255, 248, 239, 0.95);
  color: var(--warning);
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 640px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-metrics-grid {
    grid-template-columns: 1fr;
  }
}
