@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

:root {
  --rose-900: #7b0f38;
  --rose-700: #a2143f;
  --rose-600: #9c2a46;
  --rose-500: #c62855;
  --rose-200: #f6dde5;
  --rose-100: #fbeff3;
  --ndp-600: #d5640e;
  --slate-900: #1f1a24;
  --slate-700: #3a3342;
  --neutral-050: #faf7f6;
  --neutral-100: #f5eeec;
  --neutral-300: #ded3d0;
  --success-bg: #d9f7df;
  --error-bg: #ffd9d6;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1200px;
  --pad-inline: 1.5rem;
  --bs-primary: var(--rose-500);
  --bs-primary-rgb: 198, 40, 85;
  --bs-secondary: var(--slate-700);
  --bs-secondary-rgb: 58, 51, 66;
  --bs-success: #0b6a3b;
  --bs-success-rgb: 11, 106, 59;
  --bs-danger: #c41950;
  --bs-danger-rgb: 196, 25, 80;
  --bs-info: var(--ndp-600);
  --bs-body-color: var(--slate-900);
  --bs-body-bg: var(--neutral-050);
  --bs-link-color: var(--rose-600);
  --bs-link-hover-color: var(--rose-700);
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 18px;
  --bs-border-radius-sm: 10px;
  --bs-body-font-family: 'Poppins','Lato',sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-inline);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--bs-primary-rgb), 0.18);
}

.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--rose-700);
  border-color: var(--rose-700);
}

.btn-ghost,
.btn-outline-primary {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.35);
  color: var(--rose-600);
  background-color: #fff;
}

.btn-ghost:hover,
.btn-outline-primary:hover {
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--rose-700);
}

.btn.alt {
  background: #fff;
  color: var(--rose-600);
  border: 1px solid var(--rose-600);
}

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

.card {
  background: #fff;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 16px 40px rgba(38, 15, 25, 0.08);
  padding: 1.6rem;
  border: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,0.08));
}


.site-body {
  background: var(--neutral-050);
  line-height: 1.6;
}

.site-body .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(31, 26, 36, 0.08);
}

.site-body .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.site-body .navbar {
  padding: 1rem 0;
}
.site-body .navbar-brand img {
  width: 48px;
  height: 48px;
}
.site-body .navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 0.8rem;
}
.site-body .navbar-nav .btn {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

.brand-logo-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-block;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.brand-spinner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.logo-loaded .brand-logo {
  opacity: 1;
}

.logo-loaded .brand-spinner {
  display: none;
}

.site-body .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rose-600);
  font-weight: 700;
}

.site-body .brand img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(182, 33, 71, 0.15);
}

.site-body .brand span {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.site-body .primary-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.site-body .primary-nav a {
  color: var(--rose-600);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-body .nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid rgba(31, 26, 36, 0.12);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  color: var(--rose-600);
}
.site-body .nav-toggle span {
  display: inline-block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  position: relative;
}
.site-body .nav-toggle span::before,
.site-body .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
}
.site-body .nav-toggle span::before { top: -6px; }
.site-body .nav-toggle span::after { top: 6px; }

.site-body .primary-nav a:hover {
  color: var(--rose-700);
}

.site-body .primary-nav .cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--rose-600);
  color: #fff;
  box-shadow: 0 6px 16px rgba(194, 32, 82, 0.25);
}

.site-body .hero {
  background: var(--neutral-100);
  padding: 4.5rem var(--pad-inline);
  border-bottom: 1px solid rgba(31, 26, 36, 0.08);
}

.site-body .hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.site-body .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--rose-600);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-body .hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 1rem 0 0.6rem;
  font-weight: 700;
}

.site-body .hero p.lede {
  font-size: 1.1rem;
  color: var(--slate-700);
  max-width: 34ch;
  margin-bottom: 1.3rem;
}

.site-body .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.site-body .grid {
  display: grid;
  gap: 1.4rem;
}

