.design-page { background: var(--cream); min-height: calc(100vh - 200px); }

.design-header {
  text-align: center;
  padding: 2rem 0 1rem;
}

.design-header h1 { font-size: 2rem; }
.design-header p { color: var(--muted); }

.design-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

.design-toolbar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  position: sticky;
  top: 100px;
}

.toolbar-section { margin-bottom: 1.25rem; }
.toolbar-section:last-child { margin-bottom: 0; }

.toolbar-section h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tool-btn {
  padding: 0.45rem 0.75rem;
  border: 1px solid #ddd;
  background: var(--white);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
}

.tool-btn:hover, .tool-btn.active {
  border-color: var(--pink);
  background: var(--pink-light);
}

.tool-btn-danger:hover { border-color: #c0392b; background: #fdecea; }

.toolbar-input, .toolbar-select {
  width: 100%;
  padding: 0.45rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.toolbar-range { width: 100%; accent-color: var(--pink); }

.color-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}

.swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s;
}

.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--charcoal); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--pink); }

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.color-picker-row input[type="color"] {
  width: 36px;
  height: 36px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

.canvas-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-container {
  position: relative;
  max-width: 100%;
}

#fanCanvas {
  border: 1px solid #eee;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.canvas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.admin-badge {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .design-workspace { grid-template-columns: 1fr; }
  .design-workspace-full { grid-template-columns: 1fr; }
  .design-toolbar { position: static; }
}

.design-workspace-full {
  grid-template-columns: 120px 260px 1fr;
}

.design-landing { text-align: center; padding: 3rem 0; }
.landing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 700px; margin: 2rem auto; }
.landing-card {
  background: var(--white); border: 2px solid var(--pink-light); border-radius: var(--radius);
  padding: 2rem; cursor: pointer; text-align: center; font-family: var(--font-body);
  display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 0.2s;
}
.landing-card:hover { border-color: var(--pink); }
.landing-card-form { cursor: default; }
.landing-icon { font-size: 2.5rem; color: var(--pink); }
.landing-card span { color: var(--muted); font-size: 0.85rem; }

.design-slots-panel {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.75rem; position: sticky; top: 100px;
}
.design-slots-panel h3 { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; font-family: var(--font-body); }
.design-slots { display: flex; flex-direction: column; gap: 0.5rem; max-height: 400px; overflow-y: auto; }
.design-slot {
  border: 2px solid #eee; border-radius: 8px; padding: 0.25rem; background: var(--white);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.design-slot.active { border-color: var(--pink); }
.design-slot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.slot-label { font-size: 0.65rem; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.slot-add-btn {
  width: 100%; margin-top: 0.5rem; padding: 0.5rem; border: 2px dashed var(--pink);
  background: transparent; color: var(--pink); font-size: 1.5rem; border-radius: 8px; cursor: pointer;
}
.sticker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.sticker-btn { border: 1px solid #eee; border-radius: 6px; padding: 0.25rem; background: var(--white); cursor: pointer; }
.sticker-btn img { width: 100%; aspect-ratio: 1; object-fit: contain; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  width: min(480px, 100%); max-height: 90vh; overflow-y: auto;
}
.modal-card-wide { width: min(640px, 100%); }
.terms-content { white-space: pre-wrap; font-size: 0.9rem; color: var(--muted); max-height: 50vh; overflow-y: auto; margin-bottom: 1rem; }
.terms-check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; cursor: pointer; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }

.submit-success { text-align: center; padding: 4rem 0; }
.ref-display { font-size: 1.75rem; font-weight: 700; color: var(--pink); font-family: var(--font-heading); }

@media (max-width: 900px) {
  .landing-cards { grid-template-columns: 1fr; }
  .design-workspace-full { grid-template-columns: 1fr; }
}
