/* ============================================================
   PulsePrint3D — style.css
   Professional dark-theme e-commerce/print-service UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary: #0066CC;
  --primary-dark: #0052A3;
  --primary-light: #3388DD;
  --accent: #FF6B2B;
  --accent-dark: #E05A1C;
  --bg: #0B0F1E;
  --bg-2: #0F1428;
  --surface: #141930;
  --surface-2: #1C2240;
  --surface-3: #252B4A;
  --text: #E8EDF8;
  --text-muted: #7A87A8;
  --text-dim: #4A5578;
  --border: #1E2545;
  --border-light: #2A3260;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-blue: 0 4px 20px rgba(0, 102, 204, 0.25);
  --transition: 0.18s ease;
  --glow: 0 0 20px rgba(0, 102, 204, 0.3);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

img, svg { display: block; max-width: 100%; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-muted { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, #60A8FF 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 0;
}
.logo:hover { color: var(--text); }
.logo-sm { font-size: 1.4rem; }

.logo-accent { color: var(--primary-light); }
.logo-3d {
  color: var(--accent);
  font-size: 0.8em;
  vertical-align: super;
  margin-left: 1px;
  font-weight: 700;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-link.active {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-light);
}

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 20px;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 102, 204, 0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: var(--surface-3);
  border-color: var(--surface-3);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-light);
}
.btn-outline:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-light);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: #fff;
}

.btn-sm { padding: 7px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-received       { background: rgba(59,130,246,0.15); color: #60A5FA; }
.badge-in-review      { background: rgba(245,158,11,0.15);  color: #FCD34D; }
.badge-ready-to-print { background: rgba(139,92,246,0.15);  color: #A78BFA; }
.badge-printing       { background: rgba(0,102,204,0.2);    color: #60A8FF; }
.badge-post-processing{ background: rgba(20,184,166,0.15);  color: #2DD4BF; }
.badge-packed         { background: rgba(16,185,129,0.15);  color: #34D399; }
.badge-shipped        { background: rgba(245,158,11,0.15);  color: #FBBF24; }
.badge-delivered      { background: rgba(16,185,129,0.2);   color: #10B981; }
.badge-canceled       { background: rgba(239,68,68,0.15);   color: #F87171; }
.badge-pending        { background: rgba(107,114,128,0.15); color: #9CA3AF; }
.badge-paid           { background: rgba(16,185,129,0.15);  color: #34D399; }
.badge-admin          { background: rgba(255,107,43,0.15);  color: var(--accent); }
.badge-customer       { background: rgba(59,130,246,0.12);  color: #60A5FA; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  margin-bottom: 20px;
}
.alert-danger {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: #FCA5A5;
}
.alert-success {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #6EE7B7;
}
.alert-info {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #93C5FD;
}

/* ── Section Styles ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,204,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,102,204,0.12);
  border: 1px solid rgba(0,102,204,0.25);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item svg { color: var(--success); flex-shrink: 0; }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--transition), transform var(--transition);
}
.hero-stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-printer-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.printer-icon { font-size: 2rem; }
.printer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.printer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.printer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.printer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── How It Works ────────────────────────────────────────────── */
.how-it-works {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-blue);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--border) 100%);
  align-self: flex-start;
  margin-top: 24px;
  opacity: 0.4;
}

/* ── Order Section ──────────────────────────────────────────── */
.order-section {
  padding: 96px 0;
  background: var(--bg-2);
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.order-step {
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
  opacity: 0.4;
  transition: opacity var(--transition);
  pointer-events: none;
}
.order-step:last-child { border-bottom: none; }
.order-step.active {
  opacity: 1;
  pointer-events: all;
}
.order-step.completed {
  opacity: 0.75;
  pointer-events: all;
}

.order-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.order-step-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.step-badge {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-2);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(0,102,204,0.06);
}

.upload-zone-content { display: flex; flex-direction: column; align-items: center; }
.upload-zone-content.hidden { display: none; }

.upload-icon {
  color: var(--text-dim);
  margin-bottom: 16px;
  transition: color var(--transition);
}
.upload-zone:hover .upload-icon { color: var(--primary-light); }

