@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --bg: #05020f;
  --text: #e7ecff;
  --pink: #ff2fd1;
  --blue: #26d4ff;
  --violet: #8d65ff;
  --px: 0px;
  --py: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 40%, rgba(255, 47, 209, 0.08), rgba(5, 2, 15, 0.9)),
    var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  letter-spacing: 0.01em;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.bg-layer {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 47, 209, 0.08), transparent 55%),
    radial-gradient(circle at 45% 60%, rgba(38, 212, 255, 0.05), rgba(5, 2, 15, 0.2));
  filter: drop-shadow(0 0 28px rgba(255, 47, 209, 0.32));
  transform-origin: center;
  animation: slow-zoom 26s ease-in-out infinite alternate;
}

.neon-ring {
  position: absolute;
  width: 80vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  background: conic-gradient(
    from 220deg,
    rgba(38, 212, 255, 0.15) 0deg,
    rgba(255, 47, 209, 0.9) 110deg,
    rgba(38, 212, 255, 0.35) 220deg,
    rgba(38, 212, 255, 0.1) 360deg
  );
  mask:
    radial-gradient(closest-side, transparent 50%, #000 58%, #000 62%, transparent 68%);
  -webkit-mask:
    radial-gradient(closest-side, transparent 50%, #000 58%, #000 62%, transparent 68%);
  border-radius: 50%;
  opacity: 0.65;
  filter: blur(0.4px) drop-shadow(0 0 24px rgba(255, 47, 209, 0.38));
  mix-blend-mode: screen;
  animation: ring-spin 45s linear infinite;
}

.glow-pulse {
  position: absolute;
  width: 72vw;
  height: 72vw;
  max-width: 1300px;
  max-height: 1300px;
  background: radial-gradient(circle, rgba(255, 47, 209, 0.35), rgba(38, 212, 255, 0.2) 45%, transparent 70%);
  filter: blur(60px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: pulse 6s ease-in-out infinite;
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.8);
  animation: twinkle var(--duration, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 0 12px currentColor) drop-shadow(0 0 24px currentColor);
}

[data-parallax] {
  --depth: 1;
  transform: translate3d(calc(var(--px) * var(--depth)), calc(var(--py) * var(--depth)), 0);
  transition: transform 260ms ease-out;
}

.content {
  position: relative;
  text-align: center;
  padding: 2.75rem 3rem;
  max-width: 900px;
  background: linear-gradient(135deg, rgba(8, 10, 25, 0.65), rgba(8, 8, 18, 0.2));
  border: 1px solid rgba(255, 47, 209, 0.25);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(38, 212, 255, 0.16),
    0 0 140px rgba(255, 47, 209, 0.14);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.content.admin {
  text-align: left;
  max-width: 1480px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(231, 236, 255, 0.7);
  font-size: 0.85rem;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.logo-swipe {
  width: min(380px, 55vw);
  filter:
    drop-shadow(0 0 20px rgba(255, 47, 209, 0.5))
    drop-shadow(0 0 30px rgba(38, 212, 255, 0.25));
  image-rendering: auto;
  background: transparent;
  animation: logo-float 5.5s ease-in-out infinite, logo-glow 4.5s ease-in-out infinite;
}

h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1.05;
  text-shadow:
    0 0 28px rgba(255, 47, 209, 0.75),
    0 0 60px rgba(38, 212, 255, 0.55),
    0 0 90px rgba(255, 47, 209, 0.35);
}

.lede {
  margin: 0 0 1.75rem;
  color: rgba(231, 236, 255, 0.8);
  font-size: 1.05rem;
}

.login-card {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 520px;
  text-align: left;
}

.dashboard {
  max-width: 1400px;
  width: 95%;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-header h1 {
  animation: dashGlow 3.6s ease-in-out infinite;
}

@keyframes dashGlow {
  0%,
  100% {
    text-shadow:
      0 0 28px rgba(255, 47, 209, 0.75),
      0 0 60px rgba(38, 212, 255, 0.55),
      0 0 90px rgba(255, 47, 209, 0.35);
  }
  50% {
    text-shadow:
      0 0 36px rgba(255, 47, 209, 0.95),
      0 0 75px rgba(38, 212, 255, 0.7),
      0 0 110px rgba(255, 47, 209, 0.45);
  }
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

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

.dashboard-grid .full-span {
  grid-column: 1 / -1;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.card-panel {
  background: rgba(5, 2, 15, 0.55);
  border: 1px solid rgba(38, 212, 255, 0.22);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255, 47, 209, 0.08), 0 12px 26px rgba(0, 0, 0, 0.35);
}

.card-panel h3 {
  margin-top: 0;
}

.card-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(231, 236, 255, 0.85);
  line-height: 1.6;
}

.card-list .no-bullet {
  list-style: none;
  padding-left: 0;
  margin-left: -1.2rem;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.admin {
  max-width: 1360px;
  width: 100%;
  min-height: 82vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-header h1 {
  margin: 0;
  text-shadow:
    0 0 18px rgba(255, 47, 209, 0.75),
    0 0 42px rgba(38, 212, 255, 0.6);
  animation: adminGlow 3.8s ease-in-out infinite;
}

@keyframes adminGlow {
  0%,
  100% {
    transform: translateY(0);
    text-shadow:
      0 0 18px rgba(255, 47, 209, 0.75),
      0 0 42px rgba(38, 212, 255, 0.6);
  }
  50% {
    transform: translateY(-2px);
    text-shadow:
      0 0 26px rgba(255, 47, 209, 0.9),
      0 0 54px rgba(38, 212, 255, 0.75);
  }
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
}

.admin-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
}

.admin-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pill {
  border: 1px solid rgba(38, 212, 255, 0.4);
  background: rgba(5, 2, 15, 0.55);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 47, 209, 0.5);
  box-shadow: 0 0 16px rgba(255, 47, 209, 0.2);
}

.pill.is-active {
  background: linear-gradient(120deg, rgba(255, 47, 209, 0.85), rgba(38, 212, 255, 0.85));
  color: #0a0f1a;
  border-color: transparent;
}

.admin-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-wide {
  grid-column: 1 / -1;
}

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

.stat {
  display: grid;
  gap: 0.35rem;
  background: rgba(12, 14, 28, 0.6);
  border: 1px solid rgba(255, 47, 209, 0.2);
  border-radius: 12px;
  padding: 0.8rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(231, 236, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  font-size: 1.6rem;
}

.stat-value.wrap {
  word-break: break-all;
  font-size: 1.1rem;
  line-height: 1.35;
}

.log-panel {
  background: rgba(5, 2, 15, 0.55);
  border: 1px solid rgba(38, 212, 255, 0.22);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(255, 47, 209, 0.05);
  display: flex;
  flex-direction: column;
}

.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.log-panel .cli-log {
  flex: 1;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.cli-wrapper {
  display: grid;
}

.cli-box {
  background: linear-gradient(135deg, rgba(8, 10, 25, 0.75), rgba(8, 8, 18, 0.35));
  border: 1px solid rgba(38, 212, 255, 0.25);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.cli-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #cfd7ff;
  margin-bottom: 0.5rem;
}

.cli-title {
  font-weight: 700;
}

.cli-hint {
  opacity: 0.8;
}

.cli-log {
  background: rgba(5, 2, 15, 0.6);
  border: 1px solid rgba(255, 47, 209, 0.18);
  border-radius: 10px;
  padding: 0.75rem;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.cli-log div {
  margin-bottom: 0.2rem;
}

.cli-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.cli-input-row input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 47, 209, 0.25);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
}

.cli-input-row input:focus {
  outline: 1px solid var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 212, 255, 0.2);
}

.idea-list {
  display: grid;
  gap: 0.85rem;
}

.idea-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(5, 2, 15, 0.55);
  box-shadow: 0 0 20px rgba(132, 74, 255, 0.12);
}

.idea-card.is-voted {
  border-color: rgba(96, 214, 255, 0.6);
  box-shadow: 0 0 18px rgba(96, 214, 255, 0.2);
}

.idea-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.idea-head h5 {
  margin: 0;
  font-size: 1rem;
  color: #f4ecff;
}

.idea-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.idea-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.idea-row.idea-row-member {
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) auto;
}

.idea-main h5 {
  margin: 0;
  font-size: 1rem;
  color: #f4ecff;
}

.idea-meta-inline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.idea-desc {
  margin: 0.6rem 0 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.idea-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-self: end;
}

.idea-votes {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.idea-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(141, 101, 255, 0.2);
  color: #d8c7ff;
  border: 1px solid rgba(141, 101, 255, 0.5);
}

.field.full-width,
.field.full-width textarea {
  width: 100%;
}

.idea-actions-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.9rem;
  grid-column: 1 / -1;
}

.idea-header {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 0.85rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(231, 236, 255, 0.55);
  margin-bottom: 0.5rem;
  padding: 0 0.2rem;
}

.idea-header span {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(38, 212, 255, 0.22);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(231, 236, 255, 0.75);
  background: rgba(8, 10, 22, 0.65);
}

.admin-table tbody tr:hover {
  background: rgba(38, 212, 255, 0.08);
}

.admin-table select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, rgba(5, 2, 15, 0.8), rgba(8, 10, 25, 0.55));
  border: 1px solid rgba(255, 47, 209, 0.45);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(38, 212, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.35);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.modal .field select,
