/* =========================================================================
   Me Deixe Existir · Marketplace — sistema visual Mintlify
   ========================================================================= */
:root {
  --canvas: #ffffff;
  --canvas-elevated: #ffffff;
  --surface: #f7f8fb;
  --surface-soft: #fbfbfc;
  --surface-code: #0b1715;
  --canvas-dark: #071d18;
  --hairline: #e7e8ec;
  --hairline-soft: #f0f1f4;
  --ink: #101114;
  --charcoal: #33373d;
  --body: #4b5563;
  --slate: #667085;
  --steel: #8a94a6;
  --stone: #a4acb9;
  --mute: #9aa3b2;
  --faint: #b7beca;
  --primary: #101114;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --brand-green: #00d4a4;
  --brand-green-deep: #00b88f;
  --brand-green-soft: #e7fff8;
  --brand-tag: #3772cf;
  --brand-error: #ef4444;
  --testimonial-orange: #f97345;
  --hero-sky-from: #dff6ff;
  --hero-sky-to: #fff4e4;
  --hero-dark-from: #09251f;
  --hero-dark-to: #0dbf94;
  --link: #3772cf;
  --link-deep: #285aa5;
  --link-soft: rgba(0, 212, 164, 0.18);
  --warning: #f59e0b;
  --error: var(--brand-error);
  --success: var(--brand-green-deep);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --radius-pill: 9999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-3: 0 24px 48px -8px rgba(0, 0, 0, 0.12);
  --shadow-brand: 0 8px 24px rgba(0, 212, 164, 0.08);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SF Mono", Menlo, Consolas, ui-monospace, monospace;

  /* Aliases preservam os nomes usados nos templates e no JS legado. */
  --offwhite: var(--canvas);
  --sand: var(--surface);
  --beige: var(--surface-soft);
  --warm-gray: var(--slate);
  --brown: var(--charcoal);
  --brown-deep: var(--ink);
  --olive: var(--brand-green-deep);
  --line: var(--hairline);
  --white: var(--canvas-elevated);
  --shadow: var(--shadow-1);
  --radius: var(--radius-lg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: opacity 0.28s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

main { min-height: 60vh; }

button,
input,
textarea,
select {
  font: inherit;
}

button { color: inherit; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- Top nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline-soft);
}

.topnav--hero {
  background: rgba(255, 255, 255, 0.68);
}

.brand-mini {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.topnav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topnav__menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.topnav__menu a:hover {
  background: var(--canvas-elevated);
  border-color: var(--hairline);
  color: var(--ink);
}

.topnav__menu a:active { transform: scale(0.98); }

.topnav__highlight {
  background: var(--primary);
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
  padding-inline: 16px !important;
}

.topnav__highlight:hover { background: #000000 !important; }

@media (max-width: 640px) {
  .topnav {
    gap: 12px;
    padding: 10px 16px;
  }

  .brand-mini { font-size: 13px; }

  .topnav__menu {
    gap: 6px;
    overflow-x: auto;
    justify-content: flex-end;
  }

  .topnav__menu a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  padding: 120px 32px 96px;
  background: linear-gradient(180deg, var(--hero-sky-from) 0%, var(--hero-sky-to) 100%);
  color: var(--ink);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at 72% 8%, rgba(255, 255, 255, 0.72), transparent 24%),
    radial-gradient(circle at 85% 62%, rgba(0, 212, 164, 0.16), transparent 26%);
  filter: blur(2px);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), var(--canvas) 92%);
  mask-image: none;
  pointer-events: none;
  z-index: 0;
}

.hero__overlay,
.hero__mesh {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  text-align: center;
}

.hero__eyebrow,
.dash__eyebrow,
.card__category,
.stat__label,
.detail__label,
.split__title,
.info-block__title,
.field span,
.submit__step legend,
.data-table th,
.status-pill,
.license-badge {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero__eyebrow {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.hero__title {
  margin: 0;
  color: var(--ink);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero__subtitle {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--charcoal);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.hero__support {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--body);
  font-size: 16px;
  line-height: 24px;
}

.hero__support strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__actions .btn {
  min-height: 42px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
}

.hero__mockup {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 1080px);
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-3);
  aspect-ratio: 16 / 8.4;
}

.hero__mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__mockup-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(7, 29, 24, 0.68);
  color: var(--on-dark);
  backdrop-filter: blur(16px);
  font-size: 14px;
  line-height: 1.4;
}

