.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.08);
  box-shadow: 0 10px 20px rgba(13,110,253,0.05);
}

.hero-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
}

.hero-brand-wide {
  display: block;
  width: min(100%, 460px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 1.5rem;
}

.hero-brand-wide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-brand span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--primary-dark);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 2rem;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-illustration {
  background: linear-gradient(180deg, rgba(13,110,253,0.08), rgba(255,138,0,0.05));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.dashboard-illustration img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}

.communication-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.4fr);
  gap: 1rem;
}

.message-panel,
.admin-panel,
.notification-list {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.message-row,
.notification-row,
.report-row {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--light-border);
  padding: 1rem 0;
}

.message-row>div,
.notification-row>div:nth-child(2),
.report-row>div {
  flex: 1;
}

.message-row .message-content {
  min-width: 0;
}

.message-metadata {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  color: var(--text-light);
  font-size: 0.76rem;
  line-height: 1.45;
}

.message-metadata strong {
  color: var(--primary-dark);
  font-size: 0.8rem;
}

.message-metadata time {
  color: var(--text-light);
  font-size: 0.72rem;
}

.message-metadata span {
  overflow-wrap: anywhere;
}

.message-row .message-public-id {
  display: inline;
  margin: 0;
  color: var(--text-light);
  font-size: 0.72rem;
}

.message-row .message-public-id strong {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.message-row .message-body {
  width: fit-content;
  max-width: min(100%, 42rem);
  margin: 0.7rem 0 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--primary-dark);
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.message-row-sent .message-body {
  margin-left: auto;
  background: rgba(13, 110, 253, 0.08);
}

.message-row-received .message-body {
  border-left: 3px solid var(--accent);
}

.message-row form {
  display: inline-block;
  margin: 0.1rem 0.45rem 0 0;
}

.message-row span,
.message-row p,
.notification-row p,
.notification-row small,
.report-row p,
.report-row small {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.contact-form {
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.6rem;
}

.contact-cards,
.contact-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.contact-card,
.contact-shortcut-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(242, 244, 247, 0.7);
  color: inherit;
  text-decoration: none;
}

.contact-card:hover,
.contact-card:focus-visible,
.contact-shortcut-grid a:hover,
.contact-shortcut-grid a:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(10, 29, 61, 0.08);
}