.site-body .grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.site-body .section {
  padding: 3.5rem 0;
}

.site-body .section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.site-body .section p.lede {
  margin-top: 0;
  color: var(--slate-700);
  max-width: 60ch;
}

.site-body .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--rose-600);
  font-weight: 600;
  font-size: 0.82rem;
}

.site-body .article-card,
.site-body .event-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 26, 36, 0.08);
  padding: 1.3rem;
  background: #fff;
}

.site-body .article-card h3,
.site-body .event-card h3 {
  margin: 0 0 0.4rem;
}

.site-body .article-card p,
.site-body .event-card p {
  margin: 0;
  color: var(--slate-700);
}

.site-body .meta {
  color: #6d6273;
  font-size: 0.9rem;
}

.site-body form label {
  font-weight: 600;
  display: block;
  margin-top: 1rem;
}

.site-body form input[type="text"],
.site-body form input[type="email"],
.site-body form input[type="tel"],
.site-body form select,
.site-body form textarea {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(58, 51, 66, 0.2);
  font-size: 1rem;
  font-family: inherit;
  margin-top: 0.35rem;
}

.site-body form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-body .flash {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-top: 0.6rem;
  font-weight: 600;
}

.site-body .flash-ok {
  background: var(--success-bg);
  color: #0b6a3b;
}

.site-body .flash-error {
  background: var(--error-bg);
  color: #8f1f2f;
}

.notice {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-top: 0.6rem;
  font-weight: 600;
}

.notice-ok {
  background: var(--success-bg);
  color: #0b6a3b;
}

.notice-error {
  background: var(--error-bg);
  color: #8f1f2f;
}

.site-body .footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(31, 26, 36, 0.08);
  color: #6d6273;
}

.site-body .org-shell {
  background: #fff;
  padding: 2.5rem 0 3rem;
}

.site-body .org-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  align-items: center;
  margin-bottom: 2rem;
}

.site-body .org-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.site-body .org-feature {
  border: 1px solid rgba(31, 26, 36, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  background: var(--neutral-100);
}

.site-body .org-feature h3 {
  margin: 0 0 0.4rem;
}

.site-body .org-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-body .org-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(31, 26, 36, 0.08);
  color: var(--rose-700);
  font-weight: 600;
}

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




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

.section {
  padding: 4rem 0;
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.section-heading p {
  margin: 0;
  color: var(--slate-700);
}

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

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

.event-grid--past {
  gap: 1.4rem;
}

.event-grid--home {
  gap: 1.4rem;
}


.about-section,
.events-section,
.articles-section,
.credits-page,
.faqs-gallery {
  padding-left: var(--pad-inline);
  padding-right: var(--pad-inline);
}

.social-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 36px rgba(31, 26, 36, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: visible;
}

.social-card.instagram {
  border: 1px solid rgba(179, 21, 76, 0.15);
}

.social-card.twitter {
  border: 1px solid rgba(31, 26, 36, 0.12);
}

.social-card .meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-card .caption {
  margin: 0;
  font-size: 1rem;
  color: var(--slate-900);
  flex-grow: 1;
}

.social-card blockquote {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.instagram-embed iframe,
.instagram-embed blockquote {
  max-width: 100% !important;
  width: 100% !important;
}

.twitter-embed iframe,
.twitter-embed blockquote {
  max-width: 100% !important;
  width: 100% !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(150%);
  background: #1f1a24;
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 14px 32px rgba(31, 26, 36, 0.22);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1500;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(31, 26, 36, 0.12);
  box-shadow: 0 20px 44px rgba(31, 26, 36, 0.18);
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  max-width: 420px;
  width: calc(100% - 2rem);
  z-index: 1550;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  color: var(--slate-700);
  font-size: 0.95rem;
}

.cookie-banner .actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 36, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1600;
  padding: 2rem;
}

.game-shell {
  background: #fff;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 28px 60px rgba(31, 26, 36, 0.4);
}

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

.game-shell header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--rose-600);
}