.upload-main {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.upload-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.upload-browse {
  color: var(--primary-light);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  padding: 0;
  font-family: inherit;
}
.upload-browse:hover { color: var(--primary); text-decoration: underline; }

.upload-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.upload-file-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-file-name { font-weight: 600; color: var(--text); font-size: 0.95rem; margin-bottom: 4px; }
.upload-file-size { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.upload-change {
  font-size: 0.82rem;
  color: var(--primary-light);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.upload-change:hover { color: var(--primary); text-decoration: underline; }

/* Material Grid */
.material-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.material-card:hover {
  border-color: var(--primary);
  background: rgba(0,102,204,0.05);
}
.material-card.selected {
  border-color: var(--primary);
  background: rgba(0,102,204,0.1);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.material-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.material-info { flex: 1; }
.material-name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.material-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.material-price {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 4px;
  display: block;
}

.material-check {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
}
.material-card.selected .material-check { opacity: 1; }

/* Price Box */
.price-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.price-row:last-of-type { border-bottom: none; }
.price-total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  padding-top: 14px;
  border-top: 1px solid var(--border-light) !important;
  margin-top: 4px;
}
.price-amount {
  font-size: 1.3rem;
  color: var(--success);
  font-weight: 800;
}
.price-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  border-radius: var(--radius);
}
.checkout-note {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Materials Showcase ─────────────────────────────────────── */
.materials-showcase {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.showcase-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.showcase-swatch {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.showcase-body { padding: 24px; }
.showcase-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.showcase-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.showcase-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.showcase-price-label { font-size: 0.8rem; color: var(--text-dim); }
.showcase-price-val { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.showcase-price-sub { font-size: 0.8rem; color: var(--text-muted); }

/* ── Trust Section ──────────────────────────────────────────── */
.trust-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.trust-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}
.trust-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.trust-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Section Label ──────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(0,102,204,0.12);
  border: 1px solid rgba(0,102,204,0.22);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

/* ── Feature Strip ──────────────────────────────────────────── */
.feature-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.feature-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.feature-strip-item svg { color: var(--primary-light); flex-shrink: 0; }
.feature-strip-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* ── Materials CTA ──────────────────────────────────────────── */
.materials-cta {
  text-align: center;
  margin-top: 40px;
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.cta-banner-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
}
.cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-banner .btn-primary:hover {
  background: #f0f6ff;
  transform: translateY(-2px);
}
.cta-banner .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  min-height: calc(100vh - 64px);
  background: radial-gradient(ellipse at 50% 0%, rgba(0,102,204,0.08) 0%, transparent 60%), var(--bg);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-logo { margin-bottom: 28px; }

.auth-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-form { display: flex; flex-direction: column; gap: 0; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.label-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.admin-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,43,0.12);
  border: 1px solid rgba(255,107,43,0.25);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-main {
  padding: 56px 0;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.empty-state p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}
.order-row:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.order-row-id { display: flex; flex-direction: column; gap: 2px; }
.order-num { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.order-file { font-size: 0.78rem; color: var(--text-muted); }

.order-row-material {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.material-dot-sm {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.order-row-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}
.order-row-date { font-size: 0.82rem; color: var(--text-muted); }
.order-row-arrow { color: var(--text-dim); font-size: 1.2rem; }

/* ── Order Detail ───────────────────────────────────────────── */
.detail-main { padding: 56px 0; }

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.detail-title { font-size: 1.7rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.detail-meta { font-size: 0.85rem; color: var(--text-muted); }

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.detail-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.detail-card-header h2 { font-size: 1rem; font-weight: 700; color: var(--text); }
.detail-card-body { padding: 24px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  gap: 16px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); flex-shrink: 0; }
.detail-value { color: var(--text); font-weight: 500; text-align: right; }

.history-list { display: flex; flex-direction: column; gap: 0; }
.history-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; }
.history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}
.history-info { flex: 1; }
.history-status { font-weight: 600; font-size: 0.875rem; color: var(--text); margin-bottom: 2px; }
.history-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.history-time { font-size: 0.75rem; color: var(--text-dim); }

/* ── Success Page ───────────────────────────────────────────── */
.success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  width: 100%;
  max-width: 500px;
  text-align: center;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.success-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.success-details {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Error Page ─────────────────────────────────────────────── */
.error-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.error-icon { font-size: 3rem; margin-bottom: 16px; }
.error-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.error-message { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── Toast Notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  animation: toast-in 0.25s ease;
  pointer-events: all;
}
.toast-success { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.1); color: #6EE7B7; }
.toast-error { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.1); color: #FCA5A5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-printer-card { text-align: left; }

  .steps { flex-direction: column; align-items: center; gap: 24px; }
  .step { padding: 0; max-width: 100%; }
  .step-connector { width: 2px; height: 32px; background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%); }

  .order-step { padding: 24px; }

  .detail-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .nav-links .nav-link { display: none; }
  .nav-links .nav-cta { display: inline-flex; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 150;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links .nav-link,
  .nav-links .nav-cta {
    width: 100%;
    justify-content: center;
  }
  .nav-links .nav-link {
    display: inline-flex;
  }

  .order-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .order-row-material,
  .order-row-price,
  .order-row-date { display: none; }

  .materials-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { flex-direction: column; }

  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }
  .feature-strip-divider { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .auth-card { padding: 36px 24px; }
  .hero { padding: 64px 0 48px; }
  .how-it-works, .order-section, .materials-showcase, .trust-section, .cta-banner { padding: 64px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links-group { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .success-actions { flex-direction: column; }
  .page-header { gap: 16px; }
}


/* ═══════════════════════════════════════════════════════════════
   NEW COMPONENTS — Multi-part + Polished UI
   ═══════════════════════════════════════════════════════════════ */

/* ── Order layout (two-column on desktop) ───────────────────── */
.order-container { max-width: 1100px; }

.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.order-steps-col {
  border-right: 1px solid var(--border);
}

.order-summary-col {
  background: var(--bg-2);
}

.order-step-summary {
  position: sticky;
  top: 80px;
}

.step-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
  font-weight: 400;
}

/* ── Upload zone: compact state ─────────────────────────────── */
.upload-zone.has-parts {
  padding: 16px 24px;
  border-style: dashed;
  border-color: var(--border-light);
  background: transparent;
}
.upload-zone.has-parts:hover,
.upload-zone.has-parts.drag-over {
  border-color: var(--primary);
  background: rgba(0,102,204,0.04);
}

.upload-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  justify-content: center;
}

/* ── Parts list ─────────────────────────────────────────────── */
.parts-section {
  margin-top: 14px;
}

.parts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.part-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.part-item.uploading { opacity: 0.7; }
.part-item.errored   { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.04); }

.part-icon-wrap {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.part-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.part-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.part-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.part-progress {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-top: 6px;
}

.part-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: width 0.18s ease;
}

.part-error-msg { color: #FCA5A5; }

.part-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.part-weight {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.part-weight.muted { color: var(--text-dim); font-weight: 400; }

.part-price {
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 600;
}

.part-spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.part-remove {
  width: 26px;
  height: 26px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: all var(--transition);
  flex-shrink: 0;
  padding: 0;
  font-family: inherit;
}
.part-remove:hover { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.08); }

.part-retry {
  height: 26px;
  background: none;
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 13px;
  color: #FCA5A5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: all var(--transition);
  flex-shrink: 0;
  padding: 0 8px;
  font-family: inherit;
  white-space: nowrap;
}
.part-retry:hover { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.1); }

.parts-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.parts-total-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Color grid ─────────────────────────────────────────────── */
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.color-card:hover { border-color: var(--primary); background: rgba(0,102,204,0.05); color: var(--text); }
.color-card.selected { border-color: var(--primary); background: rgba(0,102,204,0.1); color: var(--text); box-shadow: 0 0 0 3px rgba(0,102,204,0.12); }

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.color-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}
.color-card.selected .color-check { opacity: 1; }

/* ── Order summary card ─────────────────────────────────────── */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.summary-header {
  padding: 10px 18px;
  background: rgba(0,102,204,0.07);
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

.summary-parts-list {
  padding: 4px 0;
  min-height: 48px;
}

.summary-empty {
  padding: 16px 18px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.summary-part-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 9px 18px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}
.summary-part-row:last-child { border-bottom: none; }

.summary-part-name  { color: var(--text-muted); }
.summary-part-weight { color: var(--text-muted); text-align: right; min-width: 44px; }
.summary-part-price  { color: var(--text); font-weight: 600; text-align: right; min-width: 52px; }

.summary-totals {
  padding: 8px 18px 10px;
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Form elements ──────────────────────────────────────────── */
.order-form { display: flex; flex-direction: column; gap: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.step-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  display: block;
}

.required-star { color: var(--danger); }
.optional-label { color: var(--text-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }

.submit-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(0,102,204,0.05);
  border: 1px solid rgba(0,102,204,0.15);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 14px 0;
}
.submit-info svg { flex-shrink: 0; color: var(--primary-light); margin-top: 1px; }

.submit-btn { width: 100%; padding: 15px; font-size: 1rem; }

.login-prompt { display: flex; flex-direction: column; gap: 12px; }
.login-prompt p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Review notice ──────────────────────────────────────────── */
.review-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,102,204,0.06);
  border: 1px solid rgba(0,102,204,0.16);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.review-notice-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Pay Now banner (order detail page) ─────────────────────── */
.pay-now-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pay-now-banner-text { display: flex; flex-direction: column; gap: 3px; }
.pay-now-banner-text strong { color: var(--success); font-size: 1rem; }
.pay-now-banner-text span   { font-size: 0.875rem; color: var(--text-muted); }
.pay-now-card { border-color: rgba(16,185,129,0.3) !important; }

/* ── Success page ───────────────────────────────────────────── */
.success-review-note {
  background: rgba(0,102,204,0.06);
  border: 1px solid rgba(0,102,204,0.18);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Dashboard: Pay Now row button ──────────────────────────── */
.order-row-wrap { display: flex; flex-direction: column; }
.pay-now-row-btn {
  align-self: flex-end;
  margin-top: -2px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  padding: 6px 14px;
}

/* ── Parts breakdown (order detail) ─────────────────────────── */
.parts-breakdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.parts-breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 3px 0;
}
.parts-breakdown-name  { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.parts-breakdown-weight { font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.parts-breakdown-price  { flex-shrink: 0; }

/* ── Responsive overrides for new layout ───────────────────── */
@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;
  }
  .order-steps-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .order-summary-col {
    background: var(--surface);
  }
  .order-step-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .pay-now-banner { flex-direction: column; align-items: flex-start; }
}

/* ── Admin Styles ────────────────────────────────────────────── */

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.admin-nav { padding: 0 12px; }
.admin-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0 12px;
  margin-bottom: 6px;
  margin-top: 16px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.admin-nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.admin-nav-link.active {
  background: rgba(0,102,204,0.15);
  color: var(--primary-light);
}

.admin-main {
  background: var(--bg);
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.admin-topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-content { padding: 32px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.kpi-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-sub { font-size: 0.78rem; color: var(--text-dim); }

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.table-card-title { font-size: 1rem; font-weight: 700; color: var(--text); }

table { width: 100%; border-collapse: collapse; }
th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 12px 16px;
  text-align: left;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface-2); }
td a { color: var(--primary-light); }
td a:hover { color: var(--primary); }
td strong { color: var(--text); font-weight: 600; }

.form-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.form-inline input,
.form-inline select {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  padding: 9px 12px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.form-inline input:focus,
.form-inline select:focus {
  border-color: var(--primary);
}

.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pagination a, .pagination span {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.pagination a {
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pagination a:hover { color: var(--text); border-color: var(--border-light); }
.pagination span { background: var(--primary); color: #fff; border: 1px solid var(--primary); }


/* ═══════════════════════════════════════════════════════════════
   ORDER PAGE v2 — Polished multi-part order experience
   ═══════════════════════════════════════════════════════════════ */

/* ── Page header ────────────────────────────────────────────── */
.order-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.order-page-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.order-page-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ── Progress stepper ───────────────────────────────────────── */
.order-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
  padding: 4px 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.progress-step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  position: relative;
}

.prog-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: opacity 0.18s;
}

.prog-check {
  position: absolute;
  opacity: 0;
  color: #fff;
  transition: opacity 0.18s;
}

.progress-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.18s;
}

/* Active step */
.progress-step.active .progress-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,102,204,0.2);
}
.progress-step.active .prog-num { color: #fff; }
.progress-step.active .progress-step-label { color: var(--text); }

/* Done step */
.progress-step.done .progress-step-dot {
  background: var(--success);
  border-color: var(--success);
}
.progress-step.done .prog-num { opacity: 0; }
.progress-step.done .prog-check { opacity: 1; color: #fff; }
.progress-step.done .progress-step-label { color: var(--text-muted); }

/* Connector */
.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 22px;
  min-width: 24px;
  max-width: 80px;
  border-radius: 1px;
  transition: background 0.22s;
}

/* ── Upload zone improvements ───────────────────────────────── */
.upload-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.upload-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  letter-spacing: 0.01em;
}

/* ── Part item: ready state ─────────────────────────────────── */
.part-item.ready {
  border-color: rgba(16,185,129,0.25);
}
.part-item.ready .part-name { color: var(--text); }

/* ── Step done state ────────────────────────────────────────── */
.order-step.done {
  opacity: 0.8;
  pointer-events: all;
}
.order-step.done .step-badge {
  background: var(--success);
}

/* ── Summary: selection rows (material + color) ─────────────── */
.summary-selection {
  padding: 8px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.summary-sel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 3px 0;
}
.summary-sel-label { color: var(--text-dim); }
.summary-sel-val   { color: var(--text-muted); font-weight: 600; }

/* ── Summary grand total improvements ──────────────────────── */
.summary-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0,102,204,0.08), rgba(0,102,204,0.04));
  border-top: 1px solid var(--border-light);
  gap: 12px;
}
.summary-grand-total > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-grand-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.summary-grand-note {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.summary-grand-total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
  flex-shrink: 0;
}

