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

.inline {
  display: inline;
}

.inline form {
  display: inline;
}

.button-small {
  padding: 4px 10px;
  font-size: 0.875rem;
}

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

.mb-12 {
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

/* Club public page (non-branded) */
.club-public-body {
  background: var(--club-page-bg);
}

.club-public-body a {
  color: var(--club-accent);
}

.club-public-body a:hover {
  text-decoration: underline;
}

.club-public-body main.container {
  background: transparent;
  border-radius: 0;
  padding: 24px 16px;
  min-height: auto;
}

.club-public-body .button {
  background: var(--club-accent);
}

.club-public-body .button:hover {
  background: var(--club-accent-hover);
}

.club-public-body .card-cta {
  color: var(--club-accent);
}

.club-settings-body {
  background: var(--club-page-bg);
}

.club-settings-body .main.container {
  padding-top: 20px;
}

.club-settings-body .page-title {
  margin-bottom: 8px;
}

.club-settings-body .settings-card {
  margin: 12px 0;
  padding: 16px;
}

.club-settings-body .settings-card h2 {
  margin-bottom: 10px;
}

.club-settings-body .settings-card h3 {
  margin-bottom: 8px;
}

.club-settings-body .settings-card .actions {
  margin-top: 12px;
}

.club-settings-body .campaign-card form {
  margin-top: 12px;
}

.club-settings-body .campaign-card .grid {
  gap: 10px;
}

.settings-nav {
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.settings-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.settings-nav li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.settings-nav li a:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.settings-nav li.active a {
  background: var(--club-primary, #1e3a8a);
  color: #ffffff;
}

.settings-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.settings-overview .card {
  display: flex;
  flex-direction: column;
}

.settings-overview .card .button {
  margin-top: auto;
  align-self: flex-start;
}

.manager-console {
  display: grid;
  gap: 14px;
}

.manager-console-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.manager-console-topbar h1 {
  margin-bottom: 4px;
}

.manager-console-topbar-actions,
.manager-console-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-console-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.manager-console-summary-item {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
}

.manager-console-summary-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.manager-console-summary-item strong {
  font-size: 1.35rem;
  line-height: 1;
}

.manager-console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.manager-console-main,
.manager-console-rail {
  display: grid;
  gap: 14px;
}

.manager-console-section {
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #fff;
}

.manager-console-section h2 {
  margin-bottom: 4px;
}

.manager-console-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.manager-console-list {
  border-top: 1px solid var(--border-color);
}

.manager-console-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.manager-console-row:last-child {
  border-bottom: 0;
}

.manager-console-row-tight {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
}

.manager-console-primary {
  min-width: 0;
}

.manager-console-title {
  font-weight: 700;
  color: var(--text-main);
}

.manager-console-subtle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.manager-console-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.manager-console-meta-wide {
  align-items: flex-start;
}

.manager-console-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.manager-console-empty {
  padding: 12px 0 4px;
  color: var(--text-muted);
}

.manager-console-linkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manager-console-linkgrid a,
.manager-console-utility-links a {
  display: block;
  padding: 9px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.manager-console-linkgrid a:hover,
.manager-console-utility-links a:hover {
  text-decoration: none;
  border-color: var(--club-accent);
}

.manager-console-status {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.manager-console-status div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.manager-console-status div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.manager-console-status dt {
  color: var(--text-muted);
  font-weight: 600;
}

.manager-console-status dd {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
}

.manager-console-utility-links {
  display: grid;
  gap: 8px;
}

.manager-campaign-list {
  display: grid;
  gap: 12px;
}

.manager-campaign-item {
  padding-top: 2px;
}

.manager-campaign-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.manager-campaign-figures {
  text-align: right;
  white-space: nowrap;
}

.manager-campaign-figures span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.manager-campaign-progress {
  width: 100%;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
}

.manager-campaign-progress::-webkit-progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
}

.manager-campaign-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--club-primary, #1e3a8a), var(--club-accent, #3b82f6));
  border-radius: 999px;
}

.manager-campaign-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--club-primary, #1e3a8a), var(--club-accent, #3b82f6));
  border-radius: 999px;
}

.manager-campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.club-public-body .main.container {
  padding-top: 24px;
}

.club-public-main {
  padding-top: 24px;
}

.club-menu-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: var(--z-menu-button);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.club-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 92vw);
  background: var(--bg-card);
  z-index: var(--z-menu);
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.club-menu.open {
  transform: translateX(0);
}

.club-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: var(--z-menu-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.club-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.club-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.club-menu-links {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.club-menu-links a,
.club-menu-accessibility {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.club-menu-links a:active,
.club-menu-accessibility:active {
  background: var(--bg-hover);
  transform: scale(0.98);
}

.club-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 12px 16px;
}


/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--club-accent);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: var(--z-skip);
}

.skip-link:focus {
  top: 0;
}

/* Enhanced focus styles — only on keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--club-accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Prevent sticky hover transforms on touch devices */
@media (hover: none) {
  a:hover,
  button:hover,
  .card-link:hover,
  .quick-card:hover,
  .join-card:hover,
  .feature-card:hover,
  .event-card-modern:hover,
  .stat-card:hover,
  .tournament-card:hover,
  .action-button:hover,
  .club-event-card:hover,
  .hero-btn-primary:hover,
  .hero-btn-outline:hover,
  .day-button:hover,
  .export-btn:hover,
  .button:hover,
  .button-primary:hover {
    transform: none;
  }
}

.button:focus-visible,
.button-primary:focus-visible {
  outline: 3px solid var(--text-main);
  outline-offset: 2px;
}

.header a:focus-visible,
.header button:focus-visible {
  outline: 3px solid var(--club-on-primary);
  outline-offset: 2px;
}

/* Accessibility toggle button */
.accessibility-toggle {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  margin-left: 8px;
}

.accessibility-toggle:hover {
  background: var(--border-color);
}

/* Compact language switcher sitting directly in the header nav row */
.nav-langswitcher {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}
.nav-langswitcher .lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
}
.nav-langswitcher .lang-switcher-label {
  /* Accessible label, visually hidden in the header */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-langswitcher .lang-switcher select {
  background: var(--bg-hover);
  color: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  max-width: 10rem;
}
.nav-langswitcher .lang-switcher select:hover {
  background: var(--border-color);
}
@media (max-width: 600px) {
  .nav-langswitcher .lang-switcher select {
    max-width: 7rem;
    padding: 6px 6px;
  }
}

/* Accessibility panel */
.accessibility-panel {
  position: fixed;
  top: 60px;
  right: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: var(--z-modal);
  padding: 20px;
  min-width: 250px;
}

.accessibility-panel-content h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.accessibility-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  cursor: pointer;
}

.accessibility-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Large text mode */
body.large-text {
  font-size: 120%;
}

body.large-text .button {
  font-size: 110%;
  padding: 10px 18px;
}

body.large-text input,
body.large-text textarea,
body.large-text select {
  font-size: 110%;
}

/* High contrast mode */
body.high-contrast {
  background: #000;
  color: #fff;
}

body.high-contrast .header {
  background: #000;
  border-bottom: 2px solid #fff;
}

body.high-contrast .nav a {
  color: #ffff00;
}

body.high-contrast .card {
  background: #000;
  border: 2px solid #fff;
  color: #fff;
}

body.high-contrast .button {
  background: #ffff00;
  color: #000;
  font-weight: 600;
}

body.high-contrast .button:hover {
  background: #ffff66;
}

