/* ============================================================
   GPSR Generator — Elegant Minimal Design
   Font: Outfit | Style: Glassmorphism + subtle gradients
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --accent: #F4A7B9;
  --accent-dark: #C4527A;
  --accent-light: #FDF0F4;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --text: #1a1a2e;
  --text-secondary: #374151;
  --text-muted: #9ca3af;
  --text-label: #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(244,167,185,0.08);
  --shadow-btn: 0 4px 16px rgba(244,167,185,0.35);
  --glass-bg: rgba(255,255,255,0.85);
  --glass-border: rgba(244,167,185,0.15);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: linear-gradient(170deg, #fdf2f8 0%, #fef7f0 40%, #fafafa 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navbar — Glassmorphism
   ============================================================ */
.navbar {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  max-height: 32px;
  width: auto;
}

.navbar-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.navbar-by {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: -4px;
}

.navbar-right,
.navbar-domain {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-link {
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}
.navbar-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* ============================================================
   Main Container
   ============================================================ */
.main-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 32px;
}

/* ============================================================
   Hero / Landing Section
   ============================================================ */
.hero {
  text-align: center;
  padding: 48px 24px 40px;
  animation: stepIn 0.4s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--accent-light);
  border: 1px solid var(--glass-border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-badge .beta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title .hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.hero-feature {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-feature h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.hero-feature p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), #e879a0);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.2s;
}

.hero-cta:hover {
  filter: brightness(1.03);
  box-shadow: 0 6px 24px rgba(244,167,185,0.45);
  transform: translateY(-2px);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 400;
}

.hero-divider {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  margin: 0 auto 8px;
}

/* ============================================================
   Progress Bar — with step labels
   ============================================================ */
.progress-bar-wrapper {
  margin-bottom: 28px;
}

.progress-bar {
  display: flex;
  gap: 4px;
}

.progress-segment {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  transition: background 0.4s ease;
}

.progress-segment.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.progress-labels {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.progress-step-label {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: #c0c0c0;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.progress-step-label.active {
  color: var(--accent-dark);
  font-weight: 600;
}

.progress-label,
#progress-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================================
   Step Cards — Glass effect
   ============================================================ */
.step {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  margin-top: 0;
  animation: stepIn 0.3s ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-counter {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.step-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 500;
}

/* ============================================================
   Form Groups
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group > label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--text-label);
  margin-bottom: 6px;
}

.required {
  color: var(--accent);
}

.optional {
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 167, 185, 0.15), 0 0 12px rgba(244, 167, 185, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #c0c0c0;
  font-weight: 400;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(255,255,255,0.6);
  padding-right: 36px;
}

input[type="file"] {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  font-weight: 400;
}

/* ============================================================
   Chip Select
   ============================================================ */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.6);
  color: var(--text-label);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.chip:hover {
  border-color: var(--accent);
  background: rgba(253,240,244,0.5);
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
}

/* ============================================================
   Radio Groups
   ============================================================ */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ============================================================
   Buttons
   ============================================================ */

/* Primary (Dalej) — gradient */
.btn-nav.btn-next,
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e879a0);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  min-width: 160px;
  box-shadow: var(--shadow-btn);
  transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-nav.btn-next:hover,
.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow: 0 6px 20px rgba(244,167,185,0.4);
  transform: translateY(-1px);
}

.btn-nav.btn-next:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

/* Ghost (Wstecz) */
.btn-nav.btn-prev,
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  min-width: 120px;
  transition: all 0.2s;
}

.btn-nav.btn-prev:hover,
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(253,240,244,0.3);
}

/* AI Button (Wygeneruj sugestie) */
.btn-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: 2px solid var(--accent-dark);
  background: rgba(255,255,255,0.6);
  color: var(--accent-dark);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ai:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 12px rgba(244,167,185,0.15);
}

.btn-ai svg {
  flex-shrink: 0;
}

.btn-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 400;
}

/* Add item button */
.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent-dark);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  padding: 6px 0;
  margin-top: 4px;
  transition: color 0.2s;
}

.btn-add-item:hover {
  color: var(--accent);
}

/* Clear / secondary text buttons */
.step-actions-secondary {
  margin-top: 8px;
}

.step-actions-secondary .btn-secondary {
  font-size: 13px;
  padding: 8px 16px;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  min-width: auto;
}

/* Navigation buttons container */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

/* ============================================================
   Editable Lists (hazards, warnings, certs)
   ============================================================ */
.editable-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editable-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.editable-item input {
  flex: 1;
}

.editable-item .btn-delete-item,
.btn-delete-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.6);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-delete-item:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-light);
}

/* ============================================================
   Certificate Info Box — accent-themed
   ============================================================ */
.cert-info-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.cert-info-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
}

.cert-info-text strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.cert-info-text ul {
  margin: 6px 0 4px 0;
  padding-left: 1.2rem;
}

.cert-info-text li {
  margin-bottom: 4px;
}

/* Checkbox labels */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

/* ============================================================
   Palette Picker
   ============================================================ */
.palette-grid,
#palette-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.palette-swatch {
  height: 56px;
  border-radius: 12px;
  cursor: pointer;
  border: 2.5px solid transparent;
  overflow: hidden;
  display: flex;
  transition: all 0.2s;
}

.palette-swatch:hover {
  border-color: var(--text-muted);
  transform: scale(1.03);
}

.palette-swatch.active {
  border: 3px solid var(--text);
  box-shadow: 0 0 0 2px white inset, 0 2px 8px rgba(0,0,0,0.1);
}

.palette-swatch > div {
  flex: 1;
}

