/* ClubApp Stable UI v2 */

:root {
  --clubapp-primary: #123C69;
  --clubapp-secondary: #0B1F3A;
  --clubapp-bg: #f5f7fb;
  --clubapp-card: #ffffff;
  --clubapp-text: #102033;
  --clubapp-muted: #66758a;
  --clubapp-radius: 22px;
  --clubapp-shadow: 0 14px 34px rgba(15,23,42,.10);
}

/* WordPress / GeneratePress reset */
body.clubapp-white-label {
  background: var(--clubapp-bg) !important;
  color: var(--clubapp-text);
}

body.clubapp-white-label .site-header,
body.clubapp-white-label .main-navigation,
body.clubapp-white-label #masthead,
body.clubapp-white-label .entry-header,
body.clubapp-white-label .entry-title,
body.clubapp-white-label .site-footer,
body.clubapp-white-label #colophon {
  display: none !important;
}

body.clubapp-white-label .site-content,
body.clubapp-white-label .content-area,
body.clubapp-white-label .site-main,
body.clubapp-white-label .inside-article,
body.clubapp-white-label .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

/* Main app shell */
.clubapp-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 100px;
  box-sizing: border-box;
}

/* Hero */
.clubapp-hero,
.clubapp-page-header {
  margin: 0 -16px 24px;
  padding: 24px 22px 28px;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.20), transparent 30%),
    linear-gradient(135deg, var(--clubapp-secondary), var(--clubapp-primary));
  color: #fff;
  box-shadow: 0 20px 48px rgba(15,23,42,.20);
}

.clubapp-hero {
  min-height: 300px;
}

.clubapp-page-header {
  min-height: 150px;
}

.clubapp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.clubapp-brand img,
.clubapp-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.20);
}

.clubapp-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clubapp-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
  font-weight: 900;
}

.clubapp-hero h1,
.clubapp-page-header h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 900;
}

.clubapp-hero p,
.clubapp-page-header p {
  margin: 0;
  max-width: 360px;
  color: rgba(255,255,255,.90);
  font-size: 17px;
  line-height: 1.35;
}

.clubapp-install-button {
  margin-top: 20px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: #fff;
  color: var(--clubapp-secondary);
  font-weight: 900;
}

/* Sections */
.clubapp-section {
  margin: 24px 0;
}

.clubapp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.clubapp-section-header h2 {
  position: relative;
  margin: 0;
  padding-left: 12px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 900;
  color: var(--clubapp-text);
}

.clubapp-section-header h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: var(--clubapp-primary);
}

.clubapp-section-header a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--clubapp-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--clubapp-shadow);
}

/* Shared cards */
.clubapp-card,
.clubapp-empty,
.clubapp-update-card,
.clubapp-event-card,
.clubapp-tournament-card,
.clubapp-fixture-card,
.clubapp-calendar-card,
.clubapp-document-card,
.clubapp-member-card,
.clubapp-notification-card {
  background: var(--clubapp-card);
  border: 1px solid #e7edf5;
  border-radius: var(--clubapp-radius);
  box-shadow: var(--clubapp-shadow);
  box-sizing: border-box;
}

.clubapp-list {
  display: grid;
  gap: 14px;
}

.clubapp-card,
.clubapp-empty {
  padding: 18px;
}

/* Updates */
.clubapp-update-card {
  position: relative;
  padding: 48px 16px 16px;
}

.clubapp-update-card:before {
  content: "CLUB NEWS";
  position: absolute;
  top: 0;
  right: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 0 var(--clubapp-radius) 0 14px;
  background: var(--clubapp-primary);
  color: #fff;
  font-size: 11px;
  letter-spacing: .10em;
  font-weight: 900;
}

.clubapp-update-meta {
  margin-bottom: 6px;
  color: var(--clubapp-muted);
  font-size: 13px;
  font-weight: 800;
}

.clubapp-update-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.clubapp-update-content p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
}

/* Event cards */
.clubapp-event-card,
.clubapp-tournament-card,
.clubapp-fixture-card,
.clubapp-calendar-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 14px;
}

.clubapp-event-datebox {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--clubapp-secondary), var(--clubapp-primary));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clubapp-event-datebox strong {
  order: 1;
  font-size: 27px;
  line-height: 1;
}

.clubapp-event-datebox span {
  order: 2;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}

.clubapp-event-main h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.15;
}

.clubapp-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.clubapp-event-meta span,
.clubapp-calendar-type,
.clubapp-calendar-time,
.clubapp-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
}

.clubapp-event-content p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.clubapp-event-extra {
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.clubapp-event-extra p {
  margin: 3px 0;
  font-size: 13px;
  color: var(--clubapp-muted);
}

/* Quick actions */
.clubapp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clubapp-card-link {
  min-height: 140px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--clubapp-text);
}

.clubapp-card-link h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.15;
}

.clubapp-card-link p {
  margin: 0 0 10px;
  color: var(--clubapp-muted);
  font-size: 13px;
  line-height: 1.3;
}

.clubapp-card-action,
.clubapp-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--clubapp-primary);
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

/* Forms */
.clubapp-form,
.clubapp-card #loginform {
  display: grid;
  gap: 14px;
}

.clubapp-form label,
.clubapp-card #loginform label {
  display: grid;
  gap: 6px;
  color: var(--clubapp-muted);
  font-weight: 800;
}

.clubapp-form input,
.clubapp-form select,
.clubapp-form textarea,
.clubapp-card #loginform input[type="text"],
.clubapp-card #loginform input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  font-size: 16px;
  box-sizing: border-box;
}

.clubapp-card #loginform p {
  margin: 0;
}

.clubapp-card #loginform input[type="submit"] {
  width: fit-content;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--clubapp-primary);
  color: #fff;
  padding: 0 20px;
  font-weight: 900;
}

/* Bottom nav */
.clubapp-bottom-nav {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  border: 1px solid #e7edf5;
  box-shadow: 0 18px 44px rgba(15,23,42,.16);
}

