:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2933;
  background-color: #f4f6fb;
  --primary: #d81b60;
  --secondary: #0d6efd;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(216, 27, 96, 0.1), transparent), #f9fafb;
  min-height: 100vh;
  padding: 2rem;
}

body.public-home {
  background: linear-gradient(180deg, #fff7fb 0%, #f8fafc 42%, #f9fafb 100%);
}

.public-shell-header,
.hero-header,
.top-nav {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.public-shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(14px);
}

.public-user-badge {
  min-width: 0;
}

.public-user-badge .badge-title {
  color: #0f172a;
  font-size: 1rem;
}

.public-guest-access {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
}

.public-session-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.public-management-button {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.public-settings-button {
  background: linear-gradient(135deg, var(--primary), #ef5b93);
}

.public-logout-button {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.hero-header {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid rgba(216, 27, 96, 0.12);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff7fb 58%, #f0fdfa 100%);
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.top-nav a {
  min-height: 4rem;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 18px 35px -32px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover,
.top-nav a.active {
  transform: translateY(-1px);
  border-color: rgba(216, 27, 96, 0.2);
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 64%);
  box-shadow: 0 18px 35px -26px rgba(216, 27, 96, 0.28);
  color: var(--primary);
}

.top-nav-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1f6;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1;
}

.top-nav a:nth-child(2) .top-nav-icon {
  background: #ecfeff;
  color: #0d9488;
}

.top-nav a:nth-child(3) .top-nav-icon {
  background: #fff7ed;
  color: #c2410c;
}

.hero-logo {
  width: min(960px, 74vw);
  max-width: 98vw;
  display: block;
  margin: 0 auto;
}

@media (max-width: 640px) {
  body.public-home {
    padding: 1rem;
  }

  .public-shell-header {
    align-items: stretch;
    flex-direction: column;
  }

  .public-session-actions {
    width: 100%;
  }

  .public-session-actions .admin-top-button {
    flex: 1 1 100%;
  }

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

  .top-nav a {
    justify-content: flex-start;
  }

  .login-card-header {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .public-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .public-count-pill {
    width: fit-content;
  }

  .directors-list {
    padding: 1rem;
  }

  .hero-logo {
    width: 85vw;
    max-width: 420px;
  }

  .settings-modal-grid {
    grid-template-columns: 1fr;
  }

  .settings-modal-actions {
    flex-direction: column-reverse;
  }

  .settings-modal-actions button {
    width: 100%;
    justify-content: center;
  }

  .settings-modal-header {
    grid-template-columns: 1fr;
    padding-right: 2.8rem;
  }
}

h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
  color: #111827;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

#events-view,
#directors-section,
#about-section,
#registration-summary-section {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.15rem;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
}

.public-section-card {
  padding: 0;
  overflow: hidden;
}

.public-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 64%, #f0fdfa 100%);
}

.public-section-header h2 {
  margin: 0.1rem 0 0.2rem;
}

.public-section-header p {
  margin: 0;
  color: var(--muted);
}

.public-count-pill {
  min-width: 2.2rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  text-align: center;
}

#login-view {
  max-width: 520px;
  margin: 0 auto;
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 58%, #f0fdfa 100%);
  box-shadow: 0 22px 48px -34px rgba(15, 23, 42, 0.42);
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
}

.login-card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.2rem, 3vw, 1.85rem) 0;
}

.login-card-header h1 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.05;
}

.login-card-header p {
  margin: 0;
  color: var(--muted);
}

.login-eyebrow {
  color: var(--primary) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-icon {
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe4ef;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(216, 27, 96, 0.08);
}

.login-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.35rem clamp(1.2rem, 3vw, 1.85rem) 0;
}

#login-form label {
  text-align: left;
  gap: 0.5rem;
  color: #475569;
  font-weight: 800;
}

#login-form label span {
  padding-left: 0.15rem;
}

.about-body {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
}

.about-intro {
  color: #334155;
  font-size: 1rem;
  line-height: 1.65;
}

.about-intro p {
  margin: 0 0 0.85rem;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-block {
  display: grid;
  gap: 0.8rem;
}

.about-block h3 {
  margin: 0;
  color: #0f172a;
}

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

.about-link-card,
.about-document-card {
  position: relative;
  min-height: 148px;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--primary)) 26%, #ffffff);
  border-radius: 1.15rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, var(--primary)) 13%, #ffffff) 0%, #ffffff 70%);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.about-link-card {
  display: grid;
  gap: 0.9rem;
  align-content: space-between;
}

.about-document-card {
  display: grid;
  align-content: space-between;
  gap: 0.9rem;
  color: var(--text-color, #ffffff);
}

.about-card-accent {
  width: 2.8rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--card-color, var(--primary));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--card-color, var(--primary)) 24%, transparent);
}

.about-card-content {
  display: grid;
  gap: 0.36rem;
  position: relative;
  z-index: 1;
}

.about-link-card strong,
.about-document-card h3 {
  color: inherit;
  font-size: 1.08rem;
  line-height: 1.18;
  font-weight: 900;
}

.about-link-card .about-card-content span,
.about-document-card p {
  color: color-mix(in srgb, currentColor 76%, transparent);
  line-height: 1.45;
}

.about-document-card h3,
.about-document-card p {
  margin: 0;
}

.about-document-card p {
  margin-top: 0;
}

.about-card-action,
.about-document-missing {
  width: fit-content;
  border-radius: 999px;
  padding: 0.5rem 0.78rem;
  background: color-mix(in srgb, var(--card-color, var(--primary)) 16%, #ffffff);
  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-color, var(--primary)) 18%, transparent);
}

.registration-summary-header {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 64%, #fff7fb 100%);
}

.registration-summary-check {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #047857;
  font-size: 1.35rem;
  font-weight: 900;
}

.registration-summary-body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.registration-confirmation-panel {
  padding: 1rem;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 72%);
}

.registration-confirmation-panel h3 {
  margin: 0.2rem 0 0.35rem;
  color: #0f172a;
  font-size: 1.35rem;
}

.registration-confirmation-panel p:last-child {
  margin: 0;
  color: #475569;
}

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

.registration-summary-detail {
  min-height: 5.25rem;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: #ffffff;
}

.registration-summary-detail span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registration-summary-detail strong {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
}

.registration-summary-actions {
  display: flex;
  justify-content: flex-end;
}

#login-form input {
  min-height: 3.15rem;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#login-form input:focus {
  border-color: rgba(216, 27, 96, 0.55);
  outline: 3px solid rgba(216, 27, 96, 0.12);
}

#login-view button {
  width: 100%;
  justify-content: center;
}

