.reader-section {
  padding-bottom: 60px;
}

.reader-tabs {
  display: inline-flex;
  background: var(--bg2);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-full);
  padding: 4px;
  margin: 28px 0 32px;
  gap: 4px;
}

.reader-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--tx2);
  cursor: pointer;
}

.reader-tab.active {
  background: var(--ac);
  color: #fff;
}

.reader-stage {
  max-width: 420px;
  margin: 0 auto;
}

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #0c1a2e;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#qr-video.active { display: block; }

.scan-box {
  position: absolute;
  top: 18%;
  left: 18%;
  width: 64%;
  height: 64%;
  border: 3px solid var(--ac);
  border-radius: 16px;
  display: none;
  box-shadow: 0 0 0 2000px rgba(0,0,0,0.35);
}

.scan-box.active { display: block; }

.camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 20px;
}

.camera-placeholder p { color: rgba(255,255,255,0.6); font-size: 13px; }

.upload-drop-zone {
  border: 2px dashed var(--ln);
  border-radius: var(--radius-xl);
  padding: 50px 24px;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--bg2);
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: var(--ac);
  background: var(--ac-lite);
}

.upload-drop-zone svg { color: var(--ac); }
.upload-drop-zone p { color: var(--tx); }

.upload-preview {
  max-width: 100%;
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--ln);
}

/* Result */
.reader-result {
  max-width: 480px;
  margin: 32px auto 0;
}

.result-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--success-lite);
  border: 1.5px solid rgba(22,163,74,0.25);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: left;
}

.result-icon {
  width: 36px;
  height: 36px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-content { flex: 1; min-width: 0; }

.result-type {
  font-size: 11px;
  font-weight: 800;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.result-value {
  font-size: 14px;
  color: var(--tx);
  font-weight: 600;
  word-break: break-all;
  white-space: pre-wrap;
}

.result-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