.hero__mockup-caption span {
  color: var(--brand-green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .hero {
    padding: 96px 18px 72px;
  }

  .hero::before {
    width: 640px;
    height: 420px;
    opacity: 0.62;
  }

  .hero__title {
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__mockup {
    margin-top: 36px;
    aspect-ratio: 4 / 3;
  }

  .hero__mockup-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* --------------------------------------------------------------- Discover */
.discover {
  background: var(--canvas);
  border-top: 1px solid var(--hairline-soft);
  padding: 48px 24px 24px;
  text-align: center;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 640px);
  margin: 0 auto;
}

.search__icon {
  position: absolute;
  left: 16px;
  display: inline-flex;
  color: var(--mute);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  padding: 0 18px 0 46px;
  font-size: 16px;
  line-height: 24px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder { color: var(--faint); }

.search input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--link-soft);
}

.discover__lead {
  max-width: 620px;
  margin: 24px auto 18px;
  color: var(--body);
  font-size: 16px;
  line-height: 24px;
}

/* ------------------------------------------------------------------ Pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1040px;
  margin: 22px auto 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--charcoal);
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: var(--shadow-1);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.pill:hover {
  border-color: rgba(0, 212, 164, 0.55);
  background: var(--brand-green-soft);
  color: var(--ink);
  transform: translateY(-1px);
}

.pill:active { transform: translateY(0) scale(0.98); }

.pill--active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--primary);
}

/* ---------------------------------------------------------------- Gallery */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.gallery__heading {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid,
  .grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .gallery { padding: 40px 16px 72px; }

  .grid,
  .grid--compact { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- Home editorial */
.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-copy {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.5;
}

.home-showcase,
.collection-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 32px;
}

.collection-band {
  padding-top: 48px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr) minmax(260px, 0.55fr);
  grid-auto-rows: minmax(210px, auto);
  gap: 16px;
}

.showcase-card,
.photo-tile,
.showcase-note {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.showcase-card,
.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
}

.showcase-card::after,
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(7, 29, 24, 0), rgba(7, 29, 24, 0.78));
  z-index: 1;
}

.showcase-card img,
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.showcase-card:hover img,
.photo-tile:hover img {
  transform: scale(1.035);
}

.showcase-card--lead {
  grid-row: span 2;
  min-height: 620px;
}

.showcase-card__body {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-card__body span,
.photo-tile__meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(0, 212, 164, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(7, 29, 24, 0.58);
  color: #7fffe0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.showcase-card__body strong {
  max-width: 520px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.22;
}

.showcase-card:not(.showcase-card--lead) .showcase-card__body strong {
  font-size: 18px;
  line-height: 1.35;
}

.showcase-card__body em {
  max-width: 520px;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
}

.showcase-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 212, 164, 0.18), transparent 32%),
    var(--surface);
}

.showcase-note h3 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.showcase-note p:not(.section-kicker) {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.5;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.photo-grid--results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-tile {
  min-height: 360px;
  aspect-ratio: 4 / 5;
}

.photo-grid--results .photo-tile {
  min-height: 300px;
}

.photo-tile__meta,
.photo-tile strong {
  position: absolute;
  left: 18px;
  z-index: 2;
}

.photo-tile__meta {
  bottom: 48px;
}

.photo-tile strong {
  right: 18px;
  bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.gallery--results {
  max-width: 1280px;
  padding: 64px 32px 96px;
}

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-card--lead {
    grid-column: 1 / -1;
    min-height: 520px;
  }

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

@media (max-width: 700px) {
  .home-showcase,
  .collection-band,
  .gallery--results {
    padding: 64px 18px;
  }

  .section-title {
    font-size: 36px;
    letter-spacing: 0;
  }

  .showcase-grid,
  .photo-grid,
  .photo-grid--results {
    grid-template-columns: 1fr;
  }

  .showcase-card--lead,
  .showcase-card,
  .photo-tile {
    min-height: 360px;
  }
}

/* ------------------------------------------------------------------- Card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--canvas-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: #dedede;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hairline-soft);
  border-bottom: 1px solid var(--hairline);
}

.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card__thumb img { transform: scale(1.025); }

.card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--body);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: color 0.2s ease, transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.card__fav svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.card__fav:hover {
  border-color: #d6d6d6;
  color: var(--ink);
}

.card__fav.is-active {
  color: var(--pink);
}

.card__fav.is-active svg {
  fill: currentColor;
  stroke: currentColor;
}

.card__fav:active { transform: scale(0.92); }

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card__category {
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.card__title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.card__author {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--charcoal);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tag:hover {
  border-color: rgba(0, 212, 164, 0.45);
  background: var(--brand-green-soft);
  color: var(--ink);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.card__price {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.card__cta {
  align-self: flex-start;
  margin-top: auto;
}

/* ----------------------------------------------------------------- Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--solid {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.btn--solid:hover { background: #000000; }

.btn--accent {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--primary);
  box-shadow: var(--shadow-brand);
}

.btn--accent:hover {
  background: var(--brand-green-deep);
  border-color: var(--brand-green-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}

.btn--outline:hover,
.btn--outline.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-primary);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  border-radius: var(--radius-md);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: #d6d6d6;
  color: var(--ink);
}

.btn--block { width: 100%; }

.btn--secondary {
  background: var(--canvas);
  border-color: var(--hairline);
  color: var(--ink);
}

.empty {
  margin: 0;
  padding: 32px;
  color: var(--body);
  text-align: center;
}

.empty a,
.link {
  color: var(--link);
  text-decoration: none;
}

.empty a:hover,
.link:hover {
  color: var(--link-deep);
  text-decoration: underline;
}

/* ------------------------------------------------------------------- Auth */
.page-auth { background: var(--canvas); }

.auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 130px);
  padding: 64px 24px;
}