.contact-card h2 { margin: 0; font-size: 1.15rem; color: var(--primary-dark); }
.contact-card p, .contact-card strong, .contact-shortcut-grid span { margin: 0; color: var(--text-light); }
.contact-card strong { color: var(--primary); }
.contact-card-icon { font-size: 1.5rem; }
.contact-form-section, .contact-shortcuts { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
.contact-form-heading h2, .contact-shortcuts h2 { color: var(--primary-dark); }
.contact-request-form { margin-top: 1.2rem; }
.contact-internal { color: var(--text-light); font-size: 0.9rem; }
.contact-trust { margin-top: 1rem; color: var(--primary-dark); line-height: 1.7; }
.contact-followup { color: var(--text-light); }
.contact-shortcut-grid { margin-bottom: 0; }
.contact-shortcut-grid strong { color: var(--primary-dark); }
.contact-success { text-align: center; }
.contact-success-mark { display: grid; width: 4rem; height: 4rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: rgba(25, 135, 84, 0.12); color: #198754; font-size: 2rem; font-weight: 900; }
.contact-reference-label { margin-top: 2rem; color: var(--text-light); }
.contact-reference { display: inline-block; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; color: var(--primary-dark); font-weight: 900; letter-spacing: 0.08em; }
.contact-success .info-actions { justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.contact-request-table > div { display: grid; grid-template-columns: 180px 1.2fr 1fr 2fr 140px; gap: 0.75rem; align-items: center; }
.contact-request-table small { color: var(--text-light); }

.notification-row.unread {
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.notification-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--primary);
  font-weight: 800;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-stats>div {
  background: var(--primary-dark);
  color: #fff;
  padding: 1.2rem;
  border-radius: var(--border-radius);
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  font-size: 1.8rem;
}

.admin-stats span {
  opacity: 0.8;
  font-size: 0.8rem;
}

.admin-panel {
  margin-bottom: 1rem;
}

.report-row form {
  display: grid;
  grid-template-columns: 130px 180px auto;
  gap: 0.5rem;
  align-items: center;
}

.report-row form input,
.report-row form select {
  padding: 0.5rem;
}

.admin-table>div {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 60px;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--light-border);
  align-items: center;
}

.admin-table span:last-of-type {
  color: var(--text-light);
  font-size: 0.85rem;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
}

.map-visual {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: #dbe9e9;
  border: 1px solid #b7d1d0;
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: linear-gradient(32deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%), linear-gradient(112deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%);
  background-size: 110px 90px;
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 5px 15px #7b4a2d66;
}

.map-pin::first-letter {
  transform: rotate(45deg);
}

.pin-one {
  left: 35%;
  top: 38%;
}

.pin-two {
  left: 64%;
  top: 58%;
  background: var(--primary);
}

.map-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  padding: 0.5rem 0.8rem;
  color: var(--primary-dark);
  font-size: 0.8rem;
}

.map-results {
  background: #fff;
  border: 1px solid var(--light-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.map-result {
  display: block;
  padding: 1rem 0;
  border-top: 1px solid var(--light-border);
}

.map-result strong,
.map-result small {
  display: block;
  margin-top: 0.35rem;
}

.map-result strong {
  color: var(--primary-dark);
}

.map-result small {
  color: var(--text-light);
}

.leaflet-map {
  height: 520px;
  width: 100%;
}

.inline-form {
  display: inline;
}

.info-page {
  max-width: 920px;
  margin: 3rem auto;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(13, 110, 253, 0.08);
  border-radius: 28px;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-shadow: 0 18px 45px rgba(10, 29, 61, 0.08);
  position: relative;
  overflow: hidden;
}

.info-page::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(13,110,253,0.12), transparent 70%);
  pointer-events: none;
}

.info-brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.info-brand-logo {
  width: min(100%, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 25px rgba(13,110,253,0.08));
}

.info-page h1 {
  margin: 0.5rem 0;
  color: var(--primary-dark);
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.info-lead {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.info-content {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.info-content section {
  margin-bottom: 2rem;
}

.terms-updated {
  margin: 0 0 1.5rem;
  color: var(--primary-dark) !important;
}

.terms-intro {
  padding-bottom: 0.5rem;
}

.terms-toc {
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(13, 110, 253, 0.05);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 14px;
}

.terms-toc h2 {
  margin-bottom: 0.75rem;
}

.terms-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.terms-toc a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
  text-decoration: underline;
}

.terms-section,
.terms-principle {
  scroll-margin-top: 1.5rem;
}

.security-help {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 14px;
  background: rgba(13, 110, 253, 0.04);
}

.security-help h2 {
  margin-bottom: 0.6rem;
}

.security-help a {
  color: var(--primary-dark);
  font-weight: 700;
}

.security-closing {
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
}

.security-closing h2,
.security-closing p {
  color: #fff;
}

.security-closing h2 {
  margin-bottom: 0.65rem;
}

.about-hero {
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid rgba(13, 110, 253, 0.12);
}

.about-kicker {
  margin: 0 0 0.75rem !important;
  color: var(--primary) !important;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-hero h2 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.about-hero-intro {
  max-width: 700px;
  font-size: 1.18rem;
}

.about-mission-intro {
  max-width: 680px;
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}

.about-mission-intro p {
  margin: 0;
  color: var(--primary-dark) !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.about-toc {
  margin: 2rem 0 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 14px;
  background: rgba(13, 110, 253, 0.04);
}

.about-toc h2 {
  margin-bottom: 0.75rem;
}

.about-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-toc a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.about-toc a:hover,
.about-toc a:focus-visible {
  text-decoration: underline;
}

.about-section {
  max-width: 820px;
  margin-bottom: 3.25rem !important;
  scroll-margin-top: 1.5rem;
}

.about-section > h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-steps > div,
.about-pillars > div {
  padding: 1rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 10px;
  background: rgba(242, 244, 247, 0.65);
}

.about-steps span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.about-steps h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.about-steps p,
.about-pillars span {
  font-size: 0.9rem;
}

.about-callout-title {
  color: var(--primary-dark) !important;
  font-size: 1.3rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.about-pillars strong,
.about-pillars span {
  display: block;
}

.about-pillars strong {
  margin-bottom: 0.45rem;
  color: var(--primary-dark);
}

.about-values {
  margin-top: 1.25rem;
}

.about-values strong {
  color: var(--primary-dark);
}

.about-recovery-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.06);
  color: var(--primary-dark);
  text-align: center;
}

.about-recovery-flow span {
  color: var(--primary);
  font-size: 1.3rem;
}

.about-success-note {
  color: var(--primary-dark) !important;
  font-size: 1.15rem;
}

.about-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.about-link-row a:not(.btn) {
  color: var(--primary-dark);
  font-weight: 700;
}

.about-final-mark {
  margin-top: 4rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
}

.about-final-mark p,
.about-final-mark strong,
.about-final-mark span {
  display: block;
  color: #fff !important;
}

.about-final-mark p {
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-final-mark > strong {
  font-size: 1.5rem;
}

.about-final-mark span {
  margin-top: 0.4rem;
  opacity: 0.82;
}

.about-final-mark blockquote {
  max-width: 620px;
  margin: 1.75rem auto 0;
  border-left: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 760px) {
  .about-steps,
  .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-recovery-flow {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .about-toc ul {
    grid-template-columns: 1fr;
  }
}

.info-content h2,
.info-content h3 {
  color: var(--primary-dark);
  margin: 0 0 0.8rem;
}

.info-content p,
.info-content li,
.info-content blockquote {
  color: var(--text-light);
  line-height: 1.7;
}

.how-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 2rem;
  align-items: center;
  margin: -0.5rem -0.5rem 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 138, 0, 0.1));
}

.how-hero h2 {
  max-width: 680px;
  margin: 0.7rem 0;
  color: var(--primary-dark);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.98;
}

.how-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--text-light);
  font-size: 1.12rem;
  line-height: 1.7;
}

.how-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.how-hero-mark {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  text-align: center;
}

.how-hero-mark span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.how-hero-mark strong {
  color: var(--accent);
  font-size: 4rem;
  line-height: 1;
}

.how-hero-mark small {
  font-weight: 800;
  letter-spacing: 0.18em;
}

.how-section {
  margin: 0 0 3rem;
  padding-top: 0.5rem;
  scroll-margin-top: 1.5rem;
}

.how-section-number {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.how-section > h2 {
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.how-intro {
  max-width: 740px;
  font-size: 1.05rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.how-steps > div,
.how-criteria > div,
.how-safety > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(242, 244, 247, 0.72);
}

.how-steps > div {
  padding: 1rem;
}

.how-steps span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
}

.how-steps h3 {
  margin: 0.7rem 0 0.35rem;
  color: var(--primary-dark);
  font-size: 1rem;
}

.how-steps p {
  margin: 0;
  font-size: 0.87rem;
}

.how-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.how-split > div {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
}

.how-split ol,
.how-split ul {
  padding-left: 1.2rem;
}

.how-split li,
.how-section li {
  margin: 0.55rem 0;
}

.how-section blockquote {
  margin-top: 1.2rem;
}

.how-criteria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.how-criteria > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem;
}

.how-criteria span {
  font-size: 1.15rem;
}

.how-criteria strong {
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.how-note {
  margin: 0;
  color: var(--primary-dark) !important;
  font-weight: 800;
}

.how-safety {
  display: grid;
  gap: 0.7rem;
}

.how-safety > div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.55rem;
  padding: 0.85rem;
}

.how-safety span {
  grid-row: span 2;
  font-size: 1.25rem;
}

.how-safety strong {
  color: var(--primary-dark);
}

.how-safety p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}

.how-report {
  padding: 1.5rem;
  border: 1px solid rgba(255, 138, 0, 0.25);
  border-radius: 18px;
  background: rgba(255, 138, 0, 0.07);
}

