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

.inline {
  display: inline;
}

.inline form {
  display: inline;
}

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

.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: #f5f7fb;
}

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

.club-menu-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.club-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1000;
}

.club-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 92vw);
  background: #ffffff;
  z-index: 1002;
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.club-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.club-menu-title {
  font-weight: 700;
  color: #111827;
}

.club-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  font-size: 18px;
}

.club-menu-links {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.club-menu-links a,
.club-menu-accessibility {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
}

.club-menu-links a:hover,
.club-menu-accessibility:hover {
  background: #f3f4f6;
}

.club-menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 12px;
}


/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2563eb;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

/* Enhanced focus styles */
*:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* Accessibility toggle button */
.accessibility-toggle {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  margin-left: 8px;
}

.accessibility-toggle:hover {
  background: #e5e7eb;
}

/* Accessibility panel */
.accessibility-panel {
  position: fixed;
  top: 60px;
  right: 20px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 20px;
  min-width: 250px;
}

.accessibility-panel-content h2 {
  font-size: 1.2rem;
  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: #ffff00;
  color: #000;
  border-color: #ffff00;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  background: #f9fafb;
  line-height: 1.5;
}

a {
  color: #2563eb;
}

a:hover {
  text-decoration: underline;
}

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

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

.site-header,
.header {
  background: #1e3a8a;
  border-bottom: 1px solid #1e40af;
}

.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: #ffffff;
  text-decoration: none;
}

.header .nav-logo {
  color: #ffffff;
  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;
}

main.container {
  background: #ffffff;
  min-height: calc(100vh - 200px);
  border-radius: 8px;
  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 #e5e7eb;
  color: #6b7280;
}

h1, h2 {
  color: #111827;
}

p, label, li {
  color: #374151;
}

.muted {
  color: #6b7280;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.card-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 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: #2563eb;
}

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.1rem;
}

.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: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  border: 1px solid transparent;
}

.alert p {
  margin: 0;
}

.alert-error {
  border-color: #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

.alert-success {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #16a34a;
}

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

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 32px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.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.1rem;
}

.card-title a {
  color: #111827;
  text-decoration: none;
}

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

.empty-state {
  border-style: dashed;
  text-align: center;
  padding: 40px 20px;
}

.empty-state h2,
.empty-state h3 {
  margin-top: 0;
}

/* 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: #374151;
  margin-bottom: 4px;
}

input, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.925rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.925rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

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

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

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.button:hover {
  background: #1d4ed8;
}

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

.button-secondary {
  background: #6b7280;
}

.button-danger {
  background: #dc2626;
}

.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 #e5e7eb;
}

.list-title a {
  color: #111827;
  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: 999px;
  background: #e0e7ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 11px;
  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 #10b981;
}

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

.fundraising-bar {
  background: #f3f4f6;
  border-radius: 8px;
  height: 24px;
  overflow: hidden;
  position: relative;
}

.fundraising-fill {
  background: linear-gradient(90deg, #10b981, #059669);
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
}

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

.fundraising-needs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

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

.button-primary {
  background: #6366f1;
  color: #ffffff;
}

.button-primary:hover {
  background: #4f46e5;
}

.button-success {
  background: #10b981;
  color: #ffffff;
}

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

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: 12px;
  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: #6b7280;
  max-width: 600px;
  margin: 0 auto 32px;
}

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

/* Landing Hero - Redesigned */
.landing-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px circle at 15% 10%, rgba(192, 57, 43, 0.18), transparent 60%),
    radial-gradient(900px circle at 85% 20%, rgba(231, 76, 60, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  margin: 0;
  padding: 72px 0 56px;
}

.hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

 .landing-hero-inner {
   position: relative;
   z-index: 1;
   display: flex;
   justify-content: center;
 }

 .home-body .hero-card {
   width: 100%;
   max-width: 880px;
   text-align: center;
   padding: 44px 40px;
   background: rgba(255, 255, 255, 0.9);
   border: 1px solid rgba(15, 23, 42, 0.12);
   border-top: 6px solid #c0392b;
   border-radius: 24px;
   box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
   backdrop-filter: blur(10px);
 }

.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.1rem;
 }

@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-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  justify-content: center;
  min-width: 220px;
}

.btn-primary {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(192, 57, 43, 0.5);
}

.btn-secondary {
  background: white;
  color: #1a1a2e;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #c0392b;
  transform: translateY(-3px);
}

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

.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: 0.95rem;
}

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

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

/* Quick Access Section */
.quick-access {
  padding: 64px 0;
  background: #ffffff;
}

