:root {
  --bg-app: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #cbd5e1;
  --blue-accent: #2563eb;
  --blue-subtle: #eff6ff;
  --orange-accent: #ea580c;
  --green-accent: #16a34a;
  --red-accent: #dc2626;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Header */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  stroke: var(--blue-accent);
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--orange-accent);
  margin-left: 4px;
  font-size: 1.05rem;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px 60px;
}

.kyc-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

/* Station Panel (Left) */
.station-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.station-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.station-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.station-num {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-accent);
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.station-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.station-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-app);
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.upload-dropzone:hover {
  border-color: var(--blue-accent);
  background: var(--blue-subtle);
}

.file-input-hidden {
  display: none;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.dropzone-icon {
  stroke: var(--text-light);
  margin-bottom: 4px;
}

.dropzone-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-light);
}

.image-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.btn-clear-image {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.btn-clear-image:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* Camera Viewport */
.camera-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.camera-viewport {
  position: relative;
  width: 100%;
  height: 280px;
  background: #090d16;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#webcam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.oval-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 210px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oval-outline {
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50% / 45%;
  transition: border-color 0.25s ease;
}

.oval-guide.active .oval-outline {
  border-color: var(--green-accent);
  border-style: solid;
}

.scan-line {
  position: absolute;
  top: 10%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.8), transparent);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.8);
  animation: scanBounce 2.5s ease-in-out infinite alternate;
}

@keyframes scanBounce {
  0% { top: 15%; }
  100% { top: 85%; }
}

.camera-hud {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
}

.hud-badge {
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.selfie-captured-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 5;
}

.camera-controls {
  display: flex;
  gap: 10px;
}

.btn-primary, .btn-secondary, .btn-verify-action {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-main);
  flex: 1;
}

.btn-secondary:hover {
  background: var(--surface-alt);
}

.btn-primary {
  background: var(--text-main);
  color: #fff;
  flex: 1.4;
}

.btn-primary:hover:not(:disabled) {
  background: #1e293b;
}