.game-shell header button {
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  color: #3a3342;
}

#flap-game-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
}

.game-meta {
  margin-top: 1rem;
  color: var(--slate-700);
  font-size: 0.95rem;
}

.social-card a.more {
  margin-top: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--rose-600);
}

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

.tweet-header img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tweet-author {
  font-weight: 600;
}

.tweet-text {
  margin: 0;
  color: var(--slate-900);
  white-space: pre-line;
}

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

.article-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 46px rgba(31, 26, 36, 0.09);
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}

.article-card p {
  margin: 0 0 1.2rem;
  color: var(--slate-700);
}

.article-card .meta {
  font-size: 0.85rem;
  color: var(--slate-700);
  margin-top: auto;
}

.article-card .meta span {
  margin-right: 0.8rem;
}

.article-card .read-link {
  margin-top: 1.5rem;
}

.faqs-gallery {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.faqs-gallery img {
  max-width: 780px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 50px rgba(31, 26, 36, 0.16);
}

.polls-section {
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.poll-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(31, 26, 36, 0.12);
  padding: 2rem;
}

.poll-member-only {
  border: 2px solid #6f42c1 !important;
  outline: 2px solid #6f42c1;
  outline-offset: 2px;
  box-shadow: 0 24px 54px rgba(31, 26, 36, 0.14);
}

.card.poll-member-only,
.poll-card.poll-member-only {
  border-color: #6f42c1 !important;
}

.member-row--warning {
  background: #fff4e5;
}

.member-row--danger {
  background: #ffe5e5;
}

.member-responses {
  white-space: pre-line;
  cursor: pointer;
}

.member-responses.is-collapsed {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 3.4em;
}

.member-responses.is-expanded {
  overflow: visible;
  max-height: none;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "▾";
  margin-left: 0.4rem;
  font-size: 0.9em;
  color: var(--slate-600);
}

details[open] summary::after {
  content: "▴";
}

.metrics-table {
  display: block;
  margin-top: 0.75rem;
}

.metrics-table summary {
  cursor: pointer;
  font-weight: 600;
}

.metrics-table table {
  width: 100%;
}

@supports(selector(:has(*))) {
  .card:has(.metrics-table[open]) {
    grid-column: 1 / -1;
  }
}

.poll-card h2 {
  margin: 0;
}

.poll-card .poll-meta {
  font-size: 0.9rem;
  color: var(--slate-600);
}

.poll-description {
  color: var(--slate-700);
  margin: 0.9rem 0 1.2rem;
}

.poll-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.poll-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(31, 26, 36, 0.12);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem;
  font-weight: 600;
  color: var(--slate-800);
  background: var(--neutral-050);
}

.poll-option span {
  word-break: break-word;
}

.poll-option input {
  accent-color: var(--rose-600);
  margin: 0;
}

.poll-result-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-top: 0.4rem;
}

.poll-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(179, 21, 76, 0.12);
  overflow: hidden;
  margin-top: 0.3rem;
}

.poll-progress span {
  display: block;
  height: 100%;
  background: var(--rose-600);
}

.poll-results {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poll-results li {
  list-style: none;
}

.poll-voted-note {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rose-700);
  margin-top: 0;
}

.poll-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-family: Lato, sans-serif;
}

.poll-card th,
.poll-card td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid rgba(31, 26, 36, 0.1);
  word-break: break-word;
}

