:root {
  --bg: #0f1417;
  --panel: rgba(22, 28, 32, 0.72);
  --panel-strong: rgba(22, 28, 32, 0.9);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-strong: rgba(255, 255, 255, 0.2);
  --text: #f3f6f7;
  --muted: rgba(243, 246, 247, 0.7);
  --accent: #7aa0ff;
  --accent-strong: #a8c1ff;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  --glow: 0 0 32px rgba(122, 160, 255, 0.25);
  --danger: #e57272;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 61, 71, 0.3), transparent 50%),
    radial-gradient(circle at 82% 20%, rgba(17, 22, 28, 0.35), transparent 45%),
    #0d1115;
  color: var(--text);
  min-height: 100vh;
}

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

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 28px 18px 32px;
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}

.page-shell::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(122, 160, 255, 0.25), transparent 60%);
  top: -140px;
  left: -80px;
}

.page-shell::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(91, 118, 136, 0.18), transparent 60%);
  bottom: -220px;
  right: -120px;
}

.glass-surface {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.glow-border {
  position: relative;
}

.glow-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(122, 160, 255, 0.18);
  pointer-events: none;
  box-shadow: var(--glow);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.logo-text {
  display: grid;
  gap: 4px;
}

.logo-brand {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 1rem;
  color: var(--text);
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, #4e6ad8 100%);
  color: #0c1024;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke-strong);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: var(--muted);
}

.eyebrow .line {
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.headline {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: 0.02em;
  margin: 10px 0 6px;
}

.lede {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.auth-grid {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  gap: 26px;
  align-items: stretch;
}

.auth-panel {
  padding: 32px 30px;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.auth-panel .card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.form-card {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input,
.field select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 1rem;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(122, 160, 255, 0.35);
  border-color: var(--accent);
}

.error-box {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(229, 114, 114, 0.45);
  background: rgba(229, 114, 114, 0.12);
  color: #f6d4d4;
  font-weight: 600;
}

.helper {
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.pill-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-nav a {
  font-size: 0.72rem;
  color: var(--muted);
}

.dash-shell {
  min-height: 100vh;
  padding: 28px 24px 36px;
  display: grid;
  gap: 18px;
}

.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}

.dash-main {
  display: grid;
  gap: 16px;
}

.dash-main > * {
  animation: rise-in 0.5s ease both;
}

.dash-main > *:nth-child(2) {
  animation-delay: 0.05s;
}

.dash-main > *:nth-child(3) {
  animation-delay: 0.1s;
}

.dash-main > *:nth-child(4) {
  animation-delay: 0.15s;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(120deg, rgba(20, 26, 32, 0.95), rgba(14, 18, 23, 0.92));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.crumb {
  color: var(--muted);
  font-size: 0.95rem;
}

.crumb strong {
  color: var(--text);
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  padding: 26px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(23, 30, 36, 0.92), rgba(16, 21, 27, 0.86));
  border: 1px solid var(--stroke);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(122, 160, 255, 0.08), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(60, 80, 120, 0.12), transparent 50%);
  pointer-events: none;
}

.dashboard-hero .copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.dashboard-hero .headline {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.dashboard-hero .helper {
  max-width: 520px;
  line-height: 1.6;
}

.dashboard-hero .hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: start;
}

.dash-sidebar {
  align-self: start;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(22, 28, 34, 0.9), rgba(14, 18, 23, 0.9));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 18px;
}

.dash-sidebar .logo-lockup {
  letter-spacing: 0.12em;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-section .dx-menu {
  display: grid;
  gap: 6px;
  padding: 0;
  background: transparent;
}

.nav-section .dx-menu li {
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(122, 160, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-item.active .nav-dot {
  background: var(--accent);
  transform: scale(1.2);
}

.nav-item span {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dash-header {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(125deg, rgba(122, 160, 255, 0.12), rgba(22, 28, 32, 0.9));
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.dash-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-meta .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tile {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.tile h3 {
  margin: 0 0 6px;
  letter-spacing: 0.03em;
}

.chart {
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(122, 160, 255, 0.18), rgba(122, 160, 255, 0));
  border: 1px solid rgba(122, 160, 255, 0.2);
  display: grid;
  place-items: center;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.stat-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.radio-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.radio-card input[type="radio"] {
  accent-color: var(--accent);
  transform: scale(1.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--stroke);
}

th {
  color: var(--text);
  font-weight: 700;
}

.news-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122, 160, 255, 0.2);
  color: var(--accent-strong);
  border: 1px solid rgba(122, 160, 255, 0.45);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.muted-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5168c8);
  display: grid;
  place-items: center;
  color: #0d0b06;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.user-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.user-meta strong {
  color: var(--text);
  letter-spacing: 0.03em;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Hero layout (wie Demo) --- */
.hero {
  position: relative;
  width: min(1200px, 100%);
  min-height: 620px;
  border-radius: 26px;
  padding: 30px 36px 36px;
  overflow: hidden;
  background-color: #161c21;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(120deg, rgba(14, 18, 21, 0.92) 0%, rgba(14, 18, 21, 0.68) 50%, rgba(14, 18, 21, 0.28) 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.5);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 24, 28, 0.35) 0%, rgba(18, 24, 28, 0.75) 100%);
  pointer-events: none;
}

.hero .topbar,
.hero .main-grid {
  position: relative;
  z-index: 2;
}

.hero .main-grid {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  margin-top: 44px;
}

.hero .copy {
  flex: 1.15;
  min-width: 260px;
}

.hero .copy h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero .copy h1 span {
  display: block;
}

.hero .copy p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 26px;
  font-size: 1rem;
}

.hero .cards {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 260px;
}

.hero .card {
  position: relative;
  width: 260px;
  min-height: 380px;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(10px) scale(0.96);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  filter: saturate(0.9);
}

.hero .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.1) 10%, rgba(12, 14, 16, 0.75) 85%);
}

.hero .card-body {
  position: relative;
  z-index: 1;
}

.hero .card-kicker,
.hero .card-meta {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.72);
}

.hero .card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  margin: 8px 0 6px;
}