.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: 16px;
  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: 16px;
  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: 0.95rem;
  color: #6b7280;
  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: 20px;
  text-decoration: none;
  color: #1a1a2e;
  background: white;
  border: 1px solid #e5e7eb;
  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: #111827;
 }

.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: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
  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;
}

/* 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 .btn-primary {
  background: #ffff00;
  color: #000;
}

body.high-contrast .btn-secondary {
  background: #000;
  border-color: #ffff00;
  color: #ffff00;
}

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) {
  .landing-hero {
    min-height: auto;
    padding: 56px 0 44px;
  }

  .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.1rem;
    letter-spacing: 1px;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-width: 0;
  }
  
  .hero-stats-bar {
    gap: 24px;
  }
  
  .hero-stat {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  
  .quick-access, .join-section {
    padding: 44px 0;
  }
  
  .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 #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

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

.feature p {
  margin: 0;
  color: #6b7280;
}

.feature-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  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: #6b7280;
  margin: 0 0 20px;
  line-height: 1.5;
}

.feature-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

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

.feature-cta {
  color: #2563eb;
  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 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin: -32px -32px 32px -32px;
  text-align: center;
}

.events-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.events-hero .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
}

.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;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

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

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

.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: 12px;
  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 #e5e7eb;
}

.event-date-badge {
  background: white;
  border-radius: 8px;
  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: #111827;
  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: #111827;
  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.925rem;
  color: #4b5563;
}

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

.event-description {
  color: #6b7280;
  line-height: 1.6;
  margin: 16px 0 0 0;
}

.event-card-footer {
  padding: 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

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

.empty-state-modern {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 24px;
}

.empty-state-modern h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.empty-state-modern p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 32px;
}

.tag-red {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.tag-blue {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #2563eb;
}

.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: 24px;
  }
}

/* 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 #e5e7eb;
}

.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: #111827;
}

.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: 12px;
  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: #111827;
}

.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: 8px;
}

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

.info-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.125rem;
  color: #111827;
}

.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: 8px;
  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: 12px;
  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: 8px;
  margin-bottom: 16px;
  font-weight: 600;
}

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

.registration-status.closed {
  background: #fee2e2;
  color: #dc2626;
}

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

.registration-deadline {
  text-align: center;
  color: #6b7280;
  margin: 0 0 16px 0;
}

.organizer-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  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 #e5e7eb;
  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: #6b7280;
}

.progress-step.active .step-label {
  color: #111827;
  font-weight: 600;
}

.form-section {
  background: white;
  border-radius: 12px;
  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 #e5e7eb;
}

.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: #6b7280;
  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: #374151;
  margin-bottom: 8px;
  font-size: 0.925rem;
}

.required-indicator {
  color: #dc2626;
  margin-left: 4px;
}

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

.form-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.field-hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 4px;
}

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

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

.rating-display {
  font-weight: 400;
  color: #6b7280;
  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 #e5e7eb;
  border-radius: 8px;
  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: #111827;
  display: block;
  margin-bottom: 4px;
}

.feature-description {
  font-size: 0.875rem;
  color: #6b7280;
  display: block;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: #f9fafb;
  border-radius: 12px;
  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: 24px;
  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: 12px;
  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: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

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

.events-section {
  background: white;
  border-radius: 12px;
  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 #e5e7eb;
}

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

.filter-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 8px;
}

.tab-button {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-button:hover {
  color: #111827;
}

.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: #6b7280;
  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: 12px;
  border: 1px solid #e5e7eb;
  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: 8px;
  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: #111827;
  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: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-draft {
  background: #f3f4f6;
  color: #6b7280;
}

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

.status-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.status-completed {
  background: #dbeafe;
  color: #2563eb;
}

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

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.925rem;
  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: 24px;
  font-size: 1.125rem;
}

.role-badge {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  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: 12px;
  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: #6b7280;
  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.925rem;
  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 #e5e7eb;
}

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

.stat-box {
  background: white;
  border-radius: 12px;
  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: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-info .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.stat-info .stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.manager-section {
  background: white;
  border-radius: 12px;
  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 #e5e7eb;
}

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

.badge-hot {
  background: #fef3c7;
  color: #d97706;
  padding: 4px 12px;
  border-radius: 12px;
  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: 8px;
  border: 1px solid #e5e7eb;
}

.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: #6b7280;
}

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

.empty-state-card {
  text-align: center;
  padding: 48px;
  background: #f9fafb;
  border-radius: 8px;
  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: #6b7280;
}

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

.sidebar-card {
  background: white;
  border-radius: 12px;
  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: 8px;
  color: #111827;
  text-decoration: none;
  transition: background 0.2s;
}

.quick-link:hover {
  background: #f3f4f6;
}

.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.925rem;
}

.activity-time {
  font-size: 0.75rem;
  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: 12px;
}

.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: 16px;
  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: 12px;
  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: 16px;
  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: 12px;
}

.date-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 1px;
}

.date-day {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin: 4px 0;
}

.date-year {
  font-size: 0.875rem;
  color: #6b7280;
}

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

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

.status-draft { background: #f3f4f6; color: #6b7280; }
.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: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

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

.tournament-name a {
  color: #111827;
  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: #374151;
}

.progress-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

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

.tournament-stats-row {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

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

.mini-stat-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.mini-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

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

.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 #e5e7eb;
  border-radius: 8px;
  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: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.schedule-main {
  background: white;
  border-radius: 12px;
  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: #6b7280;
}

.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: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 16px;
}

.court-timeline {
  position: relative;
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 1080px;
}

.match-block {
  position: absolute;
  left: 8px;
  right: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 6px;
  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 #e5e7eb;
}

.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: #f3f4f6;
}

.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: 16px;
  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: 12px;
  border: 2px dashed #e5e7eb;
}

.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: 12px;
  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: 16px;
  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: #6b7280;
  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: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.pool-matches {
  padding: 20px;
  background: #fafbfc;
}

.pool-matches h4 {
  margin: 0 0 12px 0;
  font-size: 0.875rem;
  color: #374151;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  font-size: 0.875rem;
}

.match-item.completed {
  opacity: 0.7;
}

.match-score {
  font-weight: 700;
  color: #111827;
}

.match-time {
  color: #6b7280;
  font-size: 0.75rem;
}

/* Bracket Visualization */
.bracket-section {
  background: white;
  border-radius: 16px;
  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: #374151;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 8px;
}