.clubapp-bottom-nav a {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #1f2937;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  position: relative;
}

.clubapp-bottom-nav a.is-active {
  background: rgba(18,60,105,.06);
  color: var(--clubapp-primary);
}

.clubapp-bottom-nav a.is-active:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--clubapp-primary);
  transform: translateX(-50%);
}

/* Hide hamburger */
.clubapp-app-menu,
.clubapp-app-menu-button {
  display: none !important;
}

/* Notification bell only if output exists */
.clubapp-notification-bell {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--clubapp-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Public actions */
.clubapp-public-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.clubapp-public-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--clubapp-secondary);
  text-decoration: none;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 460px) {
  .clubapp-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .clubapp-hero,
  .clubapp-page-header {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .clubapp-hero h1 {
    font-size: 34px;
  }

  .clubapp-section-header h2 {
    font-size: 21px;
  }

  .clubapp-event-card,
  .clubapp-tournament-card,
  .clubapp-fixture-card,
  .clubapp-calendar-card {
    grid-template-columns: 62px 1fr;
  }

  .clubapp-event-datebox {
    width: 62px;
    height: 62px;
  }
}
/* Stage 12.20 - Notification bell and page polish */

.clubapp-notification-bell {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(15,23,42,.18);
  border: 1px solid #e7edf5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clubapp-notification-count {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clubapp-notification-card {
  position: relative;
  padding: 18px;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
}

.clubapp-notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  margin-top: 8px;
}

.clubapp-notification-card.is-unread .clubapp-notification-dot {
  background: #dc2626;
}

.clubapp-notification-main h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.15;
}

.clubapp-notification-main p {
  margin: 0 0 14px;
  color: var(--clubapp-muted);
  font-size: 15px;
}

.clubapp-notification-card .clubapp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.clubapp-notification-card .clubapp-button {
  min-height: 36px;
  font-size: 12px;
  padding: 0 14px;
}

.clubapp-notification-card .clubapp-calendar-heading {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.clubapp-notification-card .clubapp-calendar-type,
.clubapp-notification-card .clubapp-calendar-time {
  min-height: 24px;
  font-size: 11px;
}

@media (min-width: 760px) {
  .clubapp-notification-bell {
    top: 22px;
    right: 22px;
  }
}
/* Stage 12.21 - Admin bar and bell fix */

body.clubapp-white-label:not(.admin-bar) #wpadminbar {
  display: none !important;
}

.clubapp-notification-bell {
  top: 14px !important;
  right: 14px !important;
  width: 42px !important;
  height: 42px !important;
  background: var(--clubapp-primary) !important;
  border: 2px solid rgba(255,255,255,.8) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.22) !important;
}

.clubapp-notification-bell .clubapp-bell-icon {
  border-color: #fff !important;
}

.clubapp-notification-bell .clubapp-bell-icon:before,
.clubapp-notification-bell .clubapp-bell-icon:after {
  background: #fff !important;
}

.clubapp-notification-count {
  right: -3px !important;
  top: -4px !important;
  background: #dc2626 !important;
  color: #fff !important;
  border: 2px solid #fff;
}

@media (min-width: 760px) {
  .clubapp-notification-bell {
    top: 16px !important;
    right: 16px !important;
  }
}
/* Stage 12.22 - Font Awesome nav icons */

.clubapp-bottom-nav a:before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

.clubapp-bottom-nav a[href*="home"]:before,
.clubapp-bottom-nav a:first-child:before {
  content: "\f015" !important;
}

.clubapp-bottom-nav a[href*="members-hub"]:before {
  content: "\f00a" !important;
}

.clubapp-bottom-nav a[href*="club-calendar"]:before {
  content: "\f073" !important;
}

.clubapp-bottom-nav a[href*="account-profile"]:before {
  content: "\f007" !important;
}

.clubapp-bottom-nav a[href*="committee-dashboard"]:before {
  content: "\f013" !important;
}

.clubapp-card-link h3:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  color: var(--clubapp-primary);
}

.clubapp-card-link[href*="members-hub"] h3:before {
  content: "\f0c0";
}

.clubapp-card-link[href*="events"] h3:before {
  content: "\f073";
}

.clubapp-card-link[href*="calendar"] h3:before {
  content: "\f133";
}

.clubapp-card-link[href*="guides"],
.clubapp-card-link[href*="documents"] {
  position: relative;
}

.clubapp-card-link[href*="guides"] h3:before,
.clubapp-card-link[href*="documents"] h3:before {
  content: "\f15b";
}
/* Stage 12.23 - Bell icon and horizontal updates */

/* Fix notification bell icon */
.clubapp-notification-bell {
  color: #fff !important;
  background: var(--clubapp-primary) !important;
  font-size: 0 !important;
}

.clubapp-notification-bell .clubapp-bell-icon {
  display: none !important;
}

.clubapp-notification-bell:before {
  content: "\f0f3";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

/* Keep count visible */
.clubapp-notification-count {
  font-size: 10px !important;
  color: #fff !important;
}

/* Force Latest Club Updates horizontal scroll */
.clubapp-shell > .clubapp-section:first-of-type .clubapp-list {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  padding: 2px 4px 18px !important;
  margin-left: -4px;
  margin-right: -4px;
}

.clubapp-shell > .clubapp-section:first-of-type .clubapp-update-card {
  flex: 0 0 86% !important;
  min-width: 86% !important;
  max-width: 86% !important;
  scroll-snap-align: start;
}

.clubapp-shell > .clubapp-section:first-of-type .clubapp-list::-webkit-scrollbar {
  display: none;
}

.clubapp-shell > .clubapp-section:first-of-type .clubapp-list {
  scrollbar-width: none;
}

@media (min-width: 760px) {
  .clubapp-shell > .clubapp-section:first-of-type .clubapp-update-card {
    flex-basis: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
  }
}
/* Stage 12.24 - Hero image, updates scroller, calendar and input fixes */

/* Hero background image with club colour overlay */
.clubapp-hero,
.clubapp-page-header {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--clubapp-secondary) 86%, transparent), color-mix(in srgb, var(--clubapp-primary) 82%, transparent)),
    var(--clubapp-hero-bg),
    linear-gradient(135deg, var(--clubapp-secondary), var(--clubapp-primary)) !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Reliable horizontal club updates scroller */