.login-submit-button {
  min-height: 3.15rem;
  margin-top: 0.15rem;
  background: linear-gradient(135deg, var(--primary), #ef5b93);
  box-shadow: 0 16px 30px rgba(216, 27, 96, 0.22);
  font-weight: 900;
}

#login-view .login-guest-button {
  width: calc(100% - clamp(2.4rem, 6vw, 3.7rem));
  min-height: 3rem;
  margin: 0 clamp(1.2rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 1.85rem);
  border-color: rgba(15, 118, 110, 0.22);
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 900;
}

#login-view .login-guest-button:hover {
  background: #ccfbf1;
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.16);
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

label small {
  font-size: 0.75rem;
  color: var(--muted);
}

input,
select,
button,
textarea {
  font: inherit;
}

input,
select,
textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: #fff;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.secondary {
  background: transparent;
  color: var(--secondary);
  border: 1px solid rgba(13, 110, 253, 0.4);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(216, 27, 96, 0.2);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.info-banner {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #065f46;
}

.info-banner p {
  margin: 0.1rem 0 0;
}

.info-banner .check {
  font-size: 1.5rem;
  line-height: 1;
  color: #10b981;
}

.install-banner {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.install-banner p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.divider {
  text-align: center;
  color: var(--muted);
  margin: 0.8rem 0;
  font-size: 0.85rem;
}

.login-divider {
  position: relative;
  margin: 1.15rem clamp(1.2rem, 3vw, 1.85rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(148, 163, 184, 0.22);
}

.login-divider span {
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.payment-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  background: #fff;
  border-radius: 1.2rem;
  max-width: 520px;
  width: 100%;
  padding: 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 30px 80px -36px rgba(15, 23, 42, 0.45);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.bonifico-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bonifico-field {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
}

.bonifico-field span {
  font-size: 0.85rem;
  color: var(--muted);
}

.bonifico-field strong {
  font-size: 0.95rem;
}

.copy-btn {
  border: none;
  border-radius: 0.6rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  background: #e0e7ff;
  color: #312e81;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reminder {
  font-size: 0.85rem;
  color: var(--muted);
}

.reminder.highlight {
  background: #fef3c7;
  border-radius: 0.6rem;
  padding: 0.8rem;
  color: #92400e;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.modal-actions .success {
  background: #16a34a;
}

.payment-modal-overlay {
  align-items: flex-start;
  padding:
    max(1rem, env(safe-area-inset-top))
    clamp(0.9rem, 4vw, 2rem)
    max(1rem, env(safe-area-inset-bottom));
}

.payment-modal {
  width: min(100%, 560px);
  margin: auto;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(216, 27, 96, 0.12);
  background:
    radial-gradient(circle at top right, rgba(216, 27, 96, 0.14), transparent 34%),
    linear-gradient(180deg, #fff9fc 0%, #ffffff 40%);
}

.payment-modal h3 {
  margin: 0;
  padding-right: 2.5rem;
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
}

.payment-modal > .muted {
  margin: -0.1rem 0 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(216, 27, 96, 0.1);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
}

.payment-modal .modal-close {
  top: 0.9rem;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.payment-modal .modal-close:hover {
  transform: none;
  box-shadow: none;
  background: #ffe4ef;
}

.payment-modal .bonifico-grid {
  gap: 0.95rem;
}

.payment-modal .bonifico-field {
  grid-template-columns: minmax(0, 7.2rem) minmax(0, 1fr) auto;
  padding: 0.9rem 1rem;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 34px -28px rgba(15, 23, 42, 0.42);
}

.payment-modal .bonifico-field span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c8597;
}

.payment-modal .bonifico-field strong {
  color: #111827;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.payment-modal .copy-btn {
  min-width: 4.8rem;
  padding-inline: 0.95rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f5e8ff 100%);
  color: #4338ca;
  box-shadow: none;
}

.payment-modal .reminder {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: #f8fafc;
  color: #475569;
  line-height: 1.5;
}

.payment-modal .reminder.highlight {
  border: 1px solid #fcd34d;
  background: linear-gradient(135deg, #fff8db 0%, #fffbeb 100%);
  color: #92400e;
}

.payment-modal .reminder strong {
  overflow-wrap: anywhere;
}

.payment-modal .modal-actions {
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.payment-modal .modal-actions button {
  min-width: 8.6rem;
}

.payment-confirm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.payment-confirm-button .button-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: button-spin 0.75s linear infinite;
}

.payment-confirm-button[data-loading='true'] .button-spinner {
  display: inline-block;
}

.payment-confirm-button[data-loading='true'] {
  cursor: wait;
  opacity: 0.86;
}

.payment-modal button:disabled {
  cursor: wait;
}

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

@media (max-width: 640px) {
  .payment-modal-overlay {
    padding:
      max(0.75rem, env(safe-area-inset-top))
      0.75rem
      max(0.9rem, env(safe-area-inset-bottom));
  }

  .payment-modal {
    margin: 0;
    border-radius: 1.05rem;
  }

  .payment-modal .bonifico-field {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.95rem;
  }

  .payment-modal .copy-btn {
    width: 100%;
  }

  .payment-modal .modal-actions {
    flex-direction: column-reverse;
  }

  .payment-modal .modal-actions button {
    width: 100%;
  }
}

.poster-modal-card {
  background: #000;
  border-radius: 1.2rem;
  padding: 1rem;
  max-width: min(60rem, 85vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  position: relative;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.6);
}

.poster-container {
  flex: 1;
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.poster-full {
  max-width: min(55rem, 80vw);
  max-height: 65vh;
  border-radius: 1rem;
  object-fit: contain;
  width: 100%;
  height: auto;
}

.share-btn {
  background: #2563eb;
}

.print-row {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.print-button {
  background: #0f172a;
}

.export-attendees-button {
  background: #107c41;
}

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

.director-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  background: linear-gradient(135deg, #ffffff 0%, #fff7fb 64%);
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.director-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.directors-list {
  padding: 1.25rem;
}

.director-card-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.director-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #ffe4ef;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.director-card-body {
  display: grid;
  gap: 0.35rem;
}

.directors-loading,
.directors-empty-row {
  margin: 0;
  padding: 1.3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.ai-drop {
  border: 2px dashed var(--primary);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff7fb;
  margin-bottom: 1rem;
  text-align: center;
}

.ai-drop.dragover {
  background: #ffe4f1;
}

.ai-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.ai-preview {
  margin-top: 0.8rem;
  min-height: 40px;
}

.ai-preview img {
  max-width: 180px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.archive-drive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 70%, #fff7fb 100%);
  box-shadow: 0 18px 35px -32px rgba(15, 23, 42, 0.35);
}

.archive-drive-content {
  min-width: 0;
  display: grid;
  gap: 0.38rem;
}

.archive-drive-content h3 {
  margin: 0;
  color: #0f172a;
}

.archive-drive-url {
  width: fit-content;
  max-width: 100%;
  color: #0f766e;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.archive-drive-access {
  margin: 0.25rem 0 0;
  color: #475569;
  line-height: 1.5;
}

.archive-drive-open {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  text-decoration: none;
}

.backup-list {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: #f9fafb;
}

.backup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.backup-item:last-child {
  border-bottom: none;
}

.backup-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.backup-actions {
  display: flex;
  gap: 0.4rem;
}

.backup-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.backup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.backup-header-actions {
  display: flex;
  gap: 0.8rem;
}

.backup-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backup-status {
  border-left: 4px solid var(--primary);
}

.backup-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 12px 24px -20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.backup-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.backup-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.backup-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.backup-tag.muted {
  background: #d1d5db;
  color: #111827;
}

.backup-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem 1rem;
  font-size: 0.9rem;
}

.backup-optional {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.backup-clubs {
  margin: 0;
  color: var(--muted);
}

.backup-poster img {
  max-width: min(360px, 100%);
  border-radius: 0.8rem;
  border: 1px solid var(--border);
}

.backup-attendees h4 {
  margin: 0 0 0.4rem;
}

.backup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.backup-table th,
.backup-table td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.backup-table th {
  background: #f3f4f6;
}

@media (max-width: 700px) {
  .backup-header {
    flex-direction: column;
  }

  .backup-table {
    display: block;
    overflow-x: auto;
  }
}

.director-card h4 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.director-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.role-pill,
.director-role {
  display: inline-flex;
  align-items: center;
  background: #fff1f6;
  color: var(--primary);
  border: 1px solid rgba(216, 27, 96, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  line-height: 1.2;
}

.role-pill {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.director-card-copy {
  color: var(--muted);
  min-height: 2.8em;
}

.director-contact-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-color: rgba(13, 148, 136, 0.22);
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 800;
  box-shadow: none;
}

.director-contact-button span[aria-hidden='true'] {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.1);
  line-height: 1;
}

.director-contact-button:hover {
  background: #ccfbf1;
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.16);
}

.director-contact-modal {
  max-width: 520px;
  padding: 1.45rem;
  border: 1px solid rgba(216, 27, 96, 0.14);
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 58%, #f0fdfa 100%);
}

.director-contact-modal .modal-close {
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
}

.director-contact-modal .modal-close:hover {
  transform: none;
  background: #ffe4ef;
  box-shadow: none;
}

.director-modal-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-right: 2.8rem;
}

.director-modal-header h3 {
  margin: 0.45rem 0 0;
  font-size: 1.45rem;
}

.director-modal-avatar {
  width: 3.25rem;
  height: 3.25rem;
}

.director-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.director-contact-row {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.director-contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.director-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.director-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(216, 27, 96, 0.18);
}

.director-contact-link.secondary-link {
  background: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.director-contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
}

#events-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
}

.event-media {
  width: 100%;
  min-height: 360px;
  padding-top: 0;
  border-radius: 0;
  background-color: #fff1f6;
  background-size: cover;
  background-position: center;
}

.event-media.thumbnail {
  cursor: pointer;
}

.event-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 62%, #f0fdfa 100%);
}

.event-media-placeholder {
  width: 5.2rem;
  min-height: 5.6rem;
  border-radius: 1.25rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffe4ef;
  color: var(--primary);
  line-height: 1;
}

.event-media-placeholder strong {
  font-size: 2rem;
}

.event-media-placeholder small {
  margin-top: 0.24rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
}

.event-header {
  display: grid;
  gap: 0.55rem;
}

.event-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.1;
}

.public-event-status {
  width: fit-content;
  padding: 0.25rem 0.68rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-event-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.public-event-status-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.public-event-meta-grid {
  display: grid;
  gap: 0.45rem;
}

.event-date,
.event-location {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #475569;
  font-weight: 700;
}

.event-date strong {
  min-width: 3.05rem;
  min-height: 3.05rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1;
}

.event-date strong span {
  font-size: 1.08rem;
}

.event-date strong small {
  margin-top: 0.16rem;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-location::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #0d9488;
  flex: 0 0 auto;
}

.event-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.event-extra {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem;
}

.event-extra li {
  padding: 0.58rem 0.68rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #475569;
  font-size: 0.9rem;
}

.event-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 800;
}

.event-prices span {
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
}

.event-map iframe {
  width: 100%;
  border: 0;
  border-radius: 1rem;
  height: 220px;
}

.public-event-action-panel {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 78%);
}

.public-event-price {
  color: #0f172a;
  font-weight: 900;
}

.public-event-register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 2.85rem;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  background: linear-gradient(135deg, var(--primary), #ef5b93);
  box-shadow: 0 16px 30px rgba(216, 27, 96, 0.22);
  font-weight: 900;
  white-space: nowrap;
}

.public-event-register-button span[aria-hidden='true'] {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  line-height: 1;
}

.public-event-register-button[data-already-registered='true'] {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.18);
  opacity: 0.9;
}