.hero .card.active {
  transform: translateY(-6px) scale(1.02);
  filter: saturate(1.05);
  box-shadow: 0 30px 56px rgba(0, 0, 0, 0.45);
}

.hero .card.desert {
  background-image:
    linear-gradient(180deg, rgba(120, 90, 62, 0.22), rgba(34, 24, 18, 0.85));
}

.hero .card.alpine {
  background-image:
    linear-gradient(180deg, rgba(54, 69, 96, 0.24), rgba(20, 27, 39, 0.88));
}

.hero .card.coast {
  background-image:
    linear-gradient(135deg, rgba(139, 203, 214, 0.3), rgba(36, 72, 92, 0.75)),
    url("demo/assets/card-coast.jpg");
}

.hero .controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.hero .progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  transition: all 0.3s ease;
}

.hero .dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.hero .arrows {
  display: flex;
  gap: 12px;
}

.hero .nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(26, 32, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero .nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .hero {
    padding: 28px;
  }

  .hero .main-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .cards {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 720px;
  }

  .hero .cards {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .card {
    width: min(100%, 320px);
  }

  .hero .controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Login form inside hero */
.login-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  max-width: 440px;
}

/* Login page: keep layout, only switch palette */
.page.login-crowz {
  padding: 46px 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(248, 239, 230, 0.92), transparent 48%),
    radial-gradient(circle at 84% 14%, rgba(223, 233, 255, 0.58), transparent 42%),
    #f5f6f8;
}

.page.login-crowz .hero {
  background-color: #f7f3ee;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(120deg, rgba(246, 241, 234, 0.98) 0%, rgba(242, 236, 228, 0.9) 52%, rgba(237, 241, 247, 0.88) 100%);
  border: 1px solid #e3dbd2;
  box-shadow: 0 30px 66px rgba(51, 39, 28, 0.14);
}

.page.login-crowz .hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(236, 228, 218, 0.28) 100%);
}