.auth__card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--canvas-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
}

.auth--wide .auth__card { max-width: 560px; }

.auth__brand {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
}

.auth__lead {
  margin: 8px 0 28px;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.auth__alt {
  margin: 22px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.auth__alt a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth__back {
  display: block;
  margin-top: 16px;
  color: var(--body);
  font-size: 14px;
  text-align: center;
}

.auth__back:hover { color: var(--ink); }

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field span {
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas-elevated);
  color: var(--ink);
  padding: 9px 11px;
  font-size: 14px;
  line-height: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px var(--link-soft);
}

.form__error {
  margin: 0;
  color: var(--error);
  font-size: 14px;
  line-height: 20px;
}

/* -------------------------------------------------------------- Dashboard */
.dash {
  max-width: 1150px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.dash__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.dash__eyebrow {
  margin: 0;
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.dash__title {
  margin: 4px 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0;
}

.dash__email {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.dash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.dash__stats {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.dash__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 32px;
}

.dash__panel {
  overflow-x: auto;
  background: var(--canvas-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.dash > .dash__panel { margin-top: 32px; }

.dash__panel--side {
  align-self: start;
}

.dash__subtitle {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.dash__muted {
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.dash__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.dash__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.dash__badge {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.dash__note {
  margin: 18px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.supporter-partner-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  border: 1px solid rgba(0, 212, 164, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--canvas), var(--brand-green-soft));
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
}

.supporter-partner-cta__title {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

.supporter-partner-cta__text {
  max-width: 680px;
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 21px;
}

.supporter-partner-cta__button {
  min-width: 292px;
  min-height: 48px;
  padding-inline: 24px;
  box-shadow: 0 10px 26px rgba(16, 17, 20, 0.12);
}

.license-collection {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.license-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 176px;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--canvas), var(--surface-soft));
  padding: 14px;
  box-shadow: var(--shadow-1);
}

.license-card__media {
  display: block;
  overflow: hidden;
  width: 140px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.license-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.license-card__body {
  min-width: 0;
}

.license-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.license-card__date {
  color: var(--steel);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.license-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.license-card__title a:hover {
  color: var(--link-deep);
  text-decoration: underline;
}

.license-card__meta,
.license-card__terms {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.license-card__terms {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.license-card__actions {
  display: grid;
  gap: 8px;
}

.license-card__actions .btn {
  width: 100%;
}

.license-card__view {
  background: var(--canvas);
  border-color: var(--hairline);
  color: var(--ink);
}

.license-card__view:hover,
.license-card__view:focus-visible {
  background: var(--surface);
  border-color: var(--stone);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 17, 20, 0.05);
}

.license-card__download {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.license-card__download:hover,
.license-card__download:focus-visible {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 212, 164, 0.18);
}

.license-card__amount {
  display: grid;
  gap: 2px;
  justify-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  padding: 10px 12px;
}

.license-card__amount span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.license-card__amount strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .supporter-partner-cta,
  .license-card {
    grid-template-columns: 1fr;
  }

  .supporter-partner-cta__button {
    width: 100%;
    min-width: 0;
  }

  .license-card {
    align-items: stretch;
  }

  .license-card__media {
    width: 100%;
  }

  .license-card__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 620px) {
  .supporter-partner-cta {
    padding: 18px;
  }

  .supporter-partner-cta__title {
    font-size: 19px;
    line-height: 27px;
  }

  .license-card__actions {
    grid-template-columns: 1fr;
  }

  .license-card__amount {
    justify-items: start;
  }
}

.dash__app-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ Admin shell */
.admin-fixed {
  position: sticky;
  top: 64px;
  z-index: 40;
  margin: -8px -24px 32px;
  padding: 8px 24px 18px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--hairline-soft);
  backdrop-filter: saturate(180%) blur(16px);
}

.admin-fixed .dash__header {
  padding-bottom: 24px;
}

.artist-fixed,
.supporter-fixed {
  position: static;
  top: auto;
  z-index: auto;
}

.admin-nav {
  margin-top: 24px;
}

.admin-nav .btn {
  min-width: 220px;
  background: var(--canvas);
  border-color: var(--hairline);
  color: var(--ink);
}

.admin-nav .btn:hover,
.admin-nav .btn:focus-visible {
  border-color: rgba(0, 212, 164, 0.45);
  background: var(--brand-green-soft);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 212, 164, 0.12);
}

.admin-nav .btn.is-active,
.admin-nav .btn.is-active:hover,
.admin-nav .btn.is-active:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: none;
}

/* ---------------------------------------------------- Marketplace charts */
.market-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 32px;
}

.dashboard-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 252, 0.96)),
    var(--canvas-elevated);
  padding: 22px;
  box-shadow: var(--shadow-1);
}

.dashboard-card--wide {
  grid-column: 1 / -1;
}

.dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-card__header .dash__subtitle {
  margin-bottom: 0;
}

.dashboard-card__metric {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--charcoal);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.bar-chart,
.rank-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.bar-chart__row {
  --bar-color: var(--brand-green-deep);
  display: grid;
  gap: 8px;
}

.bar-chart__topline,
.rank-chart__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.bar-chart__topline span,
.rank-chart__topline span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-chart__topline strong,
.rank-chart__topline strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bar-chart__track,
.rank-chart__track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-pill);
  background: #eef1f5;
}

