@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg-primary: #0b0b0b;
  --bg-secondary: #18181b;
  --bg-elevated: rgba(20, 20, 24, 0.82);
  --blue-primary: #0b71aa;
  --blue-neon: #4cc9f0;
  --text-primary: #fafafa;
  --text-secondary: #8a8b93;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(76, 201, 240, 0.22);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 24px 80px rgba(11, 113, 170, 0.22);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shell-width: min(1240px, calc(100% - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(76, 201, 240, 0.12), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(11, 113, 170, 0.18), transparent 26%),
    linear-gradient(180deg, #060608 0%, #0b0b0b 48%, #111215 100%);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(12px);
}

body::before {
  top: 14%;
  left: -80px;
  width: 240px;
  height: 240px;
  background: rgba(76, 201, 240, 0.12);
  border-radius: 50%;
}

body::after {
  right: -60px;
  bottom: 18%;
  width: 280px;
  height: 280px;
  background: rgba(11, 113, 170, 0.16);
  border-radius: 50%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: var(--shell-width);
  margin: 0 auto;
  padding: 18px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(9, 11, 14, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(76, 201, 240, 0.28);
  background: linear-gradient(160deg, rgba(76, 201, 240, 0.22), rgba(11, 113, 170, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(11, 113, 170, 0.35);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
}

.brand-mark::before {
  border: 2px solid rgba(76, 201, 240, 0.75);
  clip-path: polygon(0 0, 100% 0, 56% 46%, 100% 100%, 0 100%, 42% 52%);
}

.brand-mark::after {
  inset: 12px;
  background: linear-gradient(180deg, rgba(76, 201, 240, 0.9), rgba(11, 113, 170, 0.3));
  clip-path: polygon(18% 0, 100% 0, 48% 100%, 0 100%);
}

.nav-links,
.actions-row,
.badge-row,
.inline-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.96rem;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #041017;
  background: linear-gradient(135deg, var(--blue-neon), #87e6ff);
  box-shadow: 0 18px 40px rgba(76, 201, 240, 0.24);
}

.btn-secondary {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(10, 15, 18, 0.56);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  color: var(--text-secondary);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.btn-danger {
  color: #ffd9dd;
  border-color: rgba(255, 90, 105, 0.24);
  background: rgba(136, 18, 32, 0.18);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.surface,
.card,
.panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.92), rgba(12, 14, 18, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 22px;
}

.section {
  padding: 40px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.eyebrow,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(76, 201, 240, 0.16);
  border-radius: 999px;
  background: rgba(9, 16, 20, 0.72);
  color: var(--blue-neon);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-neutral {
  color: var(--text-secondary);
}

.tag-owned {
  color: #98f5d7;
  border-color: rgba(56, 214, 158, 0.2);
  background: rgba(12, 38, 31, 0.52);
}

.tag-featured {
  color: #c7f3ff;
}

.headline-xl,
.headline-lg,
.headline-md {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
}

.headline-xl {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.headline-lg {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.headline-md {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.lead,
.muted,
.empty-state p,
.detail-list span,
.meta-list span {
  color: var(--text-secondary);
  line-height: 1.7;
}

.grid-2,
.grid-3,
.grid-4,
.metrics-grid,
.cards-grid,
.gallery-grid,
.form-grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.cards-grid,
.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  color: var(--text-primary);
  background: rgba(7, 11, 14, 0.72);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(76, 201, 240, 0.44);
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.12);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.field {
  display: grid;
  gap: 10px;
}

.field label {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.metric-card {
  padding: 22px;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.empty-state {
  padding: 24px;
  text-align: center;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}

.status-message {
  padding: 14px 16px;
  border: 1px solid rgba(76, 201, 240, 0.22);
  border-radius: 16px;
  background: rgba(11, 25, 32, 0.58);
  color: #cceefa;
}

.status-message.is-error {
  border-color: rgba(255, 90, 105, 0.22);
  background: rgba(66, 15, 25, 0.58);
  color: #ffd6db;
}

.status-message.is-success {
  border-color: rgba(56, 214, 158, 0.24);
  background: rgba(14, 43, 34, 0.62);
  color: #dcfff2;
}

.hidden {
  display: none !important;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  text-align: left;
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-shell {
  padding: 36px 0 54px;
}

.footer-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
}

@media (max-width: 1080px) {
  .grid-3,
  .cards-grid,
  .metrics-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    width: min(100% - 20px, 100%);
  }

  .topbar-inner {
    padding: 14px;
    border-radius: 24px;
  }

  .nav-links {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .cards-grid,
  .metrics-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .actions-row {
    width: 100%;
  }

  .actions-row .btn {
    width: 100%;
  }

  .shell {
    width: min(100% - 20px, 100%);
  }
}