body.high-contrast .button-secondary {
  background: #fff;
  color: #000;
}

body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
}

body.high-contrast .accessibility-panel {
  background: #000;
  border: 2px solid #fff;
  color: #fff;
}

body.high-contrast a {
  color: #ffff00;
  text-decoration: underline;
}

body.high-contrast .tag {
  background: #000;
  border: 2px solid #fff;
  color: #fff;
}

body.high-contrast .alert {
  border: 2px solid #fff;
  background: #000;
  color: #fff;
}

body.high-contrast .alert-error {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

body.high-contrast .alert-success {
  border-color: #4ade80;
  color: #4ade80;
}

body.high-contrast .badge {
  background: #000;
  border: 2px solid #fff;
  color: #fff;
}

body.high-contrast .progress-bar {
  background: #333;
  border: 1px solid #fff;
}

body.high-contrast .progress-fill {
  background: #ffff00;
}

body.high-contrast .site-footer {
  border-top-color: #fff;
  color: #fff;
}

body.high-contrast .site-footer a {
  color: #ffff00;
}

body.high-contrast .settings-nav {
  background: #000;
  border: 1px solid #fff;
}

body.high-contrast .settings-nav li a {
  color: #ffff00;
}

body.high-contrast .settings-nav li.active a {
  background: #ffff00;
  color: #000;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --club-primary: #1e3a8a;
  --club-on-primary: #ffffff;
  --club-accent: #4f46e5; /* Tailwind indigo-600 */
  --club-accent-hover: #4338ca; /* Tailwind indigo-700 */
  --club-page-bg: #f3f4f6; /* Tailwind gray-100 */
  --club-hero-image: none;
  --text-main: #1f2937; /* gray-800 */
  --text-muted: #6b7280; /* gray-500 */
  --text-light: #9ca3af; /* gray-400 */
  --border-color: #e5e7eb; /* gray-200 */
  --bg-card: #ffffff;
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-bg: #fefce8;
  --text-heading: #0f172a;
  --text-secondary: #475569;
  --bg-page: #f9fafb;
  --bg-subtle: #f8fafc;
  --bg-hover: #f3f4f6;
  --border-light: #f1f5f9;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.15);
  --focus-ring-error: 0 0 0 3px rgba(220, 38, 38, 0.12);
  --z-skip: 50;
  --z-dropdown: 200;
  --z-overlay: 900;
  --z-modal: 1000;
  --z-menu-overlay: 1000;
  --z-menu-button: 1001;
  --z-menu: 1002;
}

a {
  color: var(--club-accent);
  text-decoration: none;
  transition: color 0.15s ease-in-out, text-decoration 0.15s ease-in-out;
}

a:hover {
  text-decoration: underline;
  color: var(--club-accent-hover);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

 body.home-body .container {
   max-width: 1120px;
 }

.site-header,
.header {
  background: var(--club-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header .container,
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header .nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.site-header .nav a,
.header .nav-links a,
.header .nav-logo {
  color: var(--club-on-primary);
  text-decoration: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-logo-mark-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border: none;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 18px rgba(239, 68, 68, 0.25));
}

.nav-logo-text {
  font-weight: 800;
  letter-spacing: -0.2px;
}

.nav-logo-text-compact {
  font-size: 0.9375rem;
}

.header .nav-logo {
  color: var(--club-on-primary);
  text-decoration: none;
}

.header .nav-links a:hover,
.header .nav-logo:hover {
  text-decoration: underline;
}

body.high-contrast .header .nav-links a,
body.high-contrast .header .nav-logo {
  color: #ffff00;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.nav-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  z-index: var(--z-dropdown);
  padding: 8px 0;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-main) !important;
  text-decoration: none !important;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-hover);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

body.high-contrast .nav-dropdown-menu {
  background: #000;
  border-color: #fff;
}

body.high-contrast .nav-dropdown-menu a {
  color: #ffff00 !important;
}

body.high-contrast .nav-dropdown-menu a:hover {
  background: #333;
}

main.container {
  background: var(--bg-card);
  min-height: calc(100vh - 200px);
  border-radius: var(--radius-md);
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0px;
}

 body.home-body main.container {
   max-width: 100%;
   background: transparent;
   border-radius: 0;
   margin-top: 0;
   margin-bottom: 0;
   min-height: auto;
   padding: 0;
 }

.site-footer {
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  width: 100%;
  margin-bottom: 4px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
}

.footer-nav a:hover {
  color: var(--club-primary);
  text-decoration: underline;
}

.footer-muted-link {
  margin-left: auto;
}

.footer-muted-link a {
  color: inherit;
  text-decoration: none;
  opacity: 0.56;
  font-size: 0.8125rem;
}

.footer-muted-link a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

h1, h2 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, label, li {
  color: var(--text-main);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--border-color);
  text-decoration: none;
}

.card-link:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.35);
  outline-offset: 3px;
}

body.high-contrast .card-link:focus-visible {
  outline: 2px solid #ffff00;
}

.card-cta {
  margin-top: 16px;
  font-weight: 600;
  color: var(--club-accent);
}

body.high-contrast .card-cta {
  color: #ffff00;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.125rem;
}

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

.card .actions {
  margin-top: 16px;
}

.card-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.alert {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 12px 0;
  border: 1px solid transparent;
}

.alert p {
  margin: 0;
}

.alert-error {
  border-color: var(--color-error);
  background: var(--color-error-bg);
  color: var(--color-error);
}

.alert-success {
  border-color: var(--color-success);
  background: var(--color-success-bg);
  color: var(--color-success);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.club-public-body .header {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.club-public-body .header-club-domain {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  overflow: visible;
  position: relative;
  z-index: 5;
}

.club-public-body .header-club-domain .container {
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
  overflow: visible;
}

.club-public-body .header-club-domain .nav-logo {
  min-width: 0;
  gap: 0;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.club-public-body .header-club-domain .nav-logo-mark {
  width: 24px;
  height: 24px;
}

.club-public-body .header-club-domain .nav-logo-mark-fallback {
  width: 44px;
  height: 44px;
  margin-top: 0;
  margin-bottom: -8px;
}

.club-public-body .page-header {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.club-public-body .page-title {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-heading);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 22px;
  overflow: hidden;
}

.club-public-body .page-header::before,
.club-public-body .page-title::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--club-accent), var(--club-primary));
}

.club-public-body .page-title h1 {
  color: var(--text-heading);
}

.club-public-body .page-title a {
  color: var(--club-accent);
}

.club-public-body .page-title .button-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
}

.club-public-body .page-header h1 {
  color: var(--text-heading);
}

.club-public-body .page-header .muted {
  color: var(--text-secondary);
}

.club-global-header {
  margin-top: 8px;
}

.club-page {
  padding: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.club-page-header {
  text-align: center;
  margin: 18px 0 26px;
}

.club-page-header-title {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  position: relative;
  padding-bottom: 12px;
}

.club-page-header-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--club-accent), var(--club-primary));
}

.club-title-core {
  font-weight: 950;
}

.club-title-suffix {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--text-secondary);
}

.club-page-header-subtitle {
  margin: 10px 0 0;
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .club-page-header-title {
    font-size: 1.85rem;
    gap: 10px;
  }

  .club-page-header-title::after {
    width: 72px;
  }
}

.club-card-join {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  position: relative;
  overflow: hidden;
}

.club-card-join .club-card-body {
  text-align: left;
  padding: 24px;
}

