/* =========================================================
   Mino – One-Screen Solution Design
   ========================================================= */

:root {
  --bg: #f2f6fd;
  --surface: #ffffff;
  --line: #dce8f8;
  --text: #0d1b36;
  --muted: #5e708a;
  --primary: #0f7bff;
  --primary-dark: #005fd0;
  --shadow-card: 0 12px 36px rgba(14, 44, 100, 0.10);
  --shadow-btn: 0 10px 28px rgba(11, 115, 255, 0.32);
  --radius-card: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

/* ── Page wrapper ──────────────────────────────────────── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Site header ───────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
}

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

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Hero copy ─────────────────────────────────────────── */
.hero-copy {
  text-align: left;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.br-desk { display: none; }

.lead {
  margin: 0 0 14px;
  font-size: clamp(14px, 2.2vw, 17px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #d6e6ff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #1e4ea6;
}

.badge-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── Dispatcher card ───────────────────────────────────── */
.dispatcher-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Dispatcher bubble */
.dispatcher-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dispatcher-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.dispatcher-avatar svg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.dispatcher-message {
  background: linear-gradient(135deg, #f3f8ff 0%, #eaf3ff 100%);
  border: 1px solid #d4e4ff;
  border-radius: 4px 16px 16px 16px;
  padding: 12px 14px;
  flex: 1;
}

.dispatcher-name {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  color: #1e55b0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.dispatcher-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}

/* Input area */
.input-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.problem-textarea {
  width: 100%;
  border: 1.5px solid #d5e2f6;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fafcff;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.problem-textarea:focus {
  outline: none;
  border-color: #80b0ff;
  box-shadow: 0 0 0 3px rgba(15, 123, 255, 0.13);
  background: #fff;
}

/* Scan status */
.scan-status {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #1e55b0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.scan-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Photo zone */
.photo-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px dashed #b8d0ff;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  background: #f6f9ff;
  transition: border-color 0.2s, background 0.2s;
}

.photo-zone:hover {
  border-color: var(--primary);
  background: #eef5ff;
}

.photo-zone.has-photo {
  border-style: solid;
  border-color: #4caf50;
  background: #f0fff4;
}

.photo-zone-icon {
  width: 44px;
  height: 44px;
  background: #e8f0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.photo-zone.has-photo .photo-zone-icon {
  background: #d4f8de;
  color: #0f6740;
}

.photo-zone-icon svg {
  width: 24px;
  height: 24px;
}

.photo-zone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-zone-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.photo-zone-text span {
  font-size: 12px;
  color: var(--muted);
}

#photoFile { display: none; }

/* Chat log (appears after interaction) */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-log:empty { display: none; }

.bubble {
  max-width: 86%;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.bubble.assistant {
  align-self: flex-start;
  background: #edf4ff;
  border: 1px solid #cfe1ff;
}

.bubble.user {
  align-self: flex-end;
  background: #e9fff2;
  border: 1px solid #c6f5d8;
}

/* CTA button */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #0f7bff 0%, #3d9bff 100%);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-btn:hover {
  background: linear-gradient(90deg, #0063d8 0%, #1f87ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(11, 115, 255, 0.40);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Result section ────────────────────────────────────── */
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.result-head h2 {
  margin: 0;
  font-size: 20px;
}

.result-sub {
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 10px;
}

.pro-card {
  border: 1px solid #d8e6fa;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  box-shadow: 0 6px 18px rgba(18, 49, 104, 0.07);
}

.pro-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
}

.meta {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #d7f7e5;
  color: #0f6740;
}

/* ── Utilities ─────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Modal ─────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 48, 0.52);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
  padding: 0;
}

.modal.hidden { display: none; }

.modal-panel {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 -8px 40px rgba(12, 38, 84, 0.22);
}

.modal-panel h2 {
  margin: 0;
  font-size: 19px;
}

.modal-sub {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

label {
  display: block;
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  border: 1.5px solid #d5e2f6;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: #80b0ff;
  box-shadow: 0 0 0 3px rgba(15, 123, 255, 0.12);
}

.ghost-btn {
  background: #f0f5ff;
  color: #1f4b92;
  border: 1px solid #d7e6ff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.ghost-btn:hover { background: #e4edff; }

.grid-2,
.otp-row,
.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.otp-state {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── Desktop ───────────────────────────────────────────── */
@media (min-width: 640px) {
  .page { padding: 32px 24px 60px; }
  .br-desk { display: block; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .otp-row { grid-template-columns: auto 1fr auto; }
  .modal { align-items: center; padding: 16px; }
  .modal-panel { border-radius: 20px; }
  .modal-actions { grid-template-columns: auto 1fr; }
}

/* ════════════════════════════════════════════════════════
   FULLSCREEN PROFILE OVERLAY
   ════════════════════════════════════════════════════════ */

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: rgba(8, 22, 48, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayFadeIn 0.35s ease;
}

.profile-overlay.hidden { display: none; }

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 60px;
  position: relative;
  z-index: 1;
}

/* Header */
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  color: #fff;
}

.overlay-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8d4ff;
}

.overlay-title {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.overlay-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}

.overlay-close:hover {
  background: rgba(255,255,255,0.26);
  transform: rotate(90deg);
}

.overlay-close svg { width: 22px; height: 22px; }

/* Grid */
.overlay-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .overlay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}

/* Profile card */
.profile-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 22, 60, 0.28);
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  animation: cardIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.profile-card:nth-child(1) { animation-delay: 0.05s; }
.profile-card:nth-child(2) { animation-delay: 0.18s; }
.profile-card:nth-child(3) { animation-delay: 0.31s; }

@keyframes cardIn {
  from { transform: translateY(28px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.profile-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 32px 70px rgba(8, 22, 60, 0.42);
}

.profile-cover {
  position: relative;
  height: 150px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,22,48,0.55) 100%);
}

.profile-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  color: #0d1b36;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  letter-spacing: 0.04em;
}

.profile-rank.gold { background: linear-gradient(90deg, #ffd76b, #ffae29); color: #4a2d00; }

.profile-avatar {
  position: absolute;
  bottom: -28px;
  left: 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}

.profile-body {
  padding: 38px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-trade {
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.profile-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
}

.profile-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.profile-stat-label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.profile-chip {
  background: #eaf2ff;
  color: #1e55b0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.profile-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.profile-thumb {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.profile-card:hover .profile-thumb { transform: scale(1.08); }

.profile-cta {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), #3d9bff);
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s;
}

.profile-cta:hover { filter: brightness(1.08); }

/* ── DETAIL VIEW ───────────────────────────────────────── */
.overlay-detail {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(8, 22, 60, 0.38);
  animation: detailZoom 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overlay-detail.hidden { display: none; }

@keyframes detailZoom {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.detail-cover {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.detail-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(8,22,48,0.7) 100%);
}

.detail-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  color: #0d1b36;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.detail-back:hover { background: #fff; }

.detail-back svg { width: 14px; height: 14px; }

.detail-header {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #0f7bff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.detail-headline h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.detail-headline p {
  margin: 2px 0 0;
  font-size: 13px;
  opacity: 0.92;
}

.detail-body {
  padding: 22px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.detail-stat-card {
  background: #f4f8ff;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.detail-stat-card .v {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.detail-stat-card .l {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-section-title {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-bio {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-chip {
  background: #eaf2ff;
  color: #1e55b0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.detail-references {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .detail-references { grid-template-columns: repeat(3, 1fr); }
  .detail-cover { height: 260px; }
}

.detail-reference {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-reference:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(8, 22, 60, 0.22);
  z-index: 1;
}

.detail-cta-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: 22px;
}

@media (min-width: 520px) {
  .detail-cta-row { grid-template-columns: auto 1fr; }
}

.detail-cta-secondary {
  background: #f0f5ff;
  color: #1f4b92;
  border: 1px solid #d7e6ff;
  border-radius: 12px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.detail-cta-secondary:hover { background: #e4edff; }

.detail-cta-primary {
  background: linear-gradient(90deg, var(--primary), #3d9bff);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: filter 0.15s;
}

.detail-cta-primary:hover { filter: brightness(1.08); }

/* ── Selection / queue UI ──────────────────────────── */
.profile-pick-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15,123,255,0.45);
}
.profile-card.picked { outline: 3px solid var(--primary); outline-offset: -3px; }
.profile-cta-secondary {
  width: 100%;
  background: #f0f5ff;
  color: #1f4b92;
  border: 1px solid #d7e6ff;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
}
.profile-cta { width: 100%; }
.profile-cta:disabled { opacity: 0.5; cursor: not-allowed; }

.overlay-actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #e6ecf5;
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 1100;
}
.overlay-actionbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.overlay-actionbar-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}
.overlay-actionbar-info strong { font-size: 15px; }
.overlay-actionbar-info .queue-step {
  display: inline-block;
  background: #eaf2ff;
  color: #1f4b92;
  border-radius: 8px;
  padding: 3px 8px;
  font-weight: 700;
  margin-right: 4px;
  font-size: 13px;
}

/* Waiting screen */
.overlay-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 120px;
}
.waiting-card {
  max-width: 520px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.waiting-card h2 { margin: 12px 0 8px; font-size: 22px; }
.waiting-sub { color: #5b6b80; margin: 0 0 16px; }
.waiting-countdown { font-size: 18px; font-weight: 700; color: var(--primary); margin: 8px 0 18px; }
.waiting-spinner {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 5px solid #e6ecf5;
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
  margin: 0 auto 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-icon {
  width: 64px; height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  background: #e6ecf5;
}
.waiting-card.success .waiting-icon { background: #d1fae5; color: #047857; }
.waiting-card.sorry .waiting-icon { background: #fef3c7; }
.waiting-phone { font-size: 20px; font-weight: 700; margin: 12px 0 20px; }
.waiting-phone a { color: var(--primary); text-decoration: none; }

.queue-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.queue-pill {
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  border: 1.5px solid transparent;
}
.queue-pill.pending { background: #f0f3f8; color: #6b7a90; }
.queue-pill.active { background: #eaf2ff; color: #1f4b92; border-color: var(--primary); }
.queue-pill.done { background: #fef2f2; color: #991b1b; text-decoration: line-through; }

/* Active request banner */
.active-banner {
  background: linear-gradient(90deg, #eaf2ff, #f0f7ff);
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  margin: 12px 0 18px;
  padding: 10px 14px;
}
.active-banner-inner {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.active-banner-icon {
  font-size: 22px; line-height: 1; color: #0f7bff;
}
.active-banner-text { flex: 1; display: flex; flex-direction: column; min-width: 180px; }
.active-banner-text strong { font-size: 15px; }
.active-banner-close {
  background: transparent; border: 0; color: #6b7a90;
  font-size: 22px; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.active-banner-close:hover { color: #1f2b3d; }

/* ════════════════════════════════════════════════════════════
   HERO LANDING – Blauarbeit-style
   ════════════════════════════════════════════════════════════ */
body.hero-body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: #0c1623;
  color: #1a2538;
  overflow-x: hidden;
}

/* TOP NAV */
.topnav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  gap: 16px;
}
.topnav-left { display: flex; align-items: center; gap: 22px; }
.topnav-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.topnav-brand-dot { color: #0f7bff; font-size: 32px; line-height: 0.5; margin-left: 2px; }
.topnav-tuv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.tuv-badge {
  background: #fff;
  color: #1a2538;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.tuv-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 10px; letter-spacing: 0.06em; }
.tuv-text strong { font-weight: 800; }
.topnav-right { display: flex; align-items: center; gap: 14px; }
.topnav-link {
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.topnav-link:hover { background: rgba(255,255,255,0.15); }
.topnav-cta {
  background: #0f3a2e;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  transition: background 0.15s, transform 0.1s;
}
.topnav-cta:hover { background: #155f49; }

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 24px 140px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=2400&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,22,35,0.55) 0%, rgba(12,22,35,0.35) 40%, rgba(12,22,35,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-headline {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  text-align: center;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

/* COMPACT INPUT CARD */
.hero-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  text-align: center;
}
.hero-card-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #0f3a2e;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin: -56px auto 14px;
  box-shadow: 0 4px 18px rgba(15,58,46,0.3);
  border: 4px solid #fff;
}
.hero-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a2538;
  margin: 0 0 6px;
}
.hero-card-sub {
  color: #5b6b80;
  font-size: 15px;
  margin: 0 0 4px;
}
.hero-card-meta {
  color: #9aa6b8;
  font-size: 13px;
  margin: 0 0 20px;
}
.hero-input-row {
  display: flex;
  gap: 8px;
  border: 1.5px solid #e0e6f0;
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-input-row:focus-within {
  border-color: #0f7bff;
  box-shadow: 0 0 0 4px rgba(15,123,255,0.12);
}
.hero-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 15px;
  background: transparent;
  color: #1a2538;
}
.hero-input::placeholder { color: #aab4c4; }
.hero-send {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #d4d9e2;
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.hero-send svg { width: 20px; height: 20px; }
.hero-input-row:focus-within .hero-send,
.hero-send.active { background: #0f7bff; }
.hero-send:hover { filter: brightness(1.05); }
.hero-scan-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #0f7bff;
  text-align: left;
}
.hero-photo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #5b6b80;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}
.hero-photo-link:hover { color: #0f7bff; }
.hero-photo-link svg { width: 18px; height: 18px; }

/* STATS FOOTER */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 18px 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-stats .stat strong {
  font-size: 22px;
  font-weight: 800;
  color: #1a2538;
  line-height: 1;
}
.hero-stats .stat span {
  font-size: 12px;
  color: #6b7a90;
  margin-top: 4px;
}

/* Active banner overlay positioning */
.hero-body .active-banner {
  position: fixed;
  top: 90px; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: 560px;
  width: calc(100% - 40px);
  margin: 0;
}

/* Mobile */
@media (max-width: 640px) {
  .topnav { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .topnav-tuv { display: none; }
  .topnav-cta { padding: 10px 16px; font-size: 14px; }
  .hero-section { padding: 100px 16px 160px; }
  .hero-card { padding: 30px 22px 22px; }
  .hero-stats { gap: 24px; padding: 14px 12px; }
  .hero-stats .stat strong { font-size: 18px; }
  .hero-stats .stat span { font-size: 11px; }
  .hero-headline { font-size: 34px; }
}

/* ── Trade picker (Disambiguation) ─────────────────── */
.trade-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.trade-pick-btn {
  position: relative;
  background: #fff;
  border: 1.5px solid #e0e6f0;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1a2538;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.trade-pick-btn:hover { border-color: #0f7bff; background: #f6faff; }
.trade-pick-btn:active { transform: scale(0.98); }
.trade-pick-btn.suggested { border-color: #0f7bff; background: #eaf3ff; }
.trade-pick-label { display: block; }
.trade-pick-tag {
  position: absolute;
  top: 6px; right: 8px;
  background: #0f7bff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Site Footer ── */
.site-footer {
  background: rgba(12,22,35,0.95);
  color: #aab4c4;
  padding: 22px 16px;
  font-size: 13px;
  position: relative;
  z-index: 20;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.site-footer a { color: #aab4c4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.hero-body .site-footer { margin-top: 0; }

/* ════════════════════════════════════════════════════════════
   MOBILE LIGHT THEME – freundlicher, heller Look auf dem Handy
   ════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  body.hero-body {
    background: #f5f8ff;
  }

  /* Helleres Foto-Filter + sehr heller Verlauf statt dunkler Overlay */
  .hero-bg {
    filter: brightness(1.05) saturate(0.95);
  }
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(245,248,255,0.35) 0%,
      rgba(245,248,255,0.65) 45%,
      rgba(245,248,255,0.97) 100%);
  }

  /* Headline jetzt dunkel auf hell */
  .hero-headline {
    color: #1a2538;
    text-shadow: none;
    font-weight: 800;
  }

  /* Topnav-Texte dunkel, damit sie auf hellem BG lesbar sind */
  .topnav { padding: 16px 18px; }
  .topnav-brand { color: #1a2538; }
  .topnav-brand-dot { color: #0f7bff; }
  .topnav-link { color: #1a2538; }
  .topnav-link:hover { background: rgba(15,123,255,0.1); }
  .topnav-cta {
    background: #0f7bff;
    color: #fff;
  }
  .topnav-cta:hover { background: #0063d8; }
  .topnav-tuv { display: none; }

  /* Card weicher, weniger Schatten */
  .hero-card {
    box-shadow: 0 12px 32px rgba(15,33,77,0.10);
    border: 1px solid #e6ecf5;
  }
  .hero-card-logo {
    background: #0f7bff;
    box-shadow: 0 4px 14px rgba(15,123,255,0.35);
  }

  /* Stats-Leiste vollflächig opak (sieht sonst auf hellem BG verwaschen aus) */
  .hero-stats {
    background: #fff;
    border-top: 1px solid #e6ecf5;
  }

  /* Footer hell statt schwarz */
  .site-footer {
    background: #fff;
    color: #5b6b80;
    border-top: 1px solid #e6ecf5;
  }
  .site-footer a { color: #5b6b80; }
  .site-footer a:hover { color: #0f7bff; }
}
