/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --cream: #FDF6EC;
  --cream-dark: #F0E6D3;
  --cream-mid: #F8F0E3;
  --orange: #C2571A;
  --orange-light: #D4763A;
  --orange-dark: #9E4515;
  --orange-glow: rgba(194, 87, 26, 0.25);
  --text: #2D2A26;
  --text-light: #8A8480;
  --text-mid: #5C5753;
  --white: #FFFFFF;
  --green: #3A7D44;
  --red: #C0392B;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 4px 24px rgba(45, 42, 38, 0.06);
  --shadow-lg: 0 12px 48px rgba(45, 42, 38, 0.10);
  --shadow-orange: 0 8px 32px rgba(194, 87, 26, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Animated background canvas ───────────────────────────────────────────── */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout wrapper ───────────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 236, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(240, 230, 211, 0.6);
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.sign-out-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.sign-out-btn:hover {
  color: var(--text);
  border-color: var(--text-light);
}

/* Auth Screen */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.auth-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.auth-logo {
  height: 80px;
  margin-bottom: 16px;
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-form input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus {
  border-color: var(--orange);
}
.auth-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--orange);
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-btn:hover {
  background: var(--brown);
}
.auth-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 1.2em;
}
.auth-toggle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  text-decoration: underline;
}

.logo-img {
  height: 90px;
  width: auto;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 24px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(194, 87, 26, 0.08);
  border: 1px solid rgba(194, 87, 26, 0.15);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: italic;
  color: var(--orange);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 28px;
}

.runtime-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.nr-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(194, 87, 26, 0.16);
  cursor: pointer;
  user-select: none;
}

.nr-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nr-toggle-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d7c5ab;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.nr-toggle-ui::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.nr-toggle input:checked + .nr-toggle-ui {
  background: var(--orange);
}

.nr-toggle input:checked + .nr-toggle-ui::after {
  transform: translateX(20px);
}

.nr-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nr-toggle-title {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.nr-toggle-note {
  color: var(--text-light);
  font-size: 0.76rem;
}

/* ── Mic Button ───────────────────────────────────────────────────────────── */
.mic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}

/* Sound wave rings */
.mic-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 12px));
  width: 140px;
  height: 140px;
  pointer-events: none;
}

.mic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  transform: scale(1);
}

.recording .mic-ring {
  animation: ring-expand 2s ease-out infinite;
}

.recording .mic-ring:nth-child(2) { animation-delay: 0.5s; }
.recording .mic-ring:nth-child(3) { animation-delay: 1s; }

@keyframes ring-expand {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

.mic-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 50%, var(--orange-dark) 100%);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: var(--shadow-orange), inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
}

