:root {
  --bg: #0f0904;
  --bg-alt: #1a1209;
  --bg-panel: rgba(28, 21, 15, 0.8);
  --border: rgba(209, 182, 105, 0.25);
  --text: #f9f4e7;
  --muted: rgba(249, 244, 231, 0.7);
  --accent: #d4a33d;
  --accent-dark: #9c6f1f;
  --shadow: rgba(0, 0, 0, 0.45);
  --card-glow: 0 18px 45px rgba(212, 163, 61, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 163, 61, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(120, 89, 39, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg), #050301 85%);
  color: var(--text);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(212, 163, 61, 0.4);
}

.container {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(15, 9, 4, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 28px);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-crest {
  font-size: 26px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.brand-title {
  font-family: "Cinzel", "Spectral", serif;
  font-size: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
}

.brand-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 61, 0.4);
  background: rgba(12, 8, 4, 0.65);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  border-color: rgba(212, 163, 61, 0.6);
}

.nav-toggle:focus {
  outline: none;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 999px;
}

.nav-toggle-bar::before {
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  transform: translateY(6px);
}

.nav-toggle.is-open .nav-toggle-bar {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-bar::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar::after {
  transform: translateY(0) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 3, 0.75);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .nav-backdrop {
    display: none;
  }
}

.main {
  padding: 40px 0 80px;
}

.hero {
  background: rgba(26, 18, 9, 0.78);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 42px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-glow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(212, 163, 61, 0.22), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(249, 244, 231, 0.8);
  padding: 6px 12px;
  border: 1px solid rgba(212, 163, 61, 0.45);
  border-radius: 999px;
  background: rgba(12, 8, 4, 0.55);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: "Cinzel", "Spectral", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  margin: 18px 0 14px;
  position: relative;
  z-index: 1;
}

.hero-title span {
  color: var(--accent);
}

.hero-text {
  font-size: 18px;
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 61, 0.35);
  background: rgba(12, 8, 4, 0.65);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.posts-section {
  margin-top: 48px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.section-title {
  margin: 0;
  font-family: "Cinzel", "Spectral", serif;
  font-size: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.pagination {
  margin-top: 36px;
  text-align: center;
}

.pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 163, 61, 0.25);
  background: rgba(12, 8, 4, 0.65);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-weight: 600;
}

.pagination-link:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 163, 61, 0.6);
  color: var(--accent);
}

.pagination-link.is-active {
  background: var(--accent);
  color: #1b1209;
  border-color: transparent;
  cursor: default;
}

.pagination-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination-summary {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.post-card {
  background: linear-gradient(180deg, rgba(32, 24, 16, 0.92), rgba(20, 13, 7, 0.94));
  border-radius: 18px;
  border: 1px solid rgba(212, 163, 61, 0.18);
  box-shadow: 0 12px 28px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 163, 61, 0.5);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
}

.post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.post-title {
  margin: 0;
  font-family: "Cinzel", "Spectral", serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent);
}