.join-tagline {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.join-location {
  font-size: 1rem;
  margin: 0 0 16px 0;
  color: var(--text-secondary);
}

.join-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.club-card-join .button-primary {
  background: var(--club-accent);
  color: #ffffff;
}

.club-card-join .button-secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-color);
}

.club-card-join::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--club-accent), var(--club-primary));
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.club-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.club-card-wide {
  grid-column: 1 / -1;
}

.club-card-header {
  padding: 20px 24px;
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-light);
}

.club-card-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.club-card-body {
  padding: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item-full {
  grid-column: span 2;
}

.info-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.info-value a {
  color: var(--club-accent);
  text-decoration: none;
}

.info-value a:hover {
  text-decoration: underline;
}

.info-value.stars {
  font-size: 1.125rem;
}

.star-on { color: #f59e0b; }
.star-off { color: #e2e8f0; }

.club-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
}

.contact-block {
  margin-bottom: 16px;
}

.contact-block p {
  margin: 4px 0;
}

.contact-name {
  font-weight: 600;
  color: var(--text-main);
}

.contact-block a {
  color: var(--club-accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.address-block {
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.address-block p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.campaign-item {
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.campaign-item:last-child {
  margin-bottom: 0;
}

.campaign-item h3 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
}

.progress-bar {
  height: 14px;
  background: #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--club-accent), var(--club-primary));
  border-radius: 7px;
  transition: width 0.4s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 16px;
}

.progress-amount {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--club-primary);
}

.progress-goal {
  color: var(--text-muted);
  font-weight: 500;
}

.campaign-needs {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.story-content {
  display: grid;
  gap: 20px;
}

.story-section h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.story-section p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-wrap;
}

.club-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .manager-console-topbar,
  .manager-console-section-head,
  .manager-campaign-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .manager-console-summary,
  .manager-console-layout,
  .manager-console-linkgrid {
    grid-template-columns: 1fr;
  }

  .manager-console-row,
  .manager-console-row-tight {
    grid-template-columns: 1fr;
  }

  .manager-console-meta,
  .manager-console-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .club-public-body .header-club-domain .container {
    min-height: 34px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .club-public-body .header-club-domain .nav-links {
    gap: 10px;
  }

  .club-public-body .header-club-domain .nav-links a,
  .club-public-body .header-club-domain .nav-dropdown-toggle,
  .club-public-body .header-club-domain .accessibility-toggle {
    font-size: 0.9375rem;
  }

  .club-public-body .header-club-domain .accessibility-toggle {
    padding: 5px 10px;
    margin-left: 4px;
  }

  .club-public-body main.container {
    padding: 16px 12px 24px;
  }

  .club-page {
    padding: 0;
  }

  .club-page-header {
    margin: 10px 0 18px;
    padding: 0 2px;
  }

  .club-card-join .club-card-body,
  .club-card-header,
  .club-card-body,
  .campaign-item {
    padding: 18px;
  }

  .club-grid {
    gap: 14px;
  }

  .club-grid {
    grid-template-columns: 1fr;
  }
  
  .club-card-wide {
    grid-column: span 1;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .info-item-full {
    grid-column: span 1;
  }
  
  .club-hero {
    padding: 32px 16px;
  }
  
  .club-hero-tagline {
    font-size: 1.25rem;
  }
  
  .club-content {
    padding: 0 16px 32px;
  }
}

.club-public-body .card {
  border-radius: var(--radius-lg);
  border-color: rgba(17, 24, 39, 0.10);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.club-public-body .card-link:hover {
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
}

.club-public-body .button-primary {
  background: var(--club-accent);
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.club-public-body .button-primary:hover {
  background: var(--club-accent-hover);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.club-public-body .button-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.club-public-body .button-secondary:hover {
  background: var(--border-light);
  border-color: var(--border-color);
}

.about-list {
  margin: 0;
  padding: 0;
}

.about-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.about-item:last-child {
  border-bottom: 0;
}

.about-item dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.about-item dd {
  margin: 0;
  font-weight: 500;
  color: var(--text-main);
}

.about-item dd a {
  word-break: break-word;
}

.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star {
  font-size: 1.125rem;
}

.star-filled {
  color: #f59e0b;
}

.star-empty {
  color: var(--border-color);
}

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--border-light) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.feature-icon {
  font-size: 1em;
}

.page-header .muted {
  max-width: 72ch;
}

.page-header h1 {
  margin: 0 0 8px 0;
  font-size: 2rem;
}

.page-header .muted {
  font-size: 1.125rem;
}

.page-title-actions {
  display: flex;
  gap: 8px;
}

.section {
  margin: 24px 0;
}

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

.section-header h2 {
  margin: 0;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

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

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-size: 1.125rem;
}

.card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.empty-state {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-align: center;
  padding: 48px 24px;
  margin: 24px 0;
  color: var(--text-muted);
}

.empty-state h2,
.empty-state h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text-main);
}

.empty-state p {
  margin: 0 0 24px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
  opacity: 0.8;
}

/* Badges and Tags */
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-blue, .badge-blue {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.tag-green, .badge-green, .status-active, .status-completed {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.tag-yellow, .badge-yellow, .status-pending, .status-draft {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.tag-red, .badge-red, .status-rejected, .status-failed, .status-cancelled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tag-purple, .badge-purple {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.tag-gray, .badge-gray, .status-inactive {
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* Two-column layout */
.layout-two {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-top: 24px;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  position: sticky;
  top: 20px;
  align-self: start;
}

@media (max-width: 900px) {
  .layout-two {
    grid-template-columns: 1fr;
  }
  
  .layout-aside {
    position: static;
  }
}

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

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

@media (max-width: 700px) {
  .grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

input, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--club-accent);
  box-shadow: var(--focus-ring);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.form-input[aria-invalid="true"] {
  border-color: var(--color-error);
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
.form-input[aria-invalid="true"]:focus {
  border-color: var(--color-error);
  box-shadow: var(--focus-ring-error);
}

textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--club-accent);
  box-shadow: var(--focus-ring);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-weight: 500;
  font-size: 0.875rem;
  min-height: 44px;
}

.checkbox-end {
  align-self: end;
}

.club-settings-body .card label {
  margin-bottom: 2px;
}

.club-settings-body .grid {
  gap: 10px;
}

.club-settings-body .card textarea {
  margin-top: 4px;
}

.club-settings-body .card input,
.club-settings-body .card select {
  margin-top: 4px;
}

.club-settings-body .campaign-card .muted {
  margin: 6px 0;
}

.club-settings-body .campaign-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 6px;
}

.club-settings-body .campaign-actions {
  margin-top: 8px;
}

.club-settings-body .campaign-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.checkbox input {
  width: 24px;
  height: 24px;
  margin: 0;
}

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

.actions-center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--club-accent);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button:hover {
  background: var(--club-accent-hover);
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled, .button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.button-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.button-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.button-secondary:hover {
  background: var(--bg-page);
  border-color: var(--text-light);
  color: var(--text-main);
}

.button-danger {
  background: var(--color-error);
  color: #ffffff;
}

.button-danger:hover {
  background: #b91c1c;
}

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

.list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.list-title a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tags-start {
  justify-content: flex-start;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 0.75rem;
  white-space: nowrap;
}

.link-list {
  margin: 0;
  padding-left: 18px;
}

.link-list li {
  margin: 4px 0;
}

.link-list a {
  word-break: break-word;
}

/* Fundraising styles */
.fundraising-card {
  border-left: 4px solid var(--club-accent);
}

.fundraising-progress {
  margin: 20px 0;
}

.fundraising-bar {
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  height: 24px;
  overflow: hidden;
  position: relative;
}

.fundraising-fill {
  background: linear-gradient(90deg, var(--club-accent), var(--club-primary));
  height: 100%;
  border-radius: var(--radius-md);
  transition: width 0.3s ease;
}

.fundraising-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.875rem;
}

.fundraising-needs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.fundraising-needs h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.fundraising-campaigns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.fundraising-campaign {
  margin: 0;
}

.fundraising-campaign .fundraising-progress {
  margin: 14px 0;
}

.fundraising-campaigns-actions {
  margin-top: 12px;
}

.button-primary {
  background: var(--club-accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--club-accent-hover);
}

.button-success {
  background: var(--color-success);
  color: #ffffff;
}

.button-success:hover {
  background: #047857;
}

body.high-contrast .fundraising-bar {
  background: #333;
}

body.high-contrast .fundraising-fill {
  background: #ffff00;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: var(--radius-lg);
  margin: 20px 0 40px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Hero Section - Clean Full-Width Design */
.hero-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
  padding: 80px 24px 72px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-section .hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 36px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn-primary {
  background: #c0392b;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
}

.hero-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.hero-links {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.hero-links a:hover {
  text-decoration: underline;
}

.hero-links-sep {
  margin: 0 8px;
  opacity: 0.6;
}

.boccia-ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.09;
}

.boccia-ball-red {
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
  box-shadow: inset -8px -8px 20px rgba(0,0,0,0.3), inset 4px 4px 10px rgba(255,255,255,0.2);
}

.boccia-ball-white {
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0);
  box-shadow: inset -8px -8px 20px rgba(0,0,0,0.15), inset 4px 4px 10px rgba(255,255,255,0.5);
}

.ball-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -50px;
  animation: float 8s ease-in-out infinite;
}

.ball-2 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

.ball-3 {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 10%;
  animation: float 12s ease-in-out infinite;
}

.ball-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 15%;
  animation: float 9s ease-in-out infinite reverse;
}

.maple-leaf {
  position: absolute;
  width: 48px;
  height: 48px;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ff0000' d='M383.8 351.7c2.5-2.5 105.2-92.4 105.2-92.4l-17.5-7.5c-10-4.3-7.9-20.4-7.9-20.4s-2.5-3.1-4.3-6.8c-1.5-3.1-.9-7.9 1.2-11.5 2.8-4.6 10.8-15.8 10.8-15.8s-5.9-2.2-11.5-5c-5.3-2.8-8.1-7.1-8.1-7.1l17-12.4c0 0-6.5-1.5-15.2-4.6-8.7-3.1-15.8-10.2-15.8-10.2l31.1-25c0 0-29-5.6-46.4-7.8-14.9-1.9-25.4-9.3-33.6-14.9-8.7-5.9-13.7-13.7-15.5-17.4-.3-.6-.5-1.1-.7-1.5 0 0-9 5.6-19 11.2l-12.4-27.1 0 0s-9 9.6-18.7 18.4c0 0-2.2 2.2-2.8 2.8L256 120l-7.2-8.1c0 0-1.5-1.5-2.8-2.8-9.6-8.7-18.7-18.4-18.7-18.4l0 0-12.4 27.1c-10-5.6-19-11.2-19-11.2-.2.4-.4.9-.7 1.5-1.8 3.7-6.8 11.5-15.5 17.4-8.1 5.6-18.7 13-33.6 14.9-17.4 2.2-46.4 7.8-46.4 7.8l31.1 25c0 0-7.1 7.1-15.8 10.2-8.7 3.1-15.2 4.6-15.2 4.6l17 12.4c0 0-2.8 4.3-8.1 7.1-5.6 2.8-11.5 5-11.5 5s8.1 11.2 10.8 15.8c2.2 3.7 2.8 8.4 1.2 11.5-1.8 3.7-4.3 6.8-4.3 6.8s2.2 16.1-7.9 20.4l-17.5 7.5c0 0 102.7 89.9 105.2 92.4 5.3 5.3 9.6 12.1 9.6 20.8 0 8.7-7.4 21.1-7.4 21.1l64.4-24.9 0 49.5 14.9 0 0-49.5 64.4 24.9c0 0-7.4-12.4-7.4-21.1 0-8.7 4.3-15.5 9.6-20.8z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.maple-1 {
  top: 15%;
  right: 20%;
  animation: spin-slow 20s linear infinite;
}

.maple-2 {
  bottom: 25%;
  left: 8%;
  animation: spin-slow 25s linear infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ball-1,
  .ball-2,
  .ball-3,
  .ball-4,
  .maple-1,
  .maple-2 {
    animation: none;
  }
}

.hero-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  animation: logo-appear 1s ease-out;
}

 .home-body .hero-tagline {
   font-size: 1.25rem;
   letter-spacing: 1px;
 }

 .home-body .hero-description {
   font-size: 1.125rem;
 }

@keyframes logo-appear {
  from { opacity: 0; transform: scale(0.9) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-description {
  font-size: 1.25rem;
  color: #4a5568;
  margin: 0 0 28px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-icon {
  font-size: 1.25rem;
}

.hero-stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a5568;
  font-size: 1rem;
}

.hero-stat-icon {
  font-size: 1.5rem;
}

.hero-stat-text {
  font-weight: 500;
}

/* Quick Access Section */
.quick-access {
  padding: 64px 0;
  background: var(--bg-card);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 48px;
  position: relative;
}

 body.home-body .section-title {
   margin: 0 0 32px;
 }

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

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

.quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 22px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  width: 100%;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: #c0392b;
}

.quick-card:focus-visible {
  outline: 3px solid rgba(192, 57, 43, 0.4);
  outline-offset: 3px;
}

.quick-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.quick-card-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.quick-card:hover .quick-card-img {
  transform: scale(1.08);
}

.quick-card-icon-clubs {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.quick-card-icon-events {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.quick-card-icon-players {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.quick-card-content {
  flex: 1;
}

.quick-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}

.quick-card-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.quick-card-arrow {
  font-size: 1.5rem;
  color: #c0392b;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  align-self: center;
}

.quick-card:hover .quick-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: none) {
  .quick-card-arrow {
    opacity: 1;
    transform: none;
  }
}

.join-section {
  padding: 64px 0;
  background: #f8f9fa;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

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

.join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: #1a1a2e;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

 .join-card h3 {
   margin: 0 0 10px;
   font-size: 1.25rem;
   font-weight: 800;
   color: var(--text-main);
 }

.join-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: #c0392b;
}

.join-card:focus-visible {
  outline: 3px solid rgba(192, 57, 43, 0.4);
  outline-offset: 3px;
}

.join-card-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.join-card:hover .join-card-img {
  transform: scale(1.08);
}

.join-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 20px;
  flex: 1;
}

.join-card-cta {
  font-weight: 600;
  font-size: 1rem;
  color: #c0392b;
  transition: color 0.3s;
}

.join-card:hover .join-card-cta {
  color: #a93226;
}

.network-sites-page {
  padding: 24px 16px 36px;
}

.network-sites-header h1 {
  margin: 0;
}

.network-sites-header p {
  margin-top: 6px;
}

.network-sites-card {
  margin-top: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 18px 20px;
}

.network-sites-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.network-sites-list li {
  color: var(--text-main);
}

.network-sites-list a {
  font-weight: 700;
  color: #1d4ed8;
}

/* High contrast mode overrides for landing page */
body.high-contrast .landing-hero {
  background: #000;
}

body.high-contrast .home-body .hero-card {
  background: #000;
  border: 2px solid #ffff00;
  box-shadow: none;
}

body.high-contrast .hero-tagline,
body.high-contrast .hero-description {
  color: #fff;
}

body.high-contrast .quick-access {
  background: #000;
}

body.high-contrast .section-title {
  color: #fff;
}

body.high-contrast .section-title::after {
  background: #ffff00;
}

body.high-contrast .quick-card {
  background: #111;
  border-color: #ffff00;
}

body.high-contrast .quick-card-content h3 {
  color: #fff;
}

body.high-contrast .quick-card-content p {
  color: #ccc;
}

body.high-contrast .quick-card-arrow {
  color: #ffff00;
}

body.high-contrast .join-section {
  background: #000;
}

body.high-contrast .join-card {
  background: #111;
  border: 2px solid #ffff00;
}

body.high-contrast .join-card p {
  color: #ccc;
}

body.high-contrast .join-card-cta {
  color: #ffff00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body.home-body .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-body .quick-access > .container,
  .home-body .upcoming-events-strip > .container,
  .home-body .join-section > .container {
    padding-top: 0;
    padding-bottom: 0;
  }

  .landing-hero {
    min-height: auto;
    padding: 56px 0 44px;
  }

  .hero-section {
    padding: 48px 14px 40px;
  }

  .ball-1 {
    width: 220px;
    height: 220px;
    top: -90px;
    left: -90px;
  }

  .ball-2 {
    width: 160px;
    height: 160px;
    right: -80px;
  }

  .ball-3,
  .ball-4,
  .maple-1,
  .maple-2 {
    display: none;
  }

  .home-body .hero-card {
    padding: 32px 18px;
    border-radius: 18px;
  }
  
  .hero-logo {
    max-width: 280px;
  }
  
  .hero-tagline {
    font-size: 1.125rem;
    letter-spacing: 1px;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats-bar {
    gap: 24px;
  }
  
  .hero-stat {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  
  .quick-access, .join-section {
    padding: 32px 0;
  }

  .upcoming-events-strip {
    padding: 18px 0;
  }

  .quick-card {
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .quick-card-img {
    width: 72px;
    height: 72px;
  }

  .join-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .join-card-img {
    width: 112px;
    height: 112px;
  }

  .event-chip {
    padding: 12px 14px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 60px 0;
}

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

.feature {
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feature h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.feature-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feature-card-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

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

.feature-link:hover {
  text-decoration: underline;
}

.feature-cta {
  color: var(--club-accent);
  font-weight: 600;
}

body.high-contrast .feature-cta {
  color: #ffff00;
}

body.high-contrast .feature-card-link:focus-visible {
  outline: 2px solid #ffff00;
}

.home-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 60px 0;
}

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

/* Events page styles */
.events-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: radial-gradient(1200px circle at 15% 10%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #1d4ed8 0%, #6d28d9 55%, #0ea5e9 100%);
  color: white;
  padding: 76px 0 64px;
  text-align: center;
  overflow: hidden;
}

.events-hero::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(900px circle at 85% 20%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.events-hero h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.events-hero h2 {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.events-hero .lead {
  position: relative;
  z-index: 1;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 26px;
  max-width: 52ch;
  line-height: 1.45;
}

.events-hero a {
  color: rgba(255, 255, 255, 0.95);
}

.events-hero a:hover {
  color: #ffffff;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.events-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: -30px 0 32px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.toolbar-section h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.event-card-modern {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.event-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  background: linear-gradient(135deg, #f6f8fb 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
}

.event-date-badge {
  background: white;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 60px;
}

.date-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 1px;
}

.date-day {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.event-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-card-body {
  padding: 20px;
  flex-grow: 1;
}

.event-title {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
}

.event-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.event-title a:hover {
  color: #6366f1;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #4b5563;
}

.info-icon {
  font-size: 1.125rem;
  line-height: 1.2;
}

.event-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 16px 0 0 0;
}

.event-card-footer {
  padding: 20px;
  background: #f9fafb;
  border-top: 1px solid var(--border-color);
}

.button-block {
  display: block;
  width: 100%;
  text-align: center;
}

.empty-state-modern {
  text-align: center;
  padding: 56px 24px;
  max-width: 760px;
  margin: 10px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.14));
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.empty-state-modern h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.empty-state-modern p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 auto 26px;
  max-width: 56ch;
}

.tag-red {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--color-error);
}

.tag-blue {
  background: #dbeafe;
  border-color: #93c5fd;
  color: var(--club-accent);
}

.tag-green {
  background: #d1fae5;
  border-color: #86efac;
  color: #059669;
}

.tag-purple {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #7c3aed;
}

.tag-hot {
  background: #fef3c7;
  border-color: #fde68a;
  color: #d97706;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .events-hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 18px;
    padding: 12px 14px;
  }

  .events-toolbar {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -22px;
  }

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

  .empty-state-modern {
    padding: 44px 18px;
  }
}

/* Event Detail Page */
.event-detail-hero {
  background: linear-gradient(135deg, #f6f8fb 0%, #e5e9ef 100%);
  padding: 48px 32px;
  margin: -32px -32px 32px -32px;
  border-bottom: 2px solid var(--border-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.event-badge-large {
  margin-bottom: 20px;
}

.tag-large {
  font-size: 0.875rem;
  padding: 6px 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.event-detail-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 20px 0;
  color: var(--text-main);
}

.event-hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  color: #4b5563;
}

.meta-icon {
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.event-detail-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.event-main {
  min-width: 0;
}

.detail-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-card h2 {
  font-size: 1.5rem;
  margin: 0 0 20px 0;
  color: var(--text-main);
}

.event-description-full {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 32px;
}

.event-quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 24px;
  background: #f9fafb;
  border-radius: var(--radius-md);
}

.quick-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.125rem;
  color: var(--text-main);
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.venue-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.2s;
}

.venue-photo:hover {
  transform: scale(1.05);
}

.accessibility-card {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.section-icon {
  font-size: 1.5rem;
  margin-right: 8px;
}

.accessibility-grid {
  display: grid;
  gap: 20px;
}

.accessibility-item h3 {
  font-size: 1rem;
  margin: 0 0 8px 0;
  color: #059669;
}

.accessibility-item p {
  color: #047857;
  line-height: 1.6;
}

.event-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.registration-card,
.organizer-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.registration-card h3,
.organizer-card h3 {
  font-size: 1.125rem;
  margin: 0 0 16px 0;
}

.registration-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-weight: 600;
}

.registration-status.open {
  background: #d1fae5;
  color: #059669;
}

.registration-status.closed {
  background: #fee2e2;
  color: var(--color-error);
}

.status-icon {
  font-size: 1.25rem;
}

.registration-deadline {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.organizer-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

/* Form Page Styles */
.form-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 48px 32px;
  margin: -32px -32px 32px -32px;
  text-align: center;
}

.form-hero h1 {
  font-size: 2rem;
  margin: 0 0 12px 0;
}

.form-hero .lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
}

.form-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  margin: 0 32px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #9ca3af;
}

.progress-step.active .step-number {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.progress-step.active .step-label {
  color: var(--text-main);
  font-weight: 600;
}

.form-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
}

.section-icon {
  font-size: 1.5rem;
  margin-right: 12px;
}

.section-description {
  color: var(--text-muted);
  margin: 0;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  font-size: 0.875rem;
}

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

.form-input {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--club-accent);
  box-shadow: var(--focus-ring);
}

.field-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-range {
  width: 100%;
  margin: 12px 0;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.rating-display {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

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

.feature-checkbox {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.feature-checkbox:hover {
  border-color: #6366f1;
  background: #f0f0ff;
}

.feature-checkbox input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 4px;
}

.feature-checkbox input[type="checkbox"]:checked + .feature-content {
  opacity: 1;
}

.feature-checkbox input[type="checkbox"]:checked ~ .feature-content .feature-label {
  color: #6366f1;
}

.feature-content {
  flex: 1;
  opacity: 0.8;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.feature-label {
  font-weight: 600;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: #f9fafb;
  border-radius: var(--radius-lg);
  margin-top: 32px;
}

.fundraising-fields {
  display: contents;
}

/* Dashboard Styles */
.dashboard-hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 48px 32px;
  margin: -32px -32px 40px -32px;
  border-radius: 0 0 24px 24px;
}

.dashboard-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.welcome-section h1 {
  font-size: 2rem;
  margin: 0 0 12px 0;
  font-weight: 700;
}

.organization-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 1.125rem;
  margin: 0;
}

.badge-icon {
  font-size: 1.25rem;
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.club-public-body .dashboard-header {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-heading);
  padding: 28px 0 22px;
  margin-bottom: 0;
  overflow: hidden;
}

.club-public-body .dashboard-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--club-accent), var(--club-primary));
}

.club-public-body .dashboard-header h1 {
  color: var(--text-heading);
}

.club-public-body .dashboard-header .lead {
  color: var(--text-secondary);
}

.club-public-body .dashboard-header .button-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
}

.club-public-body .dashboard-header .button-primary {
  filter: none;
}

.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
}

.events-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.section-header-bar h2 {
  margin: 0;
  font-size: 1.5rem;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-hover);
  padding: 4px;
  border-radius: var(--radius-md);
}

