/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --ocean: #07343d;
  --lagoon: #0f6d73;
  --foam: #d7f3ef;
  --coral: #e07a5f;
  --coral-deep: #c45c42;
  --sand: #f4e3c1;
  --cream: #fff8ee;
  --ink: #16323a;
  --gold: #e2b14a;
  --shadow: 0 18px 50px rgba(7, 52, 61, 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe7c2 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #b8ece6 0%, transparent 50%),
    linear-gradient(180deg, #fff6ea 0%, #e7f6f3 100%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.shell {
  width: min(720px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.hero-card, .panel, .success-card, .host-grid > *, .template-print {
  background: rgba(255, 248, 238, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.brand h1, .display {
  font-family: "Nunito", "Fredoka", sans-serif;
  margin: 0;
  letter-spacing: 0;
  word-spacing: 0.04em;
}
.brand h1 { font-weight: 800; }
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
  color: var(--lagoon);
}
.muted { color: #4d6b71; }

.hero-card, .panel { padding: 22px; }
.hero-card h1 { font-size: 34px; line-height: 1.05; }
.hero-card p { margin: 10px 0 0; font-size: 17px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin: 20px 0 8px;
}
.step {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f0e2c8;
}
.step b { display: block; font-weight: 800; }

.primary, .ghost, .danger {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
}
.primary {
  background: linear-gradient(180deg, #f08b70, var(--coral-deep));
  color: white;
  box-shadow: 0 10px 24px rgba(196, 92, 66, 0.28);
}
.ghost {
  background: white;
  color: var(--ocean);
  border: 1px solid #ead9b6;
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-row > * { flex: 1 1; }

.camera-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #041c22;
  min-height: 320px;
}
.camera-wrap video, .camera-wrap img, .review-photo {
  width: 100%;
  display: block;
  max-height: 62vh;
  object-fit: cover;
}
.frame-guide {
  position: absolute;
  inset: 18px;
  border: 3px dashed rgba(255, 248, 238, 0.85);
  border-radius: 18px;
  pointer-events: none;
}
.frame-guide span {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: white;
  background: rgba(7, 52, 61, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.field { display: grid; grid-gap: 8px; gap: 8px; margin-top: 14px; }
.field input {
  width: 100%;
  border: 1px solid #ead9b6;
  border-radius: 16px;
  padding: 14px 16px;
  background: white;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin-top: 12px;
}
.template-chip {
  border: 2px solid transparent;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.template-chip.selected { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.2); }
.template-chip img { width: 100%; height: 92px; object-fit: contain; background: white; }
.template-chip div { padding: 8px 10px 10px; }
.template-chip small { color: #5b7478; }

.progress {
  height: 8px;
  background: #eadfca;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 16px;
}
.progress > span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--lagoon), var(--gold), var(--coral));
  animation: slide 1.2s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(220%); }
}

.success-card { padding: 28px 22px; text-align: center; }
.success-card h2 { font-family: "Fredoka", sans-serif; font-size: 32px; margin: 8px 0; }
.orb {
  width: 84px;
  height: 84px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #f4c56d 40%, #e07a5f);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% { transform: scale(1.08); }
}

.wall-root {
  position: fixed;
  inset: 0;
  background: #041c22;
  overflow: hidden;
}
.wall-root canvas { width: 100%; height: 100%; display: block; }
.wall-chrome {
  position: absolute;
  left: 24px;
  top: 22px;
  color: white;
  z-index: 2;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.wall-chrome h1,
.wall-chrome p {
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.02em;
  word-spacing: 0.28em;
}
.wall-chrome h1 { margin: 0; font-size: 42px; font-weight: 800; }
.live-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.14);
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7dffb1;
  box-shadow: 0 0 12px #7dffb1;
}

.templates-page h1, .host-page h1 { font-family: "Fredoka", sans-serif; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}
.gallery article {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 180px; object-fit: contain; background: white; }
.gallery div { padding: 12px 14px 16px; }
.print-actions { display: flex; gap: 10px; margin: 18px 0; }

.host-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-gap: 18px;
  gap: 18px;
}
.qr-card { text-align: center; padding: 22px; }
.qr-card img { width: min(100%, 280px); border-radius: 18px; background: var(--cream); }
.recent-list { display: grid; grid-gap: 10px; gap: 10px; }
.recent-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  background: white;
  padding: 10px;
  border-radius: 18px;
}
.recent-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; }
.status { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.status.ready { color: #12825a; }
.status.processing, .status.classified { color: #b7791f; }
.status.failed { color: #b42318; }

.detect-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
  background: white;
  border: 2px solid #ead9b6;
  border-radius: 22px;
  padding: 12px;
  margin: 16px 0;
}
.detect-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
}
.detect-card b { font-size: 22px; }

.nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-links a {
  background: white;
  border: 1px solid #ead9b6;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 800px) {
  .host-grid, .steps { grid-template-columns: 1fr; }
  .wall-chrome h1 { font-size: 28px; }
}

@media print {
  .print-actions, .brand, .nav-links { display: none !important; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery article { page-break-inside: avoid; break-inside: avoid; box-shadow: none; }
  body { background: white; }
}