.how-resolution {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.how-final {
  margin: 1rem 0 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
}

.how-final h2,
.how-final p {
  color: #fff;
}

.how-final p {
  margin-bottom: 0;
}

.how-final .how-actions {
  justify-content: center;
}

@media (max-width: 800px) {
  .how-hero,
  .how-split {
    grid-template-columns: 1fr;
  }

  .how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-criteria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .how-hero {
    margin: -0.5rem 0 2rem;
    padding: 1.2rem;
  }

  .how-steps,
  .how-criteria {
    grid-template-columns: 1fr;
  }

  .how-actions .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .terms-toc ul {
    grid-template-columns: 1fr;
  }
}

.info-content li {
  margin: 0.75rem 0;
}

.info-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(13, 110, 253, 0.04);
  padding: 0.9rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
  color: var(--primary-dark);
}

.info-value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-value-list > div {
  background: rgba(242, 244, 247, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-value-list > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10,29,61,0.05);
}

.help-overview {
  margin-bottom: 1.5rem;
}

.help-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.help-category {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 12px 24px rgba(10, 29, 61, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.help-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.help-section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.help-section-heading h2 {
  font-size: 1.2rem;
  margin: 0;
}

.help-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.08);
  font-size: 1.25rem;
}

.help-section .btn {
  margin-top: auto;
}

.help-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.help-footer h2 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin: 0 0 0.9rem;
}

.help-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.help-footer a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.help-footer a:hover,
.help-footer a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.help-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(10,29,61,0.06);
}

.help-category h3 {
  margin-bottom: 0.7rem;
}

.help-category ul {
  margin: 0;
  padding-left: 1.2rem;
}

.info-actions {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.info-actions .btn {
  border-radius: 14px;
  padding: 0.9rem 1.3rem;
  box-shadow: 0 12px 22px rgba(13,110,253,0.15);
}

.partnership-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.partnership-visual {
  background: linear-gradient(180deg, rgba(13,110,253,0.06), rgba(255,138,0,0.06));
  border: 1px solid rgba(13,110,253,0.08);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 18px 35px rgba(10, 29, 61, 0.05);
}

.partnership-visual img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 18px;
}

.partnership-copy {
  position: relative;
  z-index: 1;
}

.partnership-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.partnership-form-wrap {
  margin-top: 2rem;
}

.partnership-form-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,246,255,0.9));
  border: 1px solid rgba(13,110,253,0.08);
  border-radius: 26px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 22px 48px rgba(10,29,61,0.06);
}

.partnership-form-header {
  margin-bottom: 1.5rem;
}