.tab-button {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button:hover {
  color: var(--text-main);
}

.tab-button.active {
  background: white;
  color: #6366f1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-dashboard {
  text-align: center;
  padding: 60px 20px;
}

.empty-dashboard .empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-dashboard h3 {
  font-size: 1.5rem;
  margin: 0 0 8px 0;
}

.empty-dashboard p {
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-dashboard-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f9fafb;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.event-dashboard-card:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-card-date {
  flex-shrink: 0;
}

.date-box {
  width: 70px;
  background: white;
  border-radius: var(--radius-md);
  padding: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-card-content {
  flex: 1;
  min-width: 0;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.event-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.event-header h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.event-header h3 a:hover {
  color: #6366f1;
}

.event-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-draft {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.status-published {
  background: #d1fae5;
  color: #059669;
}

.status-cancelled {
  background: #fee2e2;
  color: var(--color-error);
}

.status-completed {
  background: #dbeafe;
  color: var(--club-accent);
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #4b5563;
}

.detail-icon {
  font-size: 1rem;
}

.event-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.button-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* Member Dashboard Styles */
.member-dashboard-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  padding: 40px 32px;
  margin: -32px -32px 32px -32px;
  color: white;
}

.dashboard-hero-overlay {
  max-width: 1400px;
  margin: 0 auto;
}

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

.club-info h1 {
  margin: 0 0 12px 0;
  font-size: 2rem;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 1.125rem;
}

.role-badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-badge.manager {
  background: #fbbf24;
  color: #92400e;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

@media (max-width: 1024px) {
  .member-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-main {
  min-width: 0;
}

.profile-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

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

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
}

.profile-email {
  color: var(--text-muted);
  margin: 0 0 12px 0;
}

.profile-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #4b5563;
}

.meta-icon {
  font-size: 1rem;
}

.status-active {
  color: #059669;
}

.status-pending {
  color: #d97706;
}

.profile-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon-small {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-info .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.manager-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.manager-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.manager-section h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-hot {
  background: #fef3c7;
  color: #d97706;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
}

.pending-members-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pending-member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.member-avatar-small {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.member-details {
  flex: 1;
  min-width: 0;
}

.member-details h4 {
  margin: 0 0 4px 0;
  font-size: 1.125rem;
}

.member-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.info-item {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.empty-state-card {
  text-align: center;
  padding: 48px;
  background: #f9fafb;
  border-radius: var(--radius-md);
  border: 1px dashed #d1d5db;
}

.empty-state-card .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
}

.empty-state-card p {
  margin: 0;
  color: var(--text-muted);
}

.dashboard-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.sidebar-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s;
}

.quick-link:hover {
  background: var(--bg-hover);
}

.link-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  gap: 12px;
}

.activity-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin: 0 0 4px 0;
  font-size: 0.875rem;
}

.activity-time {
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* Tournament System Styles */
.tournament-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  color: white;
  margin: -32px -32px 48px -32px;
}

.hero-gradient {
  position: relative;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin: 0 0 32px 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.button-xl {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.button-glow {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.6); }
}

/* Tournament Stats Grid */
.tournament-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: -24px auto 48px auto;
  padding: 0 20px;
}

.stat-card-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-card-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-card-info { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%); }
.stat-card-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

/* Tournament Cards Grid */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.tournament-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.tournament-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.tournament-card-header {
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 0 20px;
}

.tournament-date-badge {
  text-align: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
}

.date-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.date-day {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin: 4px 0;
}

.date-year {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tournament-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.status-badge {
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-draft { background: var(--bg-hover); color: var(--text-muted); }
.status-open { background: #d1fae5; color: #059669; }
.status-active { background: #dbeafe; color: #1e40af; }
.status-completed { background: #e9d5ff; color: #7c3aed; }
.status-cancelled { background: #fee2e2; color: #dc2626; }

.countdown-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #fef3c7;
  color: #d97706;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 600;
}

.tournament-card-body {
  padding: 20px;
}

.tournament-name {
  margin: 0 0 16px 0;
}

.tournament-name a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  transition: color 0.2s;
}

.tournament-name a:hover {
  color: #6366f1;
}

.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.registration-progress {
  margin: 20px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.progress-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-pill);
  transition: width var(--transition-slow);
}

.tournament-stats-row {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.mini-stat {
  text-align: center;
}

.mini-stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.mini-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tournament-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid var(--border-color);
}

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

.action-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.action-button:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: translateY(-2px);
}

/* Tournament Schedule Builder */
.schedule-builder-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 48px 32px;
  margin: -32px -32px 32px -32px;
}

.schedule-builder-container {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 24px;
  max-width: 1800px;
  margin: 0 auto;
}

.schedule-control-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-main {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 80px repeat(var(--court-count, 4), 200px);
  gap: 16px;
  overflow-x: auto;
}

.time-column {
  position: sticky;
  left: 0;
  background: white;
  z-index: 10;
}

.time-slot {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.time-slot.half-hour {
  opacity: 0.6;
  font-size: 0.75rem;
}

.court-column {
  min-width: 200px;
  position: relative;
}

.court-header {
  padding: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  margin-bottom: 16px;
}

.court-timeline {
  position: relative;
  background: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 1080px;
}

.match-block {
  position: absolute;
  left: 8px;
  right: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: move;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  font-size: 0.75rem;
}

.match-block:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.match-block.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.match-block.BC1 { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%); }
.match-block.BC2 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.match-block.BC3 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.match-block.BC4 { background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }

.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.day-tab {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.2s;
}

.day-tab:hover {
  background: var(--bg-hover);
}

.day-tab.active {
  background: #6366f1;
  color: white;
}

.day-date {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
  opacity: 0.9;
}

/* Brackets & Pools */
.brackets-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 48px 32px;
  margin: -32px -32px 32px -32px;
}

.brackets-container {
  max-width: 1400px;
  margin: 0 auto;
}

.schedule-overview {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.schedule-controls {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.empty-schedule {
  text-align: center;
  padding: 60px;
  background: #f9fafb;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
}

.empty-schedule .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.pools-section {
  margin-bottom: 48px;
}

.pools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.pool-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.pool-header h3 {
  margin: 0;
  font-size: 1.125rem;
}

.pool-badge {
  background: #6366f1;
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

.pool-standings {
  width: 100%;
  border-collapse: collapse;
}

.pool-standings th {
  background: #f9fafb;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pool-standings td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.pool-standings tr.advancing {
  background: #f0fdf4;
}

.player-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.seed {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.pool-matches {
  padding: 20px;
  background: #fafbfc;
}

.pool-matches h4 {
  margin: 0 0 12px 0;
  font-size: 0.875rem;
  color: var(--text-main);
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.match-item.completed {
  opacity: 0.7;
}

.match-score {
  font-weight: 700;
  color: var(--text-main);
}

.match-time {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Bracket Visualization */
.bracket-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.bracket-container {
  display: flex;
  gap: 48px;
  padding: 24px 0;
  min-width: max-content;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 240px;
}

.round-header {
  text-align: center;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
}

.round-matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 32px;
  flex: 1;
}

.bracket-match {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.bracket-match::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #e5e7eb;
}

.match-players {
  display: flex;
  flex-direction: column;
}

.bracket-match .player {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.bracket-match .player:last-child {
  border-bottom: none;
}

.bracket-match .player.winner {
  background: #f0fdf4;
  font-weight: 600;
}

.bracket-match .score {
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-hover);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.match-info {
  padding: 8px 16px;
  background: #f9fafb;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Schedule Master Advanced Styles */
.schedule-master-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 48px 0;
  margin: -32px -32px 48px -32px;
}

.header-gradient {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.tournament-name {
  font-size: 1.25rem;
  opacity: 0.9;
  margin: 8px 0 0 0;
}

.schedule-metrics {
  display: flex;
  gap: 48px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.metric-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-master-workspace {
  display: grid;
  grid-template-columns: 340px 1fr 300px;
  gap: 24px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
}

.control-panel-advanced {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.panel-tabs {
  display: flex;
  background: var(--bg-hover);
  border-bottom: 2px solid var(--border-color);
}

.panel-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}

.panel-tab:hover {
  background: white;
}

.panel-tab.active {
  background: white;
  color: #6366f1;
  border-bottom: 2px solid #6366f1;
  margin-bottom: -2px;
}

.panel-content {
  padding: 24px;
  display: none;
}

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

.schedule-presets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.preset-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.preset-card:hover {
  border-color: #6366f1;
  background: #eef2ff;
}

.preset-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-md);
}

.switch-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: #e5e7eb;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background 0.3s;
}

.switch-option input:checked + .switch {
  background: #6366f1;
}

.switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.switch-option input:checked + .switch::after {
  transform: translateX(24px);
}

.switch-option input {
  display: none;
}

.button-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  width: 100%;
  margin-top: 24px;
}

/* Timeline Container */
.schedule-timeline-container {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.day-selector {
  display: flex;
  gap: 0;
  background: var(--bg-hover);
  padding: 16px;
  overflow-x: auto;
}

.day-button {
  padding: 16px 24px;
  background: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  margin-right: 8px;
  min-width: 100px;
}

.day-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day-button.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.day-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.7;
}

.day-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 4px 0;
}

.day-month {
  font-size: 0.75rem;
  opacity: 0.8;
}

.day-matches {
  font-size: 0.75rem;
  margin-top: 8px;
  padding: 4px 8px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
}

.timeline-container {
  position: relative;
  overflow-x: auto;
  padding: 24px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 100px repeat(var(--court-count, 4), 1fr);
  gap: 0;
  min-width: 1400px;
  position: relative;
}

.timeline-times {
  position: sticky;
  left: 0;
  background: white;
  z-index: 10;
  border-right: 2px solid var(--border-color);
}

.time-label-header {
  padding: 12px;
  background: #1e293b;
  color: white;
  font-weight: 600;
  text-align: center;
  border-radius: 8px 0 0 0;
}

.time-label {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f3f4f6;
}

.time-label.hour {
  font-weight: 600;
  color: var(--text-main);
  background: #fafbfc;
}

.time-label.quarter {
  font-size: 0.625rem;
  opacity: 0.5;
}

.court-timeline {
  border-right: 1px solid var(--border-color);
  position: relative;
}

.court-header-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.court-name {
  font-weight: 600;
}

.court-utilization {
  font-size: 0.875rem;
  font-weight: 700;
}

.timeline-track {
  position: relative;
  min-height: 720px;
  background: repeating-linear-gradient(
    to bottom,
    #ffffff,
    #ffffff 29px,
    #f9fafb 29px,
    #f9fafb 30px
  );
}

.timeline-match {
  position: absolute;
  top: 0;
  height: 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-sm);
  color: white;
  padding: 4px 8px;
  cursor: move;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 5;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.timeline-match:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.timeline-match.BC1 {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.timeline-match.BC2 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.timeline-match.BC3 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.timeline-match.BC4 {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.match-info {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.match-number {
  font-weight: 700;
}

.now-line {
  position: absolute;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #dc2626;
  z-index: 20;
  display: none;
}

.now-line::before {
  content: 'NOW';
  position: absolute;
  top: -20px;
  left: -15px;
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.625rem;
  font-weight: 600;
}

/* Analytics Panel */
.schedule-analytics-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.analytics-card h3 {
  margin: 0 0 20px 0;
  font-size: 1.125rem;
}

.health-score {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-circle svg {
  transform: rotate(-90deg);
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
}

.score-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.health-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.health-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.health-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.health-indicator.good {
  background: #10b981;
}

.health-indicator.warning {
  background: #f59e0b;
}

.health-indicator.error {
  background: #dc2626;
}

.action-buttons,
.export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-btn,
.export-btn {
  padding: 12px;
  background: var(--bg-hover);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.action-btn:hover,
.export-btn:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 1400px) {
  .schedule-master-workspace {
    grid-template-columns: 1fr;
  }
  
  .control-panel-advanced,
  .schedule-analytics-panel {
    display: none;
  }
}

/* Photo Upload Styles */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.photo-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.photo-actions {
  position: absolute;
  top: 5px;
  right: 5px;
}

.btn-remove-photo {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--radius-xs);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--color-error);
  transition: all 0.2s;
}

.btn-remove-photo:hover {
  background: var(--bg-card);
  transform: scale(1.1);
}

.file-input {
  display: none;
}

.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8fafc;
}

.upload-area:hover {
  border-color: #6366f1;
  background: #eef2ff;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 3px;
  width: 32px;
  height: 32px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--color-error);
}

.existing-photos h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #4b5563;
}

/* Delete Confirmation Styles */
.delete-confirmation {
  text-align: center;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.warning-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.delete-confirmation h2 {
  color: var(--color-error);
  margin-bottom: 30px;
}

.event-details {
  background: #f9fafb;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
}

.event-details h3 {
  margin: 0 0 15px 0;
  color: var(--text-main);
}

.event-info p {
  margin: 8px 0;
  color: var(--text-muted);
}

.warning-message {
  background: var(--color-error-bg);
  border: 2px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 30px 0;
  text-align: left;
}

.warning-message p:first-child {
  color: var(--color-error);
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.warning-message ul {
  margin: 10px 0 0 20px;
  color: #7f1d1d;
}

.warning-message li {
  margin: 5px 0;
}

.delete-form .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.button-warning {
  background: var(--color-warning);
  color: white;
}

.button-warning:hover {
  background: #b45309;
}

/* Table styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: top;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

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

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

/* Match scoring styles */
.match-players {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.player-score {
  flex: 1;
}

.vs {
  font-weight: 600;
  color: var(--text-muted);
}

/* Contact form in details */
.contact-form {
  margin-top: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: var(--radius-sm);
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 4px;
}

details summary {
  cursor: pointer;
  user-select: none;
}

details[open] summary {
  margin-bottom: 12px;
}

body.high-contrast .table th {
  background: #333;
  color: #fff;
}

body.high-contrast .table td {
  border-bottom-color: #666;
}

body.high-contrast .contact-form {
  background: #111;
  border: 1px solid #fff;
}

/* Club Events Page */
.club-events-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-heading);
  padding: 28px 0 22px;
  text-align: center;
  margin-bottom: 0;
  overflow: hidden;
}

.club-events-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--club-accent), var(--club-primary));
}

.club-events-hero h1 {
  color: var(--text-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.club-events-hero .lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 20px;
}

.club-events-hero .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.club-events-toolbar {
  margin-top: 16px;
}

.club-public-body .club-events-toolbar {
  margin-top: 4px;
}

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

.event-count {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.club-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.club-event-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.club-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.club-event-card .event-card-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  border-bottom: 1px solid #d1fae5;
}

.club-event-card .event-card-body {
  flex: 1;
}

.club-event-card .event-title {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: var(--text-main);
}

.club-event-card .event-card-footer {
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid var(--border-color);
}

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

.tag-gray {
  background: var(--bg-hover);
  border-color: #d1d5db;
  color: #4b5563;
}

.tag-red {
  background: #fee2e2;
  border-color: #fca5a5;
  color: var(--color-error);
}

.tag-green {
  background: #dcfce7;
  border-color: #86efac;
  color: #16a34a;
}

.tag-purple {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #9333ea;
}

.tag-hot {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
  font-weight: 600;
}

.club-event-card .event-card-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.club-event-card .event-card-body {
  padding: 20px;
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  min-width: 54px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.event-date-badge .date-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.5px;
}

.event-date-badge .date-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.event-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 0.875rem;
}

.info-icon {
  flex-shrink: 0;
}

.event-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.inline {
  display: inline;
}

/* Past Events Section */
.past-events-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border-color);
}