.public-event-waitlist-button {
  background: linear-gradient(135deg, #be123c, #e11d48);
  box-shadow: 0 16px 30px rgba(190, 18, 60, 0.2);
  white-space: normal;
}

.event-form {
  background: #fdf2f8;
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid #fbcfe8;
}

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

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

.form-footer .price {
  margin: 0;
  font-weight: 700;
}

.registration-modal-card {
  max-width: 760px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 54%, #f0fdfa 100%);
}

.registration-modal-card .modal-close {
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
}

.registration-modal-card .modal-close:hover {
  transform: none;
  background: #ffe4ef;
  box-shadow: none;
}

.registration-modal-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2rem) 0;
  padding-right: 4rem;
}

.registration-modal-header h3 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.55rem;
}

.registration-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe4ef;
  color: var(--primary);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
}

.registration-modal-pill {
  width: fit-content;
  margin: 0.35rem 0 0;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 700;
}

.registration-modal-form.event-form {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 1.35rem clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2rem);
}

.registration-modal-form input:focus,
.registration-modal-form select:focus,
.registration-modal-form textarea:focus {
  border-color: rgba(216, 27, 96, 0.55);
  outline: 3px solid rgba(216, 27, 96, 0.12);
}

.registration-notice-card {
  max-width: 520px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.registration-notice-card h3 {
  margin: 0.15rem 0 0.45rem;
  color: #0f172a;
}

.registration-notice-card p:last-child {
  margin-bottom: 0;
}

.registration-notice-card .modal-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.registration-notice-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 1.35rem;
  font-weight: 900;
}

