/* === DESIGNER NAV === */
.designer-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--fg); }

/* === DESIGNER LAYOUT === */
.designer-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 100vh;
  padding-top: 56px;
}

/* === CONTROLS SIDEBAR === */
.designer-controls {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.control-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.control-section:last-child {
  border-bottom: none;
}

.control-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

/* Photo upload */
.photo-upload-zone {
  border: 1px dashed var(--border-mid);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.upload-icon {
  color: var(--fg-dim);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.upload-text {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.upload-browse {
  color: var(--accent);
  cursor: pointer;
}

.upload-sub {
  font-size: 0.78rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.preview-thumb {
  position: relative;
  display: inline-block;
  margin-top: 16px;
}

.preview-thumb img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-mid);
}

.thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #1a1a1a;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  color: var(--fg);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form fields */
.field-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.field input,
.field select {
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.field input::placeholder { color: var(--fg-dim); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Style options */
.style-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.style-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.style-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.style-buttons {
  display: flex;
  gap: 6px;
}

.style-btn {
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.style-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.style-btn.active {
  background: var(--accent-subtle);
  border-color: rgba(255,77,0,0.5);
  color: var(--accent);
}

/* Actions */
.control-actions {
  padding-top: 28px;
}

.btn-download {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-download:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-download:not(:disabled):hover {
  opacity: 0.9;
}

.btn-download:not(:disabled):active {
  transform: scale(0.98);
}

/* === PREVIEW PANEL === */
.designer-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  gap: 16px;
  background: var(--bg);
  position: relative;
}

.preview-stage {
  position: relative;
  display: inline-block;
}

.preview-stage canvas {
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 100px rgba(255,77,0,0.06);
  max-width: 100%;
  height: auto;
}

.preview-label {
  position: absolute;
  top: 16px;
  left: 16px;
}

.preview-label-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.preview-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .designer-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .designer-controls {
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-y: visible;
    padding: 20px 16px;
  }

  .designer-preview {
    padding: 32px 16px;
  }
}

@media (max-width: 600px) {
  .designer-layout {
    padding-top: 56px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}