.post-date {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-excerpt {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Anzahl der Zeilen */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt p {
  margin: 0 0 0.75em;
}

.post-excerpt p:last-child {
  margin-bottom: 0;
}

.post-excerpt ul,
.post-excerpt ol {
  margin: 0;
  padding-left: 1.35em;
}

.post-excerpt li {
  margin: 0.35em 0;
}

.post-excerpt code {
  background: rgba(212, 163, 61, 0.12);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-family: "Fira Code", "Source Code Pro", monospace;
  font-size: 0.95em;
}

.post-excerpt .excerpt-ellipsis {
  color: var(--accent);
  font-weight: 600;
}

.read-more {
  align-self: flex-start;
  background: linear-gradient(90deg, rgba(212, 163, 61, 0.95), rgba(156, 111, 31, 0.95));
  color: #140d07;
  font-family: "Cinzel", "Spectral", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: auto;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 163, 61, 0.35);
}

.breadcrumbs {
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.post-full {
  background: rgba(20, 13, 7, 0.86);
  border-radius: 22px;
  border: 1px solid rgba(212, 163, 61, 0.22);
  padding: 38px;
  box-shadow: var(--card-glow);
  width: min(860px, 100%);
  margin: 0 auto;
}

.post-header {
  border-bottom: 1px solid rgba(212, 163, 61, 0.18);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.post-label {
  display: inline-block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(249, 244, 231, 0.75);
  border: 1px solid rgba(212, 163, 61, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(12, 8, 4, 0.6);
}

.post-full-title {
  font-family: "Cinzel", "Spectral", serif;
  margin: 14px 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

.gallery {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.gallery figure {
  flex: 1 1 260px;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  background: rgba(32, 24, 16, 0.65);
  border: 1px solid rgba(212, 163, 61, 0.2);
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.post-content {
  font-size: 18px;
  color: var(--text);
}

.post-content img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 61, 0.15);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: "Cinzel", "Spectral", serif;
  margin-top: 32px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: rgba(32, 24, 16, 0.55);
  color: var(--muted);
  font-style: italic;
}

.post-content pre {
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
  border: 1px solid rgba(212, 163, 61, 0.2);
}

.post-content code {
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.site-footer {
  border-top: 1px solid rgba(212, 163, 61, 0.12);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: rgba(15, 9, 4, 0.9);
}

.about {
  display: flex;
  justify-content: center;
}

.donate {
  display: flex;
  justify-content: center;
}

.donate-card {
  max-width: 720px;
  background: rgba(24, 16, 10, 0.88);
  border-radius: 20px;
  border: 1px solid rgba(212, 163, 61, 0.2);
  padding: 40px;
  box-shadow: var(--card-glow);
  text-align: left;
}

.donate-card h1 {
  font-family: "Cinzel", "Spectral", serif;
  font-size: 32px;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.donate-card p {
  color: var(--muted);
  font-size: 18px;
}

.donate-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.donate-cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 61, 0.4);
  background: linear-gradient(135deg, rgba(212, 163, 61, 0.25), rgba(212, 163, 61, 0.45));
  color: var(--text);
  font-family: "Cinzel", "Spectral", serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.donate-cta .button:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 163, 61, 0.65);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.donate-note {
  font-size: 16px;
  color: rgba(249, 244, 231, 0.85);
  max-width: 460px;
}

.about-card {
  max-width: 720px;
  background: rgba(24, 16, 10, 0.88);
  border-radius: 20px;
  border: 1px solid rgba(212, 163, 61, 0.2);
  padding: 40px;
  box-shadow: var(--card-glow);
}

.about-label {
  display: inline-block;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(249, 244, 231, 0.75);
  border: 1px solid rgba(212, 163, 61, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(12, 8, 4, 0.6);
}

.about-card h1 {
  font-family: "Cinzel", "Spectral", serif;
  font-size: 34px;
  margin: 18px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-card p {
  color: var(--muted);
  font-size: 18px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  background: rgba(32, 24, 16, 0.55);
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
}

.about-list span {
  color: var(--accent);
  font-family: "Cinzel", "Spectral", serif;
  letter-spacing: 0.08em;
  margin-right: 12px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  body.js-nav-ready .nav-toggle {
    display: inline-flex;
  }

  body.js-nav-ready .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: clamp(16px, 6vw, 28px);
    left: clamp(16px, 6vw, 28px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 9, 4, 0.96);
    border: 1px solid rgba(212, 163, 61, 0.35);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    z-index: 12;
    backdrop-filter: blur(10px);
  }

  body.js-nav-ready .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.js-nav-ready .main-nav a {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 0;
    background: rgba(12, 8, 4, 0.55);
    border: 1px solid rgba(212, 163, 61, 0.12);
  }

  body.js-nav-ready .main-nav a:hover {
    transform: none;
  }

  body:not(.js-nav-ready) .main-nav {
    width: 100%;
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  body:not(.js-nav-ready) .main-nav a {
    background: rgba(12, 8, 4, 0.55);
    border: 1px solid rgba(212, 163, 61, 0.18);
    padding: 10px 14px;
    border-radius: 12px;
  }

  .hero {
    padding: clamp(26px, 7vw, 32px);
  }

  .post-full {
    padding: clamp(22px, 6vw, 28px);
  }

  .about-card {
    padding: clamp(22px, 6vw, 28px);
  }

  .donate-card {
    padding: clamp(22px, 6vw, 28px);
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 30px;
  }

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

  .post-thumb {
    height: 200px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .manager-form .field.checkbox {
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn-primary,
  .form-actions .btn-muted,
  .form-actions .btn-danger {
    width: 100%;
    justify-content: center;
  }
}

.auth-card,
.manager-wrapper {
  background: rgba(26, 18, 9, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 32px);
  box-shadow: var(--card-glow);
}

.writer-page {
  background: rgba(26, 18, 9, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--card-glow);
}

.contact-page {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

.contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
  background: rgba(26, 18, 9, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 32px);
  box-shadow: var(--card-glow);
}

.contact-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.contact-card form {
  display: grid;
  gap: 16px;
}

.contact-card .field {
  display: grid;
  gap: 6px;
}

.contact-card label {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-card .field.wide textarea {
  min-height: 200px;
}

.contact-card .field.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

.contact-card button {
  justify-self: start;
}

.contact-link {
  margin-top: 16px;
  font-size: 15px;
}

.contact-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-link a:hover,
.contact-link a:focus {
  text-decoration: underline;
}

.contact-info {
  background: rgba(26, 18, 9, 0.6);
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
}

.contact-info h2 {
  margin-top: 0;
}

.contact-info a {
  color: var(--accent);
  text-decoration: underline;
}

.contact-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.contact-steps li {
  font-size: 15px;
  line-height: 1.7;
}

.required {
  color: var(--accent);
  margin-left: 4px;
}

.contact-chat .page-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.chat-grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

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

.chat-card {
  background: rgba(26, 18, 9, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 32px);
  box-shadow: var(--card-glow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.chat-card__status {
  display: flex;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 61, 0.35);
  background: rgba(20, 13, 7, 0.8);
}

.status-open {
  color: #a6f4d5;
  border-color: rgba(69, 179, 157, 0.4);
}

.status-waiting {
  color: #f6d27f;
  border-color: rgba(246, 210, 127, 0.4);
}

.status-closed {
  color: #f2a7a7;
  border-color: rgba(242, 167, 167, 0.4);
}

.chat-messages {
  max-height: 540px;
  overflow-y: auto;
  padding-right: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 61, 0.6) rgba(26, 18, 9, 0.65);
}

.chat-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.chat-entry {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(212, 163, 61, 0.2);
  background: rgba(20, 13, 7, 0.7);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.chat-entry--admin {
  border-color: rgba(69, 179, 157, 0.35);
  background: rgba(10, 35, 31, 0.4);
}

.chat-entry--user {
  border-color: rgba(212, 163, 61, 0.25);
}

.chat-entry__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.chat-entry__author {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-entry__message {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-sidebar {
  background: rgba(26, 18, 9, 0.7);
  border: 1px solid rgba(212, 163, 61, 0.2);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 28px);
  display: grid;
  gap: 18px;
  align-content: start;
}

.chat-sidebar h2 {
  margin-top: 0;
}

.chat-reply {
  display: grid;
  gap: 16px;
}

.chat-reply textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-hint {
  font-size: 14px;
  color: var(--muted);
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 3, 0.75);
  z-index: 30;
  transition: opacity 0.25s ease;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
}

.contact-modal__dialog {
  position: relative;
  background: rgba(26, 18, 9, 0.96);
  border: 1px solid rgba(212, 163, 61, 0.4);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  width: min(420px, 90vw);
  z-index: 1;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.contact-modal.is-visible .contact-modal__dialog {
  transform: translateY(0);
}

.contact-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.contact-modal__close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.contact-modal__body {
  display: grid;
  gap: 16px;
}

.contact-modal__code {
  background: rgba(20, 13, 7, 0.85);
  border: 1px solid rgba(212, 163, 61, 0.4);
  border-radius: 12px;
  padding: 16px;
  font-family: "Cinzel", "Spectral", serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-align: center;
  word-break: break-all;
}

.contact-modal__copy {
  justify-self: center;
  min-width: 160px;
}

.contact-modal__hint {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.contact-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 13, 7, 0.7);
  border: 1px solid rgba(212, 163, 61, 0.3);
  font-family: "Cinzel", "Spectral", serif;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.contact-code:hover,
.contact-code:focus {
  border-color: rgba(212, 163, 61, 0.5);
}

.contact-feedback {
  margin: 16px 0 0;
  display: none;
}

.contact-feedback.is-visible {
  display: block;
}

.contact-feedback.is-success {
  color: #a6f4d5;
}

.contact-feedback.is-error {
  color: #f2a7a7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

.admin-conversation {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-entry[open] .admin-conversation {
  max-height: clamp(240px, 45vh, 560px);
  overflow-y: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 61, 0.6) rgba(26, 18, 9, 0.65);
}

.admin-message {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 61, 0.25);
  background: rgba(20, 13, 7, 0.7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.admin-message--admin {
  border-color: rgba(69, 179, 157, 0.35);
  background: rgba(10, 35, 31, 0.35);
}

.admin-message__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-message__meta time {
  font-variant-numeric: tabular-nums;
}

.admin-message__body {
  margin: 0;
  line-height: 1.6;
}

.admin-reply-form {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.contact-reply-actions {
  display: flex;
  justify-content: flex-end;
}

.writer-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.writer-label {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 12px;
}

.writer-header h1 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
}

.legal-page {
  background: rgba(26, 18, 9, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(26px, 6vw, 38px);
  box-shadow: var(--card-glow);
}

.legal-page .page-header {
  border-bottom: 1px solid rgba(212, 163, 61, 0.18);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.legal-page h1 {
  font-family: "Cinzel", "Spectral", serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.legal-page h2 {
  font-family: "Cinzel", "Spectral", serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 16px;
}

.legal-page ul {
  padding-left: 20px;
  margin: 0 0 18px;
}

.writer-sub {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.writer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
}

.editor-card,
.preview-card {
  background: rgba(15, 9, 4, 0.85);
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--card-glow);
}

.editor-card .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.editor-card .field label {
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.editor-card .field.wide {
  margin-bottom: 24px;
}

.editor-card textarea {
  min-height: 200px;
}

.editor-card .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-card h2 {
  margin-top: 0;
  font-family: "Cinzel", serif;
}

.preview-card ul {
  margin: 16px 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.preview-card li {
  margin-bottom: 10px;
}

.preview-hint {
  border-top: 1px solid rgba(212, 163, 61, 0.18);
  padding-top: 18px;
  color: var(--muted);
}

.preview-hint h3 {
  margin-top: 0;
  font-family: "Cinzel", serif;
}

.manager-table {
  margin-top: 32px;
  background: rgba(15, 9, 4, 0.85);
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--card-glow);
  overflow-x: auto;
}

.manager-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.manager-table th,
.manager-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(212, 163, 61, 0.18);
}

.manager-table th {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.manager-table tbody tr:last-child td {
  border-bottom: none;
}

.manager-table tbody tr:hover {
  background: rgba(212, 163, 61, 0.08);
}

.manager-table .table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.manager-table .table-actions form {
  margin: 0;
}

@media (max-width: 720px) {
  .manager-table table {
    min-width: 0;
  }

  .manager-table table,
  .manager-table thead,
  .manager-table tbody,
  .manager-table th,
  .manager-table td,
  .manager-table tr {
    display: block;
    width: 100%;
  }

  .manager-table thead {
    display: none;
  }

  .manager-table tr {
    margin-bottom: 16px;
    border: 1px solid rgba(212, 163, 61, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    background: rgba(10, 6, 3, 0.9);
  }

  .manager-table td {
    border: none;
    padding: 6px 0;
  }

  .manager-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    display: block;
    margin-bottom: 2px;
  }

  .manager-table .table-actions {
    justify-content: flex-start;
    margin-top: 8px;
  }
}

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

@media (max-width: 520px) {
  .writer-page {
    padding: 24px;
  }
}

.manager-page .main .container {
  max-width: min(90vw, 1400px);
  width: 90vw;
}

.manager-wrapper {
  width: 100%;
  margin: 0 auto;
}

.auth-card h1,
.manager-wrapper h1 {
  font-family: "Cinzel", serif;
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
  margin: 0 0 18px;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
}

.alert-error {
  background: rgba(160, 34, 34, 0.16);
  border: 1px solid rgba(255, 84, 84, 0.3);
  color: #ffb4b4;
}

.alert-success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(110, 213, 124, 0.35);
  color: #c5f5cf;
}

.form-grid {
  display: grid;
  gap: 16px;
  max-width: 360px;
}

.form-grid label span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 163, 61, 0.25);
  background: rgba(12, 8, 4, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.btn-primary,
.btn-secondary,
.btn-muted,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: rgba(0, 0, 0, 0.2);
  color: #160d04;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(212, 163, 61, 0.35);
}

.btn-secondary {
  background: rgba(12, 8, 4, 0.55);
  border-color: rgba(212, 163, 61, 0.35);
  color: var(--text);
}

.btn-muted {
  background: rgba(26, 18, 9, 0.6);
  border-color: rgba(212, 163, 61, 0.2);
  color: var(--muted);
}

.btn-danger {
  background: rgba(120, 32, 28, 0.7);
  border-color: rgba(255, 102, 96, 0.4);
  color: #ffd7d7;
}

.btn-danger:disabled,
.btn-secondary:disabled,
.btn-muted:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-secondary:hover,
.btn-muted:hover,
.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.manager-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.manager-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
  width: 100%;
}

.manager-grid > * {
  width: 100%;
}

.manager-form-card {
  background: rgba(12, 8, 4, 0.55);
  border: 1px solid rgba(212, 163, 61, 0.2);
  border-radius: 18px;
  box-shadow: var(--card-glow);
  padding: clamp(22px, 3vw, 28px);
}

.log-section {
  margin-top: clamp(32px, 5vw, 48px);
}

.log-section h2 {
  font-family: "Cinzel", serif;
  margin: 0 0 8px;
}

.log-section .muted {
  margin-bottom: 18px;
}

.manager-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 20px);
}

.manager-form--horizontal {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 24px);
  align-items: end;
}

.manager-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manager-form .field.wide {
  grid-column: 1 / -1;
}

.manager-form .field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.manager-form .field.checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manager-form input[type='checkbox'] {
  width: auto;
  accent-color: var(--accent);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.table-card {
  background: rgba(12, 8, 4, 0.55);
  border: 1px solid rgba(212, 163, 61, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-glow);
  max-width: 100%;
  display: flex;
  flex-direction: column;
}


.table-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212, 163, 61, 0.15);
  background: rgba(12, 8, 4, 0.65);
}

.table-controls label {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-controls .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.table-controls .filter-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.table-controls-switches {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid rgba(212, 163, 61, 0.2);
}

.table-controls .view-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-controls-switches .view-toggle {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.details-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-toggle-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.view-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.view-toggle-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: inherit;
}

.view-toggle-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 61, 0.35);
  background: rgba(26, 18, 9, 0.75);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.view-toggle-slider::before {
  content: attr(data-off);
}

.view-toggle-switch input:checked + .view-toggle-slider {
  background: rgba(212, 163, 61, 0.18);
  border-color: rgba(212, 163, 61, 0.55);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(212, 163, 61, 0.2);
}

.view-toggle-switch input:checked + .view-toggle-slider::before {
  content: attr(data-on);
}

.view-toggle-switch input:focus-visible + .view-toggle-slider {
  outline: 2px solid rgba(212, 163, 61, 0.6);
  outline-offset: 3px;
}

#itemsTableCard {
  position: relative;
}

#itemsTable:not(.showing-details) th[data-details-column],
#itemsTable:not(.showing-details) td[data-details-column] {
  display: none;
}

.item-table-picture {
  width: 80px;
  min-width: 80px;
  text-align: center;
}

.item-table-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 163, 61, 0.22);
  background: rgba(12, 8, 4, 0.55);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.25);
}

img.item-table-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-table-thumb--placeholder {
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-controls select,
.table-controls input {
  width: auto;
  min-width: 140px;
}

.data-scroll {
  width: 100%;
  flex: 1 1 auto;
}

.table-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 61, 0.6) rgba(26, 18, 9, 0.65);
  width: 100%;
  flex: 1 1 auto;
}

.manager-grid .data-scroll {
  max-height: 100%;
}

.manager-logs .table-scroll {
  max-height: clamp(260px, 50vh, 460px);
}

.manager-polls .table-scroll {
  max-height: clamp(260px, 55vh, 480px);
}

.table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(26, 18, 9, 0.65);
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(212, 163, 61, 0.85), rgba(156, 111, 31, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(12, 8, 4, 0.65);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.dashboard-window[data-widget="items"] .dashboard-window__body {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 61, 0.65) rgba(26, 18, 9, 0.6);
}

.dashboard-window[data-widget="items"] .dashboard-window__body::-webkit-scrollbar {
  width: 12px;
}

.dashboard-window[data-widget="items"] .dashboard-window__body::-webkit-scrollbar-track {
  background: rgba(26, 18, 9, 0.6);
  border-radius: 999px;
}

.dashboard-window[data-widget="items"] .dashboard-window__body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(212, 163, 61, 0.85), rgba(156, 111, 31, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(12, 8, 4, 0.65);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: rgba(12, 8, 4, 0.55);
  border-top: 1px solid rgba(212, 163, 61, 0.15);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 61, 0.45) rgba(26, 18, 9, 0.65);
}

.carousel-wrapper::-webkit-scrollbar {
  width: 8px;
}

.carousel-wrapper::-webkit-scrollbar-thumb {
  background: rgba(212, 163, 61, 0.45);
  border-radius: 999px;
}

.table-card.is-carousel .table-controls {
  border-bottom-color: rgba(212, 163, 61, 0.1);
}

.table-card.is-carousel .carousel-wrapper {
  background: rgba(12, 8, 4, 0.65);
}

.carousel-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 18px;
  align-items: stretch;
  padding: 6px 4px 12px;
}

.carousel-card-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(15, 9, 4, 0.9);
  border: 1px solid rgba(212, 163, 61, 0.28);
  border-radius: 18px;
  box-shadow: var(--card-glow);
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
  animation: carousel-enter 0.45s ease both;
  cursor: pointer;
}

.carousel-card-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.45);
}

