
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');


:root {
  --ink: #252d3b;
  --muted: #778397;
  --purple: #4779d8;
  --purple-dark: #315eb5;
  --lavender: #edf4ff;
  --line: #e3eaf4;
  --surface: #ffffff;
  --background: #f8faff;
  --green: #21845a;
  --red: #c94c5b;
  --shadow: 0 12px 35px rgba(48, 70, 110, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--background);
  color: var(--ink);
  line-height: 1.6;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

.navbar {
  min-height: 82px;
  padding: 16px 6%;
  background: rgba(255,255,255,.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.25; }
.brand strong { color: var(--purple); }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.brand-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--lavender);
  color: var(--purple);
  font-size: 34px;
  border-radius: 14px;
}

.navbar nav, .nav-actions { display: flex; align-items: center; gap: 22px; }
.navbar nav a { color: #656579; font-size: 13px; font-weight: 600; }
.navbar nav a:hover { color: var(--purple); }
.nav-actions { gap: 10px; }
#userEmail { font-size: 12px; color: var(--muted); max-width: 160px; overflow-wrap: anywhere; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.button-primary { color: white; background: var(--purple); }
.button-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.button-light { background: white; border-color: var(--line); color: var(--ink); }
.button-light:hover, .button-outline:hover { background: var(--lavender); }
.button-outline { background: transparent; border-color: #d9d3f5; color: var(--purple-dark); }
.full-width { width: 100%; }

.hero {
  min-height: 440px;
  padding: 65px 10%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 30px;
  background: linear-gradient(115deg, #f7f5ff 0%, #fbfaff 55%, #f0edff 100%);
  overflow: hidden;
}
.hero-content { max-width: 600px; }
.eyebrow { color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; line-height: 1.2; }
.hero h1 { margin: 18px 0; font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -2px; }
.hero h1 span { color: var(--purple); }
.hero-content > p { max-width: 490px; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.hero-note { margin-top: 23px; font-size: 11px !important; }

.hero-art { position: relative; height: 300px; display: grid; place-items: center; }
.art-circle { position: absolute; border-radius: 50%; }
.circle-one { width: 270px; height: 270px; background: #e4ddff; }
.circle-two { width: 205px; height: 205px; background: #d0c4ff; }
.hero-emoji { z-index: 1; font-size: 105px; filter: drop-shadow(0 12px 10px rgba(66, 48, 120, .15)); }
.floating-card {
  z-index: 2;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid #fff;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 22px;
}
.floating-card span { font-size: 11px; font-weight: 700; }
.card-one { top: 28px; left: 0; }
.card-two { right: 0; top: 85px; }
.card-three { left: 20px; bottom: 25px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 10%;
  margin-top: -1px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(48, 40, 94, .025);
}
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--lavender); font-size: 22px; }
.stat-card strong { display: block; font: 800 25px 'Manrope', sans-serif; }
.stat-card div > span { color: var(--muted); font-size: 12px; }

.items-section, .how-section { padding: 85px 10%; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 10px 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.centered { justify-content: center; text-align: center; }

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(130px, 1fr));
  gap: 11px;
  margin: 28px 0 15px;
}
input, select, textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #e4e1ee;
  border-radius: 10px;
  outline: none;
  font-size: 12px;
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(118, 98, 216, .1); }
.results-label { margin: 15px 0; color: var(--muted); font-size: 12px; }

.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.item-card { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; transition: .2s; }
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item-art { min-height: 150px; display: grid; place-items: center; font-size: 57px; background: #f0edff; position: relative; }
.item-art.art-mint { background: #e4f5ee; }
.item-art.art-peach { background: #fff0e7; }
.item-art.art-blue { background: #e8f2ff; }
.item-art.art-yellow { background: #fff6d9; }
.item-art.art-pink { background: #ffedf3; }
.status-pill { position: absolute; top: 13px; left: 13px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; background: white; }
.status-pill.lost { color: var(--red); }
.status-pill.found { color: var(--green); }
.item-card-body { padding: 18px; }
.item-card-body h3 { margin: 0 0 8px; font-size: 17px; overflow-wrap: anywhere; }
.item-meta { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; margin: 7px 0; }
.item-description { color: var(--muted); font-size: 12px; min-height: 40px; }
.item-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.item-category { color: var(--purple-dark); font-size: 10px; font-weight: 700; }
.view-details { background: none; border: 0; color: var(--purple-dark); font-size: 11px; font-weight: 800; }
.empty-state { text-align: center; padding: 50px 15px; background: white; border: 1px dashed #dcd6ef; border-radius: 15px; }
.empty-state > span { font-size: 42px; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p, .data-note { color: var(--muted); font-size: 12px; }
.data-note { margin-top: 24px; text-align: center; }

.how-section { background: #f3f0ff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 35px; }
.step-card { position: relative; padding: 27px; border-radius: 17px; background: white; border: 1px solid #e7e1fb; }
.step-card > span { position: absolute; top: 18px; right: 20px; color: #c6baf7; font: 800 23px 'Manrope', sans-serif; }
.step-icon { font-size: 30px; }
.step-card h3 { margin: 17px 0 9px; font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 12px; }

.safety-note { margin: 0 10% 65px; padding: 21px 25px; display: flex; gap: 15px; align-items: flex-start; background: #fff9e9; border: 1px solid #f5e8c3; border-radius: 14px; }
.safety-note > span { font-size: 25px; }
.safety-note strong { font-size: 13px; }
.safety-note p { margin: 5px 0 0; color: #77705d; font-size: 12px; }

footer { padding: 28px 6%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; background: white; border-top: 1px solid var(--line); }
footer > p, footer > span { color: var(--muted); font-size: 11px; }
.footer-brand { font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31, 27, 53, .55); overflow-y: auto; }
.modal { position: relative; width: 100%; max-width: 490px; max-height: 90vh; overflow-y: auto; padding: 32px; background: white; border-radius: 20px; box-shadow: 0 25px 90px rgba(20, 15, 50, .2); }
.modal h2 { margin: 12px 0 7px; font-size: 28px; }
.modal-intro { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.modal-close { position: absolute; top: 15px; right: 17px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #f3f1fa; color: var(--ink); font-size: 24px; }
.modal form { display: grid; gap: 14px; }
.modal label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.modal textarea { resize: vertical; }
.form-message { margin: 0; color: var(--red); font-size: 12px; overflow-wrap: anywhere; }
.form-message.success { color: var(--green); }
.switch-auth { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.switch-auth button { border: 0; background: none; color: var(--purple-dark); font-weight: 800; }
.detail-modal { max-width: 550px; }
.detail-emoji { padding: 35px; margin: 0 0 22px; border-radius: 15px; text-align: center; font-size: 65px; background: var(--lavender); }
.detail-modal p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.detail-label { color: var(--purple-dark); font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: min(400px, calc(100vw - 40px)); padding: 14px 18px; color: white; background: #29263d; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; }

@media (max-width: 1000px) {
  .navbar { flex-wrap: wrap; }
  .navbar nav { order: 3; width: 100%; justify-content: center; }
  .hero { padding: 55px 6%; }
  .stats { padding: 0 6%; }
  .items-section, .how-section { padding: 65px 6%; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .navbar { padding: 13px 5%; gap: 14px; }
  .navbar nav { gap: 15px; justify-content: flex-start; overflow-x: auto; }
  .navbar nav a { white-space: nowrap; font-size: 11px; }
  .nav-actions { width: 100%; flex-wrap: wrap; }
  .nav-actions .button { flex: 1; padding: 10px; font-size: 11px; }
  #userEmail { max-width: 100%; }
  .hero { grid-template-columns: 1fr; padding: 48px 6% 25px; }
  .hero-art { height: 245px; }
  .circle-one { width: 220px; height: 220px; }
  .circle-two { width: 165px; height: 165px; }
  .hero-emoji { font-size: 80px; }
  .floating-card { padding: 8px 10px; }
  .stats { padding: 0 5%; gap: 8px; }
  .stat-card { padding: 12px 8px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat-icon { width: 35px; height: 35px; font-size: 17px; }
  .stat-card strong { font-size: 20px; }
  .stat-card div > span { font-size: 10px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > .button { width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .item-grid, .steps { grid-template-columns: 1fr; }
  .items-section, .how-section { padding: 55px 5%; }
  .safety-note { margin: 0 5% 45px; padding: 18px; }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .modal { padding: 27px 21px; }
}