.rank-chart__track {
  height: 8px;
}

.bar-chart__fill,
.rank-chart__fill {
  display: block;
  width: var(--bar-value);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.bar-chart__row:nth-child(1),
.rank-chart__item:nth-child(1) { --bar-color: #101114; }

.bar-chart__row:nth-child(2),
.rank-chart__item:nth-child(2) { --bar-color: #00b88f; }

.bar-chart__row:nth-child(3),
.rank-chart__item:nth-child(3) { --bar-color: #3772cf; }

.bar-chart__row:nth-child(4),
.rank-chart__item:nth-child(4) { --bar-color: #f97345; }

.bar-chart__row:nth-child(5),
.rank-chart__item:nth-child(5) { --bar-color: #7c5cc4; }

.bar-chart__row:nth-child(6) { --bar-color: #f59e0b; }
.bar-chart__row:nth-child(7) { --bar-color: #5f6f52; }
.bar-chart__row:nth-child(n + 8) { --bar-color: var(--charcoal); }

.rank-chart {
  list-style: none;
}

.rank-chart__item {
  --bar-color: var(--brand-green-deep);
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.rank-chart__position {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.rank-chart__body {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.dashboard-empty {
  margin: 0;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--body);
  padding: 14px;
  font-size: 14px;
  line-height: 20px;
}

.dashboard-pills,
.dashboard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-tags {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

/* -------------------------------------------------------- Curation queue */
.curation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.curation-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--canvas), var(--surface-soft));
  box-shadow: var(--shadow-1);
}

.curation-card__media {
  display: block;
  overflow: hidden;
  width: 132px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.curation-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curation-card__body {
  min-width: 0;
}

.curation-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.curation-card__date {
  color: var(--steel);
  font-size: 13px;
  font-weight: 500;
}

.curation-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.curation-card__meta {
  margin: 4px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.45;
}

.curation-card__tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.curation-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 500;
}

.curation-card__actions {
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------- Artist images */
.artist-submit-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  border: 1px solid rgba(0, 212, 164, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--canvas), var(--brand-green-soft));
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
}

.artist-submit-cta__title {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

.artist-submit-cta__text {
  max-width: 620px;
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 21px;
}

.artist-submit-cta__button {
  gap: 10px;
  min-width: 232px;
  min-height: 48px;
  padding-inline: 24px;
  box-shadow: 0 10px 26px rgba(16, 17, 20, 0.12);
}

.artist-submit-cta__button::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--brand-green);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.artist-submit-cta__button:hover,
.artist-submit-cta__button:focus-visible {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 212, 164, 0.18);
}

.artist-submit-cta__button:hover::before,
.artist-submit-cta__button:focus-visible::before {
  background: var(--ink);
  color: var(--on-primary);
}

.artist-images-panel {
  overflow: hidden;
}

.artist-image-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.artist-image-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 112px 132px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--canvas), var(--surface-soft));
  box-shadow: var(--shadow-1);
}

.artist-image-card__media {
  display: block;
  overflow: hidden;
  width: 132px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.artist-image-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-image-card__body {
  min-width: 0;
}

.artist-image-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.artist-image-card__title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
}

.artist-image-card__meta {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.artist-image-card__reason {
  margin: 10px 0 0;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.06);
  color: var(--error);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 18px;
}

.artist-image-card__stats {
  display: grid;
  justify-items: center;
  width: 112px;
  min-height: 76px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  padding: 12px 14px;
}

.artist-image-card__stats span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.artist-image-card__stats strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}

.artist-image-card__actions {
  display: flex;
  justify-content: flex-end;
  width: 132px;
}

.artist-image-card__actions .btn {
  width: 100%;
}

@media (max-width: 900px) {
  .artist-submit-cta {
    grid-template-columns: 1fr;
  }

  .artist-submit-cta__button {
    width: 100%;
    min-width: 0;
  }

  .artist-image-card {
    grid-template-columns: 112px minmax(0, 1fr) 104px;
  }

  .artist-image-card__media {
    width: 112px;
  }

  .artist-image-card__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    width: 100%;
  }

  .artist-image-card__actions .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .artist-submit-cta {
    padding: 18px;
  }

  .artist-submit-cta__title {
    font-size: 19px;
    line-height: 27px;
  }

  .artist-image-card {
    grid-template-columns: 1fr;
  }

  .artist-image-card__media {
    width: 100%;
  }

  .artist-image-card__stats {
    justify-items: start;
    width: 100%;
  }
}

@media (max-width: 860px) {
  .dash { padding: 40px 16px 72px; }

  .dash__cols { grid-template-columns: 1fr; }

  .dash__panel { padding: 18px; }

  .admin-fixed {
    top: 54px;
    margin: -8px -16px 28px;
    padding: 8px 16px 16px;
  }

  .admin-nav .btn {
    width: 100%;
    min-width: 0;
  }

  .market-dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-card--wide {
    grid-column: auto;
  }

  .dashboard-card {
    padding: 18px;
  }

  .dashboard-card__header {
    flex-direction: column;
    gap: 10px;
  }

  .curation-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .curation-card__media {
    width: 96px;
  }

  .curation-card__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .curation-card__actions .btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------------- Detail */
.detail {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.detail__back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 24px;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.detail__back:hover { color: var(--ink); }

.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}

.detail__media {
  margin: 0;
  overflow: hidden;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.detail__media img {
  width: 100%;
  object-fit: cover;
}

.detail__title {
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0;
}

.detail__author {
  margin: 0 0 22px;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.detail__desc {
  color: var(--body);
  font-size: 16px;
  line-height: 24px;
}

.detail__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.detail__label {
  display: block;
  margin-bottom: 5px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.detail__price {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.detail__owned {
  align-self: center;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.detail__cerrado {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 212, 164, 0.34);
  border-radius: var(--radius-lg);
  background: var(--brand-green-soft);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.5;
}

.detail__meta-wide { grid-column: 1 / -1; }

.detail__pricing { margin-top: 24px; }

.detail__note-muted {
  margin: 10px 0 0;
  color: var(--mute);
  font-size: 13px;
  line-height: 20px;
}

.split {
  margin: 28px 0 0;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 212, 164, 0.12), transparent 34%),
    var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.split__title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.split__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.split__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 14px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--charcoal);
  font-size: 14px;
  line-height: 20px;
}

.split__name {
  color: var(--ink);
  font-weight: 600;
}

.split__bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #e8ebf0;
}

.split__bar span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), var(--brand-green));
  box-shadow: 0 0 0 1px rgba(0, 212, 164, 0.12);
}