.partnership-form-header h3 {
  margin: 0.4rem 0 0;
  color: var(--primary-dark);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.partnership-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.partnership-form .form-group {
  display: grid;
  gap: 0.45rem;
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.partnership-form .form-span-2 {
  grid-column: 1 / -1;
}

.partnership-form input,
.partnership-form select,
.partnership-form textarea {
  width: 100%;
  border: 1px solid rgba(13,110,253,0.18);
  border-radius: 14px;
  background: #fff;
  padding: 0.82rem 0.9rem;
  font: inherit;
  color: var(--primary-dark);
  box-sizing: border-box;
}

.partnership-form textarea {
  min-height: 120px;
  resize: vertical;
}

.partnership-submit {
  margin-top: 1.25rem;
  min-width: 100%;
  justify-content: center;
}

.partnership-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

.partnership-status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.partnership-status.new { background: rgba(255,138,0,0.12); color: #b76500; }
.partnership-status.in_progress { background: rgba(13,110,253,0.1); color: var(--primary); }
.partnership-status.accepted { background: rgba(25,135,84,0.12); color: #127c45; }
.partnership-status.archived { background: rgba(108,117,125,0.12); color: #4b5563; }
.partnership-status.rejected { background: rgba(220,53,69,0.12); color: #b42a35; }

body.modal-open { overflow: hidden; }
.account-required-modal[hidden] { display: none; }
.account-required-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 1rem; }
.account-required-modal__backdrop { position: absolute; inset: 0; background: rgba(10,29,61,0.62); }
.account-required-modal__dialog { position: relative; width: min(100%, 480px); padding: 2rem; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,0.28); }
.account-required-modal__dialog h3 { margin: 0.45rem 2rem 0.75rem 0; color: var(--primary-dark); }
.account-required-modal__dialog p { color: var(--muted); line-height: 1.6; }
.account-required-modal__close { position: absolute; top: 0.8rem; right: 0.9rem; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; cursor: pointer; }
.account-required-modal__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.admin-dashboard-page { max-width: 1280px; }
.admin-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.admin-workspace-grid .admin-panel { min-width: 0; margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 28px rgba(10,29,61,0.04); }
.admin-panel--reports, .admin-panel--items, .admin-panel--users { grid-column: 1 / -1; }
.admin-workspace-grid .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.admin-workspace-grid .panel-heading h2 { margin: 0; color: var(--primary-dark); font-size: 1.08rem; }
.admin-workspace-grid .panel-heading > span { color: var(--muted); font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.admin-record-list { display: grid; }
.admin-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto auto; gap: 0.9rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.admin-record:last-child { border-bottom: 0; }
.admin-record strong { display: block; color: var(--primary-dark); overflow-wrap: anywhere; }
.admin-record p, .admin-record small { display: block; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.admin-record time { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }
.admin-record__label { color: var(--primary-dark); font-size: 0.78rem; font-weight: 800; }
.admin-record form { margin: 0; }.admin-record .btn { white-space: nowrap; }
.admin-panel--reports .report-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }.admin-panel--reports .report-row:last-child { border-bottom: 0; }
@media (max-width: 850px) { .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }.admin-workspace-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-stats>div { padding: 1rem; }.admin-workspace-grid .admin-panel { padding: 1rem; }.admin-record { grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; }.admin-record > :nth-child(2) { grid-column: 1 / -1; }.admin-record time { grid-column: 1; }.admin-record .text-link, .admin-record form { grid-column: 2; justify-self: end; }.admin-panel--reports .report-row { grid-template-columns: 1fr; }.report-row form { grid-template-columns: 1fr; }.account-required-modal__dialog { padding: 1.5rem; }.account-required-modal__actions .btn { width: 100%; justify-content: center; } }

@media (max-width: 720px) {
  .help-category-grid,
  .contact-cards,
  .contact-shortcut-grid,
  .info-value-list,
  .partnership-hero,
  .partnership-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-request-table { overflow-x: auto; }
  .contact-request-table > div { min-width: 760px; }
}

.mobile-menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.copy-id {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  margin-left: 0.35rem;
}

.photo-preview {
  display: block;
  max-width: 220px;
  max-height: 150px;
  margin-top: 0.75rem;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.status-pill {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  background: #eef2f7;
  color: var(--text-light);
}

.status-active {
  background: #e7f8ef;
  color: #087344;
}

.status-in_contact,
.status-matched {
  background: #fff0df;
  color: #a95013;
}

.status-returned,
.status-completed {
  background: #e8f0ff;
  color: var(--primary);
}

.status-closed,
.status-rejected {
  background: #f1f1f1;
  color: #707070;
}

.item-card-photo {
  width: calc(100% + 2.7rem);
  height: 160px;
  margin: -1.35rem -1.35rem 1rem;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.progress-step {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--light-border);
  border-radius: 50%;
  color: var(--text-light);
  font-weight: 800;
}

.progress-step.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.form-progress i {
  flex: 1;
  max-width: 100px;
  height: 2px;
  background: var(--light-border);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-actions .step-next {
  margin-left: auto;
}

.public-advertiser-id {
  color: var(--text-light);
  font-size: 0.85rem;
}

.public-advertiser-id code,
.profile-public-id code {
  color: var(--accent);
  font-weight: 800;
}

.detail-photo {
  display: block;
  width: min(100%, 520px);
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin: 1rem 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0;
  font-weight: 700;
}

.pagination span {
  color: var(--text-light);
}

:root {
  --primary: #0D6EFD;
  --primary-dark: #0A1D3D;
  --accent: #FF8A00;
  --success: #22C55E;
  --bg: #F2F4F7;
  --bg-soft: #EEF4FF;
  --text: #0A1D3D;
  --muted: #62708A;
  --line: #E7ECF3;
  --white: #FFFFFF;
  --shadow: 0 18px 45px rgba(10, 29, 61, 0.08);
  --radius: 18px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-shell { background: var(--bg); }

.navbar {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.18rem 0.8rem 0.28rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

.header-decorative-banner {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  pointer-events: none;
  opacity: 0.98;
}

.header-banner-image {
  display: block;
  max-width: min(42vw, 360px);
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(10, 29, 61, 0.08));
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0.55rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(255,138,0,0.09));
  border: 1px solid rgba(13,110,253,0.10);
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(13, 110, 253, 0.16);
}

.tooltip-target { position: relative; }
.tooltip-target::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 0.65rem);
  z-index: 50;
  max-width: min(220px, calc(100vw - 2rem));
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(10, 29, 61, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -0.25rem);
  transition: opacity var(--transition), transform var(--transition);
}
.tooltip-target::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 0.35rem);
  z-index: 51;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--primary-dark);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.tooltip-target:hover::after,
.tooltip-target:focus-visible::after,
.tooltip-target:hover::before,
.tooltip-target:focus-visible::before { opacity: 1; }
.tooltip-target:hover::after,
.tooltip-target:focus-visible::after { transform: translate(-50%, 0); }

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.brand-logo-wide {
  display: block;
  width: min(100%, 310px);
  height: auto;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-left: auto;
  padding-left: 1rem;
}
.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(10,29,61,0.03);
}
.locale-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  background: transparent;
}
.locale-button:hover,
.locale-button:focus-visible {
  background: rgba(13,110,253,0.05);
  border-color: rgba(13,110,253,0.15);
  transform: translateY(-1px);
}
.locale-button.is-active {
  background: rgba(13,110,253,0.08);
  border-color: rgba(13,110,253,0.18);
  box-shadow: 0 8px 18px rgba(13,110,253,0.08);
}
.nav-link {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-link:hover { background: var(--bg); color: var(--primary); }
.nav-icon-link {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 18px rgba(10,29,61,0.03);
}
.nav-help {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-dark);
}
.nav-primary {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 10px 20px rgba(13,110,253,0.2);
}
.nav-primary:hover { background: var(--primary-dark); color: var(--white) !important; }
.nav-ghost {
  background: rgba(13,110,253,0.08);
  color: var(--primary) !important;
}
.nav-user-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(13,110,253,0.06);
  font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(13,110,253,0.04);
}
.nav-user-menu { position: relative; }
.notification-link {
  position: relative;
}
.notification-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}
.non-user-spacer { flex: 1; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 0.5rem;
  display: none;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  color: var(--text);
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item.text-danger { color: #d11a2a; }
.dropdown-item.tooltip-target::after {
  left: auto;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translate(0, -50%);
}
.dropdown-item.tooltip-target::before {
  left: auto;
  right: calc(100% + 0.42rem);
  top: 50%;
  transform: translate(0, -50%) rotate(45deg);
}
.dropdown-item.tooltip-target:hover::after,
.dropdown-item.tooltip-target:focus-visible::after { transform: translate(0, -50%); }

.home-page {
  padding: 2rem 0 0;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 1rem;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 620'%3E%3Cdefs%3E%3ClinearGradient id='snakeGradient' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%230D6EFD'/%3E%3Cstop offset='0.52' stop-color='%23FF8A00'/%3E%3Cstop offset='1' stop-color='%2322C55E'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 145 82 C 205 85, 240 103, 262 135 S 298 200, 300 230 S 330 290, 420 305 S 520 280, 545 226 S 575 145, 650 155 S 720 200, 740 248 S 760 340, 792 378' fill='none' stroke='url(%23snakeGradient)' stroke-width='4.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
  filter: saturate(1.2) brightness(1.04);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 1rem 0;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: var(--text);
}
.hero-copy h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  color: var(--primary-dark);
}
.hero-lead {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d6efd;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  letter-spacing: 0.02em;
  transform: rotate(-1.5deg);
  text-shadow: 1px 1px 0 rgba(13,110,253,0.1);
}
.hero-description {
  margin: 1rem 0 1.7rem;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 560px;
}

.home-search {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.9fr auto;
  gap: 0.8rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(13,110,253,0.06);
  border-radius: 18px;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  color: var(--muted);
}
.search-field input,
.search-field select,
input, select, textarea {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
}
.home-search-button, .btn {
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.home-search-button {
  background: var(--primary);
  color: var(--white);
  min-width: 140px;
}
.home-search-button:hover, .btn:hover { transform: translateY(-1px); }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  min-width: 260px;
  box-shadow: 0 14px 30px rgba(10,29,61,0.12);
}
.lost-action { background: var(--primary); }
.found-action { background: var(--accent); }

.hero-visual {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 0 0 8%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 660'%3E%3Cdefs%3E%3ClinearGradient id='snakeVisual' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%230D6EFD'/%3E%3Cstop offset='0.5' stop-color='%23FF8A00'/%3E%3Cstop offset='1' stop-color='%2322C55E'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 35 120 C 110 86, 160 82, 194 112 S 250 190, 268 245 S 250 300, 318 336 S 418 344, 444 392 S 496 492, 575 536' fill='none' stroke='url(%23snakeVisual)' stroke-width='4.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.82;
  filter: saturate(1.15) brightness(1.04);
  z-index: 0;
  pointer-events: none;
}
.hero-pin {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13,110,253,0.12);
  color: var(--primary);
  font-size: 1.5rem;
  border: 1px solid rgba(13,110,253,0.18);
}
.hero-woman {
  position: relative;
  max-height: 720px;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.25rem 0 1.75rem;
  margin: 0 auto;
}
.home-stat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 0.9rem;
  box-shadow: 0 8px 18px rgba(10,29,61,0.025);
  min-width: 0;
}
.stat-symbol {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.stat-symbol.blue { background: rgba(13,110,253,0.12); color: var(--primary); }
.stat-symbol.orange { background: rgba(255,138,0,0.12); color: var(--accent); }
.stat-symbol.green { background: rgba(34,197,94,0.12); color: var(--success); }
.stat-symbol.navy { background: rgba(10,29,61,0.1); color: var(--primary-dark); }
.home-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-dark);
}
.home-stat span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.brand-message {
  text-align: center;
  padding: 1.5rem 1rem 4rem;
  color: var(--primary-dark);
}
.brand-message span {
  display: inline-flex;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255,138,0,0.12);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}