.registration-notice-card-error .registration-notice-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.waitlist-modal .modal-actions a {
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: #16a34a;
}

.waitlist-modal .modal-actions a.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.attendees {
  grid-column: 1 / -1;
}

.attendees ul {
  list-style: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin: 0;
}

.attendees li {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge-title {
  font-weight: 700;
  margin: 0;
}

.badge-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #111827;
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.toast[data-type='error'] {
  background: #b91c1c;
}

.toast[data-type='info'] {
  background: #0d9488;
}

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

.settings-modal-card {
  max-width: 760px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 54%, #f0fdfa 100%);
}

.settings-modal-card .modal-close {
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
}

.settings-modal-card .modal-close:hover {
  transform: none;
  background: #ffe4ef;
  box-shadow: none;
}

.settings-modal-body {
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.settings-modal-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-right: 2.8rem;
}

.settings-modal-header h2 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.55rem;
}

.settings-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe4ef;
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.settings-modal-pill {
  width: fit-content;
  margin: 0.35rem 0 0;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.35rem;
}

.settings-modal-grid input:focus,
.settings-modal-grid select:focus,
.settings-modal-grid textarea:focus {
  border-color: rgba(216, 27, 96, 0.55);
  outline: 3px solid rgba(216, 27, 96, 0.12);
}

.settings-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.navigation-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.navigation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.navigation-header h1 {
  margin-bottom: 0.25rem;
}

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

.nav-button {
  border: 1px solid rgba(216, 27, 96, 0.4);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(216, 27, 96, 0.25);
}

.view-panel.hidden {
  display: none;
}

.view-panel {
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.4rem;
  text-align: left;
}

.data-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.data-table textarea {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  font: inherit;
  padding: 0.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-pill[data-variant='success'] {
  background: #dcfce7;
  color: #15803d;
}

.status-pill[data-variant='warning'] {
  background: #fef3c7;
  color: #b45309;
}

.status-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.status-toggle input {
  width: auto;
}

.fee-note {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

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

.navigation-header .admin-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.admin-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.58rem 1rem 0.58rem 0.65rem;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-top-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

.admin-public-button {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.admin-site-settings-button {
  background: linear-gradient(135deg, #4f46e5, #0d9488);
}

.admin-logout-button {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.admin-top-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1rem;
  line-height: 1;
}

.view-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-panel-header h2,
.view-panel-header h3 {
  margin-bottom: 0.25rem;
}

.view-panel-header p {
  margin: 0;
  color: var(--muted);
}

.view-panel-header.compact {
  margin-bottom: 0.25rem;
}

.members-panel-header {
  align-items: center;
}

.finance-panel-header {
  align-items: center;
}

.quotes-panel-header {
  align-items: center;
}

.add-member-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.05rem 0.65rem 0.7rem;
  background: linear-gradient(135deg, var(--primary), #ef5b93);
  box-shadow: 0 16px 30px rgba(216, 27, 96, 0.22);
  white-space: nowrap;
}

.add-member-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.35rem;
  line-height: 1;
}

.add-finance-button {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.2);
}

.add-event-button {
  background: linear-gradient(135deg, var(--primary), #ef5b93);
  box-shadow: 0 16px 30px rgba(216, 27, 96, 0.22);
}

.add-settings-button {
  background: linear-gradient(135deg, #334155, #0f172a);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.settings-button-icon {
  font-size: 1.05rem;
}

#members-table {
  width: 100%;
  min-width: 0;
}

.members-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.members-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.35);
}

.members-summary-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.members-summary-card[data-variant='members'] {
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 64%);
  border-color: rgba(216, 27, 96, 0.16);
}

.members-summary-card[data-variant='board'] {
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 64%);
  border-color: rgba(13, 148, 136, 0.16);
}

.members-summary-card[data-variant='board']::before {
  background: #0d9488;
}

.members-summary-card[data-variant='leave'] {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 64%);
  border-color: rgba(245, 158, 11, 0.18);
}

.members-summary-card[data-variant='leave']::before {
  background: #f59e0b;
}

.members-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.members-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1.1;
}

.members-section-card {
  margin-top: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  min-width: 0;
}

.members-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 78%);
}

.members-section-header h3 {
  margin: 0 0 0.2rem;
}

.members-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.members-count-pill {
  min-width: 2.1rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  text-align: center;
}

.members-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

#members-table .data-table {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  table-layout: fixed;
}

#members-table .data-table th:nth-child(1) {
  width: 21%;
}

#members-table .data-table th:nth-child(2) {
  width: 18%;
}

#members-table .data-table th:nth-child(3) {
  width: 14%;
}

#members-table .data-table th:nth-child(4) {
  width: 13%;
}

#members-table .data-table th:nth-child(5) {
  width: 15%;
}

#members-table .data-table th:nth-child(6) {
  width: 10%;
}

#members-table .data-table th:nth-child(7) {
  width: 9%;
}

#members-table .data-table th,
#members-table .data-table td {
  padding: 0.82rem 0.8rem;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

#members-table .data-table tbody tr {
  transition: background 0.18s ease;
}

#members-table .data-table tbody tr:hover {
  background: #f8fafc;
}

#members-table .data-table tbody tr.is-on-leave {
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.86), #ffffff 44%);
}

#members-table .data-table input,
#members-table .data-table select {
  width: 100%;
  min-width: 0;
}

#members-table .data-table button {
  max-width: 100%;
}

.member-identity {
  display: grid;
  gap: 0.28rem;
}

.member-identity strong {
  color: #0f172a;
  line-height: 1.25;
}

.member-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.82rem;
}

.member-state-pill {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-contact-link {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.member-contact-link:hover {
  color: #0d9488;
}

.member-empty-value,
.member-muted-value {
  color: #94a3b8;
}

.member-role-select {
  border-color: rgba(216, 27, 96, 0.16);
  border-radius: 999px;
  background-color: #fff7fb;
  color: #7a1d3a;
  font-weight: 800;
}

.member-role-select:focus,
.member-office-input:focus {
  border-color: rgba(216, 27, 96, 0.55);
  outline: 3px solid rgba(216, 27, 96, 0.12);
}

.member-office-input {
  border-radius: 0.78rem;
  background: #f8fafc;
  font-weight: 700;
}

.member-actions-cell {
  text-align: right;
}

button.member-delete-button {
  border-radius: 999px;
  padding: 0.52rem 0.78rem;
  background: #fff7f7;
}

button.member-delete-button:hover {
  background: #fee2e2;
}

.members-empty-row {
  padding: 1.3rem 1rem;
  color: var(--muted);
  text-align: center;
}

#quotes-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.quote-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.quote-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.35);
}

.quote-summary-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.quote-summary-card[data-variant='due'] {
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 64%);
  border-color: rgba(216, 27, 96, 0.16);
}