.split__value {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .detail {
    padding: 32px 16px 72px;
  }

  .detail__grid { grid-template-columns: 1fr; }

  .detail__meta { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .split { padding: 18px; }

  .split__list li {
    grid-template-columns: 1fr;
  }

  .split__value {
    justify-self: start;
  }
}

/* --------------------------------------------------------- Badges & stats */
.role-badge,
.status-pill,
.license-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--body);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.role-badge {
  margin-top: 8px;
}

.role-badge--admin,
.role-badge--curator {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-primary);
}

.role-badge--artist,
.role-badge--customer {
  background: var(--canvas-elevated);
}

.stat {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 212, 164, 0.12), transparent 34%),
    var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-1);
}

.stat__value {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.stat__label {
  margin: 0;
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.license-badge--editorial { border-color: var(--hairline); }
.license-badge--commercial_standard { border-color: rgba(245, 166, 35, 0.45); background: rgba(245, 166, 35, 0.1); color: #7a5200; }
.license-badge--institutional { border-color: rgba(0, 112, 243, 0.24); background: rgba(0, 112, 243, 0.08); color: var(--link-deep); }
.license-badge--educational { border-color: rgba(121, 40, 202, 0.24); background: rgba(121, 40, 202, 0.08); color: var(--violet); }

.status-pill--pending { border-color: rgba(245, 166, 35, 0.45); background: rgba(245, 166, 35, 0.1); color: #7a5200; }
.status-pill--published { border-color: rgba(0, 112, 243, 0.24); background: rgba(0, 112, 243, 0.08); color: var(--link-deep); }
.status-pill--rejected { border-color: rgba(238, 0, 0, 0.24); background: rgba(238, 0, 0, 0.08); color: var(--error); }
.status-pill--active { border-color: rgba(0, 212, 164, 0.36); background: var(--brand-green-soft); color: #087961; }
.status-pill--inactive { border-color: var(--hairline); background: var(--surface); color: var(--slate); }

/* ---------------------------------------------------------- Detail blocks */
.info-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.info-block__title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.info-block__text {
  margin: 0 0 12px;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.flag { font-weight: 600; }
.flag--yes { color: var(--link-deep); }
.flag--no { color: var(--mute); }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--body);
  list-style: none;
  font-size: 14px;
  line-height: 20px;
}

.checklist--review li { padding: 2px 0; }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.check--required { font-weight: 500; }

.review-workflow {
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--canvas), var(--surface-soft));
  box-shadow: var(--shadow-1);
}

.info-block.review-workflow {
  border-top: 1px solid var(--hairline);
}

.review-workflow__head {
  margin-bottom: 20px;
}

.review-workflow__head .info-block__title {
  margin: 4px 0 0;
}

.review-checklist {
  gap: 12px;
}

.review-checklist li {
  padding: 0;
}

.review-checklist .check {
  align-items: flex-start;
  gap: 12px;
  min-height: 28px;
}

.review-checklist .check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.review-notes {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-soft);
}

.review-notes textarea {
  min-height: 140px;
}

.review-decision {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--canvas), var(--surface-soft));
  box-shadow: var(--shadow-1);
}

