:root {
  --bg: #0e1324;
  --bg-soft: #131a30;
  --panel: #171f38;
  --panel-2: #1c2542;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7ff;
  --muted: #97a0bd;
  --primary: #62e2b4;
  --primary-2: #7db8ff;
  --danger: #ff6b81;
  --shadow: 0 25px 70px rgba(5, 10, 25, 0.45);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(98, 226, 180, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(125, 184, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #0b1020 0%, #10162b 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); }
.muted { color: var(--muted); }
.app-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(13, 18, 35, 0.86);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0b1220;
  background: linear-gradient(135deg, var(--primary), #9cf0d1);
}
.brand__text { letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-actions { display: flex; align-items: center; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  color: var(--text);
}
.button--hero {
  color: #07111e;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 40px rgba(98, 226, 180, 0.25);
}
.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.button--full { width: 100%; }

.avatar-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}
.avatar-button img { width: 100%; height: 100%; object-fit: cover; }
.profile-menu { position: relative; }
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 240px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(18, 24, 43, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.profile-dropdown__wallet {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.profile-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
}
.profile-dropdown a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.hero {
  padding: 62px 0 32px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero__panel {
  background: linear-gradient(180deg, rgba(28, 37, 66, 0.78), rgba(16, 22, 43, 0.82));
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
}
.hero__art {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero__tile {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.hero__tile--offset { margin-top: 32px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.section { padding: 28px 0 10px; }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section__head h2, .section__head h1, .profile-card__name, .hero h1 { margin: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.card, .panel {
  background: linear-gradient(180deg, rgba(24, 32, 56, 0.98), rgba(17, 23, 40, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card {
  overflow: hidden;
}
.card__media { aspect-ratio: 1 / 1; overflow: hidden; background: #0f1528; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 18px; }
.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.creator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.creator img { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); }

.seller-grid, .collection-grid, .admin-grid, .form-grid, .stats-grid {
  display: grid;
  gap: 18px;
}
.seller-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-grid, .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.seller-card, .collection-card, .metric-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.collection-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

.profile-cover {
  height: 220px;
  border-radius: 0 0 28px 28px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.profile-card {
  text-align: center;
  padding: 0 0 18px;
  margin-top: -58px;
}
.profile-card__avatar {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  border: 4px solid #10162b;
  margin: 0 auto;
  overflow: hidden;
}
.profile-card__name { font-size: 42px; margin-top: 18px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
}
.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 24px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
}
.tab.is-active { color: #07111e; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }

.empty-state, .cta-panel, .panel {
  padding: 28px;
}
.cta-panel {
  text-align: center;
  margin: 34px auto 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.step {
  padding: 24px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.step__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #07111e;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.filter-chip.is-active { color: #07111e; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }

.field, .select, .textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 12px 14px;
}
.textarea { min-height: 140px; resize: vertical; }
.label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th { color: var(--muted); font-weight: 600; }
.status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status--on_sale, .status--confirmed, .status--completed, .status--paid_out {
  color: #07111e;
  background: linear-gradient(135deg, var(--primary), #9cf0d1);
}
.status--sold { background: rgba(125, 184, 255, 0.18); color: #b8d6ff; }
.status--created, .status--pending { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.status--approved { background: rgba(98, 226, 180, 0.14); color: #9cf0d1; }
.status--rejected, .status--failed { background: rgba(255, 107, 129, 0.16); color: #ff9cad; }

.notice {
  padding: 16px 18px;
  border: 1px solid rgba(98, 226, 180, 0.22);
  border-radius: 18px;
  background: rgba(98, 226, 180, 0.08);
  color: #cdf7e8;
}

.stack { display: grid; gap: 18px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 26px;
}
.detail-media {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--line);
}
.detail-side .panel + .panel { margin-top: 18px; }

.site-footer {
  margin-top: 56px;
  padding: 40px 0 54px;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 22, 0.45);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 22px;
}
.site-footer h4 { margin: 0 0 12px; }
.site-footer a { display: block; color: var(--muted); margin-bottom: 10px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 980px) {
  .hero__grid, .detail-grid, .site-footer__grid, .admin-grid, .stats-grid, .form-grid, .cards, .seller-grid, .collection-grid, .steps {
    grid-template-columns: 1fr 1fr;
  }
  .site-nav { display: none; }
}

@media (max-width: 700px) {
  .hero__grid, .detail-grid, .site-footer__grid, .admin-grid, .stats-grid, .form-grid, .cards, .seller-grid, .collection-grid, .steps {
    grid-template-columns: 1fr;
  }
  .site-header__inner { min-height: 70px; }
  .site-actions .button--ghost { display: none; }
  .hero__panel, .panel, .cta-panel { padding: 22px; }
  .profile-card__name { font-size: 30px; }
}