.carousel-card-item.is-selected {
  border-color: rgba(212, 163, 61, 0.75);
  box-shadow: 0 20px 55px rgba(212, 163, 61, 0.25);
}

.carousel-card-item.is-locked {
  cursor: not-allowed;
  opacity: 0.75;
  border-color: rgba(212, 163, 61, 0.25);
}

.carousel-card-item.is-locked-self {
  border-color: rgba(212, 163, 61, 0.45);
}

.carousel-card-item.is-locked::after,
.carousel-card-item.is-locked-self::after {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 9, 4, 0.85);
  border: 1px solid rgba(212, 163, 61, 0.35);
  color: var(--accent);
}

.carousel-card-item.is-locked::after {
  content: 'Gesperrt';
}

.carousel-card-item.is-locked-self::after {
  content: 'Eigene Sperre';
}

.carousel-card-media {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 163, 61, 0.08), rgba(12, 8, 4, 0.75));
}

.carousel-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-card-item:hover .carousel-card-media img {
  transform: scale(1.05);
}

.carousel-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, rgba(212, 163, 61, 0.08) 0, rgba(212, 163, 61, 0.08) 12px, rgba(12, 8, 4, 0.75) 12px, rgba(12, 8, 4, 0.75) 24px);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.carousel-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 20px;
}