.modal select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, rgba(5, 2, 15, 0.8), rgba(8, 10, 25, 0.55));
  border: 1px solid rgba(255, 47, 209, 0.45);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(38, 212, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.35);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.admin-table select.multi-select {
  min-width: 160px;
  max-width: 220px;
  height: 2.6rem;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.group-max {
  font-size: 0.9rem;
  color: rgba(231, 236, 255, 0.8);
}

.modal .modal-grid .meta {
  margin-bottom: 0.35rem;
}

.perm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.blur-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.blurred {
  filter: blur(6px);
  user-select: none;
}

.blurred.is-revealed {
  filter: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 47, 209, 0.5);
  color: var(--text);
  font-size: 0.8rem;
}

.btn.small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.status.notice {
  margin-top: 1rem;
}

.muted {
  color: rgba(231, 236, 255, 0.6);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.modal.is-open {
  display: flex;
}

.modal.is-top {
  z-index: 70;
}

.modal-card {
  width: min(720px, 100%);
  background: rgba(8, 10, 25, 0.95);
  border: 1px solid rgba(255, 47, 209, 0.3);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-body {
  padding: 0.5rem 0 1rem;
}

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

.map-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.map-card {
  border: 1px solid rgba(38, 212, 255, 0.18);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(5, 2, 15, 0.4);
}

.map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.map-card-head h4 {
  margin: 0;
  font-size: 0.95rem;
}

.map-frame {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
  background: rgba(8, 10, 25, 0.35);
}

.map-3d {
  position: relative;
  overflow: hidden;
}

.modal-grid > .field {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0b0716;
  background: linear-gradient(130deg, rgba(255, 47, 209, 0.9), rgba(38, 212, 255, 0.9));
  box-shadow: 0 12px 28px rgba(255, 47, 209, 0.25);
  cursor: pointer;
  user-select: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.profile-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 47, 209, 0.3);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1rem 0;
}

.checkbox-list {
  display: grid;
  gap: 0.5rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(231, 236, 255, 0.9);
}

.checkbox-row input[type="checkbox"] {
  accent-color: var(--pink);
  width: 16px;
  height: 16px;
}

.admin-table .checkbox-row {
  gap: 0.35rem;
  margin: 0;
}

.actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.event-actions-row {
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.95rem;
  color: rgba(231, 236, 255, 0.8);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.95rem 1rem;
  background: rgba(5, 2, 15, 0.55);
  border: 1px solid rgba(255, 47, 209, 0.35);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(38, 212, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.35);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.modal-grid input[type="date"],
.modal-grid input[type="time"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  display: block;
  -webkit-appearance: none;
}

.field input:focus {
  border-color: rgba(38, 212, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(38, 212, 255, 0.5),
    0 0 16px rgba(38, 212, 255, 0.25),
    0 0 38px rgba(255, 47, 209, 0.22);
  background: rgba(8, 10, 25, 0.7);
}

.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.95rem 1rem;
  background: rgba(5, 2, 15, 0.55);
  border: 1px solid rgba(255, 47, 209, 0.35);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(38, 212, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.35);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  resize: vertical;
}

.field textarea:focus {
  border-color: rgba(38, 212, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(38, 212, 255, 0.5),
    0 0 16px rgba(38, 212, 255, 0.25),
    0 0 38px rgba(255, 47, 209, 0.22);
  background: rgba(8, 10, 25, 0.7);
}

/* Maak de calendar/agenda icon wit in date pickers */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
input[type="date"]::-moz-focus-inner {
  filter: invert(1);
}
input[type="date"] {
  color-scheme: dark;
}

.field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, rgba(5, 2, 15, 0.8), rgba(8, 10, 25, 0.5));
  border: 1px solid rgba(255, 47, 209, 0.45);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(38, 212, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.35);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.field select:focus {
  border-color: rgba(38, 212, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(38, 212, 255, 0.5),
    0 0 16px rgba(38, 212, 255, 0.25),
    0 0 38px rgba(255, 47, 209, 0.22);
  background: rgba(8, 10, 25, 0.7);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.template-card {
  padding: 1rem;
  border: 1px solid rgba(255, 47, 209, 0.25);
  border-radius: 14px;
  background: rgba(5, 2, 15, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.template-list {
  display: grid;
  gap: 0.75rem;
}

.template-grid-list {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.template-row {
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-items: center;
  gap: 0.35rem;
}

.pill-template {
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(38, 212, 255, 0.5);
  background: rgba(5, 2, 15, 0.35);
  color: #e7ecff;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  width: 100%;
  min-width: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: normal;
}

.template-row .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(38, 212, 255, 0.35);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  text-decoration: none;
  font-size: 0.68rem;
}

.template-status {
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(231, 236, 255, 0.65);
}

.template-status.on {
  color: #b6ffe6;
}

.template-status.off {
  color: rgba(231, 236, 255, 0.5);
}

.pill-template.on {
  background: linear-gradient(120deg, rgba(255, 47, 209, 0.8), rgba(38, 212, 255, 0.8));
  border-color: transparent;
  color: #0a0f1a;
  box-shadow: 0 0 16px rgba(255, 47, 209, 0.25);
}

.pill-template:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

@media (max-width: 960px) {
  .mail-grid {
    grid-template-columns: 1fr;
  }
}

.mail-card {
  padding: 1rem;
  border: 1px solid rgba(255, 47, 209, 0.22);
  border-radius: 14px;
  background: rgba(12, 14, 28, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.mail-card-head {
  margin-bottom: 0.65rem;
}

.mailbox-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: 140px minmax(320px, 1fr) minmax(380px, 1.4fr);
  align-items: stretch;
}

.mailbox-sidebar,
.mailbox-list,
.mailbox-detail {
  padding: 1rem;
  border: 1px solid rgba(255, 47, 209, 0.22);
  border-radius: 14px;
  background: rgba(12, 14, 28, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  min-height: 700px;
}

.mailbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mail-folder-list {
  display: grid;
  gap: 0.45rem;
}

.mailbox-sidebar .mail-folder-list + .mail-folder-list {
  margin-top: 0.45rem;
}

.mail-folder {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(38, 212, 255, 0.35);
  background: rgba(5, 2, 15, 0.4);
  color: #e7ecff;
  cursor: pointer;
}

.mail-folder.is-active {
  background: linear-gradient(120deg, rgba(255, 47, 209, 0.8), rgba(38, 212, 255, 0.8));
  color: #0a0f1a;
  border-color: transparent;
}

.mailbox-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.mailbox-toolbar .btn,
.mailbox-bulk .btn {
  width: auto;
}

@media (max-width: 680px) {
  .mailbox-toolbar .btn,
  .mailbox-bulk .btn {
    width: auto;
  }
}

.mailbox-toolbar .mailbox-bulk {
  flex: 1 1 0;
  min-width: 0;
}

.mailbox-list {
  display: flex;
  flex-direction: column;
}

.mailbox-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.mailbox-list-header h4 {
  margin: 0;
}

.mailbox-list-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.mailbox-bulk {
  display: contents;
}

.mailbox-bulk .btn {
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.search-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-row input {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(38, 212, 255, 0.3);
  background: rgba(5, 2, 15, 0.4);
  color: #fff;
}

.mail-list {
  display: grid;
  gap: 0.5rem;
  max-height: 700px;
  overflow: auto;
}

.mailbox-status-row {
  min-height: 1.2rem;
}

.mailbox-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.mail-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(38, 212, 255, 0.2);
  background: rgba(5, 2, 15, 0.35);
  cursor: pointer;
}

.mail-item-check {
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
}

.mail-item-check input {
  width: 16px;
  height: 16px;
}

.mail-item-content {
  flex: 1;
  min-width: 0;
}

.mail-item.unread {
  border-color: rgba(255, 47, 209, 0.5);
}

.mail-item.is-active {
  border-color: rgba(255, 47, 209, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 47, 209, 0.4);
}

.mail-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgba(231, 236, 255, 0.9);
  font-size: 0.85rem;
}

.mail-item-subject {
  font-weight: 600;
  margin-top: 0.25rem;
}

.mail-item-snippet {
  font-size: 0.85rem;
  color: rgba(231, 236, 255, 0.65);
  margin-top: 0.2rem;
}

.mail-item-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.mailbox-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.mail-actions .btn[disabled],
.mailbox-detail-toolbar .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.mailbox-detail-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.mailbox-detail-meta {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: rgba(231, 236, 255, 0.7);
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
}

.mailbox-detail-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #f4f6ff;
}

.mailbox-detail-body {
  padding: 0.75rem;
  border: 1px solid rgba(38, 212, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  min-height: 240px;
  color: #ffffff;
  overflow: auto;
  line-height: 1.6;
}

.mail-view-compose {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(38, 212, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 2, 15, 0.35);
}

.mail-view-compose.is-hidden {
  display: none;
}

.mailbox-detail-body a {
  color: #89e0ff;
}

.mailbox-detail-body p,
.mailbox-detail-body li,
.mailbox-detail-body div,
.mailbox-detail-body span {
  color: inherit;
}

.mailbox-detail-body * {
  color: #ffffff !important;
}

.mailbox-attachments {
  margin-top: 0.75rem;
}

@media (max-width: 1100px) {
  .mailbox-shell {
    grid-template-columns: 1fr;
  }
  .mailbox-sidebar,
  .mailbox-list,
  .mailbox-detail {
    min-height: auto;
  }
  .mail-list {
    max-height: 320px;
  }
}

.status.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(5, 2, 15, 0.6);
  border: 1px solid rgba(38, 212, 255, 0.4);
  color: rgba(231, 236, 255, 0.85);
}

.status.badge.ok {
  background: linear-gradient(120deg, rgba(38, 212, 255, 0.75), rgba(255, 47, 209, 0.7));
  color: #0a0f1a;
  border-color: transparent;
}

.status.badge.error {
  background: rgba(255, 47, 209, 0.2);
  color: #ffd6f1;
  border-color: rgba(255, 47, 209, 0.6);
}

.smtp-fields {
  display: grid;
  gap: 1rem;
}

.smtp-fields.is-hidden {
  display: none;
}

.preview-box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(255, 47, 209, 0.4);
  border-radius: 10px;
  color: rgba(231, 236, 255, 0.9);
  background: rgba(5, 2, 15, 0.4);
  min-height: 80px;
  line-height: 1.5;
}

.template-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  color: rgba(231, 236, 255, 0.9);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(231, 236, 255, 0.8);
  font-size: 0.95rem;
}

.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

.link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 140ms ease, text-shadow 140ms ease;
}

.link:hover {
  color: #7ae0ff;
  text-shadow: 0 0 14px rgba(122, 224, 255, 0.6);
}

.text-btn {
  background: none;
  border: none;
  color: rgba(231, 236, 255, 0.8);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.15rem 0.4rem;
  text-decoration: underline;
  transition: color 140ms ease;
}

.text-btn:hover {
  color: #fff;
}

#usersTable .text-btn {
  font-size: inherit;
  padding: 0;
}

#usersTable td {
  vertical-align: middle;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 47, 209, 0.4);
  color: var(--text);
  background: rgba(5, 2, 15, 0.5);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(120deg, rgba(255, 47, 209, 0.9), rgba(38, 212, 255, 0.8), rgba(255, 47, 209, 0.9));
  background-size: 220% 220%;
  box-shadow: 0 10px 30px rgba(255, 47, 209, 0.25);
  animation: cta-pulse 2.4s ease-in-out infinite, gradient-shift 6s linear infinite;
}