.clubapp-updates-scroll {
  display: flex !important;
  flex-direction: row !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  padding: 2px 4px 18px !important;
  margin-left: -4px;
  margin-right: -4px;
}

.clubapp-updates-scroll .clubapp-update-card {
  flex: 0 0 86% !important;
  min-width: 86% !important;
  max-width: 86% !important;
  scroll-snap-align: start;
}

.clubapp-updates-scroll::-webkit-scrollbar {
  display: none;
}

.clubapp-updates-scroll {
  scrollbar-width: none;
}

@media (min-width: 760px) {
  .clubapp-updates-scroll .clubapp-update-card {
    flex-basis: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
  }
}

/* Calendar page polish */
.clubapp-calendar-list {
  display: grid;
  gap: 12px;
}

.clubapp-calendar-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 14px;
  align-items: start;
}

.clubapp-calendar-heading {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.clubapp-calendar-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.15;
}

.clubapp-calendar-month {
  font-size: 20px;
  margin: 20px 0 8px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.clubapp-calendar-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin: 0 0 14px;
}

.clubapp-calendar-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #e2e8f0;
  color: var(--clubapp-secondary);
  font-weight: 900;
  white-space: nowrap;
}

.clubapp-calendar-tabs button.is-active {
  background: var(--clubapp-primary);
  color: #fff;
}

/* Fix oversized radio and checkbox fields */
.clubapp-form input[type="radio"],
.clubapp-form input[type="checkbox"],
.clubapp-card input[type="radio"],
.clubapp-card input[type="checkbox"],
input[type="radio"],
input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 8px 0 0 !important;
  border-radius: 4px;
  vertical-align: middle;
}

input[type="radio"] {
  border-radius: 999px !important;
}

.clubapp-checkbox,
.clubapp-form label.clubapp-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Login remember me fix */
.clubapp-card #loginform .login-remember label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
/* Stage 12.25 - Hero, updates and event card polish */

/* Softer hero typography */
.clubapp-hero h1 {
  font-weight: 750 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.08 !important;
  font-size: 34px !important;
}

.clubapp-hero p {
  font-weight: 400 !important;
  font-size: 16.5px !important;
  line-height: 1.45 !important;
  max-width: 360px !important;
}

.clubapp-kicker {
  font-weight: 750 !important;
  letter-spacing: 0.13em !important;
}

/* Club updates: date left, pill right */
.clubapp-update-card {
  padding-top: 58px !important;
}

.clubapp-update-card:before {
  top: 14px !important;
  right: 14px !important;
  height: 30px !important;
  min-height: 30px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  letter-spacing: 0.10em !important;
}

.clubapp-update-meta {
  position: absolute;
  top: 19px;
  left: 16px;
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--clubapp-muted);
  font-weight: 900;
}

.clubapp-update-card h3 {
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin-bottom: 7px !important;
}

.clubapp-update-content p {
  font-size: 14.5px !important;
  line-height: 1.4 !important;
}

/* Upcoming events: premium compact card */
.clubapp-event-card {
  grid-template-columns: 74px 1fr !important;
  gap: 14px !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%) !important;
  border: 1px solid #e4ebf4 !important;
  box-shadow: 0 16px 38px rgba(15,23,42,.09) !important;
}

.clubapp-event-card .clubapp-event-datebox {
  width: 74px !important;
  height: 74px !important;
  min-height: 74px !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 26px rgba(18,60,105,.22);
}

.clubapp-event-card .clubapp-event-datebox strong {
  font-size: 28px !important;
}

.clubapp-event-card .clubapp-event-datebox span {
  font-size: 10px !important;
}

.clubapp-event-card .clubapp-event-main h3 {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 7px !important;
}

.clubapp-event-card .clubapp-event-meta {
  gap: 6px !important;
  margin-bottom: 10px !important;
}

.clubapp-event-card .clubapp-event-meta span {
  background: #eef4fb !important;
  color: #17345a !important;
  border: 1px solid #dfe8f2 !important;
  font-size: 11px !important;
  padding: 6px 9px !important;
}

.clubapp-event-card .clubapp-event-content {
  margin-top: 4px;
}

.clubapp-event-card .clubapp-event-content p {
  font-size: 14.5px !important;
  color: #334155;
}

.clubapp-event-card .clubapp-event-extra {
  background: #f2f6fb !important;
  border: 1px solid #e4ebf4;
  padding: 11px 12px !important;
  border-radius: 17px !important;
}

.clubapp-event-card .clubapp-event-extra p {
  font-size: 13px !important;
}

.clubapp-event-card .clubapp-event-extra strong {
  color: var(--clubapp-text);
}

/* Mobile refinements */
@media (max-width: 460px) {
  .clubapp-hero h1 {
    font-size: 33px !important;
  }

  .clubapp-event-card {
    grid-template-columns: 70px 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .clubapp-event-card .clubapp-event-datebox {
    width: 70px !important;
    height: 70px !important;
    min-height: 70px !important;
  }

  .clubapp-update-card:before {
    right: 12px !important;
    padding: 0 12px !important;
  }

  .clubapp-update-meta {
    left: 14px !important;
  }
}
/* Phase 13 - Rink Booking */

.clubapp-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clubapp-booking-list {
  display: grid;
  gap: 12px;
}

.clubapp-booking-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--clubapp-card);
  border: 1px solid #e7edf5;
  border-radius: var(--clubapp-radius);
  box-shadow: var(--clubapp-shadow);
}

.clubapp-booking-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.15;
}

.clubapp-booking-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clubapp-booking-topline span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: #17345a;
  font-size: 11px;
  font-weight: 900;
}