.review-decision__head {
  margin-bottom: 18px;
}

.review-decision__head .dash__subtitle {
  margin-bottom: 0;
}

.review-decision__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.review-choice {
  display: grid;
  min-width: 0;
  gap: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  padding: 18px;
}

.review-choice--approve {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-color: rgba(0, 212, 164, 0.34);
  background: linear-gradient(180deg, var(--brand-green-soft), var(--canvas));
}

.review-choice--reject {
  border-color: rgba(239, 68, 68, 0.24);
  background:
    linear-gradient(180deg, rgba(239, 68, 68, 0.035), var(--canvas));
}

.review-choice h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.review-choice p {
  margin: 6px 0 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.review-choice__field {
  gap: 7px;
}

.review-choice__field textarea {
  min-height: 156px;
}

.review-choice__danger {
  justify-self: start;
  border-color: rgba(239, 68, 68, 0.34);
  color: var(--error);
}

.review-choice__danger:hover,
.review-choice__danger:focus-visible {
  border-color: rgba(239, 68, 68, 0.46);
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
}

@media (max-width: 760px) {
  .review-workflow,
  .review-decision {
    padding: 18px;
  }

  .review-choice--approve,
  .review-decision__grid {
    grid-template-columns: 1fr;
  }

  .review-choice .btn {
    width: 100%;
  }
}

/* -------------------------------------------------------------- Tabelas */
.report-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.report-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}