.carousel-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.carousel-card-header > div {
  flex: 1 1 auto;
}

.carousel-card-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.carousel-card-header h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.carousel-card-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 16px;
}

.carousel-card-stats div {
  background: rgba(12, 8, 4, 0.55);
  border: 1px solid rgba(212, 163, 61, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
}

.carousel-card-stats dt {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.carousel-card-stats dd {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.carousel-card-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 163, 61, 0.35);
  background: rgba(12, 8, 4, 0.75);
  color: var(--accent);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.carousel-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  border-color: rgba(212, 163, 61, 0.55);
}

.carousel-btn:disabled,
.carousel-btn[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.carousel-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(212, 163, 61, 0.35);
  border-radius: 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes carousel-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .table-controls-switches {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .table-controls-switches .view-toggle,
  .details-toggle {
    justify-content: space-between;
  }

  .view-toggle-slider {
    width: 100%;
    min-width: unset;
  }

  .carousel-track {
    grid-auto-columns: minmax(220px, 85vw);
  }

  .carousel-wrapper {
    padding: 16px;
  }
}

.table-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(229, 183, 92, 0.95), rgba(168, 121, 42, 0.95));
}

.table-scroll table {
  min-width: 960px;
}

.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(212, 163, 61, 0.08);
  backdrop-filter: blur(4px);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(212, 163, 61, 0.12);
  text-align: left;
  font-size: 14px;
}