.page.login-crowz .logo-mark {
  border-color: #d7c8ba;
  background: linear-gradient(145deg, #f5c198 0%, #eca977 100%);
  color: #3d2d22;
}

.page.login-crowz .logo-brand {
  color: #2f241d;
}

.page.login-crowz .eyebrow {
  color: #7c7066;
}

.page.login-crowz .eyebrow .line {
  background: #6c8fe9;
}

.page.login-crowz .copy h1 {
  color: #201812;
}

.page.login-crowz .login-panel {
  background: rgba(252, 248, 243, 0.92);
  border-color: #dbd1c6;
  box-shadow: 0 18px 36px rgba(72, 55, 37, 0.12);
}

.page.login-crowz .field label {
  color: #5f544a;
}

.page.login-crowz .field input {
  background: #fff;
  border: 1px solid #d4cabd;
  color: #281f19;
}

.page.login-crowz .field input:focus {
  border-color: #708fe2;
  outline: 2px solid rgba(112, 143, 226, 0.25);
}

.page.login-crowz .btn {
  border-color: #5e7ddd;
  background: linear-gradient(135deg, #7da2ff 0%, #627fe2 100%);
  color: #0e1a3a;
}

.page.login-crowz .btn:hover {
  box-shadow: 0 14px 30px rgba(66, 90, 163, 0.28);
}

.page.login-crowz .hero .card {
  border-color: rgba(73, 57, 44, 0.18);
  box-shadow: 0 24px 52px rgba(39, 27, 18, 0.22);
}

.page.login-crowz .hero .card::before {
  background: linear-gradient(180deg, rgba(23, 17, 14, 0.16) 10%, rgba(23, 17, 14, 0.58) 85%);
}

.page.login-crowz .hero .card-kicker,
.page.login-crowz .hero .card-meta {
  color: rgba(255, 245, 236, 0.86);
}

.page.login-crowz .hero .card h3 {
  color: #fff4ec;
}

/* Dashboard extras */
.dash-main > * {
  animation: rise-in 0.5s ease both;
}

.dash-main > *:nth-child(2) {
  animation-delay: 0.05s;
}

.dash-main > *:nth-child(3) {
  animation-delay: 0.1s;
}

.dash-main > *:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-section .dx-menu {
  display: grid;
  gap: 6px;
  padding: 0;
  background: transparent;
}

.nav-section .dx-menu li {
  margin: 0;
}

/* News layout */
.news-container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.news-form-wrap {
  width: min(760px, 100%);
  margin-top: 8px;
}

.news-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.news-form-row .field {
  min-width: 0;
}

.news-form-row .helper {
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 4px;
}

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

.scope-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 13px 16px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  touch-action: manipulation;
}

.scope-pill input[type="radio"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.scope-pill.active {
  border-color: rgba(122, 160, 255, 0.75);
  background: rgba(122, 160, 255, 0.14);
}

.scope-pill:focus-within {
  border-color: rgba(122, 160, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(122, 160, 255, 0.3);
}

.scope-pill span {
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.news-list-stack {
  display: grid;
  gap: 12px;
}

.news-item {
  padding: 16px;
}

.news-file-input-hidden {
  display: none;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-btn {
  padding-inline: 12px;
}

.file-name {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .auth-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .dash-header {
    padding: 18px;
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: sticky;
    top: 12px;
    z-index: 20;
  }

  .nav-section .dx-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .news-container {
    padding: 16px;
  }

  .news-form-wrap {
    width: 100%;
  }

  .news-form-row {
    grid-template-columns: 1fr;
  }

  .scope-row {
    grid-template-columns: 1fr;
  }

  .file-row {
    flex-wrap: wrap;
  }

  .file-btn {
    width: 100%;
  }

  .file-name {
    width: 100%;
    white-space: normal;
    text-overflow: unset;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 20px 16px 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pill-nav {
    width: 100%;
  }

  .dash-shell {
    padding: 18px 14px 26px;
  }

  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-section .dx-menu {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Crowz inspired dashboard test page                                 */
/* ------------------------------------------------------------------ */
.crowz-wrap {
  --cw-peach: #f3f4f6;
  --cw-shell: #f5f2ec;
  --cw-side: #ece6de;
  --cw-ink: #1f1a17;
  --cw-muted: #877f75;
  --cw-line: #dbd3ca;
  --cw-soft: #e6f1ef;
  --cw-accent: #f0a83f;
  --cw-card: #efe8de;
  min-height: 100vh;
  padding: clamp(14px, 2.5vw, 28px);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.96), transparent 46%),
    radial-gradient(circle at 88% 92%, rgba(223, 231, 236, 0.45), transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f7f8fa 52%, #eef2f6 100%);
  display: grid;
  place-items: center;
}

.crowz-stage {
  width: min(1240px, 100%);
  min-height: min(900px, calc(100vh - 56px));
  border-radius: 34px;
  overflow: hidden;
  background: var(--cw-shell);
  color: var(--cw-ink);
  display: grid;
  grid-template-columns: 250px 1fr;
  box-shadow: 0 36px 86px rgba(41, 20, 8, 0.22);
}

.crowz-sidebar {
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 179, 132, 0.08), transparent 38%),
    linear-gradient(180deg, #6d4c3d 0%, #4a342b 52%, #1c1513 100%);
  border-right: 1px solid rgba(247, 225, 212, 0.12);
  padding: 34px 22px 28px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 28px;
}

.crowz-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f6ede6;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.crowz-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f80df;
}

.crowz-brand-dot:nth-child(2) {
  background: #f0a83f;
}

.crowz-brand-dot:nth-child(3) {
  background: #5bc5ba;
}

.crowz-brand-name {
  margin-left: 4px;
}

.crowz-profile {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.crowz-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #30261f;
  border: 2px solid rgba(102, 76, 58, 0.2);
  background: linear-gradient(145deg, #f7c39f 0%, #e7a278 100%);
  box-shadow: 0 10px 24px rgba(104, 70, 44, 0.22);
}

.crowz-profile h2 {
  margin: 0;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.05;
  color: #fff2ea;
}

.crowz-profile p {
  margin: 0;
  color: #d4b8a6;
  font-size: 0.84rem;
}

.crowz-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  padding-top: 12px;
}

.crowz-nav-item {
  color: #ecd7ca;
  font-size: 0.93rem;
  border-radius: 10px;
  padding: 8px 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.crowz-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff8f3;
  transform: translateX(2px);
}

.crowz-nav-item.active {
  color: #fff7f2;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
}

.crowz-logout {
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
  color: #d0b29f;
}

.crowz-logout a {
  color: #fff6ef;
  font-weight: 600;
}

.crowz-main {
  padding: clamp(20px, 2.4vw, 34px);
  display: grid;
  gap: 18px;
}

.crowz-main > section {
  animation: crowz-rise 0.42s ease both;
}

.crowz-main > section:nth-child(2) {
  animation-delay: 0.07s;
}

.crowz-main > section:nth-child(3) {
  animation-delay: 0.14s;
}

.crowz-head {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.crowz-head h1,
.crowz-card h2,
.crowz-channels h2 {
  margin: 0;
  font-family: "DM Serif Display", "Times New Roman", serif;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.crowz-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.crowz-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 12px;
}

.crowz-stats article {
  border-top: 1px solid var(--cw-line);
  padding-top: 8px;
}

.crowz-stats span {
  display: block;
  font-size: 0.8rem;
  color: var(--cw-muted);
  margin-bottom: 3px;
}

.crowz-stats strong {
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  letter-spacing: 0.01em;
}

.crowz-head-note {
  margin: 12px 0 0;
  color: #8c847b;
  font-size: 0.86rem;
}

.crowz-upgrade {
  border-radius: 18px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 20% -40%, rgba(95, 197, 186, 0.35), transparent 60%),
    linear-gradient(160deg, #ece4d8 0%, #e6ddd1 100%);
  border: 1px solid rgba(120, 85, 63, 0.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.crowz-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(29, 21, 17, 0.08);
  color: #5d554f;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  margin-bottom: 6px;
}

.crowz-upgrade h3 {
  margin: 0;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 0.98;
}

.crowz-upgrade p {
  margin: 4px 0 0;
  color: var(--cw-muted);
  font-size: 0.84rem;
}

.crowz-gauge {
  position: relative;
  width: 150px;
  height: 94px;
}

.crowz-gauge .arc {
  position: absolute;
  inset: auto auto 0 auto;
  width: 130px;
  height: 70px;
  border-radius: 130px 130px 0 0;
  border-top: 10px solid;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.crowz-gauge .arc-a {
  right: 2px;
  border-top-color: #1f1a17;
}

.crowz-gauge .arc-b {
  right: 20px;
  width: 110px;
  height: 58px;
  border-top-color: #f0a83f;
}

.crowz-gauge .arc-c {
  right: 38px;
  width: 90px;
  height: 46px;
  border-top-color: #6ec9bf;
}

.crowz-now {
  position: absolute;
  right: 14px;
  bottom: 5px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ef6b56;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.crowz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 16px;
}

.crowz-card {
  border-radius: 18px;
  background: #f7f3ee;
  border: 1px solid rgba(59, 37, 24, 0.08);
  padding: 16px 18px;
}

.crowz-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.crowz-card-head span {
  color: var(--cw-muted);
  font-size: 0.78rem;
}

.crowz-chart {
  position: relative;
  padding: 6px 0;
}

.crowz-chart svg {
  width: 100%;
  height: auto;
}

.crowz-chart polyline {
  fill: none;
  stroke: var(--cw-accent);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crowz-chart circle {
  fill: var(--cw-accent);
}

.crowz-chart-tooltip {
  position: absolute;
  left: 66%;
  top: 52%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--cw-line);
  box-shadow: 0 10px 18px rgba(45, 26, 13, 0.12);
}

.crowz-chart-tooltip strong {
  display: block;
  font-size: 1rem;
}

.crowz-chart-tooltip span {
  color: var(--cw-muted);
  font-size: 0.72rem;
}

.crowz-axis {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.74rem;
  color: var(--cw-muted);
}

.crowz-performers ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.crowz-performers li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.crowz-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f6b680 0%, #e19763 100%);
  color: #2a1f17;
  font-size: 0.68rem;
  font-weight: 700;
}

.crowz-performers strong {
  display: block;
  font-size: 0.9rem;
}

.crowz-performers span {
  display: block;
  color: var(--cw-muted);
  font-size: 0.75rem;
}

.crowz-performers em {
  font-style: normal;
  font-weight: 700;
  color: #3e3228;
}

.crowz-more {
  margin-top: 12px;
  display: inline-block;
  color: #3e3228;
  font-weight: 600;
  font-size: 0.9rem;
}

.crowz-channels {
  border-radius: 20px;
  background: var(--cw-soft);
  border: 1px solid rgba(83, 122, 118, 0.14);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) 1fr;
  gap: 16px;
  align-items: center;
}

.crowz-channels p {
  margin: 10px 0 0;
  color: #657d79;
  font-size: 0.88rem;
  max-width: 210px;
}

.crowz-channel-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: stretch;
}

.crowz-channel-list article {
  background: #fff;
  border: 1px solid rgba(67, 50, 39, 0.08);
  border-radius: 14px;
  padding: 14px 12px;
  display: grid;
  gap: 4px;
}

.crowz-channel-list strong {
  font-size: 0.9rem;
}

.crowz-channel-list span {
  color: #8b837a;
  font-size: 0.74rem;
}

.crowz-channel-list em {
  font-style: normal;
  font-size: 1.6rem;
  font-family: "DM Serif Display", "Times New Roman", serif;
}

.crowz-full-stats {
  border-radius: 14px;
  background: #66bdb6;
  color: #f4fffd;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  display: grid;
  place-items: center;
  text-align: center;
  text-transform: capitalize;
  padding: 12px;
}

.crowz-login-stage {
  width: min(1240px, 100%);
  border-radius: 34px;
  padding: clamp(20px, 2.8vw, 36px);
  background: #fff;
  border: 1px solid rgba(62, 41, 29, 0.12);
  box-shadow: 0 36px 86px rgba(41, 20, 8, 0.18);
}

.crowz-login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.crowz-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: stretch;
}

.crowz-login-copy h1 {
  margin: 0;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.92;
}

.crowz-login-kicker {
  margin: 0 0 6px;
  color: #7f756b;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.crowz-login-form-card {
  margin-top: 16px;
  background: #fbf8f4;
  border: 1px solid rgba(66, 43, 30, 0.1);
  max-width: 620px;
}

.crowz-login-form-card .field label {
  color: #655c54;
  font-weight: 600;
}

.crowz-login-form-card .field input {
  background: #fff;
  color: #2d241f;
  border: 1px solid #d7cec3;
}

.crowz-login-form-card .field input:focus {
  border-color: #9f7d66;
  outline: 2px solid rgba(159, 125, 102, 0.25);
}

.crowz-login-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crowz-login-panel {
  min-height: 250px;
  border-radius: 18px;
  border: 1px solid rgba(247, 225, 212, 0.18);
  padding: 16px;
  display: grid;
  align-content: end;
  gap: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.crowz-login-panel span {
  color: #d8c5b8;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
}

.crowz-login-panel strong {
  color: #fff4eb;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
}

.crowz-login-panel small {
  color: #ccb6a8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  font-weight: 700;
}

.crowd-witten {
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 179, 132, 0.12), transparent 38%),
    linear-gradient(180deg, #6d4c3d 0%, #4a342b 52%, #1c1513 100%);
}

.crowd-kirchhellen {
  background:
    radial-gradient(circle at 12% 8%, rgba(112, 156, 255, 0.18), transparent 42%),
    linear-gradient(180deg, #1a283f 0%, #152236 52%, #0c1626 100%);
}

.crowz-news-shell {
  padding: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.crowz-news-grid {
  display: grid;
  gap: 14px;
}

.crowz-news-form-card,
.crowz-news-table-card {
  background: #fbf8f4;
  border: 1px solid rgba(66, 43, 30, 0.1);
}

.crowz-form-stack {
  display: grid;
  gap: 12px;
}

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

.crowz-news-shell .field span {
  color: #655c54;
  font-weight: 600;
}

.crowz-news-shell .field input,
.crowz-news-shell .field select,
.crowz-news-shell .field textarea {
  background: #fff;
  color: #2d241f;
  border: 1px solid #d7cec3;
}

.crowz-news-shell .field input:focus,
.crowz-news-shell .field select:focus,
.crowz-news-shell .field textarea:focus {
  border-color: #9f7d66;
  outline: 2px solid rgba(159, 125, 102, 0.25);
}

.crowz-news-shell .scope-pill {
  background: #fff;
  border-color: #d7cec3;
}

.crowz-news-shell .scope-pill span {
  color: #3a312b;
}

.crowz-news-shell .scope-pill.active {
  border-color: #8a654c;
  background: #f4ece5;
}

.crowz-news-shell .news-table {
  color: #544a42;
}

.crowz-news-shell .news-table th {
  color: #241d18;
  border-bottom: 1px solid #d9d0c6;
}

.crowz-news-shell .news-table td {
  border-bottom: 1px solid #e7ded4;
}

.crowz-news-shell .file-name {
  color: #7b7066;
}

@keyframes crowz-rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1140px) {
  .crowz-login-grid {
    grid-template-columns: 1fr;
  }

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

  .crowz-channel-list {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .crowz-full-stats {
    min-height: 90px;
    grid-column: span 3;
  }
}

@media (max-width: 940px) {
  .crowz-stage {
    grid-template-columns: 1fr;
  }

  .crowz-sidebar {
    grid-template-rows: auto auto auto auto;
    border-right: 0;
    border-bottom: 1px solid rgba(78, 57, 44, 0.12);
  }

  .crowz-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .crowz-head {
    grid-template-columns: 1fr;
  }

  .crowz-upgrade {
    grid-template-columns: 1fr;
  }

  .crowz-gauge {
    margin-left: auto;
  }

  .crowz-channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .crowz-wrap {
    padding: 8px;
  }

  .crowz-stage {
    border-radius: 20px;
  }

  .crowz-sidebar {
    padding: 18px 14px;
    gap: 14px;
  }

  .crowz-nav {
    grid-template-columns: 1fr;
  }

  .crowz-main {
    padding: 14px;
    gap: 12px;
  }

  .crowz-login-stage {
    border-radius: 20px;
    padding: 14px;
  }

  .crowz-login-panels {
    grid-template-columns: 1fr;
  }

  .crowz-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .crowz-channel-list {
    grid-template-columns: 1fr 1fr;
  }

  .crowz-full-stats {
    grid-column: span 2;
  }
}