.round-matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 32px;
  flex: 1;
}

.bracket-match {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  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 #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.925rem;
}

.bracket-match .player:last-child {
  border-bottom: none;
}

.bracket-match .player.winner {
  background: #f0fdf4;
  font-weight: 600;
}

.bracket-match .score {
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
}

.match-info {
  padding: 8px 16px;
  background: #f9fafb;
  font-size: 0.75rem;
  color: #6b7280;
  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: 12px;
  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: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.panel-tabs {
  display: flex;
  background: #f3f4f6;
  border-bottom: 2px solid #e5e7eb;
}

.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: #6b7280;
  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 #e5e7eb;
  border-radius: 12px;
  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: 8px;
}

.switch-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: #e5e7eb;
  border-radius: 12px;
  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: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.day-selector {
  display: flex;
  gap: 0;
  background: #f3f4f6;
  padding: 16px;
  overflow-x: auto;
}

.day-button {
  padding: 16px 24px;
  background: white;
  border: none;
  border-radius: 8px;
  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: 12px;
}

.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 #e5e7eb;
}

.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: #6b7280;
  border-bottom: 1px solid #f3f4f6;
}

.time-label.hour {
  font-weight: 600;
  color: #111827;
  background: #fafbfc;
}

.time-label.quarter {
  font-size: 0.625rem;
  opacity: 0.5;
}

.court-timeline {
  border-right: 1px solid #e5e7eb;
  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: 6px;
  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: 4px;
  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: 16px;
  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: #111827;
}

.score-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.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: #f3f4f6;
  border: none;
  border-radius: 8px;
  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: 16px;
  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 #e5e7eb;
}

.modal-header h2 {
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
}

.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 #e5e7eb;
}

@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: 8px;
  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: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #dc2626;
  transition: all 0.2s;
}

.btn-remove-photo:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.file-input {
  display: none;
}

.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  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: 6px;
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 3px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #dc2626;
}

.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: #dc2626;
  margin-bottom: 30px;
}

.event-details {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.event-details h3 {
  margin: 0 0 15px 0;
  color: #111827;
}

.event-info p {
  margin: 8px 0;
  color: #6b7280;
}

.warning-message {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  text-align: left;
}

.warning-message p:first-child {
  color: #dc2626;
  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-danger {
  background: #dc2626;
  color: white;
}

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

/* Table styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th {
  background: #f3f4f6;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
}

.table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.table tr:hover {
  background: #f9fafb;
}

/* Match scoring styles */
.match-players {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.player-score {
  flex: 1;
}

.vs {
  font-weight: 600;
  color: #6b7280;
}

/* Contact form in details */
.contact-form {
  margin-top: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
}

.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;
}