@media (max-width: 720px) {
  .poll-card table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.page-hero {
  padding: 3.5rem var(--pad-inline);
  background: var(--neutral-100);
  color: var(--slate-900);
  border-bottom: 1px solid rgba(31, 26, 36, 0.08);
}

.page-hero h1 {
  margin: 0;
  font-size: 2.4rem;
}

.credits-page {
  min-height: 50vh;
  padding: 0 1.5rem;
}

.credits-body {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(31, 26, 36, 0.08);
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 760px;
  font-family: Lato, sans-serif;
  color: var(--slate-700);
  line-height: 1.75;
}

.credits-body h2,
.credits-body h3,
.credits-body h4 {
  color: var(--slate-900);
  margin-top: 2rem;
}

.credits-body p {
  margin: 0 0 1.2rem;
}

.credits-body ul,
.credits-body ol {
  margin: 0 0 1.2rem 1.4rem;
}

.credits-body a {
  color: var(--rose-600);
  text-decoration: underline;
}

.credits-updated {
  font-size: 0.9rem;
  color: var(--slate-700);
  margin: -0.5rem 0 1.8rem;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-family: Lato, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2 {
  margin-top: 2.2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--slate-700);
  margin-bottom: 1.2rem;
}

footer {
  background: #111018;
  color: #f7f4f4;
  padding: 3rem 0;
  margin-top: 4rem;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

footer a {
  text-decoration: none;
  color: #f58220;
  font-weight: 600;
}

footer .muted {
  color: #c7c1c1;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-bar {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(58, 51, 66, 0.2);
    background: #fff;
    border-radius: 12px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    color: var(--rose-600);
    cursor: pointer;
    gap: 0.5rem;
  }
  .nav-toggle span {
    display: inline-flex;
    width: 1.2rem;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
  }
  .nav-toggle span::before {
    top: -6px;
  }
  .nav-toggle span::after {
    top: 6px;
  }
}


body.admin-setup {
  background: #f6f1ed;
  color: #1f1a24;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.admin-setup .panel {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(31, 26, 36, 0.14);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
}

.admin-setup label {
  display: block;
  margin-top: 1.4rem;
  font-weight: 600;
}

.admin-setup input {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(58, 51, 66, 0.2);
  font-size: 1rem;
  margin-top: 0.35rem;
}

.admin-setup button {
  margin-top: 1.8rem;
  width: 100%;
  padding: 0.85rem;
  border-radius: 999px;
  border: 0;
  background: #c62855;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.admin-setup .flash {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #ffd9d6;
  color: #7b1f29;
}


body.admin-shell {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.admin-header {
  background: var(--bs-primary);
  color: #fff;
  padding: 1.5rem 0;
  box-shadow: 0 14px 36px rgba(31, 26, 36, 0.25);
}

.admin-header .wrap {
  max-width: 100%;
  padding: 0 1.8rem;
}

.admin-header .navbar {
  padding: 1rem 0;
}

.admin-header .navbar-brand img {
  width: 46px;
  height: 46px;
}

.admin-header .nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.admin-header .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.admin-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-nav .nav-link {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.admin-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.admin-user {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.admin-user form {
  display: inline;
}

.admin-user button {
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.8rem;
}

.flash {
  max-width: 1180px;
  margin: 1.4rem auto 0;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(31, 26, 36, 0.1);
}

.flash-ok {
  background: #d9f7df;
  color: #0b6a3b;
}

.flash-error {
  background: #ffe0dd;
  color: #8f1f2f;
}

.admin-body {
  max-width: 1180px;
  margin: 1.8rem auto 3.5rem;
  padding: 0 1.8rem;
}

.admin-body .card {
  box-shadow: 0 22px 48px rgba(31, 26, 36, 0.12);
  margin-bottom: 1.6rem;
}

.admin-body .card h2 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 14px 36px rgba(31, 26, 36, 0.15);
  border: 1px solid rgba(179, 30, 76, 0.12);
}

.metric h3 {
  margin: 0;
  font-size: 1rem;
  color: #3a3342;
}

.metric strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 2.2rem;
}

.poll-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poll-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.poll-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(179, 30, 76, 0.12);
  overflow: hidden;
}

.poll-progress span {
  display: block;
  height: 100%;
  background: #b31e4c;
}

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

.insight-card {
  background: #faf6f2;
  border-radius: 14px;
  border: 1px solid rgba(31, 26, 36, 0.08);
  padding: 1rem 1.2rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7b7085;
  display: block;
}

.insight-card strong {
  font-size: 1.9rem;
  display: block;
  margin: 0.2rem 0;
}

.stat-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #6d6273;
}

