/* ============================================================================
   CloudPrint SaaS — Merchant panel layout
   Reuses design tokens from main.css (loaded first); adds dashboard chrome:
   sidebar, topbar, stat cards, tables, forms.
   ========================================================================= */

.panel-shell { display: flex; min-height: 100vh; }

/* ---------------- Sidebar ---------------- */
.panel-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--surface-glass-border);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.panel-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 6px 8px 22px;
}

.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); padding: 16px 10px 6px; }

.panel-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-muted);
}
.panel-nav a:hover { background: var(--surface-glass); color: var(--text-primary); }
.panel-nav a.active { background: var(--accent-gradient); color: #fff; }
.panel-nav a svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ---------------- Main column ---------------- */
.panel-main { flex: 1; min-width: 0; }

.panel-topbar {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--surface-glass-border);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
}

.panel-topbar h1 { font-size: 1.1rem; }
.panel-status-pill {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: 999px;
}
.panel-status-pill.pending  { background: color-mix(in srgb, var(--accent-warm) 20%, transparent); color: var(--accent-warm); }
.panel-status-pill.active   { background: color-mix(in srgb, #16A34A 20%, transparent); color: #16A34A; }
.panel-status-pill.suspended, .panel-status-pill.rejected { background: color-mix(in srgb, #DC2626 20%, transparent); color: #DC2626; }

.panel-body { padding: 28px; max-width: 1100px; }

/* ---------------- Stat cards ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.stat-card .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.stat-card .delta { font-size: 0.76rem; margin-top: 6px; }
.stat-card .delta.up { color: #16A34A; }
.stat-card .delta.down { color: #DC2626; }

/* ---------------- Panels / cards ---------------- */
.panel-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: none;
}
.panel-card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.panel-card .sub { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 20px; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.full { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.field .hint { font-size: 0.74rem; color: var(--text-faint); }
.field input, .field select, .field textarea {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-glass-border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.86rem; margin-bottom: 20px; }
.alert-error { background: color-mix(in srgb, #DC2626 12%, transparent); color: #DC2626; border: 1px solid color-mix(in srgb, #DC2626 30%, transparent); }
.alert-success { background: color-mix(in srgb, #16A34A 12%, transparent); color: #16A34A; border: 1px solid color-mix(in srgb, #16A34A 30%, transparent); }

/* ---------------- Tables ---------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.data-table th {
  text-align: left; font-weight: 600; color: var(--text-faint);
  text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 10px 14px; border-bottom: 1px solid var(--surface-glass-border);
}
.data-table td { padding: 14px; border-bottom: 1px solid var(--surface-glass-border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-glass); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.pill-queued    { background: color-mix(in srgb, #F59E0B 18%, transparent); color: #F59E0B; }
.pill-printing  { background: color-mix(in srgb, #06B6D4 18%, transparent); color: #0891B2; }
.pill-completed { background: color-mix(in srgb, #16A34A 18%, transparent); color: #16A34A; }
.pill-failed    { background: color-mix(in srgb, #DC2626 18%, transparent); color: #DC2626; }
.pill-paid      { background: color-mix(in srgb, #16A34A 18%, transparent); color: #16A34A; }
.pill-pending   { background: color-mix(in srgb, #F59E0B 18%, transparent); color: #F59E0B; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state svg { margin: 0 auto 14px; color: var(--text-faint); }

/* ---------------- Printer / pricing rows ---------------- */
.printer-row, .pricing-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--surface-glass-border);
  gap: 14px; flex-wrap: wrap;
}
.printer-row:last-child, .pricing-row:last-child { border-bottom: none; }
.printer-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.printer-dot.online { background: #16A34A; box-shadow: 0 0 0 4px color-mix(in srgb, #16A34A 25%, transparent); }
.printer-dot.offline { background: var(--text-faint); }
.printer-dot.error { background: #DC2626; box-shadow: 0 0 0 4px color-mix(in srgb, #DC2626 25%, transparent); }

/* ---------------- QR page ---------------- */
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 0; }
#qr-canvas-holder { padding: 20px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
#qr-canvas-holder canvas, #qr-canvas-holder img { width: 240px; height: 240px; display: block; }

@media (max-width: 860px) {
  .panel-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow-lifted);
  }
  .panel-sidebar.open { transform: translateX(0); }
  .panel-body { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .panel-merchant-name { display: none; }
}
@media (min-width: 861px) {
  .panel-mobile-toggle { display: none; }
}

/* ---------------- Topbar chrome: icon buttons + notification bell ---------------- */
.panel-mobile-toggle, .panel-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
  color: var(--text-muted); cursor: pointer; flex-shrink: 0; position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.panel-mobile-toggle svg, .panel-icon-btn svg { width: 17px; height: 17px; }
.panel-mobile-toggle:hover, .panel-icon-btn:hover { background: var(--accent-gradient); color: #fff; }

.panel-notif { position: relative; }
.panel-notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #DC2626; color: #fff; font-size: 0.62rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.panel-notif-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; max-width: 88vw; max-height: 420px; overflow-y: auto;
  background: var(--bg-elevated); border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lifted);
  z-index: 50;
}
.panel-notif-dropdown.open { display: block; animation: cpFadeSlide 0.15s ease; }
.panel-notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--surface-glass-border);
  font-weight: 700; font-size: 0.86rem;
}
.panel-notif-head button {
  background: none; border: none; color: var(--accent-1); font-size: 0.74rem; font-weight: 700; cursor: pointer;
}
.panel-notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--surface-glass-border); }
.panel-notif-item:last-child { border-bottom: none; }
.panel-notif-item:hover { background: var(--surface-glass); }
.panel-notif-item.unread { background: color-mix(in srgb, var(--accent-2) 6%, transparent); }
.panel-notif-item .title { font-size: 0.84rem; font-weight: 700; margin-bottom: 2px; }
.panel-notif-item .msg { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.panel-notif-item .time { font-size: 0.68rem; color: var(--text-faint); }
.panel-notif-empty { padding: 28px 16px; text-align: center; color: var(--text-faint); font-size: 0.82rem; }

@keyframes cpFadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cpPulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------------- Premium stat cards (dashboard) ---------------- */
.stat-grid.premium { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat-card.premium {
  display: flex; align-items: flex-start; gap: 14px;
  animation: cpFadeIn 0.35s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card.premium:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.stat-card .stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-gradient); color: #fff;
}
.stat-card .stat-icon svg { width: 20px; height: 20px; }
.stat-card .stat-icon.warm { background: linear-gradient(120deg, #F59E0B, #F97316); }
.stat-card .stat-icon.green { background: linear-gradient(120deg, #16A34A, #22C55E); }
.stat-card .stat-icon.red { background: linear-gradient(120deg, #DC2626, #EF4444); }
.stat-card .stat-icon.muted { background: var(--surface-glass); color: var(--text-muted); border: 1px solid var(--surface-glass-border); }

/* ---------------- Quick actions ---------------- */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; border-radius: var(--radius-md);
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
  text-align: center; font-size: 0.76rem; font-weight: 600; color: var(--text-primary);
  transition: transform 0.15s ease, background 0.15s ease;
}
.quick-action:hover { transform: translateY(-2px); background: var(--accent-gradient); color: #fff; }
.quick-action:hover .quick-action-icon { background: rgba(255,255,255,0.2); color: #fff; }
.quick-action-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent-1) 12%, transparent); color: var(--accent-1);
}
.quick-action-icon svg { width: 18px; height: 18px; }

/* ---------------- Shop status widget ---------------- */
.status-widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.status-widget-row { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.status-widget-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-widget-row .dot.on { background: #16A34A; box-shadow: 0 0 0 4px color-mix(in srgb, #16A34A 22%, transparent); animation: cpPulseDot 2s infinite; }
.status-widget-row .dot.off { background: var(--text-faint); }
.status-widget-row .dot.warn { background: #F59E0B; box-shadow: 0 0 0 4px color-mix(in srgb, #F59E0B 22%, transparent); }
.status-widget-row .label-sm { color: var(--text-muted); }
.status-widget-row .value-sm { font-weight: 700; margin-left: auto; }

/* ---------------- Chart cards ---------------- */
.chart-card canvas { max-height: 260px; }
.chart-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 960px) { .chart-grid { grid-template-columns: 1fr; } }

/* ---------------- Slider preview thumbnails (dashboard) ---------------- */
.slider-thumb-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.slider-thumb { flex-shrink: 0; width: 96px; height: 60px; border-radius: 10px; object-fit: cover; border: 1px solid var(--surface-glass-border); }

/* ---------------- A4 QR poster ---------------- */
.qr-poster-card { overflow: visible; }
.a4-poster-viewport {
  display: flex; justify-content: center; margin-top: 22px;
  padding: 24px; border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, var(--surface-glass) 0, var(--surface-glass) 10px, transparent 10px, transparent 20px);
}
.a4-poster {
  width: 100%; max-width: 420px; aspect-ratio: 210 / 297;
  container-type: inline-size;
  background: #ffffff; color: #12141F;
  border-radius: 16px; box-shadow: var(--shadow-lifted);
  display: flex; flex-direction: column; align-items: center;
  padding: 5cqw 6cqw; text-align: center;
  position: relative; overflow: hidden;
  border: 3px solid #12141F;
  outline: 2px solid #06B6D4; outline-offset: -8px;
}
.a4-poster-logo { width: 14cqw; height: 14cqw; object-fit: cover; border-radius: 20%; position: absolute; top: 5cqw; left: 6cqw; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* Corner dot cluster — small decorative touch echoing the reference layout */
.a4p-dotcluster {
  position: absolute; top: 6cqw; left: 6cqw; width: 9cqw; height: 9cqw;
  background-image: radial-gradient(#12141F 8%, transparent 8%);
  background-size: 4.5cqw 4.5cqw; opacity: 0.5;
}

/* Top pill badge: FAST • EASY • SECURE */
.a4p-badge {
  display: flex; align-items: center; gap: 0.6cqw;
  background: #12141F; color: #fff; border-radius: 999px;
  padding: 1.4cqw 4cqw; font-weight: 800; letter-spacing: 0.08em;
  font-size: 2.6cqw; margin-top: 3cqw;
}
.a4p-badge i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #06B6D4; display: inline-block; }

/* SCAN / AND / PRINT headline */
.a4p-headline-row { display: flex; align-items: center; justify-content: center; gap: 2cqw; width: 100%; margin-top: 2cqw; }
.a4p-burst { width: 5cqw; height: 5cqw; color: #12141F; flex-shrink: 0; opacity: 0.7; }
.a4p-scan {
  font-family: var(--font-display); font-weight: 900; font-size: 15cqw; line-height: 0.85;
  color: #12141F; margin: 0; letter-spacing: -0.01em;
}
.a4p-and {
  display: flex; align-items: center; gap: 2cqw; width: 78%;
  font-family: var(--font-display); font-weight: 800; font-size: 3.6cqw; color: #12141F;
  letter-spacing: 0.1em; margin-top: 0.5cqw;
}
.a4p-and span { flex: 1; height: 2px; background: #06B6D4; }
.a4p-print {
  font-family: var(--font-display); font-weight: 900; font-size: 15cqw; line-height: 0.85;
  background: linear-gradient(120deg, #4338CA, #06B6D4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0.5cqw 0 0;
}

/* Step row: SCAN / UPLOAD / SELECT / PRINT */
.a4p-steps { display: flex; align-items: center; justify-content: center; gap: 3.5cqw; margin-top: 3.5cqw; flex-wrap: wrap; }
.a4p-step { display: flex; align-items: center; gap: 1cqw; font-weight: 800; font-size: 2.4cqw; color: #12141F; letter-spacing: 0.02em; }
.a4p-step svg { width: 4cqw; height: 4cqw; color: #4338CA; flex-shrink: 0; }

/* QR section with side dot clusters, matching the reference's flanking dot columns */
.a4p-qr-section { display: flex; align-items: center; justify-content: center; gap: 2cqw; width: 100%; margin-top: 4cqw; }
.a4p-dots {
  width: 8cqw; align-self: stretch;
  background-image: radial-gradient(currentColor 9%, transparent 9%);
  background-size: 3.4cqw 3.4cqw; opacity: 0.4;
}
.a4p-dots.left { color: #12141F; }
.a4p-dots.right { color: #06B6D4; }

.a4p-qr-frame {
  position: relative; flex-shrink: 0; width: 62cqw;
  background: #fff; border: 3px solid #12141F; outline: 2px solid #06B6D4; outline-offset: -6px;
  border-radius: 5cqw; padding: 5cqw 5cqw 0;
  display: flex; flex-direction: column; align-items: center;
}
.a4p-qr-tab {
  position: absolute; top: -1.6cqw; left: 50%; transform: translateX(-50%);
  width: 14cqw; height: 3.2cqw; background: #06B6D4; border-radius: 6px;
}
.a4-poster-qr { width: 100%; }
.a4-poster-qr canvas, .a4-poster-qr img { width: 100%; height: auto; max-width: 100%; display: block; }
.a4p-scanhere {
  width: calc(100% + 10cqw); margin-top: 4cqw;
  background: #12141F; color: #fff; border-radius: 0 0 calc(5cqw - 3px) calc(5cqw - 3px);
  display: flex; align-items: center; justify-content: center; gap: 1.4cqw;
  padding: 2.2cqw 0; font-weight: 800; font-size: 3.6cqw; letter-spacing: 0.04em;
}
.a4p-scanhere svg { width: 3.4cqw; height: 3.4cqw; }
.a4p-scanhere .chev { color: #06B6D4; font-weight: 900; }

.a4p-subtext { font-weight: 800; letter-spacing: 0.08em; font-size: 3cqw; color: #12141F; margin-top: 2.5cqw; }

.a4p-identity { margin-top: 2cqw; }
.a4-poster-shopname { font-family: var(--font-display); font-weight: 700; font-size: 4.2cqw; line-height: 1.15; }
.a4-poster-tagline { font-size: 2.4cqw; color: #626A7D; margin-top: 0.2cqw; }
.a4-poster-contact { font-size: 2.2cqw; color: #4338CA; font-weight: 700; margin-top: 0.3cqw; }

/* Trust badge row */
.a4p-trust-row { display: flex; align-items: center; justify-content: center; gap: 2.5cqw; flex-wrap: wrap; margin-top: auto; padding-top: 3cqw; }
.a4p-trust-row > div { display: flex; align-items: center; gap: 0.8cqw; font-size: 1.7cqw; font-weight: 800; color: #12141F; letter-spacing: 0.01em; }
.a4p-trust-row svg { width: 3.2cqw; height: 3.2cqw; color: #12141F; flex-shrink: 0; }

/* Footer band */
.a4p-footer-band {
  width: calc(100% + 12cqw); margin: 3cqw 0 -5cqw;
  background: #12141F; color: #fff;
  padding: 2.4cqw 0; font-weight: 700; letter-spacing: 0.06em; font-size: 2.6cqw;
}
.a4-poster-brand { font-weight: 800; background: linear-gradient(120deg, #06B6D4, #67E8F9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Corner crop marks — a small cue for trimming the printed A4 sheet cleanly
   if a merchant mounts it in a frame or cuts it down. Screen-only guide;
   the print stylesheet below repositions them to the true page corners. */
.a4-crop-mark { position: absolute; width: 18px; height: 18px; opacity: 0.35; pointer-events: none; z-index: 5; }
.a4-crop-mark::before, .a4-crop-mark::after { content: ''; position: absolute; background: #12141F; }
.a4-crop-mark::before { width: 100%; height: 1.5px; top: 50%; }
.a4-crop-mark::after { width: 1.5px; height: 100%; left: 50%; }
.a4-crop-mark.tl { top: 10px; left: 10px; }
.a4-crop-mark.tr { top: 10px; right: 10px; }
.a4-crop-mark.bl { bottom: 10px; left: 10px; }
.a4-crop-mark.br { bottom: 10px; right: 10px; }

@media print {
  body * { visibility: hidden; }
  .a4-poster, .a4-poster * { visibility: visible; }
  .a4-poster {
    position: fixed; inset: 0; margin: 0; max-width: none; width: 210mm; height: 297mm;
    aspect-ratio: auto; box-shadow: none; border: 3px solid #12141F; border-radius: 0; page-break-after: avoid;
  }
  .a4-crop-mark { opacity: 0.55; }
  .a4-crop-mark.tl { top: 6mm; left: 6mm; }
  .a4-crop-mark.tr { top: 6mm; right: 6mm; }
  .a4-crop-mark.bl { bottom: 6mm; left: 6mm; }
  .a4-crop-mark.br { bottom: 6mm; right: 6mm; }
  @page { size: A4; margin: 0; }
}

/* ---------------- Mobile order flow (shop.php) ---------------- */
.upload-dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 20px;
  border: 2px dashed var(--surface-glass-border);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-dropzone.dragover { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 8%, var(--surface-glass)); }
.upload-dropzone svg { color: var(--text-faint); }
.upload-dropzone .primary-text { font-weight: 600; font-size: 0.92rem; }
.upload-dropzone .secondary-text { font-size: 0.78rem; color: var(--text-faint); }
.upload-file-chip {
  display: none;
  align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  border: 1px solid var(--surface-glass-border);
}
.upload-file-chip.visible { display: flex; }
.upload-file-chip .name { font-weight: 600; font-size: 0.86rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-chip .size { font-size: 0.76rem; color: var(--text-faint); }
.upload-file-chip .remove { color: #DC2626; font-size: 0.8rem; font-weight: 600; }

.price-breakdown-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); padding: 4px 0; }
.price-breakdown-row.total { font-weight: 700; color: var(--text-primary); border-top: 1px solid var(--surface-glass-border); margin-top: 6px; padding-top: 10px; font-size: 0.95rem; }

@media (max-width: 640px) {
  /* Inputs at 16px+ stop iOS Safari auto-zooming on focus */
  .field input, .field select, .field textarea { font-size: 16px; }

  /* Sticky price + submit bar so the CTA is always reachable on a phone */
  .mobile-sticky-bar {
    position: sticky;
    bottom: 0;
    left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--surface-glass-border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    margin: 0 -18px -18px;
    z-index: 50;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  }
}
@media (min-width: 641px) {
  .mobile-sticky-bar { position: static; box-shadow: none; border-top: none; padding: 0; margin: 0; }
}

/* ---------------- Shop page: step tracker ---------------- */
.step-tracker { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.step-tracker .step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 64px; }
.step-tracker .step-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
  color: var(--text-faint);
}
.step-tracker .step.active .step-icon { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.step-tracker .step-label { font-size: 0.72rem; font-weight: 600; color: var(--text-faint); text-align: center; }
.step-tracker .step.active .step-label { color: var(--text-primary); }
.step-tracker .step-connector { flex: 0 0 24px; height: 2px; background: var(--surface-glass-border); margin-bottom: 22px; }

/* ---------------- Shop page: status + feature badges ---------------- */
.shop-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700;
}
.shop-status-pill.open { background: color-mix(in srgb, #16A34A 15%, transparent); color: #16A34A; }
.shop-status-pill.closed { background: color-mix(in srgb, #DC2626 15%, transparent); color: #DC2626; }
.shop-status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.feature-badge-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 20px; }
.feature-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
}
.feature-badge svg { color: var(--accent-2); }

/* ---------------- Shop page: multi-file list ---------------- */
.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.file-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
}
.file-list-item .name { font-weight: 600; font-size: 0.85rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-item .size { font-size: 0.74rem; color: var(--text-faint); }
.file-list-item input[type=number] { width: 70px; padding: 6px 8px; font-size: 0.85rem; border-radius: 6px; border: 1px solid var(--surface-glass-border); }
.file-list-item .remove-file { color: #DC2626; cursor: pointer; font-size: 0.78rem; font-weight: 600; }

.pay-choice { display: flex; gap: 10px; margin-top: 8px; }
.pay-choice label {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface-glass); border: 2px solid var(--surface-glass-border);
  cursor: pointer; transition: border-color 0.15s ease;
}
.pay-choice input { display: none; }
.pay-choice input:checked + span { color: var(--accent-1); }
.pay-choice label:has(input:checked) { border-color: var(--accent-2); }
.pay-choice .pay-title { font-weight: 700; font-size: 0.88rem; }
.pay-choice .pay-sub { font-size: 0.74rem; color: var(--text-muted); }