.clubapp-inline-form {
  margin-top: 10px;
}

.clubapp-rink-admin-list {
  display: grid;
  gap: 12px;
}

.clubapp-rink-admin-row {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

@media (max-width: 520px) {
  .clubapp-form-row,
  .clubapp-rink-admin-row {
    grid-template-columns: 1fr;
  }

  .clubapp-booking-card {
    grid-template-columns: 62px 1fr;
  }
}
/* Phase 14 - Green Availability */

.clubapp-availability-list {
  display: grid;
  gap: 12px;
}

.clubapp-availability-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--clubapp-card);
  border: 1px solid #e7edf5;
  border-radius: var(--clubapp-radius);
  box-shadow: var(--clubapp-shadow);
}

.clubapp-availability-date {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--clubapp-secondary), var(--clubapp-primary));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clubapp-availability-date strong {
  font-size: 27px;
  line-height: 1;
}

.clubapp-availability-date span {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}

.clubapp-availability-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.clubapp-availability-top h3 {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.15;
}

.clubapp-availability-top p {
  margin: 0;
  color: var(--clubapp-muted);
  font-size: 13px;
  font-weight: 700;
}

.clubapp-availability-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
}

.status-quiet .clubapp-availability-pill {
  background: #dcfce7;
  color: #166534;
}

.status-moderate .clubapp-availability-pill {
  background: #fef3c7;
  color: #92400e;
}

.status-busy .clubapp-availability-pill {
  background: #ffedd5;
  color: #9a3412;
}

.status-full .clubapp-availability-pill {
  background: #fee2e2;
  color: #991b1b;
}

.clubapp-availability-meter {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 12px 0 10px;
}

.clubapp-availability-meter span {
  height: 100%;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #f59e0b, #dc2626);
}

.clubapp-availability-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.clubapp-availability-stats span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 900;
}

.clubapp-availability-details {
  margin-top: 10px;
}

.clubapp-availability-details summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--clubapp-primary);
}

.clubapp-availability-bookings {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.clubapp-availability-bookings div {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 12px;
  background: #f8fafc;
}

.clubapp-availability-bookings span,
.clubapp-availability-bookings em {
  color: var(--clubapp-muted);
  font-size: 13px;
}

@media (max-width: 520px) {
  .clubapp-availability-card {
    grid-template-columns: 62px 1fr;
  }

  .clubapp-availability-date {
    width: 62px;
    height: 62px;
  }
}
/* Phase 15 - Competition Draws */

.clubapp-competition-card {
  display: grid;
  gap: 14px;
}

.clubapp-competition-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.clubapp-competition-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.15;
}

.clubapp-competition-head p {
  margin: 0;
  color: var(--clubapp-muted);
  font-size: 13px;
  font-weight: 800;
}

.clubapp-competition-head > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef4fb;
  color: #17345a;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.clubapp-compact-form {
  background: #f8fafc;
  padding: 12px;
  border-radius: 16px;
}

.clubapp-entrant-list {
  margin: 0;
  padding-left: 22px;
}

.clubapp-draw {
  display: grid;
  gap: 18px;
}

.clubapp-draw-round h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 900;
}

.clubapp-draw-matches {
  display: grid;
  gap: 10px;
}

.clubapp-draw-match {
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 18px;
  padding: 12px;
}

.clubapp-draw-match-title {
  color: var(--clubapp-muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.clubapp-draw-entrant {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 6px;
  font-weight: 800;
}

.clubapp-draw-entrant.is-winner {
  background: #dcfce7;
  color: #166534;
}

.clubapp-draw-entrant.is-bye {
  color: var(--clubapp-muted);
  font-style: italic;
}

.clubapp-draw-entrant span {
  color: var(--clubapp-muted);
  font-size: 12px;
}

.clubapp-draw-winner-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.clubapp-draw-winner-form select {
  flex: 1;
}
/* Phase 15.3A - Competition management upgrade */

.clubapp-competition-progress {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.clubapp-competition-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.clubapp-competition-stat-grid div {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  border: 1px solid #e7edf5;
}

.clubapp-competition-stat-grid strong {
  display: block;
  font-size: 20px;
  color: var(--clubapp-primary);
}

.clubapp-competition-stat-grid span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: var(--clubapp-muted);
}

.clubapp-competition-meter {
  height: 9px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.clubapp-competition-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--clubapp-primary), #22c55e);
}

.clubapp-competition-tools {
  display: grid;
  gap: 12px;
}

.clubapp-member-picker {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e7edf5;
  border-radius: 14px;
}

.clubapp-score-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.clubapp-score {
  margin-left: auto;
  font-size: 16px;
  color: var(--clubapp-primary);
}

.clubapp-handicap {
  font-size: 12px;
  color: var(--clubapp-muted);
  margin-left: 4px;
}

.clubapp-entrant-name {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

@media (max-width: 520px) {
  .clubapp-competition-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clubapp-draw-winner-form,
  .clubapp-score-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
/* Phase 16 - Match Availability */

.clubapp-availability-request-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--clubapp-card);
  border: 1px solid #e7edf5;
  border-radius: var(--clubapp-radius);
  box-shadow: var(--clubapp-shadow);
}

.clubapp-availability-request-card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.15;
}

.clubapp-availability-response-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.clubapp-response-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clubapp-response-option {
  min-height: 42px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px !important;
  font-size: 12px;
  font-weight: 900;
  color: #334155 !important;
}

.clubapp-response-option input {
  display: none !important;
}

.clubapp-response-option.is-selected {
  background: var(--clubapp-primary);
  color: #fff !important;
  border-color: var(--clubapp-primary);
}

.clubapp-admin-availability-card {
  display: grid;
  gap: 14px;
}

.clubapp-response-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.clubapp-response-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
}

.clubapp-response-row span {
  font-weight: 900;
  font-size: 12px;
}

