:root {
  --ink: #1f2428;
  --muted: #667078;
  --line: #e4e8ea;
  --paper: #ffffff;
  --wash: #f6f7f3;
  --coral: #ff6f61;
  --teal: #138a8a;
  --yellow: #f2c94c;
  --charcoal: #20272c;
  --shadow: 0 18px 50px rgba(31, 36, 40, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(246, 247, 243, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 232, 234, .75);
}

.brand, .nav, .actions, .trust-row, .panel-title {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--yellow);
  font-size: 13px;
}

.nav { gap: 20px; font-size: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.button.ghost {
  background: transparent;
  color: var(--charcoal);
}

.button.large { min-height: 52px; padding: 0 24px; }
.button.full { width: 100%; }

.flash {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid #dbe7dc;
  border-radius: 8px;
  background: #f1fff4;
  color: #24623a;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
  max-width: 1240px;
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.hero h1, .portfolio-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .95;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.actions { gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust-row { gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 14px; }
.trust-row span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--coral); }

.hero-visual img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band div {
  padding: 30px 32px;
  background: var(--paper);
}

.band strong { display: block; margin-bottom: 6px; font-size: 22px; }
.band span, .muted { color: var(--muted); }

.section, .legal {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 32px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2, .panel h2, .legal h1, .auth-panel h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

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

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

.creator-card, .empty-card, .album-card, .panel, .form-card, .media-kit-card, .profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(31, 36, 40, .06);
}

.creator-card {
  overflow: hidden;
}

.creator-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.creator-card div, .empty-card, .album-card { padding: 18px; }
.creator-card h3, .album-card h3 { margin: 0 0 8px; }
.creator-card p, .album-card p { min-height: 48px; color: var(--muted); }
.creator-card span { color: var(--teal); font-weight: 800; }

.showcase-page h1 { margin: 0 0 12px; font-size: clamp(40px, 5vw, 66px); line-height: 1.02; }

.creator-showcase-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .84));
}

.creator-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.creator-showcase-card h2 {
  margin: 0;
  font-size: 24px;
}

.creator-head .avatar {
  width: 56px;
  height: 56px;
}

.creator-stats {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-stats .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, .7);
}

.creator-work-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pagination {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.pagination-info {
  color: var(--muted);
  font-size: 14px;
}

.button.disabled {
  opacity: .45;
  pointer-events: none;
}

.creator-work-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.creator-work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.creator-work-card figcaption {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}

.album-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.album-card-head h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.danger-link {
  flex: 0 0 auto;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

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

.auth-panel.wide { place-items: start center; }

.form-card {
  width: min(100%, 460px);
  padding: 30px;
}

.wide-form { width: min(100%, 760px); }

label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }

.inline-form, .upload-form {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.inline-form {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
}

.upload-form {
  grid-template-columns: minmax(150px, .8fr) minmax(210px, 1fr) minmax(220px, 1.2fr) auto;
  align-items: end;
}

.inline-form input, .upload-form input, .upload-form select {
  background: var(--paper);
}

.upload-form label {
  margin: 0;
}

.dashboard {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 32px 80px;
}

.profile-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 98px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 16px;
}

.large-avatar { width: 132px; height: 132px; }

.profile-panel h1 { margin: 0 0 8px; }
.profile-panel p { color: var(--muted); line-height: 1.5; }
.profile-panel .button { margin-top: 10px; }

.dashboard-main { display: grid; gap: 20px; }
.panel { padding: 24px; }
.panel-title { justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-title h2 { font-size: 28px; }

.social-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #f8faf7;
}

.social-card strong { display: block; font-size: 24px; margin-bottom: 6px; }
.social-card a { color: var(--teal); font-weight: 800; }

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

.mini-grid span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.mini-grid b {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

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

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.photo-grid figcaption span {
  min-width: 0;
}

.photo-grid figcaption a {
  color: var(--coral);
  font-weight: 800;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 36px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 32px 42px;
}

.portfolio-hero h1 { font-size: clamp(46px, 7vw, 76px); }
.media-kit-card { padding: 24px; }
.verified { color: var(--coral); font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }

.legal {
  max-width: 860px;
  line-height: 1.7;
}

.legal h2 { margin-top: 32px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef0ec;
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .portfolio-hero, .dashboard, .social-card {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding: 40px 22px 56px; }
  .hero h1 { font-size: 48px; }
  .band, .cards, .album-grid { grid-template-columns: 1fr; }
  .creator-showcase-grid, .creator-work-grid { grid-template-columns: 1fr; }
  .inline-form, .upload-form { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-panel { position: static; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .hero h1, .portfolio-hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .photo-grid, .mini-grid { grid-template-columns: 1fr; }
  .button.large { width: 100%; }
}