.quote-summary-card[data-variant='paid'] {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 64%);
  border-color: rgba(22, 163, 74, 0.18);
}

.quote-summary-card[data-variant='paid']::before {
  background: #16a34a;
}

.quote-summary-card[data-variant='missing'] {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 64%);
  border-color: rgba(245, 158, 11, 0.18);
}

.quote-summary-card[data-variant='missing']::before {
  background: #f59e0b;
}

.quote-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.6rem;
  line-height: 1.1;
}

.quote-summary-card small {
  display: block;
  margin-top: 0.45rem;
  color: #64748b;
}

.quote-progress-card {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.28);
}

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

.quote-progress-header span {
  color: var(--muted);
  font-weight: 700;
}

.quote-progress-header strong {
  color: #0f172a;
}

.quote-progress-track {
  width: 100%;
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.quote-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
}

.quotes-section-card {
  margin-top: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  min-width: 0;
}

.quotes-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.quotes-table {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  table-layout: fixed;
}

.quotes-table th,
.quotes-table td {
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.quotes-table tbody tr:hover {
  background: #f8fafc;
}

.quote-member-name,
.quote-username {
  display: block;
}

.quote-member-name {
  color: #0f172a;
}

.quote-username {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.quote-amount {
  color: #0f172a;
  font-weight: 800;
}

.fee-note {
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
}

.fee-note[data-variant='leave'] {
  background: #e0f2fe;
  color: #075985;
}

.fee-note[data-variant='honorary'] {
  background: #fef3c7;
  color: #92400e;
}

.quote-paid-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-weight: 700;
}

.quote-note-input {
  min-width: 0;
}

.quote-toggle {
  width: fit-content;
  min-height: 2.1rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.quote-toggle input {
  accent-color: var(--primary);
}

.quote-save-button {
  padding-inline: 1rem;
  max-width: 100%;
}

.admin-add-attendee {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.admin-form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-form-grid.compact label {
  font-size: 0.85rem;
}

.admin-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.note-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.note-cell-inline {
  flex-direction: row;
  align-items: flex-start;
}

.note-cell-inline input {
  flex: 1;
  min-width: 12rem;
  height: 42px;
}

.note-cell-inline button {
  align-self: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

button.danger {
  background: #b91c1c;
}

button.danger:hover {
  box-shadow: 0 10px 20px rgba(185, 28, 28, 0.25);
}

button.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

button.danger.ghost {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.4);
  box-shadow: none;
}

.events-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  min-width: 0;
}

.event-list-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  min-width: 0;
}

.events-calendar-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.1rem 1.15rem;
}

.events-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -1rem -1.1rem 0;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 78%);
}

.events-calendar-header h3 {
  margin: 0.2rem 0 0;
}

.month-nav-button {
  width: 2.8rem;
  min-width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border-radius: 999px;
  font-weight: 900;
}

.events-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.events-calendar-weekdays span {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.events-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.events-calendar-cell {
  min-height: 140px;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.events-calendar-cell.is-empty {
  background: rgba(248, 250, 252, 0.55);
  border-style: dashed;
  box-shadow: none;
}

.events-calendar-cell.has-events {
  border-color: rgba(216, 27, 96, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
}

.events-calendar-cell.is-selected {
  border-color: rgba(216, 27, 96, 0.45);
  box-shadow: 0 18px 35px rgba(216, 27, 96, 0.12);
}

.events-calendar-cell.is-today .events-calendar-day {
  background: #0f172a;
  color: #fff;
}

.events-calendar-day {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #7a1d3a;
  background: rgba(216, 27, 96, 0.08);
}

.events-calendar-empty {
  margin-top: auto;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.calendar-event-chip {
  text-align: left;
  border: 1px solid rgba(216, 27, 96, 0.12);
  border-radius: 0.8rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: none;
}

.calendar-event-chip span {
  font-weight: 700;
  font-size: 0.88rem;
}

.calendar-event-chip small {
  font-size: 0.72rem;
  color: var(--muted);
}

.calendar-event-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.calendar-event-chip.active small {
  color: rgba(255, 255, 255, 0.88);
}

.calendar-event-chip.past {
  opacity: 0.8;
}

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

.month-event-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.month-event-card {
  text-align: left;
  border: 1px solid rgba(216, 27, 96, 0.16);
  border-radius: 0.85rem;
  padding: 0.95rem 1rem;
  background: #fff;
  color: #7a1d3a;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: none;
}

.month-event-card.active {
  background: linear-gradient(135deg, #d81b60, #ef5b93);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 35px rgba(216, 27, 96, 0.2);
}

.month-event-card.active .month-event-meta,
.month-event-card.active small {
  color: rgba(255, 255, 255, 0.9);
}

.month-event-title {
  font-size: 1rem;
  font-weight: 700;
}

.month-event-meta {
  font-size: 0.92rem;
  color: #475569;
}

.month-event-card small {
  font-size: 0.8rem;
  color: var(--muted);
}

.undated-events-block {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.undated-events-block h4 {
  margin: 0 0 0.75rem;
}

.event-detail-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #fff;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
}

.event-detail-hero {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 62%, #f0fdfa 100%);
}

.event-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-detail-title-block h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.55rem;
}

.event-detail-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.event-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.event-status-pill[data-status='published'] {
  background: #dcfce7;
  color: #166534;
}

.event-status-pill[data-status='hidden'] {
  background: #f1f5f9;
  color: #475569;
}

.event-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.event-metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

.event-metric-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--primary);
}

.event-metric-card[data-variant='registered'] {
  border-color: rgba(216, 27, 96, 0.16);
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 64%);
}

.event-metric-card[data-variant='registered']::before {
  background: var(--primary);
}

.event-metric-card[data-variant='paid'] {
  border-color: rgba(22, 163, 74, 0.18);
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 64%);
}

.event-metric-card[data-variant='paid']::before {
  background: #16a34a;
}

.event-metric-card[data-variant='attended'] {
  border-color: rgba(13, 148, 136, 0.16);
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 64%);
}

.event-metric-card[data-variant='attended']::before {
  background: #0d9488;
}

.event-metric-card[data-variant='member-price'] {
  border-color: rgba(79, 70, 229, 0.18);
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 64%);
}

.event-metric-card[data-variant='member-price']::before {
  background: #4f46e5;
}

.event-metric-card[data-variant='guest-price'],
.event-metric-card[data-variant='no-payment'] {
  border-color: rgba(245, 158, 11, 0.18);
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 64%);
}