/* ── Price note ─────────────────────────────────────────────── */
.price-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.55;
}

/* ── Submit footer note ─────────────────────────────────────── */
.submit-footer-note {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 10px;
}

/* ── Improved step active indicator ────────────────────────── */
.order-step.active {
  border-left: 3px solid var(--primary);
  padding-left: calc(40px - 3px);
}

@media (max-width: 768px) {
  .order-step.active {
    border-left: 3px solid var(--primary);
    padding-left: calc(24px - 3px);
  }
}

@media (max-width: 640px) {
  .order-page-header { flex-direction: column; gap: 12px; }
  .order-page-title  { font-size: 1.5rem; }
  .progress-connector { min-width: 12px; max-width: 32px; }
  .progress-step-label { display: none; }
  .order-progress { justify-content: center; }
  .color-grid { grid-template-columns: repeat(4, 1fr); }
  .parts-footer { align-items: flex-start; flex-direction: column; }
  .parts-total-badge { line-height: 1.4; }
}

@media (max-width: 400px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   UI POLISH — Enhanced visuals & interactions
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero radial glow background ────────────────────────────── */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,43,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Hero stat card hover glow ───────────────────────────────── */
.hero-stat-card:hover .hero-stat-num {
  color: var(--primary-light);
  transition: color 0.2s ease;
}

/* ── Animated CTA button pulse ───────────────────────────────── */
.hero-cta {
  position: relative;
  overflow: hidden;
}
.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.hero-cta:hover::after {
  transform: translateX(100%);
}

/* ── Upload zone: pulsing border on drag ─────────────────────── */
.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(0,102,204,0.08);
  animation: pulse-border 1s ease-in-out infinite;
}
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,102,204,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(0,102,204,0.05); }
}