.brand-message p {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}
.brand-message em {
  color: var(--muted);
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1.6;
}
.reputation-badge {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(10,29,61,0.08);
  color: var(--primary-dark);
  font-weight: 700;
}
.reputation-badge.success { background: rgba(34,197,94,0.12); color: #15803d; }
.reputation-badge.danger { background: rgba(220,38,38,0.12); color: #b91c1c; }

.page-heading {
  padding: 2rem 0 1rem;
}
.page-heading h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  color: var(--primary-dark);
  letter-spacing: -0.05em;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.search-page, .form-page, .info-page, .dashboard, .auth-container, .profile-container {
  padding-bottom: 2rem;
}
.search-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin: 1.2rem 0 2rem;
}
.search-panel input, .search-panel select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
}
.search-panel .btn { min-height: 52px; }

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.results-header h2 { margin: 0; }
.results-header span { color: var(--muted); }
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.item-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(10,29,61,0.04);
}
.item-card-photo {
  width: calc(100% + 2rem);
  margin: -1rem -1rem 1rem;
  height: 180px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}
.item-card-top {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.type-pill.lost { background: rgba(13,110,253,0.1); color: var(--primary); }
.type-pill.found { background: rgba(255,138,0,0.12); color: var(--accent); }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(34,197,94,0.08);
  color: var(--success);
}
.item-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--primary-dark);
}
.item-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}
.message-public-id { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.75rem; }
.message-public-id strong { color: var(--accent); letter-spacing: 0.04em; }
.message-row .btn-danger { min-height: 0; padding: 0.25rem 0.5rem; border-radius: 8px; background: transparent; border: 1px solid rgba(220,38,38,0.25); color: #b91c1c; font-size: 0.68rem; font-weight: 600; box-shadow: none; }
.message-row .btn-danger:hover { background: rgba(220,38,38,0.06); transform: none; }

@media (max-width: 600px) {
  .message-row {
    display: block;
    padding: 0.9rem 0;
  }

  .message-row .message-body {
    max-width: 100%;
    padding: 0.8rem 0.85rem;
    font-size: 0.95rem;
  }

  .message-row .btn {
    min-height: 2.2rem;
  }
}

.item-meta { font-size: 0.92rem; }
.text-link { font-weight: 700; color: var(--primary); }

.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.4rem 1rem;
  text-align: center;
}
.empty-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(13,110,253,0.08);
  color: var(--primary);
  font-weight: 900;
}