.btn-primary:disabled, .btn-verify-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-verify-action {
  background: var(--blue-accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  width: 100%;
}

.btn-verify-action:hover:not(:disabled) {
  background: #1d4ed8;
}

.selfie-fallback-bar {
  text-align: center;
  margin-top: 4px;
}

.text-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.text-link:hover {
  color: var(--blue-accent);
}

/* Right Column: Ticket Pass Metaphor */
.ledger-panel {
  position: sticky;
  top: 88px;
}

.ticket-pass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.ticket-header {
  padding: 22px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ticket-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.ticket-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ticket-verdict-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.verdict-pending {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.verdict-pass {
  background: #f0fdf4;
  color: var(--green-accent);
  border: 1px solid #bbf7d0;
}

.verdict-fail {
  background: #fef2f2;
  color: var(--red-accent);
  border: 1px solid #fecaca;
}

/* Perforation */
.ticket-perforation {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.ticket-perforation .dash-line {
  width: 100%;
  height: 1px;
  border-top: 1px dashed var(--border);
}

.ticket-perforation .punch {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-app);
  border: 1px solid var(--border);
}

.ticket-perforation .punch.left {
  left: -8px;
  border-left-color: transparent;
}

.ticket-perforation .punch.right {
  right: -8px;
  border-right-color: transparent;
}

.ticket-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* KPI Figure */
.kpi-block {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
}

.kpi-number {
  font-size: 35px;
  font-weight: 600;
  color: var(--blue-accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Face Chips */
.face-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.face-chip-col {
  flex: 1;
  text-align: center;
}

.chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.chip-frame {
  width: 100%;
  height: 110px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip-empty {
  font-size: 0.78rem;
  color: var(--text-light);
}

.chip-versus {
  stroke: var(--text-light);
}

/* Ledger Audit Rows */
.ledger-rows {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

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

.row-value {
  font-weight: 600;
  color: var(--text-main);
}

.diagnostic-banner {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

/* Badge Optional */
.badge-optional {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CNIC Pass Ledger */
.cnic-pass {
  margin-top: 24px;
}

.cnic-id-highlight {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.cnic-tag {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.cnic-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.cnic-id-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.badge-province {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange-accent);
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.ledger-row.align-top {
  align-items: flex-start;
}

.text-right {
  text-align: right;
  max-width: 65%;
  line-height: 1.35;
}

/* Responsive */
@media (max-width: 900px) {
  .kyc-workspace {
    grid-template-columns: 1fr;
  }
  .ledger-panel {
    position: static;
  }
}

/* Mode Switcher Bar */
.mode-switcher-bar {
  display: flex;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  gap: 4px;
}

.mode-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: var(--surface);
  color: var(--blue-accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Step Ribbon */
.step-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ribbon-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.25s ease;
}

.ribbon-step.active {
  opacity: 1;
  color: var(--blue-accent);
  font-weight: 700;
}

.ribbon-step.completed {
  opacity: 1;
  color: var(--green-accent);
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.ribbon-step.active .step-badge {
  background: var(--blue-accent);
  color: #fff;
  border-color: var(--blue-accent);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
}

.ribbon-step.completed .step-badge {
  background: var(--green-accent);
  color: #fff;
  border-color: var(--green-accent);
}

.ribbon-label {
  font-size: 0.85rem;
}

.ribbon-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
}

/* Guided Viewport */
.live-guided-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.live-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  background: #020617;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shutter Flash Animation */
.shutter-flash-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.05s ease-out;
}

.shutter-flash-overlay.flash {
  opacity: 0.95;
  transition: opacity 0.3s ease-in;
}

/* Card Target Guide Overlay */
.card-target-guide {
  position: absolute;
  width: 82%;
  aspect-ratio: 1.586 / 1;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-target-guide.aligned {
  border-color: #10b981;
  border-style: solid;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.6);
}

.card-target-guide.wrong-side {
  border-color: #ef4444;
  border-style: solid;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 0 24px rgba(239, 68, 68, 0.5);
}

.corner-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #38bdf8;
  border-width: 4px;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.card-target-guide.aligned .corner-bracket {
  border-color: #10b981;
}

.card-target-guide.wrong-side .corner-bracket {
  border-color: #ef4444;
}

.corner-tl { top: -2px; left: -2px; border-style: solid none none solid; border-top-left-radius: 10px; }
.corner-tr { top: -2px; right: -2px; border-style: solid solid none none; border-top-right-radius: 10px; }
.corner-bl { bottom: -2px; left: -2px; border-style: none none solid solid; border-bottom-left-radius: 10px; }
.corner-br { bottom: -2px; right: -2px; border-style: none solid solid none; border-bottom-right-radius: 10px; }

.card-scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 8px #38bdf8;
  animation: laserScan 2.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 5%; opacity: 0.3; }
  50% { opacity: 0.9; }
  100% { top: 95%; opacity: 0.3; }
}

.card-hud-tags {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
}

.hud-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hud-chip.chip-card-side {
  background: rgba(37, 99, 235, 0.85);
  color: #fff;
}

/* Face Oval Guide */
.face-target-guide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.face-oval-ring {
  width: 220px;
  height: 300px;
  border-radius: 50% / 60%;
  border: 3px dashed rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.face-oval-ring.aligned {
  border-color: #10b981;
  border-style: solid;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55), 0 0 30px rgba(16, 185, 129, 0.5);
}

.face-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 10px #10b981;
  animation: faceScan 2s ease-in-out infinite alternate;
}

@keyframes faceScan {
  0% { top: 10%; opacity: 0.2; }
  50% { opacity: 0.9; }
  100% { top: 90%; opacity: 0.2; }
}

/* Face Challenge HUD */
.face-challenge-hud {
  position: absolute;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  z-index: 15;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: pulseChallenge 1.5s ease-in-out infinite;
}

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

.challenge-direction-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.challenge-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Steady Countdown Ring */
.steady-progress-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.15s linear;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.steady-timer-text {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Floating Live Guidance Pill */
.floating-guidance-pill {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  z-index: 15;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: border-color 0.25s ease;
}

.floating-guidance-pill.aligned {
  border-color: rgba(16, 185, 129, 0.7);
  background: rgba(6, 78, 59, 0.85);
}

.floating-guidance-pill.warning {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(127, 29, 29, 0.85);
}

.status-pulse-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDot 1.2s ease-in-out infinite;
}

.floating-guidance-pill.aligned .status-pulse-dot {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}

.floating-guidance-pill.warning .status-pulse-dot {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.guidance-text-wrap {
  flex: 1;
}

.guidance-en {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.guidance-ur {
  font-size: 0.82rem;
  color: #cbd5e1;
  direction: rtl;
  font-family: 'Noto Naskh Arabic', -apple-system, sans-serif;
  margin-top: 2px;
}

/* Guided Controls Bar */
.guided-controls-bar {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.guided-controls-bar button {
  flex: 1;
  min-width: 120px;
}

/* Captured Tray Strip */
.captured-tray {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.tray-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.tray-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: #f0fdf4;
}

.tray-thumb-frame {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tray-placeholder {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tray-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tray-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tray-title {
  font-size: 0.75rem;
  font-weight: 700;
}

.tray-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tray-card.completed .tray-badge {
  color: var(--green-accent);
  background: #dcfce7;
  border-color: #bbf7d0;
}

.btn-retake {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-retake:hover {
  background: #fff;
  color: var(--blue-accent);
  border-color: var(--blue-accent);
}