/* ── Upload zone icon animate on hover ───────────────────────── */
.upload-zone:not(.has-parts):hover .upload-icon svg {
  transform: translateY(-4px);
  transition: transform 0.25s ease;
}
.upload-icon svg {
  transition: transform 0.25s ease;
}

/* ── Part item slide-in animation ───────────────────────────── */
@keyframes part-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.part-item {
  animation: part-slide-in 0.18s ease forwards;
}

/* ── Better form control styling ────────────────────────────── */
.form-control {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
textarea.form-control { resize: vertical; min-height: 88px; }

/* ── Step badge enhancement ──────────────────────────────────── */
.order-step.active .step-badge {
  box-shadow: 0 0 0 4px rgba(0,102,204,0.2);
}

/* ── Material card subtle glow when selected ─────────────────── */
.material-card.selected {
  box-shadow: 0 0 0 3px rgba(0,102,204,0.15), var(--shadow-blue);
}

/* ── Color grid hover states ─────────────────────────────────── */
.color-swatch {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.color-card:hover .color-swatch {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.color-card.selected .color-swatch {
  transform: scale(1.06);
}

/* ── Trust cards icon animation ──────────────────────────────── */
.trust-icon {
  transition: transform 0.2s ease;
}
.trust-card:hover .trust-icon {
  transform: scale(1.15);
}

/* ── Dashboard order row enhanced hover ──────────────────────── */
.order-row:hover .order-num {
  color: var(--primary-light);
}
.order-row-wrap + .order-row-wrap {
  margin-top: 0;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-dim); }

/* ── Card styles for order detail ───────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.mt-4 { margin-top: 16px; }

/* ── Order detail grid ───────────────────────────────────────── */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .order-detail-grid { grid-template-columns: 1fr; }
}

/* ── Timeline ────────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-left: 2px solid var(--border);
  padding-left: 18px;
  position: relative;
  opacity: 0.45;
}
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item.done,
.timeline-item.current { opacity: 1; }
.timeline-item.done { border-left-color: var(--success); }
.timeline-item.current { border-left-color: var(--primary); }
.timeline-item.canceled { border-left-color: var(--danger) !important; }

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--border);
  border: 2px solid var(--bg);
  border-radius: 50%;
  flex-shrink: 0;
}
.timeline-item.done .timeline-dot { background: var(--success); }
.timeline-item.current .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,102,204,0.2);
}
.timeline-item.canceled .timeline-dot { background: var(--danger); }

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 4px;
}
.timeline-label { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.timeline-time   { font-size: 0.75rem; color: var(--text-dim); }
.timeline-note   { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Contact info ────────────────────────────────────────────── */
.contact-info { margin-top: 16px; }

/* ── order-info-card detail rows ────────────────────────────── */
.order-info-card .detail-rows { display: flex; flex-direction: column; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  gap: 16px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); flex-shrink: 0; }
.detail-value { color: var(--text); font-weight: 500; text-align: right; }