.auth-container {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  padding: 3rem 1rem;
}
.auth-card {
  width: min(100%, 480px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 2rem;
}
.auth-card {
  text-align: center;
}

.auth-brand-logo {
  display: block;
  width: min(100%, 290px);
  height: auto;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 2.5rem);
}
.auth-card > p { color: var(--muted); margin: 0 0 1.5rem; }
.form-group { margin-bottom: 1.1rem; text-align: left; }
.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--primary-dark);
}
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.82rem 0.9rem;
  color: var(--text);
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(13,110,253,0.65);
  box-shadow: 0 0 0 4px rgba(13,110,253,0.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.25rem;
  background: var(--primary);
  color: var(--white);
}
.btn-secondary { background: #edf3ff; color: var(--primary-dark); }
.btn-success { background: var(--success); }
.btn-block { width: 100%; }

.auth-link { margin-top: 1rem; text-align: center; color: var(--muted); }
.auth-link a { color: var(--primary); font-weight: 700; }

.alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert-danger { background: #feefef; color: #9c1d2d; border: 1px solid #f6d1d7; }
.alert-success { background: #ebfdf1; color: #15633d; border: 1px solid #ccefd9; }

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 1.1rem 0 2rem;
  color: var(--muted);
}
.pagination a { color: var(--primary); font-weight: 700; }

.form-page {
  max-width: 900px;
  margin: 0 auto;
}
.report-whatsapp {
  margin-top: 1rem;
  text-align: center;
}
.report-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #25d366;
  color: #063b20;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.18);
}
.report-whatsapp-button:hover,
.report-whatsapp-button:focus-visible {
  background: #1ebe5d;
  color: #042b17;
}
.report-whatsapp-button span {
  font-size: 0.78rem;
}
.report-whatsapp p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
.form-span-2 { grid-column: span 2; }
.item-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.progress-step {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #edf3ff; color: var(--primary);
  font-weight: 800;
}
.progress-step.active { background: var(--primary); color: var(--white); }
.form-progress i { flex: 1; height: 2px; background: var(--line); }
.step-actions { display: flex; justify-content: space-between; margin: 1rem 0 0.5rem; }
.step-back { background: #edf3ff; color: var(--primary-dark); }
.form-actions { display: flex; justify-content: flex-end; gap: 0.8rem; margin-top: 1rem; }

.footer {
  background: #f3f6fb;
  color: var(--primary-dark);
  padding: 3rem 1rem 1.1rem;
  border-top: 1px solid rgba(10, 29, 61, 0.08);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-section h4 {
  margin: 0 0 0.8rem;
  color: var(--primary-dark);
}
.footer-section p,
.footer-section li,
.footer-section a,
.footer-bottom {
  color: rgba(10, 29, 61, 0.72);
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 0.45rem; }
.footer-logo { width: 180px; }
.footer-social {
  min-width: 0;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(10, 29, 61, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(10, 29, 61, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.22);
  box-shadow: 0 12px 22px rgba(13, 110, 253, 0.12);
  color: var(--primary);
}
.social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}
.social-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: rgba(10, 29, 61, 0.65);
}
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  text-align: center;
}

@media (max-width: 900px) {
  .home-hero, .search-panel, .footer-container, .form-grid, .dashboard-layout { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 450px; }
}

@media (max-width: 720px) {
  .navbar-container {
    align-items: center;
    position: relative;
    gap: 0.75rem;
  }

  .navbar-menu {
    display: none;
    width: min(240px, calc(100vw - 2rem));
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 110, 253, 0.10);
    border-radius: 18px;
    padding: 0.5rem;
    margin-top: 0;
    box-shadow: 0 18px 40px rgba(10, 29, 61, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 30;
  }

  .navbar-menu.is-open {
    display: flex;
  }

  .navbar-menu .nav-link,
  .navbar-menu .nav-user-button,
  .navbar-menu .nav-icon-link {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(13, 110, 253, 0.02);
    color: var(--primary-dark);
    font-size: 0.8rem;
    padding: 0.7rem 0.8rem;
    justify-content: flex-start;
    text-align: left;
  }

  .navbar-menu .nav-icon-link {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .navbar-menu .nav-user-menu {
    width: 100%;
  }

  .navbar-menu .nav-user-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(13, 110, 253, 0.12);
    background: linear-gradient(135deg, rgba(13,110,253,0.08), rgba(255,138,0,0.08));
    border-radius: 12px;
    color: var(--primary-dark);
    font-size: 1.15rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    box-shadow: 0 10px 18px rgba(13, 110, 253, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .mobile-menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(13, 110, 253, 0.12);
  }

  .brand-logo { width: 150px; }
  .navbar-menu .dropdown-menu {
    position: static;
    margin-top: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(13, 110, 253, 0.08);
    box-shadow: none;
    background: rgba(242, 244, 247, 0.9);
  }

  .navbar-menu .tooltip-target::before,
  .navbar-menu .tooltip-target::after { display: none; }

  .home-page {
    text-align: center;
  }

  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .home-hero::before {
    display: none;
  }

  .hero-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-copy > * {
    width: 100%;
  }

  .home-search {
    width: min(100%, 420px);
    margin: 0 auto;
    grid-template-columns: 1fr;
  }

  .search-field {
    width: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .home-action {
    width: min(100%, 360px);
  }

  .hero-visual {
    width: 100%;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-stats {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .home-stat {
    max-width: 100%;
    width: min(100%, 360px);
    margin: 0 auto;
    justify-content: center;
    text-align: left;
  }

  .brand-message {
    text-align: center;
  }

  .search-panel { padding: 0.8rem; }
}

@media (min-width: 721px) {
  .mobile-menu-toggle { display: none; }
}

/* Personal spaces */
.profile-page,
.dashboard-page {
  max-width: 1180px;
  padding-top: 2.4rem;
  padding-bottom: 4rem;
}

.profile-intro,
.dashboard-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.profile-intro h1,
.dashboard-welcome h1 {
  margin: 0.45rem 0 0.35rem;
  color: var(--primary-dark);
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.04em;
}

.profile-intro p,
.dashboard-welcome p:not(.reputation-badge) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.profile-hero-panel,
.dashboard-match-banner,
.profile-surface,
.dashboard-surface,
.dashboard-bottom-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(10, 29, 61, 0.06);
}

.profile-hero-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.4rem;
  background: linear-gradient(110deg, #fff 0%, #fff 68%, var(--bg-soft) 100%);
  border-top: 4px solid var(--primary);
}

.profile-avatar-large {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13,110,253,0.12), rgba(255,138,0,0.14));
  color: var(--primary-dark);
  font-size: 2.5rem;
}

.profile-kicker,
.section-label,
.profile-member-since {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-kicker { margin: 0 0 0.25rem; }
.profile-hero-copy h2 { margin: 0; color: var(--primary-dark); font-size: 1.8rem; }
.profile-member-since { margin: 0.35rem 0 0.75rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.profile-hero-panel .reputation-badge,
.dashboard-welcome .reputation-badge { margin: 0; }
.reputation-badge span { margin: 0 0.35rem; }

.profile-verifications { display: grid; gap: 0.65rem; justify-items: start; }
.verification-pill { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.verification-pill.is-verified { color: #15803d; }

.profile-stat-grid,
.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.2rem 0;
}

.profile-stat-card,
.dashboard-stat {
  position: relative;
  min-width: 0;
  padding: 1.35rem 1.45rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.profile-stat-card::before,
.dashboard-stat::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--primary); }
.profile-stat-card.accent-orange::before, .dashboard-stat.accent-orange::before { background: var(--accent); }
.profile-stat-card.accent-green::before, .dashboard-stat.accent-green::before { background: var(--success); }
.profile-stat-card.accent-navy::before, .dashboard-stat.accent-navy::before { background: var(--primary-dark); }
.profile-stat-card strong, .dashboard-stat strong { display: block; color: var(--primary-dark); font-size: 2rem; line-height: 1; }
.profile-stat-card span, .dashboard-stat p { display: block; margin: 0.55rem 0 0.15rem; color: var(--primary-dark); font-weight: 800; }
.profile-stat-card small { color: var(--muted); }

.profile-content-grid,
.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 1.2rem; margin-top: 1.2rem; }
.profile-surface, .dashboard-surface { padding: 1.5rem; }
.surface-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.35rem; }
.surface-heading h2 { margin: 0.35rem 0 0; color: var(--primary-dark); font-size: 1.35rem; }
.surface-mark, .stat-index { color: var(--accent); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.profile-form .form-group { display: grid; gap: 0.4rem; color: var(--primary-dark); font-size: 0.85rem; font-weight: 800; }
.profile-form .form-group input { width: 100%; box-sizing: border-box; }
.profile-form .btn { margin-top: 1.15rem; }

.activity-list { display: grid; gap: 0.2rem; }
.activity-entry { display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 0.7rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.activity-entry:last-child { border-bottom: 0; }
.activity-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--primary); font-weight: 900; }
.activity-entry strong { color: var(--primary-dark); font-size: 0.9rem; }
.activity-entry p { margin: 0.22rem 0 0; color: var(--muted); font-size: 0.8rem; }
.activity-entry time { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.empty-state { display: grid; justify-items: center; gap: 0.6rem; padding: 2.3rem 1rem; text-align: center; color: var(--muted); }
.empty-state span { color: var(--accent); font-size: 1.8rem; }
.empty-state p { margin: 0; }

.profile-security-surface { margin-top: 1.2rem; }
.reputation-summary { display: flex; align-items: center; gap: 0.8rem; }
.reputation-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: var(--muted); }
.reputation-dot.success { background: var(--success); }.reputation-dot.danger { background: #dc2626; }
.reputation-summary strong { color: var(--primary-dark); }.reputation-summary p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.85rem; }.reputation-summary .text-link { margin-left: auto; }
.text-link { color: var(--primary); font-size: 0.82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-link span, .dashboard-stat a span { margin-left: 0.25rem; }

.dashboard-match-banner { display: flex; align-items: center; gap: 1.25rem; padding: 1.45rem 1.6rem; border-left: 4px solid var(--accent); }
.match-symbol { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; background: rgba(255,138,0,0.12); color: var(--accent); font-size: 1.6rem; }
.match-copy { flex: 1; }.match-copy h2 { margin: 0.25rem 0; color: var(--primary-dark); font-size: 1.35rem; }.match-copy p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.dashboard-stat { min-height: 130px; }.dashboard-stat .stat-index { display: block; }.dashboard-stat a { color: var(--primary); font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.dashboard-items-list { display: grid; }.dashboard-item-row { display: grid; grid-template-columns: 58px 1fr auto auto; align-items: center; gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }.dashboard-item-row:last-child { border-bottom: 0; }
.dashboard-item-row img, .item-placeholder { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }.item-placeholder { display: grid; place-items: center; background: var(--bg-soft); color: var(--primary); font-size: 1.35rem; }
.item-type { font-size: 0.7rem; font-weight: 800; }.item-type.lost { color: var(--primary); }.item-type.found { color: var(--accent); }.dashboard-item-copy h3 { margin: 0.15rem 0; color: var(--primary-dark); font-size: 0.95rem; }.dashboard-item-copy p { margin: 0; color: var(--muted); font-size: 0.78rem; }.item-status { padding: 0.3rem 0.55rem; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 0.7rem; font-weight: 800; }.item-status.active { background: rgba(13,110,253,0.1); color: var(--primary); }.item-status.returned { background: rgba(34,197,94,0.12); color: #15803d; }.row-arrow { color: var(--primary); font-size: 1.2rem; text-decoration: none; }
.dashboard-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1.2rem; padding: 1.6rem 1.8rem; }.dashboard-bottom-row h2 { margin: 0.35rem 0; color: var(--primary-dark); font-size: 1.25rem; }.dashboard-bottom-row p { margin: 0; color: var(--muted); }.dashboard-bottom-row .quick-actions { margin: 0; }

@media (max-width: 850px) {
  .profile-content-grid, .dashboard-main-grid { grid-template-columns: 1fr; }
  .profile-stat-grid, .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .profile-page, .dashboard-page { padding-top: 1.5rem; padding-bottom: 2.5rem; }
  .profile-intro, .dashboard-welcome, .dashboard-bottom-row { display: block; }
  .profile-intro, .dashboard-welcome { margin-bottom: 1.25rem; }
  .dashboard-welcome .reputation-badge { margin-top: 1rem; }
  .profile-hero-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 1.6rem 1rem; }.profile-verifications { justify-items: center; }
  .profile-stat-grid, .dashboard-stat-grid { gap: 0.7rem; }.profile-stat-card, .dashboard-stat { padding: 1rem; }.profile-stat-card strong, .dashboard-stat strong { font-size: 1.65rem; }
  .profile-form-grid { grid-template-columns: 1fr; }.profile-surface, .dashboard-surface { padding: 1.1rem; }.surface-heading { margin-bottom: 1rem; }
  .dashboard-match-banner { align-items: start; flex-wrap: wrap; padding: 1.1rem; }.dashboard-match-banner .btn { width: 100%; }.match-copy { min-width: 0; }.match-copy h2 { font-size: 1.15rem; }
  .dashboard-item-row { grid-template-columns: 46px 1fr auto; gap: 0.55rem; }.dashboard-item-row img, .item-placeholder { width: 46px; height: 46px; }.item-status { grid-column: 2; grid-row: 2; justify-self: start; }.row-arrow { grid-column: 3; grid-row: 1 / span 2; }.activity-entry { grid-template-columns: 28px 1fr; }.activity-entry time { grid-column: 2; }.reputation-summary { align-items: start; flex-wrap: wrap; }.reputation-summary .text-link { margin-left: 1.4rem; }.dashboard-bottom-row .quick-actions { margin-top: 1rem; display: grid; }
}

/* Lost and found detail page */
.item-detail-page {
  max-width: 1160px;
  padding-top: 1.4rem;
  padding-bottom: 4rem;
}
.detail-back-link { display: inline-flex; margin-bottom: 1.25rem; color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.item-detail-card, .detail-matches { background: var(--white); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr); min-height: 480px; }
.detail-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 3rem 2.7rem; }
.detail-media { grid-column: 2; grid-row: 1; min-height: 480px; padding: 1.5rem; background: linear-gradient(145deg, var(--bg-soft), rgba(255,138,0,0.08)); display: grid; place-items: center; }
.detail-badges { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }.detail-status { display: inline-flex; align-items: center; padding: 0.35rem 0.65rem; border-radius: 999px; background: rgba(34,197,94,0.1); color: #15803d; font-size: 0.72rem; font-weight: 800; }
.status-closed, .status-expired { background: rgba(10,29,61,0.08); color: var(--muted); }.status-in_contact, .status-matched { background: rgba(255,138,0,0.12); color: #b45309; }
.detail-copy h1 { margin: 0 0 1.25rem; color: var(--primary-dark); font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.045em; }
.detail-quick-facts { display: grid; gap: 0.7rem; color: var(--muted); font-size: 0.92rem; }.detail-quick-facts span { display: flex; gap: 0.45rem; align-items: center; }.detail-quick-facts strong { color: var(--primary-dark); }
.item-detail-page .detail-photo { width: 100%; height: 100%; max-height: 450px; min-height: 360px; margin: 0; object-fit: contain; border-radius: 18px; }
.detail-photo-empty { display: grid; place-items: center; align-content: center; gap: 0.6rem; width: 100%; min-height: 390px; border: 1px dashed rgba(13,110,253,0.28); border-radius: 18px; color: var(--muted); text-align: center; }.detail-photo-empty span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(13,110,253,0.1); color: var(--primary); font-size: 2rem; }.detail-photo-empty strong { color: var(--primary-dark); }.detail-photo-empty small { font-size: 0.78rem; }
.detail-body-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr); gap: 1.3rem; padding: 2rem 2.7rem 2.7rem; border-top: 1px solid var(--line); }.detail-main-column { min-width: 0; }.detail-section { padding: 1.15rem 0 1.5rem; border-bottom: 1px solid var(--line); }.detail-section:last-child { border-bottom: 0; }.detail-section h2, .detail-author-card h2, .detail-actions h2 { margin: 0.35rem 0 0.85rem; color: var(--primary-dark); font-size: 1.35rem; }.detail-description p { max-width: 680px; margin: 0; color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.detail-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }.detail-info-grid div { padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(242,244,247,0.55); }.detail-info-grid span, .detail-public-id span { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }.detail-info-grid strong { color: var(--primary-dark); font-size: 0.9rem; overflow-wrap: anywhere; }
.detail-side-column { display: grid; align-content: start; gap: 1rem; }.detail-author-card, .detail-actions { padding: 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfe; }.detail-author-avatar { display: grid; place-items: center; width: 48px; height: 48px; margin: 0.8rem 0; border-radius: 15px; background: rgba(13,110,253,0.1); font-size: 1.4rem; }.detail-author-label { margin: 0; color: var(--muted); font-size: 0.82rem; }.detail-author-card h2 { margin: 0.15rem 0 0.65rem; font-size: 1.1rem; }.detail-author-card .reputation-badge { margin: 0 0 0.9rem; font-size: 0.76rem; }.detail-public-id { position: relative; padding-top: 0.8rem; border-top: 1px solid var(--line); }.detail-public-id code { display: inline-block; margin-right: 0.45rem; color: var(--accent); font-weight: 900; }.detail-public-id .copy-id { padding: 0.3rem 0.5rem; font-size: 0.72rem; }.detail-actions h2 { font-size: 1.1rem; }.detail-actions .btn + .btn { margin-top: 0.55rem; }.detail-form { display: grid; gap: 0.65rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }.detail-form textarea { min-height: 86px; }.detail-muted { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.82rem; }.detail-report { display: inline-flex; justify-content: space-between; width: 100%; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; font-weight: 800; }.detail-report span { color: var(--primary); }
.detail-matches { margin-top: 1.2rem; padding: 1.5rem 1.7rem; }.detail-matches .surface-heading { margin-bottom: 0.5rem; }.detail-match-list { display: grid; }.detail-match-row { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 0.8rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }.detail-match-row .match-symbol { width: 38px; height: 38px; }.detail-match-row strong { color: var(--primary-dark); font-size: 0.9rem; }.detail-match-row p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.78rem; }.match-score { color: var(--success) !important; white-space: nowrap; }
@media (max-width: 800px) { .detail-hero { grid-template-columns: 1fr; min-height: 0; }.detail-copy { grid-column: 1; grid-row: 1; padding: 1.8rem 1.3rem 1.1rem; }.detail-media { grid-column: 1; grid-row: 2; min-height: 300px; padding: 1rem; }.item-detail-page .detail-photo { min-height: 240px; max-height: 340px; }.detail-photo-empty { min-height: 250px; }.detail-body-grid { grid-template-columns: 1fr; padding: 1.2rem 1.3rem 1.5rem; }.detail-side-column { order: 2; }.detail-main-column { order: 1; } }
@media (max-width: 520px) { .item-detail-page { padding-top: 0.9rem; padding-bottom: 2.5rem; }.detail-copy h1 { font-size: 2.35rem; }.detail-quick-facts { font-size: 0.82rem; }.detail-info-grid { grid-template-columns: 1fr; }.detail-matches { padding: 1.1rem; }.detail-match-row { grid-template-columns: 34px 1fr auto; }.detail-match-row .row-arrow { grid-column: 3; grid-row: 1; }.detail-match-row .match-score { grid-column: 2; grid-row: 2; justify-self: start; }.detail-match-row p { font-size: 0.72rem; } }

/* --- Ajout : action discrète "Objet retrouvé / restitué" (item-detail) --- */
.btn-quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 700; box-shadow: none; }
.btn-quiet:hover { background: var(--bg-soft); color: var(--primary-dark); border-color: var(--primary); }
.detail-recover-form { border-top: none; padding-top: 0; margin-top: 0.55rem; }