thead th {
  background: rgba(212, 163, 61, 0.08);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
}

tbody tr:nth-child(even) {
  background: rgba(26, 18, 9, 0.35);
}

tbody tr:hover {
  background: rgba(212, 163, 61, 0.08);
  cursor: pointer;
}

tbody tr.is-selected {
  background: rgba(212, 163, 61, 0.18);
}

tbody tr.is-locked {
  background: rgba(102, 58, 32, 0.25);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

tbody tr.is-locked-self {
  box-shadow: inset 0 0 0 2px rgba(212, 163, 61, 0.45);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  width: min(320px, 90vw);
}

.toast-message {
  background: rgba(17, 13, 8, 0.95);
  border-radius: 14px;
  padding: 12px 16px;
  color: #f7f1e9;
  border-left: 4px solid var(--accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  transform: translateX(24px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-message.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-message.is-hiding {
  transform: translateX(24px);
  opacity: 0;
}

.toast-message.success {
  border-left-color: #47c06e;
}

.toast-message.warning {
  border-left-color: #f0aa3c;
}

.toast-message.error {
  border-left-color: #ff6b6b;
}

.toast-message.info {
  border-left-color: rgba(212, 163, 61, 0.9);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.admin-grid .card.full-width {
  grid-column: 1 / -1;
}

.contact-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: clamp(340px, 60vh, 680px);
  padding-right: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 163, 61, 0.6) rgba(26, 18, 9, 0.65);
  transition: opacity 0.2s ease;
}

.contact-messages.is-refreshing {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .contact-messages {
    max-height: none;
  }
}

.chat-messages::-webkit-scrollbar,
.contact-messages::-webkit-scrollbar,
.contact-entry[open] .admin-conversation::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.chat-messages::-webkit-scrollbar-track,
.contact-messages::-webkit-scrollbar-track,
.contact-entry[open] .admin-conversation::-webkit-scrollbar-track {
  background: rgba(26, 18, 9, 0.65);
  border-radius: 999px;
}

.chat-messages::-webkit-scrollbar-thumb,
.contact-messages::-webkit-scrollbar-thumb,
.contact-entry[open] .admin-conversation::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(212, 163, 61, 0.85), rgba(156, 111, 31, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(12, 8, 4, 0.65);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.contact-messages::-webkit-scrollbar-thumb:hover,
.contact-entry[open] .admin-conversation::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(229, 183, 92, 0.95), rgba(168, 121, 42, 0.95));
}

.contact-entry {
  background: rgba(12, 8, 4, 0.55);
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-entry[open] {
  overflow: visible;
}

.contact-entry summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  position: relative;
}

.contact-summary {
  width: 100%;
}

.contact-entry summary::-webkit-details-marker {
  display: none;
}

.contact-entry summary::after {
  content: '▾';
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.contact-entry[open] summary::after {
  transform: rotate(-180deg);
}

.contact-entry[open] {
  border-color: rgba(212, 163, 61, 0.35);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.contact-subject {
  flex: 1;
  font-size: 16px;
}

.contact-date {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.contact-body {
  padding: 0 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.contact-meta-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.contact-meta-label {
  font-weight: 600;
  color: var(--text);
}

.contact-meta-value {
  color: var(--muted);
}

.contact-email {
  color: var(--accent);
  text-decoration: none;
}

.contact-email:hover,
.contact-email:focus {
  text-decoration: underline;
}

.contact-message {
  margin: 0;
  white-space: pre-line;
  line-height: 1.7;
}

.contact-empty,
.contact-loading,
.contact-error {
  margin: 0;
}

.contact-error {
  color: #ff9d92;
}

.card {
  background: rgba(12, 8, 4, 0.65);
  border: 1px solid rgba(212, 163, 61, 0.22);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--card-glow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 163, 61, 0.12);
  text-align: left;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table button {
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table .btn-muted {
  background: rgba(26, 18, 9, 0.75);
  color: var(--muted);
  border: 1px solid rgba(212, 163, 61, 0.3);
}

.admin-table .btn-secondary {
  background: var(--accent);
  color: #120a04;
}

.admin-table .btn-danger {
  background: #752d2d;
  color: #fbe9e9;
}

.manager-polls .polls-table__description {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.poll-state__note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.activation-output {
  font-size: 14px;
  line-height: 1.5;
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(20, 13, 7, 0.65);
  border: 1px dashed rgba(212, 163, 61, 0.35);
}

.activation-output a {
  color: var(--accent);
  word-break: break-all;
}

.chart-card {
  background: rgba(12, 8, 4, 0.55);
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 18px;
  padding: 16px;
  min-height: 320px;
}

.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 980px) {
  .manager-form--horizontal {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

@media (max-width: 640px) {
  .manager-form {
    grid-template-columns: 1fr;
  }

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

  .manager-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .table-controls .filter-inputs {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .table-controls select,
  .table-controls input,
  .table-controls button {
    width: 100%;
  }

  .table-scroll {
    overflow-x: visible;
  }

  .table-scroll table {
    min-width: 0;
  }

  .table-scroll table,
  .table-scroll thead,
  .table-scroll tbody,
  .table-scroll tr,
  .table-scroll td,
  .table-scroll th {
    display: block;
    width: 100%;
  }

  .table-scroll thead {
    display: none;
  }

  .table-scroll tbody tr {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(212, 163, 61, 0.18);
    background: rgba(12, 8, 4, 0.9);
    box-shadow: var(--card-glow);
  }

  .table-scroll tbody tr:last-child {
    margin-bottom: 0;
  }

  .table-scroll td {
    border: none;
    padding: 8px 0;
    font-size: 15px;
  }

  .table-scroll td::before {
    content: attr(data-label) ": ";
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }

  .table-scroll td:last-child {
    padding-bottom: 0;
  }
}

.brand-crest {
  height: clamp(44px, 7vw, 64px);
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

.support-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
}

.support-toast {
  background: rgba(14, 9, 4, 0.92);
  border: 1px solid rgba(212, 163, 61, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  width: min(320px, 90vw);
  transform: translateX(30px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: auto;
  color: var(--text);
}

.support-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.support-toast__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.support-toast__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.support-toast__code {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 163, 61, 0.85);
}

.support-toast__body {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(249, 244, 231, 0.85);
}

.support-toast__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.support-toast__link:hover,
.support-toast__link:focus {
  text-decoration: underline;
}

.hidden {
  display: none;
}
/* -------------------------------------------------------------------------- */
/* Polls                                                                     */
/* -------------------------------------------------------------------------- */

.page-header {
  margin-bottom: clamp(28px, 6vw, 40px);
  text-align: center;
}

.page-title {
  font-family: "Cinzel", serif;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.page-subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.polls-grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

.poll-card {
  background: rgba(26, 18, 9, 0.82);
  border: 1px solid rgba(212, 163, 61, 0.22);
  border-radius: 24px;
  box-shadow: var(--card-glow);
  padding: clamp(24px, 5vw, 32px);
  display: grid;
  gap: 20px;
}

.poll-card-header {
  display: grid;
  gap: 14px;
}

.poll-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.poll-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 61, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.poll-state-active {
  background: rgba(110, 213, 124, 0.14);
  border-color: rgba(110, 213, 124, 0.45);
  color: #c4f1d1;
}

.poll-state-upcoming {
  background: rgba(66, 139, 202, 0.14);
  border-color: rgba(66, 139, 202, 0.35);
  color: #b6d8ff;
}

.poll-state-closed {
  background: rgba(175, 107, 38, 0.12);
  border-color: rgba(255, 184, 109, 0.35);
  color: #ffdcb3;
}

.poll-state-disabled {
  background: rgba(120, 120, 120, 0.1);
  border-color: rgba(180, 180, 180, 0.25);
  color: rgba(255, 255, 255, 0.65);
}

.poll-question {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.05em;
}

.poll-description p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.poll-figure {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 163, 61, 0.2);
}

.poll-figure img {
  width: 100%;
  display: block;
}

.poll-form {
  display: grid;
  gap: 16px;
}

.poll-options {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: none;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(212, 163, 61, 0.2);
  background: rgba(12, 8, 4, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.poll-option:hover {
  border-color: rgba(212, 163, 61, 0.45);
  transform: translateY(-2px);
}

.poll-option input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.poll-option-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.poll-option-content img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(212, 163, 61, 0.2);
}

.poll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.poll-submit {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(212, 163, 61, 0.5);
  background: linear-gradient(90deg, rgba(212, 163, 61, 0.85), rgba(156, 111, 31, 0.85));
  color: #1b1209;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poll-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(212, 163, 61, 0.3);
}

.poll-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.poll-submit.is-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(27, 18, 9, 0.4);
  border-top-color: rgba(27, 18, 9, 0.9);
  margin-left: 8px;
  animation: poll-spinner 0.8s linear infinite;
}

@keyframes poll-spinner {
  to {
    transform: rotate(360deg);
  }
}

.poll-message {
  min-height: 20px;
  font-size: 14px;
  color: var(--muted);
}

.poll-message.is-error {
  color: #ffb4b4;
}

.poll-message.is-success {
  color: #c5f5cf;
}

.poll-results {
  display: grid;
  gap: 12px;
}

.poll-result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.poll-result-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.poll-result-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(212, 163, 61, 0.8), rgba(255, 214, 137, 0.9));
  border-radius: inherit;
  transition: width 0.4s ease;
}

.poll-state-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(212, 163, 61, 0.15);
  padding-top: 12px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  margin: 24px 0 0;
}

@media (max-width: 640px) {
  .poll-card {
    padding: 20px;
  }

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

  .poll-option-content {
    width: 100%;
  }

  .poll-option-content img {
    width: 100%;
    height: auto;
  }
}

/* -------------------------------------------------------------------------- */
/* Poll admin                                                                */
/* -------------------------------------------------------------------------- */

.page-poll-admin .admin-panel,
.page-poll-edit .admin-panel {
  background: rgba(26, 18, 9, 0.82);
  border: 1px solid rgba(212, 163, 61, 0.22);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 32px);
  box-shadow: var(--card-glow);
  margin-bottom: clamp(24px, 5vw, 36px);
}

.panel-title {
  margin: 0 0 18px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poll-admin-form .form-grid,
.poll-edit-form .form-grid,
.option-add .form-grid {
  display: grid;
  gap: 16px;
  max-width: none;
}

.poll-admin-form .form-row,
.poll-edit-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.form-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.form-help {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.button-primary,
.button-secondary,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  border: 1px solid rgba(212, 163, 61, 0.6);
  background: linear-gradient(90deg, rgba(212, 163, 61, 0.9), rgba(156, 111, 31, 0.9));
  color: #1b1209;
}

.button-secondary {
  border: 1px solid rgba(212, 163, 61, 0.4);
  background: rgba(12, 8, 4, 0.65);
  color: var(--text);
}

.button-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--accent);
  padding-inline: 12px;
}

.button-danger {
  color: #ffb4b4;
}

.button-primary:hover,
.button-secondary:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.button-link.button-danger:hover {
  color: #ffd0d0;
}

.poll-option-builder {
  display: grid;
  gap: 12px;
}

.builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto;
  gap: 12px;
  align-items: center;
}

.builder-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 163, 61, 0.35);
  background: rgba(12, 8, 4, 0.55);
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
}

.builder-remove:hover {
  background: rgba(212, 163, 61, 0.1);
}

.poll-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(12, 8, 4, 0.6);
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 18px;
  overflow: hidden;
}

.poll-table th,
.poll-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 163, 61, 0.15);
  text-align: left;
  vertical-align: top;
}

