/* DentBid base styles — Tailwind handles layout; this covers app-specific bits. */
:root {
  --navy: #1a2b4a;
  --red: #e63946;
  --bg: #f6f8fb;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: #1c1c1c; font-family: -apple-system, system-ui, "Segoe UI", sans-serif; margin: 0; }
.app { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.brand-dent { color: var(--navy); }
.brand-bid { color: var(--red); }
.vendor-tag { font-size: 11px; background: var(--navy); color: #fff; border-radius: 4px; padding: 2px 6px; vertical-align: middle; letter-spacing: 2px; }

.screen { display: none; }
.screen.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

h1 { font-size: 26px; margin: 18px 0 8px; color: var(--navy); }
h2 { font-size: 18px; color: var(--navy); }
.muted { color: #667; font-size: 14px; }
.tiny { font-size: 12px; }

input[type="email"], input[type="text"], input[type="tel"], input[type="number"], textarea {
  width: 100%; padding: 12px; margin: 6px 0; border: 1px solid #ccd; border-radius: 10px; font-size: 16px; background: #fff;
}
textarea { resize: vertical; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.btn {
  display: block; width: 100%; padding: 14px; margin: 12px 0;
  background: var(--red); color: #fff; border: none; border-radius: 12px;
  font-size: 17px; font-weight: 700; cursor: pointer;
}
.btn:disabled { background: #bbb; cursor: not-allowed; }
.btn.small { width: auto; display: inline-block; padding: 8px 16px; font-size: 14px; margin: 6px 0; }
.linkbtn { background: none; border: none; color: var(--navy); font-size: 14px; cursor: pointer; padding: 8px 0; text-decoration: underline; }

.bigbtn {
  display: block; width: 100%; text-align: left; padding: 18px; margin: 10px 0;
  background: #fff; border: 2px solid #dde; border-radius: 14px; cursor: pointer;
}
.bigbtn:active { border-color: var(--red); }
.bigbtn-title { display: block; font-size: 18px; font-weight: 700; color: var(--navy); }
.bigbtn-sub { display: block; font-size: 13px; color: #667; margin-top: 4px; }

.status { padding: 12px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.status.ok { background: #e6f4ea; color: #1a7f37; }
.status.error { background: #fdecea; color: #b3261e; }

.slot { background: #fff; border: 2px dashed #ccd; border-radius: 12px; padding: 14px; margin: 10px 0; cursor: pointer; }
.slot-label { font-weight: 700; color: var(--navy); }
.slot-hint { font-size: 13px; color: #667; }
.slot-empty { padding: 26px; text-align: center; color: #99a; }
.slot-preview { width: 100%; border-radius: 8px; margin-top: 8px; }

.card { background: #fff; border: 1px solid #e2e6ee; border-radius: 14px; padding: 14px; margin: 12px 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill { font-size: 11px; background: #eef; color: var(--navy); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.pill.win { background: #e6f4ea; color: #1a7f37; }
.pill.lose { background: #f1f1f1; color: #888; }

.bid { border-top: 1px solid #eee; padding: 10px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid #dde; }

.bidform { background: #f6f8fb; border-radius: 10px; padding: 10px; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; }
.check input { width: auto; }

.contact { background: #eef4ff; border: 1px solid #cdd9f5; border-radius: 10px; padding: 12px; margin-top: 10px; font-size: 15px; }

.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tab { flex: 1; padding: 12px; border: 1px solid #dde; background: #fff; border-radius: 10px; font-weight: 700; color: var(--navy); cursor: pointer; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabpane { display: none; }
.tabpane.active { display: block; }

.previewbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: #fff; font-size: 13px; text-align: center;
  padding: 8px; border-radius: 0 0 10px 10px; margin: 0 -16px 10px;
}
.samplephoto {
  width: 76px; height: 76px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #2b3a55, #4a5a7a);
  color: #cdd6ea; font-size: 9px; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 4px;
}

/* ---------- DentCam ---------- */
.camview { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 4/3; object-fit: cover; }
.camcontrols { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.btn.recording { background: #b3261e; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.btn.secondary { background: var(--navy); }
.chip { background: #eef4ff; border: 1px solid #cdd9f5; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.videowrap { position: relative; }
.videowrap .camview, .videowrap .walkvideo { display: block; }
#dentcam-marklayer { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.dentdot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: rgba(230,57,70,.85);
  border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(230,57,70,.35);
  animation: dotpulse 1.6s infinite; pointer-events: none;
}
@keyframes dotpulse { 50% { box-shadow: 0 0 0 7px rgba(230,57,70,.15); } }
.walkvideo { width: 100%; border-radius: 8px; background: #000; }