/* ============================================================
   Image Preview (logo, photo uploads)
   ============================================================ */
.image-preview {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-preview img {
  max-width: 120px;
  max-height: 80px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
}

.btn-remove-image {
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font);
  font-weight: 500;
}

/* ============================================================
   Preview (Step 5)
   ============================================================ */
.preview-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
}

.preview-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font);
  transition: all 0.2s;
}

.preview-tab:hover {
  color: var(--text);
}

.preview-tab.active,
.preview-tab[aria-selected="true"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.preview-area {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  min-height: 400px;
  overflow: auto;
  background: rgba(255,255,255,0.7);
  padding: 16px;
  backdrop-filter: blur(8px);
}

.preview-pane {
  /* shown/hidden by JS */
}

/* Download buttons */
.download-buttons {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.btn-download:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244,167,185,0.12);
}

.btn-download svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ============================================================
   Disclaimer Box (Step 5)
   ============================================================ */
.disclaimer-box {
  background: rgba(255, 248, 225, 0.8);
  border: 1px solid #F0D080;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #7A6000;
  line-height: 1.5;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* ============================================================
   Loading Overlay
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 242, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 56px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(244, 167, 185, 0.15);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

/* Bouncing dots */
.loading-dots {
  display: flex;
  gap: 8px;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotBounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.16s;
  background: #e879a0;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.32s;
  background: var(--accent-dark);
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Message carousel */
.loading-carousel {
  position: relative;
  height: 44px;
  width: 280px;
  overflow: hidden;
}

.carousel-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-msg.visible {
  opacity: 1;
}

.carousel-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.carousel-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================================
   Site Footer — refined
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 2px solid var(--accent-light);
  margin-top: 32px;
  font-weight: 500;
}

.site-footer .footer-heart {
  color: var(--accent);
}

.site-footer .footer-disclaimer {
  font-size: 10px;
  color: #d1d5db;
  margin-top: 4px;
  font-weight: 400;
}

/* ============================================================
   Subsection title (step 3)
   ============================================================ */
.subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

/* ============================================================
   Utility
   ============================================================ */
.mt-1 { margin-top: 8px; }

[hidden] {
  display: none !important;
}

/* ============================================================
   Social Media Inputs (Step 1)
   ============================================================ */
.social-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e879a0);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(244,167,185,0.25);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-row input {
  flex: 1;
}

/* ============================================================
   Tab Content (Step 5)
   ============================================================ */
.tab-content {
  margin-bottom: 20px;
}

/* ============================================================
   Collapsible checklist groups
   ============================================================ */
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; content: ''; }

details[open] summary svg {
  transform: rotate(0deg);
}

details:not([open]) summary svg {
  transform: rotate(-90deg);
}

/* ============================================================
   QR Tab
   ============================================================ */
.qr-tab-content {
  padding: 8px;
}

.qr-intro {
  text-align: center;
  margin-bottom: 24px;
}

.qr-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.qr-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 500;
}

.qr-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.qr-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.qr-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e879a0);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-step strong {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.qr-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

.qr-tip {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--accent-light);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}

.qr-tip strong {
  font-size: 13px;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 6px;
}

.qr-tip ul {
  padding-left: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.qr-tip li {
  margin-bottom: 3px;
}

/* ============================================================
   Label Creator (Step 5)
   ============================================================ */
.label-creator {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.label-options {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}

.label-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px 0;
  letter-spacing: -0.2px;
}

.label-section-title:first-child {
  margin-top: 0;
}

.label-shape-chips {
  margin-bottom: 12px;
}

.label-size-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.size-row {
  flex: 1;
}

.size-row label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.size-row input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
}

.label-size-error {
  color: #c00;
  font-size: 12px;
  margin-top: -8px;
  margin-bottom: 8px;
  font-weight: 500;
}

.label-group-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin: 14px 0 6px 0;
}

.label-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 0;
  font-weight: 500;
}

.label-check input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.label-preview-wrap {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label-preview-canvas {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: rgba(249,249,249,0.6);
  width: 100%;
  backdrop-filter: blur(8px);
}

/* ============================================================
   Mobile — max-width: 640px
   ============================================================ */
@media (min-width: 1100px) {
  .main-container {
    max-width: 940px;
  }
}

@media (max-width: 640px) {
  .main-container {
    padding: 16px;
  }

  .hero {
    padding: 32px 8px 28px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-feature {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .hero-feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .navbar {
    padding: 10px 16px;
  }

  .navbar-right,
  .navbar-domain {
    display: none;
  }

  .navbar-title {
    font-size: 14px;
  }

  .step {
    padding: 20px;
    border-radius: 14px;
  }

  .step-title {
    font-size: 18px;
  }

  .chip-group {
    gap: 6px;
  }

  .chip {
    padding: 7px 14px;
    font-size: 13px;
  }

  .nav-buttons {
    flex-direction: column;
  }

  .nav-buttons button {
    width: 100%;
  }

  .btn-nav.btn-next,
  .btn-nav.btn-prev {
    min-width: auto;
    width: 100%;
  }

  .palette-swatch {
    height: 44px;
  }

  .download-buttons {
    grid-template-columns: 1fr;
  }

  .preview-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .preview-area {
    min-height: 300px;
  }

  .btn-download {
    padding: 14px 16px;
    font-size: 14px;
  }

  .btn-ai {
    font-size: 14px;
    padding: 12px 20px;
  }

  .label-creator {
    grid-template-columns: 1fr;
  }

  .label-options {
    max-height: none;
  }

  .label-preview-wrap {
    position: static;
  }

  .progress-step-label {
    font-size: 8px;
  }
}