/* ── Timeline card spacing ───────────────────────────────────── */
.timeline-card { margin-top: 16px; }

/* ── Improved page footer note ───────────────────────────────── */
.footer-logo { margin-bottom: 8px; display: inline-block; }

/* ── Showcase card shine effect ──────────────────────────────── */
.showcase-card {
  position: relative;
  overflow: hidden;
}
.showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.showcase-card:hover::before {
  left: 140%;
}

/* ── Better button focus states ──────────────────────────────── */
.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

/* ── Upload zone success state ───────────────────────────────── */
.upload-zone.upload-success {
  border-color: rgba(16,185,129,0.4);
  background: rgba(16,185,129,0.04);
}

/* ── Better upload icon size ────────────────────────────────── */
.upload-icon { margin-bottom: 18px; }
.upload-icon svg { color: var(--text-dim); margin: 0 auto; }

/* ── Smooth page transition effect ──────────────────────────── */
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: page-fade-in 0.3s ease forwards;
}

/* ── Toast fixed positioning & visibility ───────────────────── */
.toast-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 340px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: all;
}
.toast-fixed.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile order flow fixes ─────────────────────────────────── */
@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    height: 60px;
  }

  .navbar-inner {
    height: 60px;
  }

  .logo {
    font-size: 1.35rem;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }

  .order-section {
    padding: 32px 0 48px;
  }

  .order-container {
    padding: 0 12px;
  }

  .order-page-header {
    align-items: stretch;
  }

  .order-page-header .btn {
    width: 100%;
    justify-content: center;
  }

  .review-notice {
    align-items: flex-start;
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .order-layout {
    display: block;
    border-radius: var(--radius);
    overflow: visible;
  }

  .order-steps-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .order-summary-col {
    background: var(--surface);
  }

  .order-step,
  .order-step.active {
    padding: 20px 14px;
  }

  .order-step.active {
    border-left: 0;
    border-top: 3px solid var(--primary);
    padding-top: 17px;
  }

  .order-step-header {
    gap: 10px;
  }

  .order-step-header h3 {
    font-size: 1rem;
  }

  .step-sub {
    font-size: 0.76rem;
  }

  .upload-zone,
  .upload-zone.has-parts {
    padding: 18px 12px;
  }

  .upload-tags {
    justify-content: center;
    gap: 6px;
  }

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

  .material-card {
    padding: 14px;
  }

  .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .color-card {
    min-height: 86px;
    padding: 12px 8px;
  }

  .part-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .part-info {
    min-width: 0;
  }

  .part-name,
  .part-meta {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .part-stats {
    grid-column: 2 / 3;
    align-items: flex-start;
    flex-direction: row;
    gap: 8px;
  }

  .part-remove,
  .part-retry {
    grid-column: 3 / 4;
    justify-self: end;
  }

  .part-retry {
    margin-top: 4px;
  }

  .parts-footer {
    align-items: stretch;
  }

  .parts-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .summary-card {
    border-radius: var(--radius-sm);
  }

  .summary-header,
  .summary-part-row {
    grid-template-columns: minmax(0, 1fr) 52px 64px;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .summary-part-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary-selection,
  .summary-totals,
  .summary-grand-total {
    padding-left: 12px;
    padding-right: 12px;
  }

  .summary-grand-total {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grand-total-price {
    font-size: 1.75rem;
  }

  .submit-btn {
    min-height: 52px;
  }
}

@media (max-width: 380px) {
  .order-container {
    padding: 0 8px;
  }

  .order-step,
  .order-step.active {
    padding-left: 12px;
    padding-right: 12px;
  }

  .summary-header,
  .summary-part-row {
    grid-template-columns: minmax(0, 1fr) 46px 58px;
    font-size: 0.74rem;
  }

  .color-card {
    font-size: 0.76rem;
  }
}