.btn.ghost {
  border-color: rgba(38, 212, 255, 0.4);
}

.btn.danger {
  border-color: rgba(255, 95, 122, 0.7);
  color: #ffb4c2;
}

.btn.danger:hover {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 95, 122, 0.35);
}

.action-alert {
  position: relative;
  padding-right: 2.1rem;
}

.badge-count {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 47, 209, 0.95), rgba(38, 212, 255, 0.9));
  color: #0a0f1a;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 0.35rem;
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 47, 209, 0.25);
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 10px 30px rgba(255, 47, 209, 0.25),
      0 0 18px rgba(255, 47, 209, 0.45),
      0 0 28px rgba(38, 212, 255, 0.35);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow:
      0 12px 32px rgba(255, 47, 209, 0.32),
      0 0 26px rgba(255, 47, 209, 0.6),
      0 0 38px rgba(38, 212, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.status {
  min-height: 1rem;
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: rgba(231, 236, 255, 0.85);
}

.meta {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(231, 236, 255, 0.65);
}

.status.success {
  color: #8df9ff;
}

.status.error {
  color: #ff9ed6;
}

code {
  background: rgba(255, 47, 209, 0.12);
  border: 1px solid rgba(255, 47, 209, 0.3);
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  color: #fff;
}

@keyframes slow-zoom {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.04) translate3d(6px, -4px, 0);
  }
  100% {
    transform: scale(1.02) translate3d(-6px, 4px, 0);
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.03);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.85);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.35);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(-1deg) scale(1.03);
  }
}