.insight-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.mini-card {
  background: #fff7f9;
  border-radius: 14px;
  border: 1px solid rgba(179, 30, 76, 0.12);
  padding: 1.2rem;
}

.mini-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.mini-card ul {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.mini-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(31, 26, 36, 0.08);
}

.mini-card li:last-child {
  border-bottom: none;
}

.trend-list li {
  flex-direction: column;
  align-items: flex-start;
}

.trend-label {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.trend-count {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trend-value {
  font-weight: 700;
  color: #b31e4c;
}

.trend-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(179, 30, 76, 0.18);
  overflow: hidden;
}

.trend-bar span {
  display: block;
  height: 100%;
  background: #b31e4c;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: Lato, sans-serif;
}

th,
td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(31, 26, 36, 0.08);
  word-break: break-word;
  white-space: normal;
  max-width: 300px;
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6d6273;
  letter-spacing: 0.08em;
}

tbody tr:hover {
  background: rgba(217, 38, 97, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-ok {
  background: #d9f7df;
  color: #0b6a3b;
}

.badge-muted {
  background: #e7ddeb;
  color: #3a3342;
}

.muted {
  color: #6d6273;
  font-size: 0.9rem;
}

.chart-wrap {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.chart-wrap canvas {
  width: 100% !important;
  height: auto;
}

.chart-wrap.chart-pie {
  max-width: 360px;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.poll-form {
  display: grid;
  gap: 0.8rem;
}

form label {
  display: block;
  font-weight: 600;
  margin-top: 1.2rem;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form textarea,
form select {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(58, 51, 66, 0.2);
  font-size: 1rem;
  font-family: inherit;
  margin-top: 0.35rem;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.02);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

.poll-option-box {
  border: 1px solid rgba(58, 51, 66, 0.16);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.poll-option-box:hover {
  border-color: var(--rose-600);
  box-shadow: 0 10px 26px rgba(var(--bs-primary-rgb), 0.1);
}

.poll-option-box .form-check-input {
  margin-top: 0.25rem;
}

.poll-option-box .form-check-input:checked {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
}

.poll-option-box .form-check-label,
.poll-option-box span {
  flex: 1;
}
.poll-option-box {
  border: 1px solid rgba(58, 51, 66, 0.16);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.poll-option-box:hover {
  border-color: var(--rose-600);
  box-shadow: 0 10px 26px rgba(var(--bs-primary-rgb), 0.1);
}

.poll-option-box .form-check-input {
  margin-top: 0.25rem;
}

.poll-option-box .form-check-input:checked {
  background-color: var(--rose-600);
  border-color: var(--rose-600);
}

.poll-option-box .form-check-label,
.poll-option-box span {
  flex: 1;
}


.dark-mode {
  background: #0f0d14 !important;
  color: #f5f0f7 !important;
}

.dark-mode .card,
.dark-mode .navbar,
.dark-mode .offcanvas,
.dark-mode .alert {
  background: #1b1723 !important;
  color: #f5f0f7 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
}

.dark-mode a {
  color: #f5b0c7;
}

.dark-mode .btn-primary {
  background: #d64b7d;
  border-color: #d64b7d;
}

.dark-mode .btn-outline-primary,
.dark-mode .btn.btn-ghost,
.dark-mode .btn-ghost {
  color: #f5b0c7;
  border-color: rgba(245, 176, 199, 0.7);
}

.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode textarea,
.dark-mode input,
.dark-mode select {
  background: #241d2b;
  color: #f5f0f7;
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .text-muted,
.dark-mode .muted {
  color: rgba(245, 240, 247, 0.7) !important;
}


.brand-logo-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-block;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.brand-spinner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.logo-loaded .brand-logo {
  opacity: 1;
}

.logo-loaded .brand-spinner {
  display: none;
}


.dark-mode {
  background: #0f0d14 !important;
  color: #f5f0f7 !important;
}

.dark-mode .card,
.dark-mode .navbar,
.dark-mode .offcanvas,
.dark-mode .alert {
  background: #1b1723 !important;
  color: #f5f0f7 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
}

.dark-mode a {
  color: #f5b0c7;
}

.dark-mode .btn-primary {
  background: #d64b7d;
  border-color: #d64b7d;
}

.dark-mode .btn-outline-primary,
.dark-mode .btn.btn-ghost,
.dark-mode .btn-ghost {
  color: #f5b0c7;
  border-color: rgba(245, 176, 199, 0.7);
}

.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode textarea,
.dark-mode input,
.dark-mode select {
  background: #241d2b;
  color: #f5f0f7;
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .text-muted,
.dark-mode .muted {
  color: rgba(245, 240, 247, 0.7) !important;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), 0.18);
}

button.btn-ghost {
  background: #fff;
  border-color: rgba(var(--bs-primary-rgb), 0.35);
  color: #b3154c;
}

button.small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

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

  .admin-body .card {
    overflow-x: auto;
  }

  .admin-body .card table {
    display: block;
    min-width: 620px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-body .card table thead,
  .admin-body .card table tbody {
    display: table;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-body .nav-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
  .site-body .nav-toggle {
    display: inline-flex;
  }
  .site-body .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  .site-body .primary-nav.nav-open {
    display: flex;
  }

  .site-body .hero {
    padding: 3.2rem 0;
  }

  .site-body .primary-nav {
    flex-wrap: wrap;
  }

  .admin-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-nav {
    flex-wrap: wrap;
  }
}




body.admin-shell {
  background: #f5f3f7;
}

.admin-shell .container-fluid {
  padding: 0;
}

.admin-shell .row {
  margin: 0;
}


.admin-sidebar {
  width: 200px;
  min-width: 200px;
  background: #000000;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: transform 0.2s ease;
  overflow-y: auto;
}

.admin-sidebar.collapsed {
  transform: translateX(-200px);
}

.admin-sidebar .sidebar-header {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-sidebar .sidebar-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.admin-sidebar .sidebar-header span {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}

.admin-sidebar .nav-group-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  padding: 1rem 0.75rem 0.25rem;
  font-weight: 700;
}

.admin-sidebar .nav-link {
  display: block;
  padding: 0.4rem 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  border-left: 2px solid transparent;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.admin-sidebar .nav-link.active {
  border-left-color: #c62855;
  color: #fff;
}

.admin-sidebar .sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

.admin-sidebar .sidebar-footer button {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.35rem;
  font-size: 0.75rem;
  border-radius: 2px;
  cursor: pointer;
}


.sidebar-toggle {
  position: fixed;
  left: 200px;
  top: 0.5rem;
  z-index: 101;
  background: #1a1520;
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: left 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle.shifted {
  left: 0;
}


.admin-main {
  margin-left: 200px;
  min-height: 100vh;
  transition: margin-left 0.2s ease;
  padding: 0;
}

.admin-main.expanded {
  margin-left: 0;
}


.admin-body {
  padding: 0;
  max-width: none;
  margin: 0;
}


.admin-body .page-header {
  background: #fff;
  border-bottom: 1px solid #e0dce4;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-body .page-header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #3a3342;
}


.admin-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e0dce4;
  padding: 0 1rem;
  gap: 0;
}

.admin-tabs a,
.admin-tabs button {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6d6273;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.admin-tabs a:hover,
.admin-tabs button:hover {
  color: #3a3342;
  background: #faf8fb;
}

.admin-tabs a.active,
.admin-tabs button.active,
.admin-tabs span.active {
  color: #9c2a46;
  border-bottom-color: #9c2a46;
}

.admin-tabs span {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6d6273;
  border-bottom: 2px solid transparent;
}


.admin-content {
  padding: 1rem;
}


.stats-row {
  display: flex;
  gap: 1px;
  background: #e0dce4;
  border: 1px solid #e0dce4;
  margin-bottom: 1rem;
}

.stats-row .stat {
  flex: 1;
  background: #fff;
  padding: 0.75rem 1rem;
  min-width: 0;
}

.stats-row .stat-label {
  font-size: 0.7rem;
  color: #7b7085;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.stats-row .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3a3342;
  line-height: 1;
}

.stats-row .stat-delta {
  font-size: 0.7rem;
  color: #0b6a3b;
  margin-top: 0.15rem;
}

.stats-row .stat-delta.negative {
  color: #991b1b;
}


.admin-body .metric {
  background: #fff;
  border: 1px solid #e0dce4;
  padding: 0.75rem 1rem;
}

.admin-body .metric h3 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #7b7085;
}

.admin-body .metric strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3a3342;
  line-height: 1;
  display: block;
  margin-top: 0.15rem;
}


.admin-body .grid {
  display: flex;
  gap: 1px;
  background: #e0dce4;
  border: 1px solid #e0dce4;
}

.admin-body .grid > * {
  flex: 1;
  background: #fff;
}

.admin-body .metrics-stack {
  flex-direction: column;
  gap: 1rem;
  background: transparent;
  border: none;
}

.admin-body .metrics-stack > * {
  width: 100%;
}

.admin-body .grid-3 {
  display: flex;
}


.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.panel {
  background: #fff;
  border: 1px solid #e0dce4;
}

.panel-header {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e0dce4;
  font-weight: 700;
  font-size: 0.8rem;
  color: #3a3342;
  background: #faf8fb;
}

.panel-body {
  padding: 0;
  max-height: 950px;
  overflow-y: auto;
}

.panel-body.no-scroll {
  max-height: none;
  overflow: visible;
}


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

.data-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #f0ecf2;
  font-size: 0.8rem;
}

.data-list li:last-child {
  border-bottom: none;
}

.data-list .label {
  color: #3a3342;
}

.data-list .value {
  font-weight: 700;
  color: #9c2a46;
}


.admin-body .insight-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}

.admin-body .mini-card {
  background: #fff;
  border: 1px solid #e0dce4;
  padding: 0;
  max-height: 350px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-body .mini-card h3 {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a3342;
  background: #faf8fb;
  border-bottom: 1px solid #e0dce4;
}

.admin-body .mini-card ul,
.admin-body .mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.admin-body .mini-card li,
.admin-body .mini-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #f0ecf2;
  font-size: 0.8rem;
  color: #3a3342;
}

.admin-body .mini-card li:last-child {
  border-bottom: none;
}

.admin-body .mini-card li strong {
  font-weight: 700;
  color: #9c2a46;
}


.admin-body .trend-list li {
  flex-direction: column;
  align-items: stretch;
  gap: 0.1rem;
}

.admin-body .trend-label {
  font-weight: 600;
  font-size: 0.7rem;
  color: #6d6273;
}

.admin-body .trend-count {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-body .trend-value {
  font-weight: 700;
  color: #9c2a46;
  font-size: 0.75rem;
  min-width: 1.25rem;
}

.admin-body .trend-bar {
  flex: 1;
  height: 4px;
  background: #e0dce4;
}

.admin-body .trend-bar span {
  display: block;
  height: 100%;
  background: #9c2a46;
}


.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 80px;
  padding: 0.75rem;
}

.spark-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.spark-bar {
  width: 100%;
  background: #9c2a46;
  min-height: 2px;
  margin-top: auto;
  transition: height 0.2s ease;
}

.spark-label {
  font-size: 0.6rem;
  color: #6d6273;
  margin-top: 0.25rem;
  font-weight: 600;
}


.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #f0ecf2;
  font-size: 0.8rem;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row strong {
  font-weight: 700;
  color: #9c2a46;
}


.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a3342;
}


.panel-row:has(.panel:nth-child(3)) {
  grid-template-columns: 1fr 1fr 1fr;
}


.admin-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #fff;
}

.admin-body table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6d6273;
  background: #faf8fb;
  border-bottom: 1px solid #e0dce4;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-body table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f0ecf2;
  vertical-align: middle;
}

.admin-body tbody tr:hover {
  background: #faf8fb;
}


.admin-body .card {
  background: #fff;
  border: 1px solid #e0dce4;
  padding: 0;
  margin-bottom: 1rem;
  border-radius: 0;
  box-shadow: none;
}

.admin-body .card > h2,
.admin-body .card > h3 {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3a3342;
  background: #faf8fb;
  border-bottom: 1px solid #e0dce4;
}

.admin-body .card > *:not(h2):not(h3):not(table) {
  padding: 0.75rem;
}

.admin-body .card table {
  margin: 0;
}


.admin-body form label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3a3342;
  margin-bottom: 0.2rem;
  display: block;
}

.admin-body input[type="text"],
.admin-body input[type="email"],
.admin-body input[type="password"],
.admin-body input[type="tel"],
.admin-body input[type="datetime-local"],
.admin-body textarea,
.admin-body select {
  width: 100%;
  border: 1px solid #d8d3dc;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 0;
  background: #fff;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  outline: none;
  border-color: #9c2a46;
}

.admin-body textarea {
  min-height: 80px;
  resize: vertical;
}


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


.admin-body button,
.admin-body .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0;
  border: 1px solid #9c2a46;
  background: #9c2a46;
  color: #fff;
  cursor: pointer;
}

.admin-body button:hover,
.admin-body .btn:hover {
  background: #7b0f38;
  border-color: #7b0f38;
}

.admin-body .btn-ghost,
.admin-body button.btn-ghost {
  background: #fff;
  color: #9c2a46;
}

.admin-body .btn-ghost:hover {
  background: #faf8fb;
}

.admin-body .btn.small,
.admin-body button.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
}

