:root {
  color-scheme: dark;
  --bg: #141414;
  --bg-deep: #0e0e0e;
  --surface: #1c1c1c;
  --surface-strong: #232323;
  --text: #f5edd5;
  --muted: #999999;
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.14);
  --border: rgba(201, 168, 76, 0.18);
  --danger: #e24b4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.wm-shell {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 0 48px;
}

.wm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wm-logo {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-decoration: none;
}

.wm-exit {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.wm-exit:hover {
  color: var(--text);
  border-color: var(--muted);
}

.wm-progress {
  margin: 32px 0 8px;
}

.wm-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.wm-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.wm-progress-label {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wm-card {
  flex: 1;
  margin-top: 20px;
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: wm-fade 0.3s ease;
}

@keyframes wm-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wm-step-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
}

.wm-step-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.wm-fields {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.wm-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.wm-input,
.wm-textarea,
.wm-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121212;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.wm-input:focus,
.wm-textarea:focus,
.wm-select:focus {
  border-color: var(--gold);
}

.wm-textarea {
  resize: vertical;
  min-height: 110px;
}

.wm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wm-tiles {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.wm-tiles.wm-tiles-2col {
  grid-template-columns: 1fr 1fr;
}

.wm-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wm-tile:hover {
  border-color: rgba(201, 168, 76, 0.4);
}

.wm-tile.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.wm-tile-title {
  font-weight: 600;
}

.wm-tile-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.wm-tile.selected .wm-tile-meta {
  color: rgba(201, 168, 76, 0.85);
}

.wm-tile.locked {
  border-color: var(--gold);
  background: var(--gold-soft);
  cursor: not-allowed;
  opacity: 0.75;
}

.wm-tile-lock {
  font-size: 0.78rem;
  color: rgba(201, 168, 76, 0.7);
  font-style: italic;
  margin-top: 2px;
}

.wm-group-label {
  margin: 24px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.wm-group-label:first-child {
  margin-top: 0;
}

.wm-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.wm-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.wm-btn {
  flex: 1;
  padding: 16px 24px;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.wm-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  flex: 0 0 120px;
}

.wm-btn-ghost:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wm-btn-gold {
  background: var(--gold);
  color: #141414;
}

.wm-btn-gold:hover {
  background: #d8b75c;
}

.wm-btn-gold:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wm-error {
  min-height: 20px;
  margin-top: 14px;
  color: var(--danger);
  font-size: 0.9rem;
}

.wm-summary {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.wm-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.wm-summary-row span:first-child {
  color: var(--muted);
}

.wm-summary-row span:last-child {
  color: var(--text);
  text-align: right;
}

.wm-confirm {
  text-align: center;
  padding: 40px 0;
}

.wm-confirm-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* ─── PACKAGE DETAIL DRAWER ───────────────────────────── */

.wm-pkg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  cursor: pointer;
}

.wm-pkg-overlay.show { display: block; }

.wm-pkg-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100vw);
  background: #1c1c1c;
  border-left: 1px solid rgba(201, 168, 76, 0.2);
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wm-pkg-drawer.open { transform: translateX(0); }

.wm-pkg-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.wm-pkg-drawer-name {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.wm-pkg-drawer-price {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 5px;
  letter-spacing: 0.04em;
}

.wm-pkg-drawer-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  flex-shrink: 0;
  margin-top: -2px;
  transition: color 0.15s ease;
}

.wm-pkg-drawer-close:hover { color: var(--text); }

.wm-pkg-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.wm-pkg-drawer-section {
  margin-bottom: 28px;
}

.wm-pkg-drawer-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 14px;
}

.wm-pkg-drawer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wm-pkg-drawer-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ccc;
  font-size: 0.93rem;
  line-height: 1.5;
}

.wm-pkg-drawer-list li:last-child { border-bottom: none; }

.wm-pkg-drawer-list li::before {
  content: '—';
  color: var(--gold);
  position: absolute;
  left: 0;
  opacity: 0.7;
}

.wm-pkg-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wm-pkg-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wm-pkg-pricing-row.featured {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.25);
}

.wm-pkg-pricing-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.wm-pkg-pricing-row.featured .wm-pkg-pricing-label {
  color: var(--text);
}

.wm-pkg-pricing-amount {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
}

.wm-pkg-pricing-row.featured .wm-pkg-pricing-amount {
  color: var(--gold);
}

.wm-pkg-pricing-amount em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: #7ab87a;
  margin-left: 6px;
}

.wm-pkg-drawer-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 10px;
  color: #888;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ─── UPLOAD ZONE ──────────────────────────────────────── */

.wm-upload-zone {
  border: 2px dashed rgba(201, 168, 76, 0.3);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-top: 20px;
}

.wm-upload-zone:hover {
  border-color: rgba(201, 168, 76, 0.65);
  background: var(--gold-soft);
}

.wm-upload-zone-label {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  pointer-events: none;
}

.wm-upload-zone-label strong {
  color: var(--gold);
}

.wm-upload-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.wm-upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121212;
}

.wm-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wm-upload-thumb-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  transition: background 0.1s ease;
}

.wm-upload-thumb-remove:hover {
  background: rgba(220, 50, 50, 0.8);
}

@media (max-width: 560px) {
  .wm-card {
    padding: 28px 22px;
  }

  .wm-row,
  .wm-tiles.wm-tiles-2col {
    grid-template-columns: 1fr;
  }

  .wm-step-title {
    font-size: 1.35rem;
  }
}