.mic-btn svg {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mic-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 40px rgba(194, 87, 26, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.mic-btn:active {
  transform: scale(0.95);
}

/* Recording state */
.mic-btn.recording {
  background: linear-gradient(135deg, #e74c3c 0%, var(--red) 100%);
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: mic-pulse 1.8s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.mic-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
  min-height: 24px;
  transition: color 0.3s ease;
}

.mic-label.active {
  color: var(--red);
  font-weight: 500;
}

/* ── Visualizer bars (shown during recording) ─────────────────────────────── */
.visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.visualizer.active {
  opacity: 1;
}

.visualizer-bar {
  width: 3px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: none;
}

.visualizer.active .visualizer-bar {
  animation: bar-bounce 0.8s ease-in-out infinite;
}

.visualizer.active .visualizer-bar:nth-child(1) { animation-delay: 0.0s; }
.visualizer.active .visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer.active .visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer.active .visualizer-bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer.active .visualizer-bar:nth-child(5) { animation-delay: 0.4s; }
.visualizer.active .visualizer-bar:nth-child(6) { animation-delay: 0.3s; }
.visualizer.active .visualizer-bar:nth-child(7) { animation-delay: 0.2s; }
.visualizer.active .visualizer-bar:nth-child(8) { animation-delay: 0.1s; }
.visualizer.active .visualizer-bar:nth-child(9) { animation-delay: 0.0s; }

@keyframes bar-bounce {
  0%, 100% { height: 6px; opacity: 0.4; }
  50% { height: 28px; opacity: 1; }
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--cream-dark);
}

.divider-text {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ── Upload Zone ──────────────────────────────────────────────────────────── */
.upload-zone {
  max-width: 440px;
  margin: 0 auto 48px;
  padding: 36px 32px;
  border: 2px dashed rgba(194, 87, 26, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
  display: none;
}

.upload-zone.visible {
  display: block;
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.upload-zone.dragover {
  border-color: var(--orange);
  background: rgba(194, 87, 26, 0.04);
  transform: scale(1.02);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--orange);
  opacity: 0.6;
}

.upload-zone p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.upload-zone p strong {
  color: var(--text-mid);
}

.upload-tip {
  margin-top: -6px;
  margin-bottom: 16px;
  color: var(--text-mid);
  font-size: 0.8rem;
  line-height: 1.45;
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--cream-dark);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 2px 12px rgba(194, 87, 26, 0.1);
}

.upload-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Processing ───────────────────────────────────────────────────────────── */
.processing {
  display: none;
  text-align: center;
  padding: 56px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.processing.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.processing-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  position: relative;
}

.processing-spinner::before,
.processing-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.processing-spinner::before {
  border-top-color: var(--orange);
  animation: spin 1s linear infinite;
}

.processing-spinner::after {
  border-bottom-color: var(--orange-light);
  animation: spin 1.5s linear infinite reverse;
  inset: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.processing p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.processing-steps {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.processing-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.processing-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-dark);
  transition: background 0.5s ease;
}

.processing-step.active .step-dot {
  background: var(--orange);
  animation: step-pulse 1s ease-in-out infinite;
}

.processing-step.done .step-dot {
  background: var(--green);
}

@keyframes step-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

/* ── Results ──────────────────────────────────────────────────────────────── */
.results {
  display: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.results.visible {
  display: block;
}

/* ── Success checkmark ────────────────────────────────────────────────────── */
.success-check {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.25);
}

.check-circle svg {
  width: 28px;
  height: 28px;
  color: white;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-check 0.5s 0.3s ease forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.success-check p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Card base ────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 20px;
  border: 1px solid rgba(240, 230, 211, 0.5);
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }

/* ── Transcript Card ──────────────────────────────────────────────────────── */
.card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 600;
}

.card-label svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.transcript-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.confidence-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.confidence-badge.high {
  background: #e8f5e9;
  color: var(--green);
}
.confidence-badge.high::before { background: var(--green); }

.confidence-badge.medium {
  background: #fff3e0;
  color: #e65100;
}
.confidence-badge.medium::before { background: #e65100; }

.confidence-badge.low {
  background: #ffebee;
  color: var(--red);
}
.confidence-badge.low::before { background: var(--red); }

.timing-summary {
  display: none;
  margin-top: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.timing-summary.visible {
  display: flex;
}

.timing-pill {
  font-size: 0.73rem;
  color: var(--text-mid);
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--cream-mid);
}

/* ── Order Card ───────────────────────────────────────────────────────────── */
.order-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.order-header {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.order-count {
  font-size: 0.78rem;
  color: var(--text-light);
  background: var(--cream);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 500;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream);
}

.order-item:last-child {
  border-bottom: none;
}

.item-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.item-qty {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  flex-shrink: 0;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-name {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.item-detail {
  font-size: 0.8rem;
  color: var(--text-light);
}

.item-breakdown {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.74rem;
}

.item-editors {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.item-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-edit-field span {
  color: var(--text-light);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.item-edit-select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 0.78rem;
  padding: 6px 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item-edit-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(194, 87, 26, 0.12);
}

.item-edit-select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.item-edit-select.required {
  border-color: rgba(194, 87, 26, 0.45);
  background: #fff8f2;
}

.item-price {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  padding-top: 3px;
}

/* Special requests */
.order-special {
  display: none;
  padding: 12px 16px;
  margin-top: 4px;
  background: #fff8e1;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: #f57f17;
  border-left: 3px solid #ffc107;
}

.order-special.visible {
  display: block;
}

.order-confirmations {
  display: none;
  margin-top: 10px;
  background: #fff4ea;
  border: 1px solid rgba(194, 87, 26, 0.2);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
}

.order-confirmations.visible {
  display: block;
}

.confirm-title {
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.confirm-item {
  color: var(--text-mid);
  font-size: 0.84rem;
  line-height: 1.4;
}

.confirm-item + .confirm-item {
  margin-top: 5px;
}

.confirm-note {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 0.76rem;
}

.order-review-notice {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  border: 1px solid transparent;
}

.order-review-notice.visible {
  display: block;
}

.order-review-notice.success {
  background: #edf7ed;
  color: #256f2a;
  border-color: #c8e6c9;
}

.order-review-notice.error {
  background: #fff1f0;
  color: #a4332a;
  border-color: #ffccc7;
}

/* Total */
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 2px solid var(--text);
}

.order-total-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
}

.order-total-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
}

/* ── New Order Button ─────────────────────────────────────────────────────── */
.new-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.new-order-btn:hover {
  background: #444;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.new-order-btn:active {
  transform: scale(0.98) translateY(0);
}

.new-order-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Error Banner ─────────────────────────────────────────────────────────── */
.error-banner {
  display: none;
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid #ffcdd2;
  border-left: 4px solid var(--red);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

.error-banner.visible {
  display: block;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-light);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.footer-links span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 48px 20px 32px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .mic-btn { width: 84px; height: 84px; }
  .mic-btn svg { width: 30px; height: 30px; }
  .mic-rings { width: 100px; height: 100px; }
  .card { padding: 22px 20px; }
  .results { padding: 0 16px 48px; }
  .processing-steps { gap: 20px; }
  .order-header-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .item-editors { grid-template-columns: 1fr; }
}