.admin-body .table-actions {
  display: flex;
  gap: 0.25rem;
}


.admin-body .alert {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-left: 3px solid;
  margin-bottom: 0.75rem;
  background: #fff;
}

.admin-body .alert-success {
  border-left-color: #0b6a3b;
  color: #0b6a3b;
}

.admin-body .alert-danger {
  border-left-color: #991b1b;
  color: #991b1b;
}


.badge {
  padding: 0.15rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 0;
}

.badge-ok {
  background: #d9f7df;
  color: #0b6a3b;
}

.badge-muted {
  background: #e7ddeb;
  color: #3a3342;
}


@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-200px);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    left: 0;
  }

  .sidebar-toggle.shifted {
    left: 200px;
  }

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

  .panel-row.three-col {
    grid-template-columns: 1fr;
  }

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

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

  .stats-row .stat {
    flex: 1 1 calc(33.33% - 1px);
    min-width: 100px;
  }

  .admin-body .grid,
  .admin-body .grid-3 {
    flex-wrap: wrap;
  }

  .admin-body .grid > *,
  .admin-body .grid-3 > * {
    flex: 1 1 calc(50% - 1px);
    min-width: 120px;
  }
}

@media (max-width: 540px) {
  .stats-row .stat {
    flex: 1 1 calc(50% - 1px);
  }

  .admin-body .grid > *,
  .admin-body .grid-3 > * {
    flex: 1 1 100%;
  }

  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tabs a,
  .admin-tabs button {
    white-space: nowrap;
  }

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