.report-table td:last-child {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: left;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.data-table__media {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.data-table__media img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}

.data-table__reason {
  margin: 5px 0 0;
  color: var(--error);
  font-size: 12px;
  line-height: 16px;
}

.data-table__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.data-table select {
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas-elevated);
  color: var(--ink);
  padding: 0 9px;
}

/* ---------------------------------------------------------- User manager */
.users-panel {
  overflow: hidden;
  padding: 0;
}

.users-panel__head {
  margin: 0;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--hairline-soft);
}

.user-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 24px 20px;
  background: linear-gradient(180deg, var(--canvas), var(--surface-soft));
}

.user-summary__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  padding: 14px 16px;
}

.user-summary__item span {
  min-width: 0;
  overflow: hidden;
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-summary__item strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}

.user-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline-soft);
  list-style: none;
}

.user-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(180px, 0.8fr) minmax(170px, 0.7fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--canvas);
  transition: background 0.2s ease;
}

.user-card:hover {
  background: var(--surface-soft);
}

.user-card:last-child {
  border-bottom: 0;
}

.user-card--inactive {
  background: #fcfcfd;
}

.user-card__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.user-card__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 212, 164, 0.36);
  border-radius: var(--radius-pill);
  background: var(--brand-green-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.user-card--inactive .user-card__avatar {
  border-color: var(--hairline);
  background: var(--surface);
  color: var(--slate);
}

.user-card__person {
  min-width: 0;
}

.user-card__name {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.user-card__email {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 3px;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card__email:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.user-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-card .role-badge {
  margin-top: 0;
}

.user-card__control {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.user-card__control span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.user-card__control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  line-height: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-card__control select:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px var(--link-soft);
}

.user-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.user-card__actions .btn {
  min-width: 118px;
  min-height: 40px;
}

.user-card__toggle--danger {
  border-color: rgba(239, 68, 68, 0.28);
  color: var(--error);
}

.user-card__toggle--danger:hover,
.user-card__toggle--danger:focus-visible {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
}

@media (max-width: 980px) {
  .user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-card {
    grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
    align-items: start;
  }

  .user-card__identity {
    grid-column: 1 / -1;
  }

  .user-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .users-panel__head,
  .user-summary,
  .user-card {
    padding-inline: 18px;
  }

  .user-summary {
    grid-template-columns: 1fr;
  }

  .user-card {
    grid-template-columns: 1fr;
  }

  .user-card__actions .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------------- Notices */
.notice {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas-elevated);
}

.notice p {
  margin: 0;
  color: var(--body);
}

.notice p + p { margin-top: 8px; }

.notice--pending { border-color: rgba(245, 166, 35, 0.45); background: rgba(245, 166, 35, 0.08); }
.notice--rejected { border-color: rgba(238, 0, 0, 0.24); background: rgba(238, 0, 0, 0.08); }
.notice--approved { border-color: rgba(0, 112, 243, 0.24); background: rgba(0, 112, 243, 0.08); }
.notice__reason { color: var(--error); }

/* --------------------------------------------------------------- Submit */
.submit {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.submit__header { margin-bottom: 24px; }

.submit__title {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0;
}

.submit__lead {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 24px;
}

.form--card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.submit__step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--canvas-elevated), var(--surface-soft));
  box-shadow: 0 10px 28px rgba(16, 17, 20, 0.04);
}

.submit__step--basic {
  border-color: rgba(0, 212, 164, 0.22);
}

.submit__step legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.submit__step-n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--on-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
}

.submit__step legend em,
.submit__step .field em {
  color: var(--mute);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
}

.submit__review-note {
  margin: 0;
  color: var(--body);
}