.poll-table tr:last-child td {
  border-bottom: none;
}

.poll-table-description {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.poll-table-actions {
  display: flex;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 163, 61, 0.12);
  border: 1px solid rgba(212, 163, 61, 0.25);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-note {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.poll-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(18px, 4vw, 28px);
}

.poll-edit-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.option-cards {
  display: grid;
  gap: 18px;
}

.option-card {
  border: 1px solid rgba(212, 163, 61, 0.18);
  border-radius: 18px;
  background: rgba(12, 8, 4, 0.6);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.option-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.option-card-meta {
  font-size: 13px;
  color: var(--muted);
}

.option-preview {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  border: 1px solid rgba(212, 163, 61, 0.2);
}

.option-update,
.option-delete {
  display: grid;
  gap: 12px;
}

.poll-results-overview .result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.poll-results-overview .result-item {
  display: grid;
  gap: 6px;
}

.poll-results-overview .result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.poll-results-overview .result-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.poll-results-overview .result-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(212, 163, 61, 0.8), rgba(255, 214, 137, 0.9));
  border-radius: inherit;
}

@media (max-width: 720px) {
  .builder-row {
    grid-template-columns: 1fr;
  }

  .poll-table {
    font-size: 14px;
  }

  .poll-table th,
  .poll-table td {
    padding: 12px;
  }
}