.event-metric-card[data-variant='guest-price']::before,
.event-metric-card[data-variant='no-payment']::before {
  background: #f59e0b;
}

.event-metric-card[data-variant='no-payment'] {
  grid-column: span 2;
}

.event-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-metric-card strong {
  display: block;
  margin-top: 0.28rem;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
}

.event-metric-card[data-variant='no-payment'] strong {
  font-size: 1rem;
  line-height: 1.25;
}

.event-info-card {
  margin: 1rem 1.1rem 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.event-section-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 78%);
}

.event-section-header h4 {
  margin: 0 0 0.2rem;
}

.event-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0;
  padding: 1rem 1.1rem;
}

.event-info-grid textarea {
  min-height: 110px;
}

.maps-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.maps-picker input[type='search'],
.maps-picker input[name='mapEmbed'] {
  width: 100%;
}

.maps-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  z-index: 2;
}

.maps-suggestions li {
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.maps-suggestions li:hover,
.maps-suggestions li:focus {
  background: #fdf2f8;
}

.maps-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}

.maps-actions button {
  border-radius: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  height: 42px;
}

.interclub-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-inline-toggle {
  align-self: end;
  min-height: 47px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #334155;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.event-inline-toggle input {
  width: auto;
  accent-color: var(--primary);
}

.event-form-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.event-attendees-list {
  margin: 1rem 1.1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.event-attendees-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 78%);
  flex-wrap: wrap;
}

.event-attendees-list h4 {
  margin: 0 0 0.2rem;
}

.add-attendee-button {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 16px 30px rgba(13, 148, 136, 0.18);
}

.event-attendees-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.event-attendees-table-wrap .data-table {
  min-width: 1180px;
  margin-top: 0;
}

.event-delete-button {
  white-space: nowrap;
}

.attendee-modal-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 54%, #fff7fb 100%);
}

.finance-modal-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 52%, #f8fafc 100%);
}

.finance-modal-icon {
  background: #ccfbf1;
  color: #0f766e;
}

.finance-modal-pill {
  background: #ecfeff;
  color: #155e75;
}

.quotes-modal-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 52%, #fff7fb 100%);
}

.quotes-modal-icon {
  background: #e2e8f0;
  color: #0f172a;
  font-size: 1.55rem;
}

.quotes-modal-pill {
  background: #f1f5f9;
  color: #334155;
}

.quotes-settings-form {
  margin-top: 1.35rem;
}

.finance-form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.finance-note-field {
  grid-column: 1 / -1;
}

.attendee-form-grid textarea {
  min-height: 86px;
  resize: vertical;
}

.attendee-price-editor {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 130px;
}

.attendee-price-editor input {
  width: 100%;
}

.attendee-price-editor button {
  align-self: flex-start;
  white-space: nowrap;
}

/* ===== Tabella iscritti (modernizzata) ===== */
/* Layout fisso: le colonne si dividono lo spazio disponibile e il contenuto
   va a capo invece di sforare lateralmente -> tutto sempre visibile. */
.event-attendees-table-wrap {
  overflow-x: visible;
}

.event-attendees-table-wrap .data-table.attendees-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.attendees-table th,
.attendees-table td {
  padding: 0.55rem 0.45rem;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Intestazioni ordinabili */
.attendees-table th {
  white-space: normal;
}

.attendees-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.attendees-table th.sortable:hover,
.attendees-table th.sortable:focus-visible {
  color: #0f172a;
  outline: none;
}

.attendees-table th .sort-indicator {
  display: inline-block;
  width: 0.85em;
  margin-left: 0.2rem;
  text-align: center;
  color: var(--muted);
  opacity: 0.45;
}

.attendees-table th .sort-indicator::after {
  content: '\2195'; /* ↕ */
}

.attendees-table th.is-sorted-asc .sort-indicator,
.attendees-table th.is-sorted-desc .sort-indicator {
  opacity: 1;
  color: var(--primary);
}

.attendees-table th.is-sorted-asc .sort-indicator::after {
  content: '\2191'; /* ↑ */
}

.attendees-table th.is-sorted-desc .sort-indicator::after {
  content: '\2193'; /* ↓ */
}

/* Colori riga in base allo stato pagato/presente */
.attendees-table tbody tr.attendee-row {
  transition: background 0.15s ease;
}

.attendees-table tbody tr[data-state='none'] {
  background: #ffffff;
}

.attendees-table tbody tr[data-state='attended'] {
  background: #fef2f2; /* solo presente -> rosso */
}

.attendees-table tbody tr[data-state='paid'] {
  background: #fefce8; /* solo pagato -> giallo */
}

.attendees-table tbody tr[data-state='paid-attended'] {
  background: #f0fdf4; /* pagato + presente -> verde */
}

.attendees-table tbody tr.attendee-row td:first-child {
  border-left: 3px solid transparent;
}

.attendees-table tbody tr[data-state='attended'] td:first-child {
  border-left-color: #ef4444;
}

.attendees-table tbody tr[data-state='paid'] td:first-child {
  border-left-color: #eab308;
}

.attendees-table tbody tr[data-state='paid-attended'] td:first-child {
  border-left-color: #22c55e;
}

.attendees-table tbody tr.attendee-row:hover {
  filter: brightness(0.98);
}

/* Cella nome + telefono */
.attendee-name {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.attendee-subline {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Badge tipo (socio/ospite) */
.attendee-type {
  display: inline-block;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.attendee-type[data-type='socio'] {
  background: #fce7f3;
  color: #9d174d;
}

.attendee-type[data-type='ospite'] {
  background: #e0f2fe;
  color: #075985;
}

/* Editor quota compatto (impilato per stare nella colonna) */
.attendees-table .attendee-price-editor {
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  min-width: 0;
}

.attendees-table .attendee-price-editor input {
  width: 100%;
  padding: 0.45rem 0.5rem;
}

.attendees-table .attendee-price-editor .save-button {
  align-self: stretch;
}

/* Checkbox presenza/pagato */
.attendee-toggle-cell {
  text-align: center;
}

.attendee-toggle {
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Cella allergie */
.attendee-allergies-cell {
  white-space: normal;
  font-size: 0.8rem;
  color: #334155;
}

/* Note compatte nella tabella */
.attendees-table .note-cell {
  min-width: 0;
}

.attendees-table .note-cell textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.4rem;
  font-size: 0.8rem;
}

.attendees-table .note-cell .save-button {
  align-self: stretch;
}

/* Bottoni con icona + testo (compatti, riempiono la colonna) */
.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.42rem 0.5rem;
  font-size: 0.78rem;
}

.icon-text-button svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.attendees-empty-row {
  text-align: center;
  color: var(--muted);
  padding: 1.3rem 1rem;
}

.event-list-empty,
.event-detail-empty {
  border: 1px dashed var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  color: var(--muted);
  background: #fff;
}

.finance-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#finance-summary {
  margin-top: 1.35rem;
}

.finance-summary-dashboard {
  align-items: stretch;
}

.finance-card {
  position: relative;
  overflow: hidden;
  flex: 1 1 200px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  min-width: 220px;
  box-shadow: 0 18px 35px -28px rgba(15, 23, 42, 0.35);
}

.finance-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.finance-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f172a;
  font-size: 1.65rem;
  line-height: 1.1;
}

.finance-card small {
  display: block;
  margin-top: 0.45rem;
  color: #64748b;
}

.finance-card-income {
  border-color: rgba(22, 163, 74, 0.18);
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 62%);
}