.clubapp-response-row em {
  grid-column: 1 / -1;
  color: var(--clubapp-muted);
  font-size: 13px;
}

.response-available span {
  color: #166534;
}

.response-maybe span {
  color: #92400e;
}

.response-unavailable span {
  color: #991b1b;
}

@media (max-width: 520px) {
  .clubapp-availability-request-card {
    grid-template-columns: 62px 1fr;
  }

  .clubapp-response-buttons {
    grid-template-columns: 1fr;
  }
}
/* Phase 17 - Team Selection */

.clubapp-team-selection-card {
  display: grid;
  gap: 14px;
}

.clubapp-team-groups {
  display: grid;
  gap: 14px;
}

.clubapp-team-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e7edf5;
}

.clubapp-team-group h4 {
  margin: 0;
  font-size: 16px;
}

.clubapp-team-player-list {
  display: grid;
  gap: 10px;
}

.clubapp-team-player {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e7edf5;
}

.clubapp-team-player strong {
  display: block;
}

.clubapp-team-player p {
  margin: 4px 0 0;
  color: var(--clubapp-muted);
  font-size: 13px;
}

.clubapp-team-player input,
.clubapp-team-player select {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid #d7dee8;
  padding: 8px 10px;
}

.clubapp-team-player input {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .clubapp-team-player {
    grid-template-columns: 1fr;
  }

  .clubapp-team-player input {
    grid-column: auto;
  }
}
/* Phase 18 - Team Sheet */

.clubapp-team-sheet-card {
  display: grid;
  gap: 14px;
}

.clubapp-selected-banner {
  padding: 12px;
  border-radius: 16px;
  font-weight: 900;
}

.clubapp-selected-banner.status-selected {
  background: #dcfce7;
  color: #166534;
}

.clubapp-selected-banner.status-reserve {
  background: #fef3c7;
  color: #92400e;
}

.clubapp-team-sheet-section {
  display: grid;
  gap: 10px;
}

.clubapp-team-sheet-section h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.clubapp-team-sheet-list {
  display: grid;
  gap: 10px;
}

.clubapp-team-sheet-player {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 16px;
}

.clubapp-team-sheet-player strong {
  display: block;
}

.clubapp-team-sheet-player p {
  margin: 4px 0 0;
  color: var(--clubapp-muted);
  font-size: 13px;
}

.clubapp-team-sheet-player span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4fb;
  color: #17345a;
  font-size: 11px;
  font-weight: 900;
}

.clubapp-empty.compact {
  padding: 12px;
  box-shadow: none;
}

.clubapp-empty.compact p {
  margin: 0;
}

@media (max-width: 520px) {
  .clubapp-team-sheet-player {
    grid-template-columns: 44px 1fr;
  }

  .clubapp-team-sheet-player span {
    grid-column: 2;
    width: fit-content;
  }
}
/* Phase 20 - Smart Homepage */

.clubapp-smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clubapp-smart-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 15px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e7edf5;
  box-shadow: var(--clubapp-shadow);
  text-decoration: none !important;
  color: var(--clubapp-text) !important;
}

.clubapp-smart-card span {
  font-size: 12px;
  font-weight: 900;
  color: var(--clubapp-muted);
}

.clubapp-smart-card strong {
  font-size: 17px;
  line-height: 1.15;
  color: var(--clubapp-text);
}

.clubapp-smart-card em {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--clubapp-primary);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.clubapp-smart-card.is-hot {
  border-color: #fecaca;
  background: #fff7f7;
}

.clubapp-smart-card.is-hot em {
  background: #dc2626;
}

.clubapp-smart-card.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.clubapp-smart-card.is-success em {
  background: #166534;
}

@media (max-width: 420px) {
  .clubapp-smart-grid {
    grid-template-columns: 1fr;
  }

  .clubapp-smart-card {
    min-height: 104px;
  }
}
/* Phase 21 - Captain Dashboard */

.clubapp-captain-card {
  display: grid;
  gap: 14px;
}

.clubapp-captain-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.clubapp-captain-stats div {
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.clubapp-captain-stats strong {
  display: block;
  color: var(--clubapp-primary);
  font-size: 20px;
}

.clubapp-captain-stats span {
  display: block;
  color: var(--clubapp-muted);
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 520px) {
  .clubapp-captain-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Admin hub quick helper */
.rinksy-admin-note {
  max-width: 760px;
  padding: 14px;
  background: #f0f6ff;
  border-left: 4px solid #123C69;
  margin: 16px 0;
}
/* Phase 22 - Rinksy UI Pro Polish + Dark Mode */

/* Better app background */
:root {
  --rinksy-surface: rgba(255,255,255,.92);
  --rinksy-surface-solid: #ffffff;
  --rinksy-border: #e5edf6;
  --rinksy-icon-bg: #eef6ff;
  --rinksy-nav-bg: rgba(255,255,255,.86);
}

/* Modern cards */
.clubapp-card,
.clubapp-empty,
.clubapp-update-card,
.clubapp-event-card,
.clubapp-tournament-card,
.clubapp-fixture-card,
.clubapp-calendar-card,
.clubapp-document-card,
.clubapp-member-card,
.clubapp-notification-card,
.clubapp-booking-card,
.clubapp-availability-card,
.clubapp-availability-request-card,
.clubapp-smart-card,
.clubapp-captain-card {
  background: var(--rinksy-surface) !important;
  border: 1px solid var(--rinksy-border) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 44px rgba(15,23,42,.09) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Card hover/press feel */
.clubapp-card-link,
.clubapp-smart-card {
  transition: transform .16s ease, box-shadow .16s ease;
}

.clubapp-card-link:hover,
.clubapp-smart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15,23,42,.14) !important;
}

/* Better buttons */
.clubapp-button,
.clubapp-card-action,
.clubapp-install-button,
.clubapp-card #loginform input[type="submit"] {
  min-height: 42px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--clubapp-primary), var(--clubapp-secondary)) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 10px 24px rgba(18,60,105,.22) !important;
  font-weight: 900 !important;
  letter-spacing: -.01em;
}