body.manager-dashboard-page {
  background: radial-gradient(circle at 0% 0%, rgba(212, 163, 61, 0.14), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(209, 182, 105, 0.12), transparent 40%),
    #0d0804;
}

.manager-dashboard-page .site-header,
.manager-dashboard-page .site-footer {
  display: none;
}

.manager-dashboard-page .main {
  padding: 0;
}

.manager-dashboard-page .main .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.manager-dashboard-page .main .container > section {
  width: 100%;
}

.manager-dashboard {
  display: grid;
  grid-template-columns: clamp(260px, 22vw, 340px) minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  width: 100%;
}

body.dashboard-sidebar-collapsed .manager-dashboard {
  grid-template-columns: 0 minmax(0, 1fr);
}

.dashboard-sidebar {
  background: linear-gradient(180deg, rgba(23, 16, 8, 0.97), rgba(10, 6, 3, 0.96));
  border-right: 1px solid rgba(209, 182, 105, 0.22);
  box-shadow: inset -1px 0 0 rgba(249, 244, 231, 0.05);
  padding: clamp(28px, 3vw, 38px) clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  z-index: 20;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.dashboard-sidebar.is-collapsed {
  transform: translateX(-120%);
}

body.dashboard-sidebar-collapsed .dashboard-sidebar {
  pointer-events: none;
}

.dashboard-sidebar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-sidebar__badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: radial-gradient(circle at 30% 30%, rgba(212, 163, 61, 0.45), rgba(90, 63, 24, 0.32));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.dashboard-sidebar__eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(249, 244, 231, 0.55);
  margin: 0 0 6px;
}

.dashboard-sidebar__heading h1 {
  font-size: clamp(1.75rem, 2vw, 2rem);
  margin: 0;
}

.sidebar-toggle {
  appearance: none;
  background: rgba(209, 182, 105, 0.14);
  border: 1px solid rgba(209, 182, 105, 0.55);
  border-radius: 999px;
  color: #f9f4e7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle--floating {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1300;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  display: none;
}

.dashboard-sidebar-collapsed .sidebar-toggle--floating {
  display: inline-flex;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: rgba(209, 182, 105, 0.28);
  border-color: rgba(209, 182, 105, 0.85);
  outline: none;
  transform: translateY(-1px);
}

.sidebar-toggle__icon {
  width: 16px;
  height: 2px;
  position: relative;
  background: currentColor;
  display: inline-block;
  transition: transform 0.25s ease;
}

.sidebar-toggle__icon::before,
.sidebar-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.sidebar-toggle__icon::before {
  top: -5px;
}

.sidebar-toggle__icon::after {
  top: 5px;
}

.sidebar-toggle[aria-expanded="true"] .sidebar-toggle__icon {
  background: transparent;
}

.sidebar-toggle[aria-expanded="true"] .sidebar-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.sidebar-toggle[aria-expanded="true"] .sidebar-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.dashboard-sidebar__intro {
  margin: 0;
  color: rgba(249, 244, 231, 0.7);
  line-height: 1.5;
}