@keyframes logo-glow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 18px rgba(255, 47, 209, 0.45))
      drop-shadow(0 0 26px rgba(38, 212, 255, 0.2));
  }
  50% {
    filter:
      drop-shadow(0 0 26px rgba(255, 47, 209, 0.6))
      drop-shadow(0 0 40px rgba(38, 212, 255, 0.28));
  }
}

@media (max-width: 768px) {
  .content {
    margin: 0 1.25rem;
    padding: 2.2rem 1.75rem;
    text-align: left;
  }

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

  .cta-row {
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.2rem 0.8rem;
  }
  .content,
  .content.dashboard,
  .content.admin {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0.6rem;
    margin: 0;
  }
  .admin {
    padding: 0 0.25rem;
  }
  .dashboard-header,
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .dashboard-actions,
  .admin-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
  }
  .dashboard-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-nav .pill {
    font-size: 0.85rem;
    padding: 0.32rem 0.7rem;
  }
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .card-panel {
    width: 100%;
    padding: 1rem 0.9rem;
  }
  .modal {
    align-items: flex-start;
    padding: 0.75rem;
  }
  .modal-card {
    width: 100%;
    max-width: 520px;
    margin: 0;
    max-height: 90vh;
    overflow: hidden;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    max-height: calc(90vh - 9rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.25rem;
  }

  .admin-table {
    min-width: 360px;
    font-size: 0.9rem;
    table-layout: fixed;
  }
  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.7rem;
    word-break: break-word;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-layer,
  .neon-ring,
  .glow-pulse,
  .particles span,
  [data-parallax] {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}