.finance-card-income::before {
  background: #16a34a;
}

.finance-card-expense {
  border-color: rgba(220, 38, 38, 0.16);
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 62%);
}

.finance-card-expense::before {
  background: #dc2626;
}

.finance-card-balance {
  border-color: rgba(13, 148, 136, 0.16);
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 62%);
}

.finance-card-balance::before {
  background: #0d9488;
}

.finance-card-balance[data-variant='negative'] {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 62%);
}

.finance-card-balance[data-variant='negative']::before {
  background: #f59e0b;
}

.finance-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.finance-section-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.finance-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 78%);
}

.finance-section-header h3 {
  margin: 0 0 0.2rem;
}

.finance-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.finance-count-pill {
  min-width: 2.1rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  text-align: center;
}

.finance-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.finance-table {
  margin-top: 0;
}

.finance-table th,
.finance-table td {
  vertical-align: middle;
}

.finance-table tbody tr:hover {
  background: #f8fafc;
}

.finance-type-pill,
.amount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.finance-type-pill {
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
}

.finance-type-pill[data-type='income'] {
  background: #dcfce7;
  color: #166534;
}

.finance-type-pill[data-type='expense'] {
  background: #fee2e2;
  color: #991b1b;
}

.amount-pill {
  min-width: 6rem;
  padding: 0.34rem 0.7rem;
}

.amount-pill[data-type='income'] {
  background: #ecfdf5;
  color: #047857;
}

.amount-pill[data-type='expense'] {
  background: #fff1f2;
  color: #be123c;
}

.finance-empty-row {
  padding: 1rem !important;
  color: var(--muted);
  text-align: center;
}

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

.site-settings-section {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  overflow: hidden;
}

.site-settings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 78%);
}

.site-settings-section-header h3 {
  margin: 0 0 0.2rem;
}

.site-settings-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-logo-grid,
.site-settings-grid,
.site-editor-list {
  padding: 1rem 1.1rem;
}

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

.site-logo-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: #fff;
}

.site-logo-preview {
  min-height: 90px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 0.65rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-logo-preview img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.site-logo-preview.is-empty span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-logo-body {
  min-width: 0;
}

.site-logo-body h4 {
  margin: 0 0 0.2rem;
}

.site-logo-body p,
.site-logo-body small {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--muted);
}

.site-logo-body code,
.site-settings-section code {
  color: #334155;
  font-size: 0.82rem;
  white-space: normal;
}

.site-logo-body label {
  gap: 0.35rem;
  font-size: 0.85rem;
}

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

.site-settings-wide {
  grid-column: 1 / -1;
}

.site-editor-list {
  display: grid;
  gap: 0.8rem;
}

.site-card-editor {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(220px, 1.4fr) minmax(120px, 0.5fr) auto;
  gap: 0.8rem;
  align-items: end;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: #fff;
}

.site-document-editor {
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr) 110px 110px minmax(170px, 1fr) auto;
}

.site-card-editor label {
  gap: 0.35rem;
  font-size: 0.86rem;
}

.site-card-editor input[type='color'] {
  min-height: 42px;
  padding: 0.15rem;
}

.site-card-editor small a {
  color: var(--primary);
  font-weight: 800;
}

.site-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

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

.admin-event {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  margin-top: 1rem;
}

.admin-event-modal-card {
  max-width: min(1120px, 92vw);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
}

.event-modal-card {
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 48%, #f0fdfa 100%);
}

.event-modal-card .modal-close {
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
}

.event-modal-card .modal-close:hover {
  transform: none;
  background: #ffe4ef;
  box-shadow: none;
}

.admin-event-modal-body {
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.event-modal-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-right: 2.8rem;
  margin-bottom: 1.2rem;
}

.event-modal-header h3 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.55rem;
}

.event-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe4ef;
  color: var(--primary);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
}

.event-modal-pill {
  width: fit-content;
  margin: 0.35rem 0 0;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 700;
}

.event-modal-card .ai-drop {
  border-color: rgba(216, 27, 96, 0.28);
  background: rgba(255, 247, 251, 0.82);
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
}

.event-modal-card .ai-drop.dragover {
  background: #ffe4ef;
}

.event-modal-card #add-event-form {
  margin-top: 1.2rem;
}

.member-modal-card {
  width: min(100%, 760px);
  max-width: min(760px, 92vw);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 54%, #f0fdfa 100%);
}

.member-modal-card .modal-close {
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #fff1f6;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
}

.member-modal-card .modal-close:hover {
  transform: none;
  background: #ffe4ef;
  box-shadow: none;
}

.member-modal-body {
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.member-modal-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-right: 2.8rem;
}

.member-modal-header h3 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.55rem;
}

.member-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe4ef;
  color: var(--primary);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
}

.member-fee-pill {
  width: fit-content;
  margin: 0.35rem 0 0;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.82rem;
  font-weight: 700;
}

.member-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.35rem;
}

.member-modal-card input:focus {
  border-color: rgba(216, 27, 96, 0.55);
  outline: 3px solid rgba(216, 27, 96, 0.12);
}

.member-board-toggle {
  align-self: end;
  min-height: 47px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(216, 27, 96, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 247, 251, 0.92);
  color: #475569;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.member-board-toggle input {
  width: auto;
  accent-color: var(--primary);
}

