@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&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: "Nunito", "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: 18px;
  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: "Nunito", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #091018 url("/favicon.png") center/cover no-repeat;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.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: 14px;
  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: #fff6f7;
  border-color: rgba(255, 90, 105, 0.28);
  background: linear-gradient(135deg, #b1142f, #ff3152);
  box-shadow: 0 18px 40px rgba(255, 49, 82, 0.2);
}

.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(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  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: var(--text-primary);
}

.headline-xl,
.headline-lg,
.headline-md {
  margin: 0;
  font-family: "Nunito", "Segoe UI", 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: "Nunito", "Segoe UI", 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%);
  }
}

/* Professional UI refresh */
:root {
  --bg-primary: #080a0d;
  --bg-secondary: #10141a;
  --bg-elevated: #151a22;
  --blue-primary: #1778c2;
  --blue-neon: #58c7f7;
  --accent-green: #32d17c;
  --text-primary: #f6f8fb;
  --text-secondary: #a4adba;
  --text-tertiary: #737d8b;
  --border-soft: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(88, 199, 247, 0.32);
  --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.34);
  --shadow-glow: 0 18px 44px rgba(24, 116, 189, 0.18);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shell-width: min(1320px, calc(100% - 48px));
}

body {
  background: #080a0d;
  color: var(--text-primary);
  letter-spacing: 0;
}

body::before,
body::after {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.topbar-inner {
  border-radius: var(--radius-md);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(9, 12, 16, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.brand {
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}

.btn-primary {
  color: #061018;
  background: linear-gradient(180deg, #72d7ff, #42bdec);
  box-shadow: 0 14px 34px rgba(66, 189, 236, 0.2);
}

.btn-secondary {
  border-color: rgba(88, 199, 247, 0.28);
  background: rgba(22, 37, 50, 0.78);
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
}

.btn-danger {
  background: linear-gradient(180deg, #e94861, #b82238);
  box-shadow: 0 14px 34px rgba(232, 72, 97, 0.18);
}

.btn-info {
  color: #061018;
  border-color: rgba(116, 228, 255, 0.22);
  background: linear-gradient(180deg, #89f0ff, #45c5e6);
}

.surface,
.card,
.panel {
  border-radius: var(--radius-md);
  border-color: rgba(255, 255, 255, 0.1);
  background: #121720;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.section {
  padding: 34px 0;
}

.eyebrow,
.pill,
.tag {
  border-radius: var(--radius-sm);
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.045);
}

.headline-xl {
  font-size: 4.75rem;
}

.headline-lg {
  font-size: 3rem;
}

.headline-md {
  font-size: 1.8rem;
}

.input,
.textarea,
.select {
  border-radius: var(--radius-sm);
  background: #0b1118;
}

.data-table th,
.data-table td {
  padding: 16px 14px;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 760px) {
  :root {
    --shell-width: min(100% - 24px, 100%);
  }

  .topbar-inner {
    border-radius: var(--radius-md);
  }

  .headline-xl {
    font-size: 2.65rem;
  }

  .headline-lg {
    font-size: 2.05rem;
  }
}