.past-events-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.past-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.past-event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.past-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
  padding: 8px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.past-event-date .date-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.past-event-date .date-day {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.past-event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.past-event-info strong {
  color: var(--text-main);
}

.past-event-actions {
  flex-shrink: 0;
}

/* Event Form */
.event-form {
  max-width: 700px;
}

.event-form .form-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.event-form .form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.event-form .form-section h2 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.event-form .required {
  color: var(--color-error);
}

.event-form .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

@media (max-width: 768px) {
  .club-events-grid {
    grid-template-columns: 1fr;
  }

  .club-events-hero h1 {
    font-size: 1.8rem;
  }

  .past-event-item {
    flex-wrap: wrap;
  }

  .past-event-info {
    flex-basis: calc(100% - 80px);
  }

  .past-event-actions {
    flex-basis: 100%;
    margin-top: 8px;
  }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: #334155;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

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

.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: #334155; }

/* Small mobile breakpoint */
@media (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .club-public-body .header-club-domain .container {
    min-height: 42px;
    gap: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .club-public-body .header-club-domain .nav-logo-mark {
    width: 20px;
    height: 20px;
  }

  .club-public-body .header-club-domain .nav-logo-mark-fallback {
    width: 38px;
    height: 38px;
    margin-top: 0;
    margin-bottom: -6px;
  }

  .club-public-body .header-club-domain .nav-links {
    gap: 8px;
  }

  .club-public-body .header-club-domain .nav-links a,
  .club-public-body .header-club-domain .nav-dropdown-toggle {
    font-size: 0.875rem;
  }

  .club-public-body .header-club-domain .accessibility-toggle {
    padding: 4px 8px;
    margin-left: 0;
  }

  .club-public-body main.container {
    padding: 12px 10px 20px;
  }

  .club-page-header {
    margin: 6px 0 14px;
    padding: 0;
  }

  .club-global-header {
    margin-top: 2px;
  }

  .club-page-header-title {
    font-size: 1.65rem;
    gap: 8px;
    padding-bottom: 10px;
  }

  .club-grid {
    gap: 12px;
  }

  .club-card {
    border-radius: 18px;
  }

  .club-card-join .club-card-body,
  .club-card-header,
  .club-card-body,
  .campaign-item {
    padding: 14px;
  }

  .join-actions {
    gap: 10px;
  }

  .join-actions .button,
  .club-card-body .button {
    width: 100%;
    justify-content: center;
  }

  .info-grid {
    gap: 12px;
  }

  .club-badges {
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .badge {
    padding: 7px 12px;
  }

  .story-content {
    gap: 16px;
  }

  body.home-body .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-section {
    padding: 40px 10px 32px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .home-body .hero-content {
    max-width: none;
  }

  .quick-access,
  .join-section {
    padding: 24px 0;
  }

  .upcoming-events-strip {
    padding: 14px 0;
  }

  .quick-card {
    gap: 10px;
    padding: 14px;
  }

  .quick-card-img {
    width: 64px;
    height: 64px;
  }

  .join-card {
    padding: 18px 14px;
  }

  .join-card-img {
    width: 96px;
    height: 96px;
  }

  .strip-header {
    align-items: flex-start;
    gap: 10px;
  }

  .event-chip {
    gap: 12px;
    padding: 12px;
  }

  .header-actions,
  .page-title {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .list-actions {
    flex-direction: column;
    gap: 6px;
  }

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

  .schedule-master-workspace {
    grid-template-columns: 1fr;
  }
}

/* Upcoming events strip on homepage */
.upcoming-events-strip {
  padding: 24px 0;
  background: #f1f5f9;
}

.strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.strip-header .section-title {
  margin: 0;
}

.strip-more {
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.event-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  min-height: 64px;
}

.event-chip:hover {
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.event-chip-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  line-height: 1.1;
}

.event-chip-month {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 0.5px;
}

.event-chip-day {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
}

.event-chip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.event-chip-info strong {
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-chip-info small {
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .event-strip {
    grid-template-columns: 1fr;
  }
}

/* QR Code page */
.qr-code-container {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.qr-code-container svg {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.qr-url {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
  word-break: break-all;
  margin: 0 0 16px;
}

/* Print styles */
@media print {
  .no-print,
  .header,
  .site-footer,
  .skip-link,
  #accessibilityPanel {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .main.container {
    padding: 0;
    max-width: 100%;
  }

  .card {
    box-shadow: none;
    border: none;
  }

  .qr-code-container svg {
    max-width: 400px;
  }

  .qr-url {
    color: #333;
  }
}

/* Windows High Contrast Mode support */
@media (forced-colors: active) {
  input:focus, select:focus, textarea:focus, .form-input:focus {
    outline: 2px solid ButtonText;
  }
  .button:focus-visible {
    outline: 2px solid ButtonText;
  }
}