.submit__hint {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.tag-field {
  gap: 14px;
}

.tag-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tag-mode__option {
  display: flex;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tag-mode__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-mode__option:has(input:checked) {
  border-color: rgba(0, 212, 164, 0.46);
  background: var(--brand-green-soft);
  box-shadow: 0 0 0 3px rgba(0, 212, 164, 0.1);
}

.tag-mode__option span {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.tag-mode__option strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.tag-mode__option small {
  color: var(--body);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.tag-auto-note {
  margin: 0;
  border: 1px solid rgba(0, 212, 164, 0.24);
  border-radius: var(--radius-md);
  background: var(--brand-green-soft);
  color: var(--body);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 21px;
}

.tag-auto-note[hidden],
.tag-manual[hidden] {
  display: none;
}

.tag-manual {
  display: grid;
  gap: 12px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  background: var(--canvas);
  padding: 14px;
}

.tag-options,
.tag-custom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-option {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  cursor: pointer;
}

.tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-option span,
.tag-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  color: var(--charcoal);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.tag-option input:checked + span {
  border-color: rgba(0, 212, 164, 0.5);
  background: var(--brand-green-soft);
  color: var(--ink);
}

.tag-token {
  cursor: pointer;
}

.tag-token span {
  color: var(--slate);
  font-size: 16px;
  line-height: 16px;
}

.tag-token:hover,
.tag-token:focus-visible {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.06);
}

.tag-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tag-create input {
  min-height: 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas-elevated);
  color: var(--ink);
  padding: 9px 11px;
  font-size: 14px;
  line-height: 20px;
}

.tag-create input:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px var(--link-soft);
}

.submit__preview img {
  max-width: 280px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.submit__url summary {
  color: var(--body);
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
}

.submit__url[open] summary { margin-bottom: 10px; }

input[type="file"] {
  color: var(--body);
  font: inherit;
}

.form__progress {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 620px) {
  .submit { padding: 40px 16px 72px; }
  .field-row { grid-template-columns: 1fr; }
  .tag-mode,
  .tag-create { grid-template-columns: 1fr; }
  .tag-create .btn { width: 100%; }
  .data-table__media span { display: none; }
}

/* --------------------------------------------------------------- Wallet */
.wallet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wallet__balance {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.wallet__balance span {
  color: var(--body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

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

.wallet__topup input {
  width: 112px;
  min-height: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas-elevated);
  color: var(--ink);
  padding: 0 10px;
}

.wallet__ledger { margin-top: 16px; }
.wallet__pos { color: var(--link-deep); font-weight: 600; }
.wallet__neg { color: var(--error); font-weight: 600; }

/* ------------------------------------------------------- Applications */
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.panel-head .dash__subtitle { margin: 0; }

.panel-head .link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.panel-head .link:hover {
  border-color: rgba(0, 212, 164, 0.45);
  background: var(--brand-green-soft);
  color: var(--ink);
}

.apps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--canvas), var(--surface-soft));
  box-shadow: var(--shadow-1);
}

.app-card__info {
  display: flex;
  flex: 1;
  min-width: 240px;
  flex-direction: column;
  gap: 8px;
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-card__name {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.app-card__email {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
}

.app-card__bio,
.app-card__motiv {
  margin: 0;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.5;
}

.app-card__motiv {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 212, 164, 0.26);
  border-radius: var(--radius-md);
  background: var(--brand-green-soft);
}

.app-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .app-card {
    grid-template-columns: 1fr;
  }

  .app-card__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------- AI box */
.ai-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas-elevated);
}

.ai-box__title {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}

.ai-box--approve { border-color: rgba(0, 112, 243, 0.24); background: rgba(0, 112, 243, 0.08); }
.ai-box--reject { border-color: rgba(238, 0, 0, 0.24); background: rgba(238, 0, 0, 0.08); }

/* ------------------------------------------------------------------ Error */
.errorpage {
  max-width: 560px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.errorpage__code {
  margin: 0;
  color: var(--hairline);
  font-size: 72px;
  font-weight: 600;
  line-height: 80px;
  letter-spacing: 0;
}

.errorpage__title {
  margin: 8px 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0;
}

.errorpage__detail {
  margin: 0 0 28px;
  color: var(--body);
}

/* ----------------------------------------------------------------- Footer */
.site-footer {
  margin-top: 0;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  color: var(--body);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 24px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 20px;
}

.site-footer__inner span:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%) translateY(16px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-primary);
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  font-size: 14px;
  line-height: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--error { background: var(--error); }

/* ------------------------------------------------------------- Motion */
body.is-leaving { opacity: 0; }
body.is-leaving .page-progress { opacity: 1; transform: scaleX(0.9); }

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #007cf0, #00dfd8, #7928ca, #ff0080, #f9cb28);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.page-progress.is-active {
  opacity: 1;
  transform: scaleX(0.75);
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-enter { animation: pageEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }

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

.grid .card {
  animation: cardIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 36ms);
}

@keyframes favPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.card__fav.just-toggled { animation: favPulse 0.36s ease; }

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-top-color: #ffffff;
  border-radius: 9999px;
  animation: spin 0.65s linear infinite;
}

.btn--outline.is-loading::after,
.btn--ghost.is-loading::after {
  border-color: rgba(23, 23, 23, 0.22);
  border-top-color: var(--ink);
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  body.is-leaving { opacity: 1; }
}