.member-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  body {
    padding: 1.5rem;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-media {
    min-height: 260px;
  }

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

  .quote-summary-grid {
    grid-template-columns: 1fr;
  }

  .members-summary-grid {
    grid-template-columns: 1fr;
  }

  .event-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-card-editor,
  .site-document-editor {
    grid-template-columns: 1fr;
  }

  .site-settings-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-drive-card {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .events-calendar-grid,
  .events-calendar-weekdays,
  .month-event-list,
  .month-event-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-calendar-cell {
    min-height: 120px;
  }
}

@media (max-width: 560px) {
  .events-calendar-header {
    flex-wrap: wrap;
  }

  .events-calendar-grid,
  .events-calendar-weekdays,
  .month-event-list,
  .month-event-list.compact {
    grid-template-columns: 1fr;
  }

  .events-calendar-weekdays {
    display: none;
  }

  .add-member-button,
  .admin-top-button,
  .member-modal-actions button {
    width: 100%;
    justify-content: center;
  }

  .member-modal-actions {
    flex-direction: column-reverse;
  }

  .member-modal-header {
    grid-template-columns: 1fr;
    padding-right: 2.8rem;
  }

  .members-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .members-count-pill {
    width: fit-content;
  }

  .event-modal-header {
    grid-template-columns: 1fr;
    padding-right: 2.8rem;
  }

  .event-detail-actions,
  .event-form-actions {
    width: 100%;
  }

  .site-logo-card {
    grid-template-columns: 1fr;
  }

  .public-event-action-panel,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .public-event-register-button,
  .form-footer button {
    width: 100%;
  }

  .registration-modal-header {
    grid-template-columns: 1fr;
    padding-right: 4rem;
  }

  .event-detail-metrics {
    grid-template-columns: 1fr;
  }

  .event-metric-card[data-variant='no-payment'] {
    grid-column: span 1;
  }

  .event-form-actions button {
    width: 100%;
  }
}
.interclub-toggle input[type='checkbox'] {
  width: auto;
}

.club-selector {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.club-list select {
  width: 100%;
}

.club-list.hidden,
.role-field.hidden,
[data-interclub-clubs].hidden {
  display: none;
}

.mobile-admin-shell {
  width: min(860px, 100%);
  max-width: 860px;
}

body.mobile-admin-page {
  background: linear-gradient(180deg, #fff7fb 0%, #f8fafc 42%, #f9fafb 100%);
  padding: 1rem;
}

.mobile-admin {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.35rem;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
}

.mobile-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 64%, #f0fdfa 100%);
}

.mobile-admin-header h1 {
  margin-bottom: 0.2rem;
  font-size: 1.55rem;
}

.mobile-admin-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: auto;
}

.mobile-admin-actions .admin-top-button {
  min-height: 2.65rem;
}

.mobile-desktop-button {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

#mobile-events-panel,
#mobile-attendees-panel {
  padding: 1.1rem;
}

.mobile-panel-title {
  margin-bottom: 1rem;
}

.mobile-panel-title h2 {
  margin-bottom: 0.2rem;
  font-size: 1.45rem;
}

.mobile-panel-title p,
.mobile-summary-card p,
.mobile-attendee-role {
  color: var(--muted);
}

.mobile-events-list,
.mobile-attendees-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mobile-events-section-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.mobile-events-section-header {
  padding: 1rem 1.05rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 78%);
}

.mobile-events-section-header h3 {
  margin: 0 0 0.2rem;
}

.mobile-events-section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mobile-event-list-stack {
  display: flex;
  flex-direction: column;
}

.mobile-event-card {
  position: relative;
  width: 100%;
  min-height: 118px;
  border-radius: 0;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: #0f172a;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  text-align: left;
  box-shadow: none;
}

.mobile-event-card:hover {
  background: #fff7fb;
  box-shadow: none;
}

.mobile-event-card:last-child {
  border-bottom: 0;
}

.mobile-event-date-badge {
  width: 3.2rem;
  min-height: 3.45rem;
  border-radius: 1rem;
  background: #fff1f6;
  color: var(--primary);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

.mobile-event-date-badge strong {
  font-size: 1.28rem;
}

.mobile-event-date-badge small {
  margin-top: 0.18rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-event-content {
  min-width: 0;
  display: grid;
  gap: 0.34rem;
}

.mobile-event-status {
  width: fit-content;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-event-status[data-status='hidden'] {
  background: #f1f5f9;
  color: #475569;
}

.mobile-event-title {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.mobile-event-meta {
  font-size: 0.92rem;
  color: #7a1d3a;
  font-weight: 700;
}

.mobile-event-location {
  color: var(--muted);
  font-size: 0.88rem;
}

.mobile-event-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.mobile-event-metrics span {
  min-width: 0;
  padding: 0.38rem 0.45rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.mobile-event-metrics strong {
  display: block;
  color: #0f172a;
  font-size: 0.98rem;
}

.mobile-empty-state {
  margin: 0;
  padding: 1.2rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.mobile-panel-top {
  margin-bottom: 0.8rem;
}

.mobile-back-button {
  width: fit-content;
}

.mobile-summary-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
}

.mobile-summary-card h2 {
  margin-bottom: 0.35rem;
}

.mobile-summary-card p {
  margin: 0.15rem 0;
}

.mobile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.mobile-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-stat-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  opacity: 0.18;
}

.mobile-stat-card strong {
  font-size: 1.7rem;
  line-height: 1;
  color: #0f172a;
}

.mobile-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-stat-card[data-variant='attended'] {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  border-color: #86efac;
}

.mobile-stat-card[data-variant='attended'] .mobile-stat-label {
  color: #15803d;
}

.mobile-stat-card[data-variant='attended']::after {
  background: #22c55e;
}

.mobile-stat-card[data-variant='paid'] {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-color: #93c5fd;
}

.mobile-stat-card[data-variant='paid'] .mobile-stat-label {
  color: #2563eb;
}

.mobile-stat-card[data-variant='paid']::after {
  background: #3b82f6;
}

.mobile-stat-card[data-variant='registered'] {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  border-color: #fda4af;
}

.mobile-stat-card[data-variant='registered'] .mobile-stat-label {
  color: #e11d48;
}

.mobile-stat-card[data-variant='registered']::after {
  background: #f43f5e;
}

.mobile-attendee-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.mobile-attendee-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.mobile-attendee-head h3 {
  margin-bottom: 0.2rem;
}

.mobile-attendee-alert {
  margin-top: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 600;
}

.mobile-attendee-alert.muted-alert {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
  font-weight: 500;
}

.mobile-attendee-label {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a3412;
}

.mobile-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mobile-check-card {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  background: #f8fafc;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.mobile-check-card input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

@media (max-width: 640px) {
  body.mobile-admin-page {
    padding: 0.8rem;
  }

  .mobile-stats-grid,
  .mobile-check-grid {
    grid-template-columns: 1fr;
  }

  .mobile-admin-header,
  .mobile-attendee-head {
    flex-direction: column;
  }

  .mobile-admin-actions,
  .mobile-admin-actions .admin-top-button,
  .mobile-back-button {
    width: 100%;
  }

  .mobile-admin-actions .admin-top-button,
  .mobile-back-button {
    justify-content: center;
  }

  .mobile-event-metrics {
    grid-template-columns: 1fr;
  }
}