.dashboard-sidebar__account {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(249, 244, 231, 0.06);
  border: 1px solid rgba(209, 182, 105, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar__user {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dashboard-sidebar__role {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: rgba(249, 244, 231, 0.6);
}

.dashboard-sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.dashboard-sidebar__footer .btn-secondary,
.dashboard-sidebar__footer .btn-muted {
  text-align: center;
  width: 100%;
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(209, 182, 105, 0.6) transparent;
}

.dashboard-menu::-webkit-scrollbar {
  width: 6px;
}

.dashboard-menu::-webkit-scrollbar-thumb {
  background: rgba(209, 182, 105, 0.45);
  border-radius: 4px;
}

.dashboard-menu__item {
  appearance: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 14px;
  color: #f9f4e7;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dashboard-menu__item::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.dashboard-menu__item:hover,
.dashboard-menu__item:focus-visible {
  transform: translateX(6px);
  border-color: rgba(209, 182, 105, 0.38);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, rgba(209, 182, 105, 0.2), rgba(209, 182, 105, 0.05));
  outline: none;
}

.dashboard-menu__item.is-active {
  border-color: rgba(209, 182, 105, 0.65);
  box-shadow: 0 22px 48px rgba(212, 163, 61, 0.3);
  background: linear-gradient(140deg, rgba(212, 163, 61, 0.32), rgba(212, 163, 61, 0.12));
}

.dashboard-menu__item.is-active::after {
  background: rgba(249, 244, 231, 0.9);
}

.dashboard-menu__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(209, 182, 105, 0.24);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dashboard-menu__label {
  flex: 1 1 auto;
}

.dashboard-menu__icon[data-icon="users"]::before { content: '👥'; }
.dashboard-menu__icon[data-icon="visits"]::before { content: '📈'; }
.dashboard-menu__icon[data-icon="writer"]::before { content: '✍️'; }
.dashboard-menu__icon[data-icon="polls"]::before { content: '🗳️'; }
.dashboard-menu__icon[data-icon="logs"]::before { content: '🗂️'; }
.dashboard-menu__icon[data-icon="contacts"]::before { content: '✉️'; }
.dashboard-menu__icon[data-icon="items"]::before { content: '🛠️'; }

.dashboard-stage {
  background: linear-gradient(180deg, rgba(14, 9, 4, 0.92), rgba(10, 7, 4, 0.96));
  padding: clamp(32px, 5vw, 64px);
}

.dashboard-stage__inner {
  background: linear-gradient(180deg, rgba(20, 13, 7, 0.88), rgba(14, 9, 4, 0.92));
  border: 1px solid rgba(209, 182, 105, 0.28);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 42px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 26px 55px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: visible;
  min-height: calc(100vh - clamp(64px, 8vw, 132px));
}

.dashboard-stage__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(212, 163, 61, 0.18), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(124, 94, 44, 0.15), transparent 45%);
  opacity: 0.9;
  pointer-events: none;
}

.dashboard-stage__inner > * {
  position: relative;
  z-index: 1;
}

.dashboard-stage__header {
  margin-bottom: clamp(18px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-stage__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(249, 244, 231, 0.6);
  margin: 0;
}

.dashboard-stage__header h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.dashboard-workspace {
  position: relative;
  min-height: clamp(680px, 82vh, 1080px);
  border-radius: 18px;
  border: 1px dashed rgba(209, 182, 105, 0.3);
  background: linear-gradient(135deg, rgba(35, 25, 17, 0.94), rgba(14, 9, 4, 0.98));
  padding: clamp(20px, 3vw, 32px);
  overflow: visible;
}

.dashboard-empty {
  color: rgba(249, 244, 231, 0.75);
  font-style: italic;
  margin-top: 16px;
}

.dashboard-window {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 560px;
  min-width: 280px;
  min-height: 220px;
  border-radius: 18px;
  border: 1px solid rgba(209, 182, 105, 0.42);
  background: rgba(20, 13, 7, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.18s ease, height 0.28s ease;
  will-change: transform;
}

.dashboard-window.is-dragging,
.dashboard-window.is-resizing {
  cursor: grabbing;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}

.dashboard-window[hidden] {
  display: none;
}

.dashboard-window__header {
  background: rgba(209, 182, 105, 0.14);
  border-bottom: 1px solid rgba(209, 182, 105, 0.22);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: grab;
}

.dashboard-window.is-dragging .dashboard-window__header {
  cursor: grabbing;
}

.dashboard-window__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-window__title h3 {
  font-size: 1.1rem;
  margin: 0;
}

.dashboard-window__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(209, 182, 105, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dashboard-window[data-widget="users"] .dashboard-window__icon::before { content: '👤'; }
.dashboard-window[data-widget="visits"] .dashboard-window__icon::before { content: '📊'; }
.dashboard-window[data-widget="polls"] .dashboard-window__icon::before { content: '🗳️'; }
.dashboard-window[data-widget="logs"] .dashboard-window__icon::before { content: '📜'; }
.dashboard-window[data-widget="contacts"] .dashboard-window__icon::before { content: '💬'; }
.dashboard-window[data-widget="items"] .dashboard-window__icon::before { content: '🧰'; }

.dashboard-window__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-window__button {
  appearance: none;
  background: rgba(209, 182, 105, 0.12);
  border: 1px solid rgba(209, 182, 105, 0.4);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(249, 244, 231, 0.9);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  backdrop-filter: blur(6px);
}

.dashboard-window__button[data-action="collapse"]::before {
  content: '▾';
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.dashboard-window__button[data-action="maximize"]::before {
  content: '⤢';
  font-size: 0.95rem;
}

.dashboard-window__button[data-action="maximize"][aria-pressed="true"]::before {
  content: '🗗';
}

.dashboard-window__button[data-action="close"]::before {
  content: '✕';
  font-size: 0.9rem;
}

.dashboard-window.is-collapsed .dashboard-window__button[data-action="collapse"]::before {
  transform: rotate(-90deg);
}

.dashboard-window__button:hover,
.dashboard-window__button:focus-visible {
  background: rgba(249, 244, 231, 0.2);
  border-color: rgba(249, 244, 231, 0.65);
  transform: translateY(-1px);
  outline: none;
}

.dashboard-window__body {
  padding: 22px;
  overflow: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.2s ease;
}

.dashboard-window__body--iframe {
  gap: 16px;
}

.dashboard-iframe-wrapper {
  flex: 1 1 auto;
  border-radius: 14px;
  border: 1px solid rgba(209, 182, 105, 0.28);
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(209, 182, 105, 0.08), rgba(12, 8, 5, 0.95));
  display: flex;
}

.dashboard-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: rgba(9, 6, 4, 0.95);
}

.dashboard-window.is-collapsed .dashboard-window__body {
  opacity: 0;
  pointer-events: none;
}

.dashboard-window.is-maximized .dashboard-window__body {
  overflow: visible;
}

.dashboard-window.is-maximized .dashboard-window__resize {
  display: none;
}

.dashboard-window.is-maximized .dashboard-window__body .table-scroll,
.dashboard-window.is-maximized .dashboard-window__body .data-scroll {
  max-height: none;
}

.dashboard-window__lead {
  margin: 0;
}

.dashboard-window__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-window__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-window__resize {
  position: absolute;
  width: 16px;
  height: 16px;
  right: 10px;
  bottom: 10px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(209, 182, 105, 0.55) 40%, rgba(209, 182, 105, 0.85) 100%);
  border-radius: 4px;
}

.dashboard-window.is-collapsed .dashboard-window__resize {
  display: none;
}

.dashboard-window__body .table-card {
  flex: 1 1 auto;
}

.dashboard-window__body .table-scroll {
  max-height: 340px;
}

@media (max-width: 1024px) {
  body.dashboard-sidebar-open {
    overflow: hidden;
  }
  .manager-dashboard {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .dashboard-sidebar {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 32px);
    z-index: 1200;
    transform: translateX(0);
    border-radius: 24px;
    border: 1px solid rgba(209, 182, 105, 0.3);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
  }
  .dashboard-sidebar.is-collapsed {
    transform: translateX(-120%);
  }
  .dashboard-stage {
    padding: 28px 18px 40px;
  }
  .dashboard-stage__inner {
    padding: 22px;
  }
  .dashboard-workspace {
    min-height: 520px;
    padding: 18px;
  }
  .dashboard-window {
    width: calc(100% - 48px);
    left: 24px;
  }
  .sidebar-toggle--floating {
    top: 18px;
    left: 18px;
  }
}

@media (max-width: 640px) {
  .dashboard-stage {
    padding: 24px 12px 32px;
  }
  .dashboard-stage__inner {
    padding: 18px;
  }
  .dashboard-menu__item {
    grid-template-columns: auto 1fr;
  }
  .dashboard-menu__item::after {
    display: none;
  }
  .dashboard-window {
    width: calc(100% - 32px);
    left: 16px;
  }
  .dashboard-window__header {
    padding: 12px 16px;
  }
  .dashboard-window__body {
    padding: 16px;
  }
  .dashboard-window__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-window__toolbar-actions {
    align-self: stretch;
    justify-content: space-between;
  }
}