.clubapp-button.secondary,
.clubapp-card-action.secondary {
  background: #eef4fb !important;
  color: var(--clubapp-primary) !important;
  box-shadow: none !important;
  border: 1px solid #dbe7f3 !important;
}

/* Section spacing: make homepage breathe */
.clubapp-section {
  margin: 32px 0 !important;
}

.clubapp-section-header {
  margin-bottom: 16px !important;
}

.clubapp-section-header h2 {
  font-size: 23px !important;
  letter-spacing: -.035em !important;
}

.clubapp-section-header h2:before {
  width: 5px !important;
  border-radius: 999px !important;
}

/* Smart homepage cards */
.clubapp-smart-home {
  margin-top: 28px !important;
}

.clubapp-smart-grid {
  gap: 14px !important;
}

.clubapp-smart-card {
  min-height: 136px !important;
  position: relative;
  overflow: hidden;
  padding: 17px !important;
}

.clubapp-smart-card:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rinksy-icon-bg);
  color: var(--clubapp-primary);
  font-size: 16px;
}

.clubapp-smart-card[href*="notifications"]:before {
  content: "\f0f3";
}

.clubapp-smart-card[href*="match-availability"]:before {
  content: "\f274";
}

.clubapp-smart-card[href*="team-sheet"]:before {
  content: "\f0c0";
}

.clubapp-smart-card[href*="rink-booking"]:before,
.clubapp-smart-card[href*="my-bookings"]:before {
  content: "\f073";
}

.clubapp-smart-card[href*="green-availability"]:before {
  content: "\f06c";
}

.clubapp-smart-card strong {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.clubapp-smart-card em {
  min-height: 32px !important;
  padding: 0 12px !important;
}

/* Quick action cards with FA icons */
.clubapp-card-link h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.clubapp-card-link h3:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rinksy-icon-bg);
  color: var(--clubapp-primary);
  font-size: 14px;
}

/* Common module icons */
.clubapp-card-link[href*="update"] h3:before { content: "\f1ea"; }
.clubapp-card-link[href*="event"] h3:before { content: "\f073"; }
.clubapp-card-link[href*="tournament"] h3:before { content: "\f091"; }
.clubapp-card-link[href*="competition"] h3:before { content: "\f5a2"; }
.clubapp-card-link[href*="rink"] h3:before,
.clubapp-card-link[href*="booking"] h3:before { content: "\f133"; }
.clubapp-card-link[href*="green"] h3:before { content: "\f06c"; }
.clubapp-card-link[href*="availability"] h3:before { content: "\f274"; }
.clubapp-card-link[href*="team-selection"] h3:before { content: "\f0c0"; }
.clubapp-card-link[href*="team-sheet"] h3:before { content: "\f15c"; }
.clubapp-card-link[href*="captain"] h3:before { content: "\f508"; }
.clubapp-card-link[href*="document"] h3:before,
.clubapp-card-link[href*="guide"] h3:before { content: "\f15b"; }
.clubapp-card-link[href*="member"] h3:before { content: "\f007"; }
.clubapp-card-link[href*="notification"] h3:before { content: "\f0f3"; }

/* Club updates as nicer cards */
.clubapp-update-card {
  border-radius: 26px !important;
}

.clubapp-update-card:before {
  background: linear-gradient(135deg, var(--clubapp-primary), var(--clubapp-secondary)) !important;
  box-shadow: 0 8px 20px rgba(18,60,105,.18);
}

.clubapp-update-card h3 {
  font-weight: 850 !important;
  letter-spacing: -.02em;
}

/* Event cards more premium */
.clubapp-event-card,
.clubapp-booking-card,
.clubapp-availability-request-card {
  background: linear-gradient(180deg, var(--rinksy-surface-solid), #f9fbfe) !important;
}

.clubapp-event-datebox,
.clubapp-availability-date {
  box-shadow: 0 12px 26px rgba(18,60,105,.22);
}

/* More native bottom nav */
.clubapp-bottom-nav {
  left: 12px !important;
  right: 12px !important;
  bottom: 10px !important;
  min-height: 66px !important;
  max-width: 680px !important;
  border-radius: 28px !important;
  background: var(--rinksy-nav-bg) !important;
  border: 1px solid rgba(226,232,240,.85) !important;
  box-shadow: 0 20px 55px rgba(15,23,42,.20) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.clubapp-bottom-nav a {
  min-height: 64px !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  gap: 4px !important;
}

.clubapp-bottom-nav a:before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.clubapp-bottom-nav a[href*="home"]:before,
.clubapp-bottom-nav a:first-child:before {
  content: "\f015" !important;
}

.clubapp-bottom-nav a[href*="club-calendar"]:before {
  content: "\f073" !important;
}

.clubapp-bottom-nav a[href*="account-profile"]:before {
  content: "\f007" !important;
}

.clubapp-bottom-nav a[href*="committee-dashboard"]:before {
  content: "\f013" !important;
}

.clubapp-bottom-nav a.is-active {
  background: rgba(18,60,105,.08) !important;
}

.clubapp-bottom-nav a.is-active:after {
  bottom: 6px !important;
  height: 4px !important;
  width: 24px !important;
}

/* Notification bell */
.clubapp-notification-bell {
  background: var(--clubapp-primary) !important;
  color: #fff !important;
}

.clubapp-notification-bell:before {
  content: "\f0f3";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 17px;
  color: #fff;
}

.clubapp-notification-bell .clubapp-bell-icon {
  display: none !important;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --clubapp-bg: #07111f;
    --clubapp-card: #111c2e;
    --clubapp-text: #f8fafc;
    --clubapp-muted: #9aa8bb;
    --rinksy-surface: rgba(17,28,46,.88);
    --rinksy-surface-solid: #111c2e;
    --rinksy-border: rgba(148,163,184,.20);
    --rinksy-icon-bg: rgba(96,165,250,.12);
    --rinksy-nav-bg: rgba(17,28,46,.86);
  }

  body.clubapp-white-label {
    background: linear-gradient(180deg, #07111f 0%, #0b1728 100%) !important;
    color: var(--clubapp-text) !important;
  }

  .clubapp-card,
  .clubapp-empty,
  .clubapp-update-card,
  .clubapp-event-card,
  .clubapp-tournament-card,
  .clubapp-fixture-card,
  .clubapp-calendar-card,
  .clubapp-document-card,
  .clubapp-member-card,
  .clubapp-notification-card,
  .clubapp-booking-card,
  .clubapp-availability-card,
  .clubapp-availability-request-card,
  .clubapp-smart-card,
  .clubapp-captain-card {
    background: var(--rinksy-surface) !important;
    border-color: var(--rinksy-border) !important;
    color: var(--clubapp-text) !important;
  }

  .clubapp-event-card,
  .clubapp-booking-card,
  .clubapp-availability-request-card {
    background: linear-gradient(180deg, #111c2e, #0d1727) !important;
  }

  .clubapp-section-header h2,
  .clubapp-card h3,
  .clubapp-smart-card strong,
  .clubapp-event-main h3,
  .clubapp-update-card h3 {
    color: var(--clubapp-text) !important;
  }

  .clubapp-muted,
  .clubapp-card-link p,
  .clubapp-smart-card span,
  .clubapp-update-meta,
  .clubapp-event-extra p {
    color: var(--clubapp-muted) !important;
  }

  .clubapp-form input,
  .clubapp-form select,
  .clubapp-form textarea,
  .clubapp-card #loginform input[type="text"],
  .clubapp-card #loginform input[type="password"],
  .clubapp-team-player input,
  .clubapp-team-player select {
    background: #0b1728 !important;
    border-color: rgba(148,163,184,.25) !important;
    color: var(--clubapp-text) !important;
  }

  .clubapp-event-meta span,
  .clubapp-calendar-type,
  .clubapp-calendar-time,
  .clubapp-pill,
  .clubapp-booking-topline span,
  .clubapp-team-sheet-player,
  .clubapp-response-row,
  .clubapp-event-extra,
  .clubapp-compact-form,
  .clubapp-team-group,
  .clubapp-competition-progress,
  .clubapp-captain-stats div,
  .clubapp-competition-stat-grid div {
    background: rgba(15,23,42,.55) !important;
    border-color: rgba(148,163,184,.18) !important;
    color: var(--clubapp-text) !important;
  }

  .clubapp-bottom-nav {
    background: var(--rinksy-nav-bg) !important;
    border-color: rgba(148,163,184,.22) !important;
  }

  .clubapp-bottom-nav a {
    color: #cbd5e1 !important;
  }

  .clubapp-bottom-nav a.is-active {
    color: #fff !important;
    background: rgba(96,165,250,.14) !important;
  }
}

/* Manual dark mode support if body class is added later */
body.rinksy-dark-mode {
  background: #07111f !important;
}

/* Mobile refinements */
@media (max-width: 420px) {
  .clubapp-section {
    margin: 28px 0 !important;
  }

  .clubapp-smart-grid {
    grid-template-columns: 1fr !important;
  }

  .clubapp-grid {
    gap: 14px !important;
  }

  .clubapp-card-link {
    min-height: 148px !important;
  }
}
/* Phase 22.1 - Hub icons and unified smart cards */

/* Make smart homepage match normal hub cards */
.clubapp-smart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.clubapp-smart-card,
.clubapp-card-link {
  min-height: 150px !important;
  padding: 18px !important;
  border-radius: 26px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Unified icon bubble */
.clubapp-smart-card:before,
.clubapp-card-link:before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--rinksy-icon-bg) !important;
  color: var(--clubapp-primary) !important;
  font-size: 17px !important;
  margin-bottom: 12px !important;
}

/* Stop duplicate h3 icons */
.clubapp-card-link h3:before {
  display: none !important;
}

/* Text consistency */
.clubapp-smart-card span,
.clubapp-card-link h3 {
  font-size: 18px !important;
  font-weight: 850 !important;
  color: var(--clubapp-text) !important;
  margin: 0 !important;
}

.clubapp-smart-card strong,
.clubapp-card-link p {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: var(--clubapp-muted) !important;
  margin: 8px 0 16px !important;
}

.clubapp-smart-card em,
.clubapp-card-action {
  width: 100% !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
}

/* Hub/module card icons by URL */
.clubapp-card-link[href*="club-updates"]:before,
.clubapp-card-link[href*="updates"]:before,
.clubapp-card-link[href*="create-update"]:before { content: "\f1ea"; }

.clubapp-card-link[href*="arrange"]:before,
.clubapp-card-link[href*="match"]:before { content: "\f handshake"; }

.clubapp-card-link[href*="my-fixtures"]:before,
.clubapp-card-link[href*="fixture"]:before { content: "\f5a2"; }

.clubapp-card-link[href*="open-match"]:before,
.clubapp-card-link[href*="open-matches"]:before { content: "\f35a"; }

.clubapp-card-link[href*="member-list"]:before,
.clubapp-card-link[href*="members"]:before { content: "\f0c0"; }

.clubapp-card-link[href*="tournament"]:before { content: "\f091"; }

.clubapp-card-link[href*="calendar"]:before { content: "\f073"; }

.clubapp-card-link[href*="saved"]:before { content: "\f02e"; }

.clubapp-card-link[href*="guide"]:before,
.clubapp-card-link[href*="document"]:before { content: "\f15b"; }

.clubapp-card-link[href*="rink"]:before,
.clubapp-card-link[href*="booking"]:before { content: "\f274"; }

.clubapp-card-link[href*="green"]:before { content: "\f06c"; }

.clubapp-card-link[href*="availability"]:before { content: "\f274"; }

.clubapp-card-link[href*="team-selection"]:before { content: "\f0c0"; }

.clubapp-card-link[href*="team-sheet"]:before { content: "\f15c"; }

.clubapp-card-link[href*="captain"]:before { content: "\f508"; }

.clubapp-card-link[href*="competition"]:before { content: "\f521"; }

.clubapp-card-link[href*="notification"]:before { content: "\f0f3"; }

.clubapp-card-link[href*="health"]:before { content: "\f0ad"; }

/* Smart homepage icons */
.clubapp-smart-card[href*="notifications"]:before { content: "\f0f3"; }
.clubapp-smart-card[href*="match-availability"]:before { content: "\f274"; }
.clubapp-smart-card[href*="team-sheet"]:before { content: "\f0c0"; }
.clubapp-smart-card[href*="rink-booking"]:before,
.clubapp-smart-card[href*="my-bookings"]:before { content: "\f073"; }
.clubapp-smart-card[href*="green-availability"]:before { content: "\f06c"; }

/* Fix bad icon typo fallback */
.clubapp-card-link[href*="arrange"]:before {
  content: "\f2b5" !important;
}

/* Better section break */
.clubapp-smart-home {
  padding-top: 10px !important;
  margin-top: 36px !important;
}

.clubapp-smart-home .clubapp-section-header {
  margin-bottom: 18px !important;
}

/* Mobile */
@media (max-width: 520px) {
  .clubapp-smart-grid,
  .clubapp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .clubapp-smart-card,
  .clubapp-card-link {
    min-height: 150px !important;
    padding: 14px !important;
  }

  .clubapp-smart-card:before,
  .clubapp-card-link:before {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 15px !important;
  }

  .clubapp-smart-card span,
  .clubapp-card-link h3 {
    font-size: 16px !important;
  }

  .clubapp-smart-card strong,
  .clubapp-card-link p {
    font-size: 13px !important;
  }
}
/* Phase 22.2 - Homepage layout correction */

/* Stop the huge blank gap between sections */
.clubapp-section {
  margin: 26px 0 !important;
}

.clubapp-smart-home {
  margin-top: 26px !important;
  padding-top: 0 !important;
}

/* Keep home content a proper app width */
.clubapp-shell {
  max-width: 820px !important;
}

/* Make grids feel like app cards, not huge web panels */
.clubapp-grid,
.clubapp-smart-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

/* Normalise all home cards */
.clubapp-card-link,
.clubapp-smart-card {
  min-height: 132px !important;
  padding: 16px !important;
  border-radius: 22px !important;
}

/* Better card structure */
.clubapp-card-link:before,
.clubapp-smart-card:before {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 13px !important;
  font-size: 15px !important;
  margin-bottom: 8px !important;
}

.clubapp-card-link h3,
.clubapp-smart-card span {
  font-size: 16px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.clubapp-card-link p,
.clubapp-smart-card strong {
  font-size: 13.5px !important;
  line-height: 1.3 !important;
  margin: 7px 0 12px !important;
}

/* Buttons should not dominate cards */
.clubapp-card-action,
.clubapp-smart-card em {
  width: auto !important;
  min-width: 82px !important;
  align-self: flex-start !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

/* Fix section headings */
.clubapp-section-header h2 {
  font-size: 22px !important;
  margin: 0 !important;
}

/* Make smart cards visually match top section */
.clubapp-smart-card {
  background: var(--rinksy-surface) !important;
}

/* Desktop: keep cards compact */
@media (min-width: 900px) {
  .clubapp-shell {
    max-width: 860px !important;
  }

  .clubapp-card-link,
  .clubapp-smart-card {
    min-height: 126px !important;
  }
}

/* Mobile remains two columns but tighter */
@media (max-width: 520px) {
  .clubapp-shell {
    max-width: none !important;
  }

  .clubapp-grid,
  .clubapp-smart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .clubapp-card-link,
  .clubapp-smart-card {
    min-height: 138px !important;
    padding: 13px !important;
  }

  .clubapp-card-link h3,
  .clubapp-smart-card span {
    font-size: 15px !important;
  }

  .clubapp-card-link p,
  .clubapp-smart-card strong {
    font-size: 12.5px !important;
  }
}
/* Phase 22.3 - Force Your Club Today to match Quick Actions exactly */

.clubapp-smart-home {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.clubapp-smart-home .clubapp-smart-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.clubapp-smart-home .clubapp-smart-card {
  width: auto !important;
  min-height: 126px !important;
  height: auto !important;
  padding: 16px !important;
  border-radius: 22px !important;
  box-sizing: border-box !important;
}

.clubapp-smart-home .clubapp-smart-card:before {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 13px !important;
  font-size: 15px !important;
  margin-bottom: 8px !important;
}

.clubapp-smart-home .clubapp-smart-card span {
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

.clubapp-smart-home .clubapp-smart-card strong {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin: 7px 0 12px !important;
}

.clubapp-smart-home .clubapp-smart-card em {
  width: auto !important;
  min-width: 82px !important;
  align-self: flex-start !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

/* Prevent Smart Home cards stretching wider than Quick Actions */
.clubapp-smart-grid {
  align-items: stretch !important;
}

@media (max-width: 520px) {
  .clubapp-smart-home .clubapp-smart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Phase 25 - Native Push Prompt */

.clubapp-push-prompt {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 92px;
  z-index: 99999;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  border: 1px solid #e5edf6;
  box-shadow: 0 18px 44px rgba(15,23,42,.18);
  backdrop-filter: blur(18px);
}

.clubapp-push-prompt strong,
.clubapp-push-prompt span {
  display: block;
}

.clubapp-push-prompt strong {
  font-weight: 900;
  color: var(--clubapp-text);
}

.clubapp-push-prompt span {
  font-size: 13px;
  color: var(--clubapp-muted);
}

.clubapp-push-prompt button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--clubapp-primary);
  color: #fff;
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  .clubapp-push-prompt {
    background: rgba(17,28,46,.9);
    border-color: rgba(148,163,184,.22);
  }
}