/* ============================================
   BTCC DESIGN SYSTEM
   Baldock Town Cricket Club
   ============================================ */


/* ---- BASE FONT SIZE ---- */
html { font-size: 18px; }

/* ---- VARIABLES ---- */
:root {
  --btcc-navy:        #1B2A4A;
  --btcc-navy-mid:    #243659;
  --btcc-navy-light:  #2e4470;
  --btcc-accent:       #C9A327;
  --btcc-accent-light: #DDB93E;
  --btcc-cream:       #F5F1E8;
  --btcc-cream-dark:  #EDE8DC;
  --btcc-text:        #111827;
  --btcc-text-body:   #374151;
  --btcc-text-muted:  #6B7280;
  --btcc-white:       #FFFFFF;
  --btcc-footer-bg:   #0D1B35;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --nav-height:   80px;
  --transition:   0.25s ease;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.12);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.22);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--btcc-text-body);
  background-color: var(--btcc-white);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--btcc-text);
}

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

/* ---- LAYOUT ---- */
#main-content-wrapper {
  min-height: calc(100vh - var(--nav-height) - 220px);
}

/* ============================================
   NAVBAR
   ============================================ */
.btcc-navbar {
  background-color: var(--btcc-navy) !important;
  min-height: var(--nav-height);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
  padding: 0 1.5rem;
}


.btcc-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--btcc-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--transition);
}

.btcc-navbar .navbar-brand:hover {
  color: var(--btcc-accent);
}

.btcc-navbar .navbar-brand img {
  height: 52px;
  width: auto;
}

.btcc-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.25);
  padding: 0.35rem 0.6rem;
}

.btcc-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btcc-nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82) !important;
  padding: 0.5rem 0.5rem !important;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

@media (min-width: 1400px) {
  .btcc-nav-link {
    padding: 0.5rem 0.7rem !important;
  }
}

.btcc-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--btcc-accent);
  transition: width var(--transition);
}

.btcc-nav-link:hover,
.btcc-nav-link.active {
  color: var(--btcc-white) !important;
}

.btcc-nav-link:hover::after,
.btcc-nav-link.active::after {
  width: 60%;
}

.btcc-nav-login {
  background-color: var(--btcc-accent) !important;
  color: var(--btcc-navy) !important;
  border-radius: 3px;
  font-weight: 700;
  padding: 0.4rem 1.1rem !important;
  margin-left: 0.75rem;
  transition: background-color var(--transition), transform var(--transition) !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}

.btcc-nav-login::after { display: none !important; }

.btcc-nav-login:focus,
.btcc-nav-login:active,
.btcc-nav-login:focus-visible {
  box-shadow: none !important;
  outline: none !important;
}

.btcc-nav-login:hover {
  background-color: var(--btcc-accent-light) !important;
  color: var(--btcc-navy) !important;
  transform: translateY(-1px);
}

/* Principal sponsor lockup in navbar */
.btcc-navbar-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 1.25rem;
  margin-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.btcc-navbar-sponsor:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btcc-navbar-sponsor-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  white-space: nowrap;
}

.btcc-navbar-sponsor-img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(1.05);
}

.btcc-nav-admin {
  color: var(--btcc-accent) !important;
  border: 1px solid color-mix(in srgb, var(--btcc-accent) 50%, transparent);
  border-radius: 3px;
  font-weight: 700;
  padding: 0.38rem 0.9rem !important;
  margin-right: 0.5rem;
  transition: all var(--transition) !important;
}

.btcc-nav-admin::after { display: none !important; }

.btcc-nav-admin:hover {
  background-color: color-mix(in srgb, var(--btcc-accent) 15%, transparent) !important;
  color: var(--btcc-accent) !important;
}

.btcc-navbar .dropdown-toggle { cursor: pointer; }

.btcc-navbar .dropdown-menu {
  background-color: var(--btcc-navy-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  min-width: 190px;
  box-shadow: var(--shadow-md);
}

.btcc-navbar .dropdown-item {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  padding: 0.6rem 1.1rem;
  transition: background-color var(--transition);
}

.btcc-navbar .dropdown-item:hover {
  background-color: rgba(255,255,255,0.08);
  color: var(--btcc-white);
}

.btcc-navbar .dropdown-divider {
  border-color: rgba(255,255,255,0.1);
}

.btcc-nav-signout {
  color: rgba(255,100,100,0.85) !important;
}

.btcc-nav-signout:hover {
  color: #ff6b6b !important;
  background-color: rgba(255,80,80,0.08) !important;
}

.btcc-nav-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.1rem;
  margin: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btcc-nav-balance-label {
  opacity: 0.8;
  font-weight: 400;
  font-size: 0.78rem;
}

.btcc-nav-balance-amount {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btcc-nav-balance--owed {
  background: rgba(220,38,38,0.2);
  color: #fca5a5;
}

.btcc-nav-balance--clear {
  background: rgba(22,163,74,0.2);
  color: #86efac;
}

/* Logged-in user nav item */
.btcc-nav-user {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}

.btcc-nav-user::after { display: none !important; }

.btcc-nav-user-icon-wrap {
  position: relative;
  display: inline-flex;
}

.btcc-nav-user-icon {
  font-size: 1em;
  opacity: 0.75;
}

.btcc-nav-user-icon--alert {
  opacity: 1;
  animation: btccIconPulse 1.8s ease-in-out infinite;
}

@keyframes btccIconPulse {
  0%, 100% { color: rgba(255,255,255,0.75); transform: scale(1); }
  50% { color: var(--btcc-accent); transform: scale(1.2); }
}

/* ── Action toast ─────────────────────────────────────────────────────────── */
.btcc-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
  width: 320px;
  background: var(--btcc-navy);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.btcc-toast--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btcc-toast-header {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
}

.btcc-toast-header .mr-auto { color: rgba(255,255,255,0.9); font-weight: 600; letter-spacing: 0.02em; }

.btcc-toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: color 0.15s;
}

.btcc-toast-close:hover { color: #fff; }

.btcc-toast-body {
  padding: 0.85rem 1rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  line-height: 1.5;
}

.btcc-toast-action {
  display: block;
  margin-top: 0.6rem;
  color: var(--btcc-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.btcc-toast-action:hover { color: #fff; text-decoration: none; }

.btcc-toast-item { display: block; }
.btcc-toast-item--sep { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.15); }

.btcc-nav-user-caret {
  font-size: 0.6em;
  opacity: 0.6;
  margin-left: 0.1rem;
  transition: transform 0.2s ease;
}

.btcc-nav-user[aria-expanded="true"] .btcc-nav-user-caret {
  transform: rotate(180deg);
}

/* ============================================
   HERO
   ============================================ */
.btcc-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/cricket-header.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  text-align: center;
  overflow: hidden;
}

.btcc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 22, 46, 0.72) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(27, 42, 74, 0.80) 100%
  );
}

.btcc-hero-content {
  position: relative;
  z-index: 2;
  color: var(--btcc-white);
  padding: 2rem 1.5rem 7rem;
  max-width: 680px;
  margin: 0 auto;
}

.btcc-hero-logo {
  width: 145px;
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

.btcc-hero-est {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  margin-bottom: 0.75rem;
}

.btcc-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: var(--btcc-white);
  line-height: 1.12;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.btcc-hero-tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.btcc-hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 768px) {
  .btcc-hero-scroll { display: flex; }
}

.btcc-hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollFade 2s ease infinite;
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btcc-btn-gold {
  display: inline-block;
  background-color: var(--btcc-accent);
  color: var(--btcc-navy);
  border: none;
  padding: 0.8rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btcc-btn-gold:hover {
  background-color: var(--btcc-accent-light);
  color: var(--btcc-navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,163,39,0.45);
}

.btcc-btn-navy {
  display: inline-block;
  background-color: var(--btcc-navy);
  color: var(--btcc-white);
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
}

.btcc-btn-navy:hover {
  background-color: var(--btcc-navy-light);
  color: var(--btcc-white);
  text-decoration: none;
  transform: translateY(-2px);
}

.btcc-btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--btcc-navy);
  border: 2px solid var(--btcc-navy);
  padding: 0.7rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btcc-btn-outline:hover {
  background-color: var(--btcc-navy);
  color: var(--btcc-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btcc-btn-outline-light {
  display: inline-block;
  background-color: transparent;
  color: var(--btcc-white);
  border: 2px solid rgba(255,255,255,0.65);
  padding: 0.7rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btcc-btn-outline-light:hover {
  background-color: var(--btcc-white);
  color: var(--btcc-navy);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================
   STATS BAR
   ============================================ */
.btcc-stats {
  background-color: var(--btcc-navy);
  padding: 3.5rem 0;
}

.btcc-stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.btcc-stat-item:last-child {
  border-right: none;
}

.btcc-stat-number {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--btcc-accent);
  line-height: 1;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.btcc-stat-number--text {
  font-size: 1.45rem;
  line-height: 1.25;
}

.btcc-stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   SECTION PRIMITIVES
   ============================================ */
.btcc-section {
  padding: 5.5rem 0;
}

.btcc-section-cream {
  background-color: var(--btcc-cream);
}

.btcc-section-dark {
  background-color: var(--btcc-navy);
  color: var(--btcc-white);
}

.btcc-section-dark h1,
.btcc-section-dark h2,
.btcc-section-dark h3,
.btcc-section-dark h4 {
  color: var(--btcc-white);
}

.btcc-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  margin-bottom: 0.75rem;
}

.btcc-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--btcc-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.btcc-section-title-light {
  color: var(--btcc-white);
}

.btcc-divider {
  width: 48px;
  height: 3px;
  background-color: var(--btcc-accent);
  margin: 1rem 0 1.75rem;
  border: none;
}

.btcc-divider-center {
  margin-left: auto;
  margin-right: auto;
}

.btcc-body-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--btcc-text-body);
}

.btcc-body-text-light {
  color: rgba(255,255,255,0.72);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.btcc-card {
  background-color: var(--btcc-white);
  border: none;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  height: 100%;
}

.btcc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.btcc-card-accent {
  height: 4px;
  background-color: var(--btcc-accent);
}

.btcc-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.btcc-card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(201,163,39,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.btcc-card-icon i {
  color: var(--btcc-accent);
  font-size: 1.2rem;
}

.btcc-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--btcc-text);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Cards always sit on a white background, even inside dark sections */
.btcc-section-dark .btcc-card-title {
  color: var(--btcc-text);
}

.btcc-card-text {
  font-size: 0.975rem;
  line-height: 1.8;
  color: var(--btcc-text-muted);
  margin-bottom: 1.5rem;
}

.btcc-card-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btcc-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: color var(--transition), gap var(--transition);
}

.btcc-card-link:hover {
  color: var(--btcc-accent);
  text-decoration: none;
  gap: 10px;
}

/* ============================================
   SPONSORS STRIP
   ============================================ */
.btcc-sponsors {
  background-color: var(--btcc-navy);
  padding: 3rem 0;
}

.btcc-sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
}

.btcc-sponsor-img {
  max-height: 200px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(1.1);
  transition: opacity var(--transition), filter var(--transition), transform var(--transition);
}

.btcc-sponsor-img:hover {
  opacity: 1;
  filter: brightness(1.2);
  transform: scale(1.04);
}

/* ============================================
   CONTACT CTA BAND
   ============================================ */
.btcc-cta {
  background-color: var(--btcc-navy);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btcc-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/cricket-header.jpg') center/cover no-repeat;
  opacity: 0.06;
}

.btcc-cta-inner {
  position: relative;
  z-index: 1;
}

.btcc-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--btcc-white);
  margin-bottom: 0.75rem;
}

.btcc-cta-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.btcc-footer {
  background-color: var(--btcc-footer-bg);
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 0;
}

.btcc-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.btcc-footer-brand img {
  height: 52px;
  width: auto;
}

.btcc-footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--btcc-white);
  font-weight: 600;
  line-height: 1.3;
}

.btcc-footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.btcc-footer-social {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}

.btcc-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}

.btcc-footer-social a:hover {
  border-color: var(--btcc-accent);
  color: var(--btcc-accent);
}

.btcc-footer-heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  margin-bottom: 1.1rem;
}

.btcc-footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.btcc-footer-links li {
  margin-bottom: 0.55rem;
}

.btcc-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.btcc-footer-links a:hover {
  color: var(--btcc-white);
}

.btcc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  margin-top: 1rem;
}

.btcc-footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.btcc-footer-copyright a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color var(--transition);
}

.btcc-footer-copyright a:hover {
  color: rgba(255,255,255,0.6);
}

/* ============================================
   ADMIN — preserved from original
   ============================================ */
.admin-page        { min-height: calc(100vh - 165px); flex: 1; }
.admin-main-content { height: calc(100vh - 165px); overflow: scroll; }
.admin-nav-container { display: block; position: fixed; top: var(--nav-height); left: 0; width: 16.6667vw; height: calc(100vh - var(--nav-height)); overflow-y: auto; overscroll-behavior: contain; z-index: 500; scrollbar-width: none; }
.admin-nav-container::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .admin-page { padding-left: 16.6667vw; } }
#adminNavTrigger   { margin-bottom: unset !important; }
#awards-container .card-body { height: 160px !important; }

/* ============================================
   SHARED / LEGACY PAGE STYLES
   preserved for players, news, committee pages
   ============================================ */
.committee-card-body  { height: 125px; }
.committee-heads      { width: 100%; height: 17rem; }
.player-img           { height: 16rem; width: 100%; }
.image-fit            { object-fit: cover; }
.w-130 { width: 130px !important; }
.w-60  { width: 60px !important; }
.f-60  { font-size: 60pt !important; }
.f-14  { font-size: 14pt !important; }
.hover { cursor: pointer; }
.align-middle { vertical-align: middle; }
.mt--4  { margin-top: -4px; }
.mb--15 { margin-bottom: -15px; }
.mb--10 { margin-bottom: -10px; }
.center-all { display: flex; justify-content: center; align-items: center; }
.center     { display: flex; align-items: center; }

.captain {
  box-shadow:
    0 0 0 3px hsl(53,100%,40%),
    0 0 0 6px hsl(0,0%,100%),
    0 0 0 9px hsl(53,100%,40%);
}

.vice {
  box-shadow: 0 0 0 3px hsl(53,100%,40%);
}

.editCommentTrigger:hover { cursor: pointer; color: red; }

.news-bubble      { height: 150px; }
.news-article-title { font-size: 1.25rem; height: 77px; }

.news-author-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid #fff;
  display: block;
}

.news-author-headshot {
  width: 125px;
  height: 125px;
  object-fit: cover;
  margin: 0 auto;
  border: 4px solid #fff;
  display: block;
}

.news-article-author-name { font-size: 1.75rem; }
.info-item-headline       { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.info-item-label          { color: #6c757d !important; margin-bottom: 0 !important; text-align: center; }

/* ============================================
   NEWS CARDS
   ============================================ */
.btcc-news-card {
  background: var(--btcc-white);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btcc-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btcc-news-card-accent {
  height: 4px;
  background: var(--btcc-accent);
  flex-shrink: 0;
}

.btcc-news-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.btcc-news-card-date {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  margin-bottom: 0.6rem;
  display: block;
}

.btcc-news-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--btcc-navy);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.btcc-news-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--btcc-text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.btcc-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--btcc-cream-dark);
  margin-top: auto;
}

.btcc-news-card-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btcc-news-card-author-img {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px;
  max-height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.btcc-news-card-author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--btcc-text);
}

.btcc-news-card-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btcc-navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition), gap var(--transition);
  white-space: nowrap;
}

.btcc-news-card-link:hover {
  color: var(--btcc-accent);
  text-decoration: none;
  gap: 9px;
}

/* ============================================
   SINGLE ARTICLE
   ============================================ */
.btcc-article-back {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.btcc-article-back:hover {
  color: var(--btcc-accent);
  text-decoration: none;
}

.btcc-article-byline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.btcc-article-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.btcc-article-author-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--btcc-white);
}

.btcc-article-date {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.1rem;
}

.btcc-article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--btcc-text-body);
}

.btcc-article-body p { margin-bottom: 1.25rem; }

.btcc-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
  display: block;
}

/* ============================================
   COMMENTS
   ============================================ */
.btcc-comment-form-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--btcc-navy);
  margin-bottom: 0.75rem;
}

.btcc-comment-textarea {
  border-radius: 3px;
  font-size: 0.95rem;
  border-color: #d1d5db;
  resize: vertical;
}

.btcc-comment-textarea:focus {
  border-color: var(--btcc-navy);
  box-shadow: 0 0 0 2px rgba(27,42,74,0.12);
}

.btcc-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btcc-comment-card {
  background: var(--btcc-white);
  border-radius: 4px;
  border: 1px solid var(--btcc-cream-dark);
  padding: 1.25rem;
}

.btcc-comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.btcc-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.btcc-comment-author {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--btcc-navy);
}

.btcc-comment-time {
  display: block;
  font-size: 0.75rem;
  color: var(--btcc-text-muted);
  margin-top: 0.1rem;
}

.btcc-comment-edit {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  background: none;
  border: 1px solid var(--btcc-cream-dark);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.btcc-comment-edit:hover {
  color: var(--btcc-navy);
  border-color: var(--btcc-navy);
}

.btcc-comment-body {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--btcc-text-body);
}

/* ============================================
   SPONSORSHIP PACKAGE CARDS
   ============================================ */
.btcc-sponsor-package-card {
  background: var(--btcc-white);
  border-radius: 4px;
  border: 1px solid var(--btcc-cream-dark);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.btcc-sponsor-package-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.btcc-sponsor-package-card--featured {
  border-color: var(--btcc-accent);
  border-width: 2px;
}

.btcc-sponsor-package-card--cta {
  background: var(--btcc-navy);
}

.btcc-sponsor-package-card--cta .btcc-sponsor-package-title,
.btcc-sponsor-package-card--cta .btcc-sponsor-package-desc {
  color: rgba(255,255,255,0.85);
}

.btcc-sponsor-package-icon {
  width: 46px;
  height: 46px;
  background: rgba(27,42,74,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.btcc-sponsor-package-icon i {
  color: var(--btcc-navy);
  font-size: 1.1rem;
}

.btcc-sponsor-package-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin-bottom: 0.6rem;
}

.btcc-sponsor-package-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--btcc-text-muted);
  flex: 1;
  margin-bottom: 0;
}

.btcc-sponsor-package-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  background: rgba(201,163,39,0.1);
  border: 1px solid rgba(201,163,39,0.3);
  border-radius: 3px;
  padding: 0.25rem 0.65rem;
}

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */
.btcc-page-header {
  background-color: var(--btcc-navy);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.btcc-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/cricket-header.jpg') center/cover no-repeat;
  opacity: 0.06;
}

.btcc-page-header .container { position: relative; z-index: 1; }

.btcc-page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--btcc-white);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.btcc-page-header-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
  margin: 0;
}

/* ============================================
   PLAYER CARDS
   ============================================ */
.btcc-player-card {
  background: var(--btcc-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.btcc-player-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btcc-player-img-wrap {
  position: relative;
  padding-top: 115%;
  overflow: hidden;
  background: var(--btcc-cream);
}

.btcc-player-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.btcc-player-card:hover .btcc-player-img {
  transform: scale(1.03);
}

.btcc-player-info {
  padding: 0.9rem 1rem 1rem;
  border-top: 3px solid var(--btcc-accent);
}

.btcc-player-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.btcc-player-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--btcc-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.btcc-player-type {
  display: block;
  font-size: 0.775rem;
  color: var(--btcc-text-muted);
}

/* ============================================
   COMMITTEE CARDS
   ============================================ */
.btcc-committee-card {
  background: var(--btcc-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  width: 100%;
}

.btcc-committee-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.btcc-committee-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--btcc-cream);
}

.btcc-committee-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.btcc-committee-card:hover .btcc-committee-img {
  transform: scale(1.03);
}

.btcc-committee-info {
  padding: 1rem 1.1rem 1.25rem;
  border-top: 3px solid var(--btcc-accent);
}

.btcc-committee-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin: 0;
}

.btcc-committee-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  margin: 0 0 0.2rem;
}

/* ── PHOTO SHAPE VARIANTS ─────────────────────────────────────────────────── */

/* Square: remove all rounding */
.photo-shape-square .btcc-player-card,
.photo-shape-square .btcc-committee-card { border-radius: 0; }
.photo-shape-square .btcc-player-img-wrap,
.photo-shape-square .btcc-committee-img-wrap { border-radius: 0; }

/* Circle: circular photo, card becomes transparent with centred layout */
.photo-shape-circle .btcc-player-card,
.photo-shape-circle .btcc-committee-card {
  overflow: visible;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.photo-shape-circle .btcc-player-img-wrap {
  width: 82%;
  padding-top: 82%;
  border-radius: 50%;
  overflow: hidden;
  margin: 1.25rem auto 0;
  box-shadow: var(--shadow-md);
}
.photo-shape-circle .btcc-committee-img-wrap {
  width: 78%;
  padding-top: 78%;
  border-radius: 50%;
  overflow: hidden;
  margin: 1.25rem auto 0;
  box-shadow: var(--shadow-md);
}
.photo-shape-circle .btcc-player-info,
.photo-shape-circle .btcc-committee-info {
  background: var(--btcc-white);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-top: 0.75rem;
  border-top: 3px solid var(--btcc-accent);
}
.photo-shape-circle .btcc-committee-role {
  text-align: center;
}
.photo-shape-circle .btcc-player-card:hover,
.photo-shape-circle .btcc-committee-card:hover {
  transform: none;
  box-shadow: none;
}
.photo-shape-circle .btcc-player-card:hover .btcc-player-img-wrap,
.photo-shape-circle .btcc-committee-card:hover .btcc-committee-img-wrap {
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Committee group divider */
.btcc-committee-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 0;
}

.btcc-committee-divider::before,
.btcc-committee-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--btcc-cream-dark);
}

.btcc-committee-divider span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  white-space: nowrap;
}

/* ============================================
   COMMITTEE LEADER CARDS (top-tier)
   ============================================ */
.btcc-committee-leader-card {
  background: var(--btcc-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  width: 100%;
  max-width: 260px;
}

.btcc-committee-leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.btcc-committee-leader-img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--btcc-cream);
}

.btcc-committee-leader-img-wrap .btcc-committee-img {
  transition: transform 0.4s ease;
}

.btcc-committee-leader-card:hover .btcc-committee-img {
  transform: scale(1.04);
}

.btcc-committee-leader-info {
  padding: 1.25rem 1.25rem 1.4rem;
  border-top: 4px solid var(--btcc-accent);
  text-align: center;
}

.btcc-committee-leader-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  margin: 0 0 0.4rem;
}

.btcc-committee-leader-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin: 0;
}

/* ============================================
   GET INVOLVED — card CTA button
   ============================================ */
.btcc-card-btn {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btcc-navy);
  border: 1.5px solid var(--btcc-navy);
  border-radius: 3px;
  padding: 0.45rem 1.1rem;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}

.btcc-card-btn:hover {
  background-color: var(--btcc-navy);
  color: var(--btcc-white);
  text-decoration: none;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.btcc-admin-nav {
  background: var(--btcc-navy);
  min-height: 100%;
  padding: 0 0 2rem;
}

.btcc-admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.25rem;
}

.btcc-admin-nav-brand img {
  height: 34px;
  width: auto;
}

.btcc-admin-nav-brand span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--btcc-white);
  font-weight: 600;
}

.btcc-admin-nav a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.btcc-admin-nav a > div {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
}

.btcc-admin-nav a > div i:first-child {
  width: 20px;
  color: var(--btcc-accent);
  margin-right: 10px;
  font-size: 0.85rem;
}

.btcc-admin-nav a .fa-caret-right {
  margin-left: auto;
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}

.btcc-admin-nav a:hover {
  color: var(--btcc-white);
  text-decoration: none;
  border-left-color: var(--btcc-accent);
  background: rgba(255,255,255,0.04);
}

.btcc-admin-nav-section {
  font-size: 0.63rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.35);
  padding: 1.2rem 1rem 0.3rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.btcc-admin-nav-section:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0.75rem;
}

/* Pinned Club Settings item at the top of the nav */
.btcc-admin-nav a > div.btcc-admin-nav-pinned {
  background: rgba(201,163,39,0.12);
  border-bottom: 1px solid rgba(201,163,39,0.2) !important;
  font-weight: 600;
  color: var(--btcc-accent);
}
.btcc-admin-nav a:has(.btcc-admin-nav-pinned) {
  border-left-color: var(--btcc-accent);
  color: var(--btcc-accent);
}

.btcc-admin-content {
  padding: 2.5rem;
}

.btcc-admin-page-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--btcc-navy);
}

.btcc-back-link {
  font-size: 0.78rem;
  color: var(--btcc-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.btcc-back-link:hover {
  color: var(--btcc-navy);
  text-decoration: none;
}

.btcc-admin-welcome h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--btcc-navy);
  margin-bottom: 0.5rem;
}

.btcc-admin-welcome p {
  font-size: 0.95rem;
  color: var(--btcc-text-muted);
  line-height: 1.75;
  max-width: 560px;
}

.btcc-admin-mobile-trigger {
  display: none;
  background: var(--btcc-navy);
  color: var(--btcc-white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: center;
  gap: 8px;
}

.btcc-admin-footer {
  background: var(--btcc-navy);
  padding: 1rem 0;
  margin-top: auto;
}

.btcc-admin-footer-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin: 0;
}

.btcc-admin-footer-text a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.btcc-admin-footer-text a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media only screen and (max-width: 1000px) {
  .modal-dialog { max-width: unset !important; }
}

/* Mobile nav — keep navbar height fixed, drop menu as proper overlay */
@media only screen and (max-width: 1199px) {
  .btcc-navbar {
    height: var(--nav-height);
    position: relative;
  }

  .btcc-navbar .navbar-collapse {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--btcc-navy);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.5rem 1.5rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    z-index: 1040;
  }

  .btcc-navbar .navbar-nav {
    width: 100%;
  }

  .btcc-nav-link {
    padding: 0.65rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    font-size: 0.85rem !important;
    width: 100%;
    display: block;
    border-radius: 0 !important;
  }

  .btcc-nav-login {
    margin-left: 0 !important;
    margin-top: 0.75rem;
    width: 100%;
    display: block !important;
    text-align: center;
  }

  /* User dropdown on mobile */
  .btcc-navbar .nav-item.dropdown {
    width: 100%;
  }

  .btcc-nav-user {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  }

  .btcc-navbar .nav-item.dropdown .dropdown-menu {
    position: static !important;
    float: none;
    background-color: var(--btcc-navy-light);
    border: none;
    border-radius: 6px;
    box-shadow: none;
    margin: 0.5rem 0 0.75rem;
    padding: 0.25rem 0;
  }

  .btcc-navbar .nav-item.dropdown .dropdown-item {
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 0;
  }

  .btcc-navbar .nav-item.dropdown .dropdown-item:active,
  .btcc-navbar .nav-item.dropdown .dropdown-item:focus {
    background-color: rgba(255,255,255,0.08);
    color: var(--btcc-white);
  }

  .btcc-navbar .nav-item.dropdown .dropdown-divider {
    margin: 0.2rem 0;
    border-color: rgba(255,255,255,0.08);
  }

  /* Admin link: solid gold button on mobile */
  .btcc-nav-admin {
    border: none !important;
    border-radius: 3px !important;
    margin: 0.75rem 0 0.25rem !important;
    padding: 0.65rem 1rem !important;
    width: 100%;
    display: block;
    text-align: center;
    color: var(--btcc-navy) !important;
    background: var(--btcc-accent) !important;
    font-weight: 700;
  }

  .btcc-admin-mobile-trigger {
    display: flex;
  }

  /* Off-canvas drawer: hide the column wrapper but keep the nav itself fixed */
  .admin-nav-container {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 0 !important;
  }

  .admin-nav-container.btcc-nav-open {
    transform: translateX(0);
  }

  /* Backdrop overlay */
  .btcc-admin-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
  }

  .btcc-admin-nav-backdrop.btcc-nav-open {
    display: block;
  }

  /* Close button inside the drawer */
  .btcc-admin-nav-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    z-index: 2;
  }

  .btcc-admin-nav-close:hover { color: #fff; }
}

@media only screen and (max-width: 992px) {
  .btcc-section { padding: 4rem 0; }
  .btcc-stat-number { font-size: 2.5rem; }
  .btcc-stat-item { border-right: none; padding: 0.75rem; }
  .player-card { padding-left: 5px; padding-right: 5px; }
  .player-card .card-body { padding: 2px; padding-top: 7px; }
}

@media only screen and (max-width: 768px) {
  .btcc-hero {
    min-height: 100svh;
    background-attachment: scroll;
  }
  .btcc-hero-logo { width: 110px; }
  .btcc-hero-title { font-size: 2.2rem; }
  .btcc-card .card-body { padding: 1.5rem; }
  .btcc-footer-tagline { max-width: 100%; }
}

@media only screen and (max-width: 576px) {
  .btcc-stat-number { font-size: 2rem; }
  .btcc-sponsors .btcc-sponsor-img { max-height: 120px; }
}

/* ============================================
   ADMIN PEOPLE LIST
   ============================================ */
.btcc-admin-search {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  width: 100%;
  margin-bottom: 1.5rem;
}
.btcc-admin-search:focus {
  outline: none;
  border-color: var(--btcc-navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.1);
}

/* ── Pending registrations ─────────────────────────────────────── */
.btcc-pending-section { border-radius: 8px; overflow: hidden; border: 1px solid #fde68a; }
.btcc-pending-header {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 0.85rem 1.25rem;
}
.btcc-pending-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f59e0b; color: #fff;
  font-size: 0.72rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
}
.btcc-pending-list { background: #fff; }
.btcc-pending-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}
.btcc-pending-item:last-child { border-bottom: none; }
.btcc-pending-item:hover { background: #fafafa; }
.btcc-pending-item-left { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.btcc-pending-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid #e5e7eb;
}
.btcc-pending-item-info { flex: 1; min-width: 0; }
.btcc-pending-item-name { font-weight: 600; font-size: 0.92rem; color: var(--btcc-navy); }
.btcc-pending-id { font-size: 0.73rem; color: var(--btcc-text-muted); margin-left: 0.4rem; font-weight: 400; }
.btcc-pending-item-detail {
  font-size: 0.8rem; color: #6b7280; margin-top: 0.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btcc-pending-item-detail i { width: 14px; color: #9ca3af; margin-right: 0.3rem; }
.btcc-pending-item-time { font-size: 0.73rem; color: #9ca3af; margin-top: 0.3rem; }
.btcc-pending-item-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.btcc-people-list { border-radius: 8px; overflow: hidden; border: 1px solid #e8edf2; width: 100%; }
.btcc-people-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  background: #f7f9fb;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #e8edf2;
  border-top: 1px solid #e8edf2;
}
.btcc-people-heading:first-child { border-top: none; }
.btcc-person-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e8edf2;
  background: #fff;
  transition: background 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.btcc-person-row:last-child { border-bottom: none; }
.btcc-person-row:hover { background: #f7f9fb; }
.btcc-person-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e8edf2;
}
.btcc-person-identity { flex: 0 0 220px; min-width: 0; }
.btcc-person-name { font-weight: 600; font-size: 0.9rem; color: var(--btcc-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btcc-person-pid { font-size: 0.72rem; color: #9ca3af; font-weight: 400; margin-left: 0.3rem; }
.btcc-person-chips { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.btcc-meta-chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  background: #e8edf2;
  color: var(--btcc-navy);
  white-space: nowrap;
}
.btcc-person-contact { flex: 1.2; font-size: 0.8rem; color: var(--btcc-text); min-width: 0; }
.btcc-person-contact div, .btcc-person-address div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.75; }
.btcc-person-address { flex: 1.6; font-size: 0.8rem; color: var(--btcc-text); min-width: 0; }
.btcc-row-icon { width: 14px; color: #9ca3af; margin-right: 0.3rem; font-size: 0.72rem; }
.btcc-contact-link { color: var(--btcc-text); text-decoration: none; }
.btcc-contact-link:hover { color: var(--btcc-navy); text-decoration: underline; }
.btcc-person-balance { flex-shrink: 0; font-weight: 600; font-size: 0.85rem; color: #6b7280; min-width: 56px; text-align: right; }
.btcc-person-balance.owes { color: #dc2626; }
.btcc-person-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.3rem; flex-shrink: 0; justify-content: flex-end; min-width: 150px; }
.btcc-row-btn {
  font-size: 0.72rem;
  padding: 0.26rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  color: var(--btcc-navy);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.btcc-row-btn:hover { background: #f3f4f6; border-color: #9ca3af; color: var(--btcc-navy); }
.btcc-row-btn i { font-size: 0.68rem; }
.btcc-row-btn-active { background: var(--btcc-navy); border-color: var(--btcc-navy); color: #fff; }
.btcc-row-btn-active:hover { background: #2d4a7a; border-color: #2d4a7a; color: #fff; }

/* People list — mobile */
@media (max-width: 767px) {
  .btcc-person-row {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 0.85rem;
    align-items: flex-start;
  }
  .btcc-person-avatar { width: 44px; height: 44px; }
  .btcc-person-identity { flex: 1; min-width: 0; }
  .btcc-person-balance { order: 2; min-width: auto; }
  .btcc-person-contact,
  .btcc-person-address {
    flex: 0 0 100%;
    padding-left: 56px;
  }
  .btcc-person-actions {
    flex: 0 0 100%;
    justify-content: flex-start;
    padding-left: 56px;
    min-width: 0;
  }
}

/* ============================================
   ADMIN FORMS
   ============================================ */
.btcc-admin-form-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}
.btcc-admin-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin-bottom: 0.35rem;
  display: block;
}

/* ============================================
   ADMIN TAG CHIPS
   ============================================ */
.btcc-tag-chip {
  display: inline-block;
  background: var(--btcc-navy);
  color: #fff !important;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0.2rem;
  border: none;
  transition: background 0.15s;
  line-height: 1.6;
}
.btcc-tag-chip:hover {
  background: var(--btcc-navy-mid);
  color: #fff !important;
  text-decoration: none;
}

/* ============================================
   MOBILE MONEY MANAGER
   ============================================ */
.btcc-mmm-header {
  background: var(--btcc-navy);
  color: var(--btcc-accent);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 1rem;
  text-align: center;
}
.btcc-mmm-search {
  width: 100%;
  font-size: 1.6rem;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  margin: 0.75rem 0;
}
.btcc-mmm-search:focus {
  border-color: var(--btcc-navy);
}
.btcc-mmm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--btcc-navy);
  color: #fff;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btcc-mmm-row:hover, .btcc-mmm-row:focus {
  background: var(--btcc-navy-mid);
  color: #fff;
  text-decoration: none;
}
.btcc-mmm-name {
  font-size: 1.4rem;
  font-weight: 500;
}
.btcc-mmm-balance {
  font-size: 1.4rem;
  font-weight: 700;
}

/* Money Manager — individual person page */
.btcc-mmm-person-header {
  background: var(--btcc-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-bottom: 3px solid var(--btcc-accent);
}
.btcc-mmm-person-header:hover { background: var(--btcc-navy-mid); color: #fff; text-decoration: none; }
.btcc-mmm-person-back { font-size: 1.4rem; opacity: 0.7; }
.btcc-mmm-person-name { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; }
.btcc-mmm-person-bal { font-size: 1.3rem; font-weight: 700; color: var(--btcc-accent); }

.btcc-mmm-trans-history { height: 40vh; overflow-y: auto; border-bottom: 2px solid #e8edf2; }
.btcc-mmm-trans-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #e8edf2;
  font-size: 0.95rem;
}
.btcc-mmm-trans-row.OUT { background: #fff; }
.btcc-mmm-trans-row.IN  { background: #f0fdf4; }
.btcc-mmm-trans-amt { font-weight: 700; }
.btcc-mmm-trans-row.OUT .btcc-mmm-trans-amt { color: var(--btcc-navy); }
.btcc-mmm-trans-row.IN  .btcc-mmm-trans-amt { color: #065f46; }

.btcc-mmm-btn-out {
  display: block; width: 100%; background: var(--btcc-navy); color: #fff;
  border: none; border-radius: 6px; padding: 1.1rem 0.75rem;
  font-size: 1rem; font-weight: 600; text-align: center;
  cursor: pointer; margin-bottom: 0.75rem; line-height: 1.3;
}
.btcc-mmm-btn-out:active { background: var(--btcc-navy-mid); }
.btcc-mmm-btn-in {
  display: block; width: 100%; background: #065f46; color: #fff;
  border: none; border-radius: 6px; padding: 1.1rem 0.75rem;
  font-size: 1rem; font-weight: 600; text-align: center;
  cursor: pointer; margin-bottom: 0.75rem; line-height: 1.3;
}
.btcc-mmm-btn-in:active { background: #047857; }
.btcc-mmm-btn-submit {
  display: block; width: 100%; background: var(--btcc-accent); color: var(--btcc-navy);
  border: none; border-radius: 6px; padding: 1.25rem 0;
  font-size: 1.1rem; font-weight: 700; text-align: center;
  cursor: pointer; margin: 1.25rem 0;
}
.btcc-mmm-pending-out {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--btcc-navy); color: #fff;
  padding: 0.85rem 1.25rem; border-radius: 6px; margin-bottom: 0.5rem;
  font-weight: 600;
}
.btcc-mmm-pending-in {
  display: flex; justify-content: space-between; align-items: center;
  background: #065f46; color: #fff;
  padding: 0.85rem 1.25rem; border-radius: 6px; margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ---- MY ACCOUNT PAGE ---- */
.btcc-account-wrapper {
  background: var(--btcc-cream);
  min-height: 60vh;
  padding: 2.5rem 0 4rem;
}
.btcc-account-nav {
  background: var(--btcc-navy);
  border-radius: 6px;
  overflow: hidden;
}
.btcc-account-nav-title {
  background: var(--btcc-navy-mid);
  color: var(--btcc-accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-bottom: 2px solid var(--btcc-accent);
}
.btcc-account-nav-item {
  display: block;
  padding: 0.85rem 1.25rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btcc-account-nav-item:hover { background: var(--btcc-navy-mid); color: #fff; text-decoration: none; }
.btcc-account-nav-item.active { background: var(--btcc-accent); color: var(--btcc-navy); font-weight: 700; }
.btcc-account-nav-item.active:hover { background: var(--btcc-accent-light); }
.btcc-account-nav-divider { border-top: 1px solid rgba(255,255,255,0.12); margin: 0.25rem 0; }
.btcc-account-nav-item.danger { color: #fca5a5; }
.btcc-account-nav-item.danger:hover { background: #7f1d1d; color: #fff; }
.btcc-account-content {
  background: #fff;
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.btcc-account-content h2 {
  font-size: 1.4rem;
  color: var(--btcc-navy);
  margin-bottom: 1.25rem;
}
/* Transaction rows */
.btcc-account-trans-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8edf2;
  font-size: 0.9rem;
}
.btcc-account-trans-row.IN  { background: #f0fdf4; }
.btcc-account-trans-row.OUT { background: #fff; }
.btcc-account-trans-label { flex: 1; color: var(--btcc-text-body); }
.btcc-account-trans-amt { font-weight: 700; white-space: nowrap; margin-left: 1rem; }
.btcc-account-trans-row.IN  .btcc-account-trans-amt { color: #065f46; }
.btcc-account-trans-row.OUT .btcc-account-trans-amt { color: var(--btcc-navy); }
/* Balance card */
.btcc-account-balance {
  background: var(--btcc-navy);
  color: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.btcc-account-balance-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.btcc-account-balance-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #f59e0b;
}
.btcc-account-balance.clear .btcc-account-balance-amount { color: #4ade80; }
.btcc-account-bank {
  background: #f7f9fb;
  border: 1px solid #e8edf2;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  text-align: center;
}
.btcc-account-bank-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btcc-accent);
  margin-bottom: 0.5rem;
}
.btcc-account-bank-detail { font-size: 0.9rem; font-weight: 600; color: var(--btcc-navy); margin: 0.2rem 0; }
/* Password strength badges */
.btcc-pw-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.btcc-pw-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fee2e2;
  color: #991b1b;
  transition: background 0.2s, color 0.2s;
}
.btcc-pw-badge.valid { background: #dcfce7; color: #166534; }

/* ---- COMMITTEE MINUTES ---- */
.btcc-mins-row {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.btcc-mins-row-header { display: flex; align-items: stretch; min-height: 64px; }
.btcc-mins-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.btcc-mins-main:hover,
.btcc-mins-row.btcc-open .btcc-mins-main { background: #f7f9fb; }
.btcc-mins-name { font-weight: 600; color: var(--btcc-navy); font-size: 0.95rem; }
.btcc-mins-meta { font-size: 0.8rem; color: var(--btcc-text-muted); margin-top: 0.15rem; }
.btcc-mins-row-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  padding-left: 1rem;
}
.btcc-mins-act-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--btcc-navy);
  color: #fff;
  border-radius: 5px;
  padding: 0.2rem 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 40px;
  text-align: center;
}
.btcc-mins-act-badge small {
  font-size: 0.56rem; font-weight: 600; opacity: 0.65;
  letter-spacing: 0.07em; text-transform: uppercase; line-height: 1;
}
.btcc-mins-chevron {
  color: #9ca3af;
  font-size: 0.8rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.btcc-mins-row.btcc-open .btcc-mins-chevron { transform: rotate(180deg); }
.btcc-mins-edit {
  background: transparent;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e8edf2;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btcc-mins-edit:hover { background: #f0f4f8; color: var(--btcc-navy); text-decoration: none; }
/* Expanding panels — grid-template-rows animates to actual content height */
.btcc-mins-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.btcc-mins-panel > .btcc-mins-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.btcc-mins-panel.btcc-open { grid-template-rows: 1fr; }
.btcc-mins-body {
  padding: 1.25rem 1.5rem;
  background: #f7f9fb;
  border-top: 1px solid #e8edf2;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-line;
  color: var(--btcc-text-body);
}
.btcc-mins-action-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e8edf2;
  gap: 1rem;
  font-size: 0.9rem;
}
.btcc-mins-action-person { font-weight: 600; color: var(--btcc-navy); min-width: 120px; font-size: 0.8rem; }
.btcc-mins-action-text { flex: 1; color: var(--btcc-text-body); }
.btcc-mins-action-status {
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.65rem;
  border-radius: 20px; white-space: nowrap;
}
.btcc-mins-action-status.complete { background: #dcfce7; color: #166534; }
.btcc-mins-action-status.incomplete { background: #fee2e2; color: #991b1b; }

/* Permissions modal */
.btcc-perm-section {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  padding: 0.85rem 0 0.3rem;
  border-bottom: 1px solid #e8edf2;
  margin-bottom: 0.1rem;
}
.btcc-perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 0.75rem;
}
.btcc-perm-row:last-child { border-bottom: none; }
.btcc-perm-row.nested { padding-left: 1rem; background: #fafafa; border-radius: 0; }
.btcc-perm-label { font-size: 0.85rem; color: var(--btcc-text-body); flex: 1; }
.btcc-perm-row.nested .btcc-perm-label { color: var(--btcc-text-muted); font-size: 0.82rem; }
.btcc-perm-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #d1d5db;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  display: inline-block;
}
.btcc-perm-switch.on { background: #22c55e; }
.btcc-perm-switch[disabled] { opacity: 0.45; cursor: not-allowed; }
.btcc-perm-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left 0.18s;
  pointer-events: none;
}
.btcc-perm-switch.on .btcc-perm-switch-knob { left: 18px; }
.btcc-perm-disabled { opacity: 0.38; pointer-events: none; }

/* My Actions */
.btcc-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e8edf2;
  gap: 1rem;
}
.btcc-action-text { flex: 1; font-size: 0.95rem; color: var(--btcc-text-body); }
.btcc-action-btn {
  border: none;
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btcc-action-btn.incomplete { background: #fee2e2; color: #991b1b; }
.btcc-action-btn.incomplete:hover { background: #fca5a5; }
.btcc-action-btn.complete { background: #dcfce7; color: #166534; }
.btcc-action-btn.complete:hover { background: #bbf7d0; }

/* ---- MAP FRAME ---- */
.btcc-map-frame { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-md); }
.btcc-map-caption { font-size: 0.82rem; color: var(--btcc-text-muted); margin-top: 0.75rem; text-align: center; }

/* ---- STATUS BADGES (admin tables) ---- */
.btcc-status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btcc-status-badge--green  { background: #dcfce7; color: #166534; }
.btcc-status-badge--grey   { background: #f3f4f6; color: #6b7280; }
.btcc-status-badge--amber  { background: #fef3c7; color: #92400e; }
.btcc-status-badge--blue   { background: #dbeafe; color: #1e40af; }

/* ---- NEWS TOGGLE BUTTONS (admin) ---- */
.btcc-news-toggle {
  display: block;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.btcc-news-toggle.green  { background: #dcfce7; color: #166534; }
.btcc-news-toggle.amber  { background: #fef3c7; color: #92400e; }
.btcc-news-toggle.red    { background: #fee2e2; color: #991b1b; }

/* ---- TABLE ACTION BUTTON ---- */
.btcc-table-action-btn {
  background: transparent;
  border: 1px solid var(--btcc-navy);
  color: var(--btcc-navy);
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btcc-table-action-btn:hover {
  background: var(--btcc-navy);
  color: #fff;
}

/* ---- PLAY CRICKET WIDGET ---- */
.btcc-pc-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 767px) {
  .btcc-pc-widget { grid-template-columns: 1fr; }
}

.btcc-pc-card {
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e9ef;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.btcc-pc-card--last { border-left: 5px solid var(--btcc-navy); }
.btcc-pc-card--next { border-left: 5px solid var(--btcc-accent); }

.btcc-pc-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
  gap: 1rem;
}

.btcc-pc-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
  color: var(--btcc-navy);
}

.btcc-pc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0 1.5rem 0.75rem;
  font-size: 0.83rem;
  color: var(--btcc-text-muted);
}

.btcc-pc-competition {
  padding: 0.4rem 1.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--btcc-navy);
  opacity: 0.45;
}

.btcc-pc-scores {
  border-top: 1px solid #e5e9ef;
  margin: 0 1.5rem;
  padding: 0.75rem 0;
}

.btcc-pc-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--btcc-text-muted);
}

.btcc-pc-score-row--us {
  color: var(--btcc-navy);
  font-weight: 600;
}

.btcc-pc-score-runs {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--btcc-text-muted);
}
.btcc-pc-score-row--us .btcc-pc-score-runs { color: var(--btcc-navy); }

.btcc-pc-result-desc {
  padding: 0.75rem 1.5rem 1.25rem;
  font-size: 0.83rem;
  color: var(--btcc-text-muted);
  margin: 0;
  font-style: italic;
}

.btcc-pc-fixture-note {
  padding: 0.75rem 1.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--btcc-navy);
  margin: 0;
}

/* Result badges */
.btcc-result-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.btcc-result--win      { background: #dcfce7; color: #166534; }
.btcc-result--loss     { background: #fee2e2; color: #991b1b; }
.btcc-result--draw     { background: #fef3c7; color: #92400e; }
.btcc-result--neutral  { background: #f3f4f6; color: #6b7280; }
.btcc-result--pending  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.btcc-result--upcoming { background: rgba(201,163,39,0.2); color: var(--btcc-accent); }

/* ============================================
   FIXTURES LIST (season table)
   ============================================ */
.btcc-fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d8dde6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.btcc-fixture-list-header {
  display: grid;
  grid-template-columns: 110px 60px 1fr 1fr auto;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--btcc-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.btcc-fixture-row {
  display: grid;
  grid-template-columns: 110px 60px 1fr 1fr 260px;
  align-items: start;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  border-left: 4px solid transparent;
  font-size: 0.88rem;
  transition: background 0.15s;
}

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

.btcc-fixture-row:hover { background: #f5f7fa; }

.btcc-fixture-row--future { background: #fafbfd; }
.btcc-fixture-row--future:hover { background: #f0f3f8; }

.btcc-fixture-row--today { background: #fffbeb; border-left-color: var(--btcc-accent); }
.btcc-fixture-row--today:hover { background: #fef3c7; }
.btcc-fixture-row--today .btcc-fixture-date { color: #92400e; }

.btcc-fixture-row--won  { border-left-color: #16a34a; }
.btcc-fixture-row--lost { border-left-color: #dc2626; }
.btcc-fixture-row--draw { border-left-color: #d97706; }
.btcc-fixture-row--neutral { border-left-color: #9ca3af; }

.btcc-fixture-date {
  font-size: 0.8rem;
  color: var(--btcc-text-muted);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.btcc-fixture-ha-badge {
  display: inline-block;
  margin-top: 0.1rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btcc-fixture-ha-badge.home { background: rgba(27,42,74,0.1); color: var(--btcc-navy); }
.btcc-fixture-ha-badge.away { background: rgba(201,163,39,0.15); color: #92400e; }

.btcc-fixture-vs {
  font-size: 0.72rem;
  color: var(--btcc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 0.3rem;
}

.btcc-fixture-opponent {
  font-weight: 600;
  color: var(--btcc-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}


.btcc-fixture-ground {
  font-size: 0.82rem;
  color: var(--btcc-text-muted);
}

.btcc-fixture-ground a {
  color: var(--btcc-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.btcc-fixture-ground a:hover { color: var(--btcc-navy); text-decoration: underline; }

.btcc-fixture-result {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.btcc-fixture-scores { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.2rem; }

.btcc-fixture-score-line {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--btcc-text-muted);
}

.btcc-fixture-score-line.us { color: var(--btcc-navy); font-weight: 600; }

.btcc-fixture-score-runs {
  font-family: var(--font-heading);
  font-weight: 700;
  min-width: 5rem;
  text-align: right;
}

@media (max-width: 767px) {
  .btcc-fixture-row {
    grid-template-columns: 1fr 100px;
    grid-template-rows: auto auto auto;
  }
  .btcc-fixture-date { grid-column: 1; font-size: 0.75rem; }
  .btcc-fixture-ha   { grid-column: 2; grid-row: 1; }
  .btcc-fixture-opponent { grid-column: 1 / -1; grid-row: 2; }
  .btcc-fixture-ground   { grid-column: 1; grid-row: 3; font-size: 0.78rem; }
  .btcc-fixture-result   { grid-column: 2; grid-row: 3; }
  .btcc-fixture-scores   { display: none; }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.btcc-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 2px dashed var(--btcc-cream-dark);
  border-radius: 8px;
  background: #fdfcfa;
}

.btcc-empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--btcc-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.btcc-empty-state-icon i {
  font-size: 1.5rem;
  color: var(--btcc-accent);
}

.btcc-empty-state-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--btcc-navy);
  margin-bottom: 0.6rem;
}

.btcc-empty-state-body {
  font-size: 0.9rem;
  color: var(--btcc-text-muted);
  max-width: 400px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

/* ============================================
   ADMIN SETUP NOTICE (admin-only, unconfigured pages)
   ============================================ */
.btcc-admin-setup-notice {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 2px dashed rgba(201,163,39,0.4);
  border-radius: 8px;
  background: rgba(201,163,39,0.05);
}

.btcc-admin-setup-icon {
  width: 64px;
  height: 64px;
  background: rgba(201,163,39,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.btcc-admin-setup-icon i {
  font-size: 1.5rem;
  color: var(--btcc-accent);
}

.btcc-admin-setup-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--btcc-navy);
  margin-bottom: 0.6rem;
}

.btcc-admin-setup-body {
  font-size: 0.9rem;
  color: var(--btcc-text-muted);
  max-width: 440px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

/* ============================================
   LEAGUE TABLE
   ============================================ */
.btcc-league-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btcc-league-table thead tr {
  background: var(--btcc-navy);
  color: #fff;
}

.btcc-league-table th {
  padding: 0.85rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.btcc-league-table th.team { text-align: left; }
.btcc-league-table th.pts  { text-align: center; }

.btcc-league-table td {
  padding: 0.9rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #f0f2f5;
  color: var(--btcc-text-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btcc-league-table td.team { text-align: left; font-weight: 500; color: var(--btcc-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.btcc-league-table td.pos  { color: var(--btcc-text-muted); font-weight: 600; }
.btcc-league-table td.pts  { font-weight: 700; color: var(--btcc-navy); }

.btcc-league-table tbody tr:last-child td { border-bottom: none; }
.btcc-league-table tbody tr:hover { background: #f7f9fb; }

.btcc-league-us td { background: rgba(201,163,39,0.08) !important; }
.btcc-league-us td.team { font-weight: 700; color: var(--btcc-navy); }

/* ============================================
   FIXTURE TABS (1st XI / 2nd XI)
   ============================================ */
.btcc-fixture-tabs {
  border-bottom: 2px solid #e5e7eb;
  gap: 0.25rem;
}

.btcc-fixture-tabs .nav-link {
  color: var(--btcc-text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.25rem;
  border-radius: 4px 4px 0 0;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.btcc-fixture-tabs .nav-link:hover {
  color: var(--btcc-navy);
}

.btcc-fixture-tabs .nav-link.active {
  color: var(--btcc-navy);
  border-bottom-color: var(--btcc-accent);
  background: transparent;
}

/* ============================================
   SCORECARD BUTTON ON FIXTURE ROWS
   ============================================ */
.btcc-btn-scorecard {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--btcc-navy);
  border: 1px solid var(--btcc-navy);
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btcc-btn-scorecard:hover {
  background: var(--btcc-navy);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   PLAYER STATS TABLE
   ============================================ */
.btcc-stats-table th,
.btcc-stats-table td {
  text-align: center;
  white-space: nowrap;
}

.btcc-stats-table th.team,
.btcc-stats-table td.team {
  text-align: left;
  white-space: normal;
}

/* ============================================
   SCORECARD — MATCH SUMMARY CARD
   ============================================ */
.btcc-sc-match-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.btcc-sc-match-card__result {
  background: var(--btcc-navy);
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: center;
}

.btcc-sc-result-badge {
  font-size: 0.9rem;
  padding: 0.35rem 1.1rem;
  letter-spacing: 0.08em;
}

.btcc-sc-match-card__teams {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e5e7eb;
}

.btcc-sc-team {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.btcc-sc-team:first-child {
  border-right: 1px solid #e5e7eb;
}

.btcc-sc-team.us .btcc-sc-team__name {
  color: var(--btcc-navy);
  font-weight: 700;
}

.btcc-sc-team__name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--btcc-text-body);
  line-height: 1.4;
}

.btcc-sc-team__score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--btcc-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.btcc-sc-team__overs {
  font-size: 1rem;
  font-weight: 400;
  color: var(--btcc-text-muted);
}

.btcc-sc-vs {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--btcc-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-right: 1px solid #e5e7eb;
}

.btcc-sc-match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
}

.btcc-sc-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  color: var(--btcc-text-muted);
  border-right: 1px solid #f0f2f5;
}

.btcc-sc-meta-item:last-child {
  border-right: none;
}

.btcc-sc-meta-item i {
  color: var(--btcc-accent);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.btcc-sc-meta-item a {
  color: var(--btcc-navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}
.btcc-sc-meta-item a:hover { text-decoration-color: var(--btcc-navy); }

/* ============================================
   SCORECARD — INNINGS SECTIONS
   ============================================ */
.btcc-sc-innings-header {
  margin-bottom: 0.75rem;
}

.btcc-sc-innings-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  margin-bottom: 0.3rem;
}

.btcc-sc-innings-score {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--btcc-navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.btcc-sc-innings-overs {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--btcc-text-muted);
  margin-left: 0.25rem;
}

.btcc-sc-section-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.btcc-sc-section-heading i {
  color: var(--btcc-accent);
}

/* ============================================
   SCORECARD — TABLES
   ============================================ */
.btcc-sc-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.btcc-scorecard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}

.btcc-scorecard-table thead tr {
  background: var(--btcc-navy);
  color: #fff;
}

.btcc-scorecard-table th {
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.btcc-scorecard-table th.name,
.btcc-scorecard-table th.dismissal { text-align: left; }

.btcc-scorecard-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  color: var(--btcc-text-body);
  white-space: nowrap;
}

.btcc-scorecard-table td.name {
  text-align: left;
  font-weight: 600;
  color: var(--btcc-navy);
  white-space: normal;
  min-width: 130px;
}

.btcc-scorecard-table td.dismissal {
  text-align: left;
  font-size: 0.84rem;
  color: var(--btcc-text-muted);
  white-space: normal;
  min-width: 180px;
}

.btcc-scorecard-table td.stat {
  min-width: 42px;
}

.btcc-scorecard-table tbody tr:hover { background: #fafbfc; }
.btcc-scorecard-table tbody tr:last-child td { border-bottom: none; }

.btcc-scorecard-table tfoot { border-top: 2px solid #e5e7eb; }

.btcc-sc-extras-row td {
  color: var(--btcc-text-muted);
  font-size: 0.86rem;
  background: #fafbfc;
}

.btcc-sc-total-row td {
  font-weight: 700;
  color: var(--btcc-navy);
  background: #f0f4f8;
  border-bottom: none;
}

.btcc-sc-not-out { color: #16a34a; font-style: normal; font-weight: 500; }
.btcc-sc-dnb     { color: var(--btcc-text-muted); }

/* Bowling table — narrower name col */
.btcc-sc-bowl-table td.name { min-width: 130px; }

/* ============================================
   SCORECARD — FALL OF WICKETS
   ============================================ */
.btcc-sc-fow {
  margin-bottom: 0.5rem;
}

.btcc-sc-fow-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  margin-bottom: 0.6rem;
}

.btcc-sc-fow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btcc-sc-fow-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--btcc-navy);
}

.btcc-sc-fow-name {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--btcc-text-muted);
}

/* ============================================
   SCORECARD — RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .btcc-sc-match-card__teams {
    flex-direction: column;
  }
  .btcc-sc-team:first-child {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .btcc-sc-vs {
    display: none;
  }
  .btcc-sc-match-card__meta {
    flex-direction: column;
  }
  .btcc-sc-meta-item {
    border-right: none;
    border-bottom: 1px solid #f0f2f5;
    padding: 0.6rem 1.25rem;
  }
  .btcc-sc-meta-item:last-child { border-bottom: none; }
  .btcc-sc-innings-score { font-size: 1.8rem; }
}

/* ============================================
   AVAILABILITY — MY ACCOUNT TAB
   ============================================ */
.btcc-avail-fixture-block {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}

.btcc-avail-fixture-meta {
  margin-bottom: 0.75rem;
}

.btcc-avail-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btcc-avail-btn {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: var(--btcc-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btcc-avail-btn:hover { border-color: var(--btcc-navy); color: var(--btcc-navy); }

.btcc-avail-btn--available.active  { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.btcc-avail-btn--maybe.active      { background: #fef9c3; border-color: #ca8a04; color: #92400e; }
.btcc-avail-btn--unavailable.active { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }

/* ============================================
   AVAILABILITY — ADMIN PAGE
   ============================================ */
.btcc-avail-fixture-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btcc-avail-fixture-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--btcc-navy);
  margin: 0.15rem 0;
}

.btcc-avail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btcc-avail-chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.btcc-avail-chip--available    { background: #dcfce7; color: #15803d; }
.btcc-avail-chip--unavailable  { background: #fee2e2; color: #b91c1c; }
.btcc-avail-chip--maybe        { background: #fef9c3; color: #92400e; }
.btcc-avail-chip--no_response  { background: #f3f4f6; color: var(--btcc-text-muted); }

.btcc-avail-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.btcc-avail-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  background: #f8f9fb;
  font-size: 0.85rem;
}

.btcc-avail-player-name {
  font-weight: 500;
  color: var(--btcc-navy);
}

/* ── Junior page – fixture table ─────────────────────────────────────────── */
.btcc-jr-fixture-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.btcc-jr-fixture-table thead tr {
  background: var(--btcc-navy);
}
.btcc-jr-fixture-table thead th {
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-align: left;
  border: none;
  white-space: nowrap;
}
.btcc-jr-fixture-table thead th:last-child { text-align: right; }

.btcc-jr-fixture-table tbody tr {
  border-bottom: 1px solid #edf0f4;
  transition: background 0.12s;
}
.btcc-jr-fixture-table tbody tr:hover { background: #f5f7fa; }
.btcc-jr-past-row { color: var(--btcc-text-muted); }

.btcc-jr-fixture-table tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
}
.btcc-jr-fixture-table tbody td:last-child { text-align: right; }

.btcc-jr-ft-day {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  margin-bottom: 0.1rem;
}
.btcc-jr-past-row .btcc-jr-ft-day { color: inherit; }

.btcc-jr-ha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 800;
}
.btcc-jr-ha--home { background: var(--btcc-navy); color: #fff; }
.btcc-jr-ha--away { background: #e8ecf1; color: var(--btcc-navy); }

.btcc-jr-venue { font-size: 0.83rem; color: var(--btcc-text-muted); }
.btcc-jr-venue a { color: var(--btcc-text-muted); text-decoration: none; }
.btcc-jr-venue a:hover { color: var(--btcc-navy); text-decoration: underline; }

/* ── Junior page – hero match strip (Option A) ───────────────────────────── */
.btcc-jr-hero-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.btcc-jr-hero-match {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
}

.btcc-jr-hero-match__label {
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--btcc-accent);
}

.btcc-jr-hero-match__teams {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.btcc-jr-hero-match__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.btcc-jr-hero-match__scores .us {
  color: var(--btcc-accent);
  font-weight: 600;
}

.btcc-jr-hero-match__date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.btcc-jr-hero-match__countdown {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--btcc-accent);
  text-transform: uppercase;
}

.btcc-jr-hero-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

@media (max-width: 575px) {
  .btcc-jr-hero-strip {
    flex-direction: column;
  }
  .btcc-jr-hero-divider {
    width: auto;
    height: 1px;
  }
}

/* ============================================
   FINANCE ADMIN  (admin-finance.php)
   ============================================ */

/* Summary bar at top of overview */
.btcc-fin-summary-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btcc-fin-stat {
  flex: 1 1 160px;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}

.btcc-fin-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  margin-bottom: 0.35rem;
}

.btcc-fin-stat__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--btcc-navy);
  font-family: var(--font-heading);
}

.btcc-fin-stat--owed .btcc-fin-stat__value  { color: #b91c1c; }
.btcc-fin-stat--credit .btcc-fin-stat__value { color: #15803d; }

/* Cards (forms) */
.btcc-fin-card {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.btcc-fin-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--btcc-accent);
  display: inline-block;
}

/* Sync modal animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes btccFeedIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

/* Tables */
.btcc-fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  border: 1px solid #d0d7e2;
}

.btcc-fin-table thead th {
  background: var(--btcc-navy);
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.btcc-fin-table thead th:last-child {
  border-right: none;
}

.btcc-fin-table tbody tr:nth-child(odd) {
  background: #fff;
}

.btcc-fin-table tbody tr:nth-child(even) {
  background: #f4f6fa;
}

.btcc-fin-table tbody tr:hover {
  background: #e8eef7;
}

.btcc-fin-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  color: var(--btcc-text-body);
  border-right: 1px solid #d0d7e2;
  border-bottom: 1px solid #d0d7e2;
}

.btcc-fin-table td:last-child {
  border-right: none;
}

.btcc-fin-table tfoot td {
  background: #f0f2f6;
  border-top: 2px solid var(--btcc-navy);
  padding: 0.75rem 1rem;
  border-right: 1px solid #d0d7e2;
}

.btcc-fin-table tfoot td:last-child {
  border-right: none;
}

/* Balance badges */
.btcc-fin-bal {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btcc-fin-bal--owed   { background: #fee2e2; color: #b91c1c; }
.btcc-fin-bal--credit { background: #dcfce7; color: #15803d; }
.btcc-fin-bal--clear  { background: #f3f4f6; color: #6b7280; }

/* Direction / type badges */
.btcc-fin-type-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.btcc-fin-type-badge--charge  { background: #fee2e2; color: #b91c1c; }
.btcc-fin-type-badge--payment { background: #dcfce7; color: #15803d; }
.btcc-fin-type-badge--paid    { background: #dbeafe; color: #1d4ed8; }

/* Payment method badges */
.btcc-fin-method-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e0e7ef;
  color: var(--btcc-navy);
}

/* Member checklist (create event) */
.btcc-fin-member-checklist {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  background: #fafafa;
}

.btcc-fin-check-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--btcc-text-body);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}

.btcc-fin-check-label:last-child { border-bottom: none; }
.btcc-fin-check-label:hover { background: #f0f4fa; }
.btcc-fin-check-label input[type="checkbox"] { margin: 0; flex-shrink: 0; }

.btcc-fin-check-label .member-name { flex: 1; }

.btcc-fin-check-label .member-amount {
  width: 75px;
  flex-shrink: 0;
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
  height: auto;
}

/* Play Cricket player panel */
.btcc-fin-pc-panel {
  background: #f8f9fc;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.btcc-fin-pc-panel__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--btcc-text-muted);
  margin-bottom: 0.6rem;
}

.btcc-fin-pc-name {
  font-size: 0.875rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btcc-fin-pc-name--matched {
  background: #dcfce7;
  color: #15803d;
}

.btcc-fin-pc-name--unmatched {
  background: #fef9c3;
  color: #92400e;
}

/* Highlight matched member rows */
.btcc-fin-check-label.pc-matched {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding-left: 0.6rem;
}

/* PC match badge on member row */
.btcc-fin-match-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #16a34a;
  color: #fff;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Ledger running balance column */
.btcc-fin-ledger-balance {
  font-weight: 700;
  white-space: nowrap;
}

.btcc-fin-ledger-balance--owed   { color: #b91c1c; }
.btcc-fin-ledger-balance--credit { color: #15803d; }
.btcc-fin-ledger-balance--zero   { color: #6b7280; }

/* Tab navigation within finance page */
.btcc-fin-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e5e9ef;
  padding-bottom: 0;
}

.btcc-fin-tab {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--btcc-text-muted);
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
}

.btcc-fin-tab:hover {
  color: var(--btcc-navy);
  background: #f0f4fa;
  text-decoration: none;
}

.btcc-fin-tab--active {
  color: var(--btcc-navy);
  background: #fff;
  border-color: #e5e9ef;
  border-bottom-color: #fff;
}

@media (max-width: 575px) {
  .btcc-fin-summary-bar { gap: 0.75rem; }
  .btcc-fin-stat { flex: 1 1 130px; }
  .btcc-fin-stat__value { font-size: 1.3rem; }
  .btcc-fin-table { font-size: 0.85rem; }
  .btcc-fin-table thead th,
  .btcc-fin-table td,
  .btcc-fin-table tfoot td { padding: 0.55rem 0.6rem; }
  .btcc-fin-tabs { gap: 0.15rem; }
  .btcc-fin-tab { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
}

/* ── Club settings page ─────────────────────────────────────────────────────── */
/* Settings tabs */
.btcc-settings-tabs { border-bottom: 2px solid #e5e7eb; }
.btcc-settings-tabs .nav-link {
  color: var(--btcc-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}
.btcc-settings-tabs .nav-link:hover { color: var(--btcc-navy); border-color: #e5e7eb; background: none; }
.btcc-settings-tabs .nav-link.active { color: var(--btcc-navy); border-bottom: 2px solid var(--btcc-navy); background: none; }
.btcc-settings-tab-content { padding-top: 1.5rem; }

.btcc-settings-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.btcc-settings-section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--btcc-accent);
  display: inline-block;
}

.btcc-colour-picker-group {
  margin-bottom: 0;
}

/* ============================================
   ADMIN SHARED UTILITIES
   ============================================ */
.btcc-label-sm {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--btcc-navy);
  margin-bottom: 0.35rem;
  display: block;
}

.btcc-modal-header {
  background-color: var(--btcc-navy);
  border: none;
  padding: 1.25rem 1.5rem;
}

.btcc-admin-table {
  width: 100%;
}
.btcc-admin-table thead tr {
  background: var(--btcc-navy);
}
.btcc-admin-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  border: none;
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
}
.btcc-admin-table tbody td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f5;
  border-top: none;
}
.btcc-admin-table tbody tr:last-child td { border-bottom: none; }
.btcc-admin-table tbody tr:hover { background: #f9fafb; }

/* ============================================
   FORM BUILDER
   ============================================ */
.btcc-form-field-row {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: box-shadow 0.15s;
}

.btcc-form-field-row:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btcc-form-field-row.sortable-ghost {
  opacity: 0.4;
}

.btcc-drag-handle {
  font-size: 0.9rem;
  padding: 0.25rem 0.1rem;
}

.btcc-drag-handle:active { cursor: grabbing; }

/* ── Calendar ──────────────────────────────────────────────────────────────── */
.btcc-calendar-month-heading {
  font-family: var(--font-heading);
  color: var(--btcc-navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--btcc-accent);
  display: inline-block;
}

.btcc-calendar-event {
  display: flex;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.15s;
}

.btcc-calendar-event:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.btcc-calendar-event--today {
  border-left: 4px solid var(--btcc-accent);
}

.btcc-calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 52px;
  text-align: center;
  padding-top: 0.1rem;
}

.btcc-calendar-day {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--btcc-navy);
  line-height: 1;
}

.btcc-calendar-mon {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--btcc-accent);
  letter-spacing: 0.05em;
}

.btcc-calendar-dow {
  font-size: 0.7rem;
  color: var(--btcc-text-muted);
  text-transform: uppercase;
}

.btcc-calendar-body {
  flex: 1;
  min-width: 0;
}

.btcc-calendar-title {
  font-family: var(--font-heading);
  color: var(--btcc-navy);
  font-size: 1.05rem;
  margin: 0.2rem 0 0.3rem;
}

.btcc-calendar-meta {
  font-size: 0.85rem;
  color: var(--btcc-text-muted);
  margin-bottom: 0.35rem;
}

.btcc-calendar-desc {
  font-size: 0.875rem;
  color: var(--btcc-text-muted);
  margin: 0.35rem 0 0;
}

@media (max-width: 576px) {
  .btcc-calendar-event { flex-direction: column; gap: 0.75rem; }
  .btcc-calendar-date  { flex-direction: row; gap: 0.5rem; align-items: baseline; }
  .btcc-calendar-day   { font-size: 1.4rem; }
}

/* ── Sticky unsaved-changes bar ─────────────────────────────────────────────── */
.btcc-unsaved-bar {
  position: sticky;
  bottom: 0;
  z-index: 100;
  margin-left: -30px;
  margin-right: -15px;
  background: var(--btcc-navy);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
.btcc-unsaved-bar.btcc-unsaved-visible {
  display: flex;
}

/* ── Form CTA card (homepage form link block) ─────────────────────────────── */
.btcc-form-cta-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--btcc-accent);
  border-radius: 8px;
  padding: 2rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.btcc-form-cta-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(201,163,39,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--btcc-accent);
}
.btcc-form-cta-body { flex: 1; }
.btcc-form-cta-title {
  font-family: var(--font-heading, 'Playfair Display', serif);
  color: var(--btcc-navy);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.btcc-form-cta-desc {
  color: #6b7280;
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ── Polls ────────────────────────────────────────────────────────────────── */
.btcc-poll-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.btcc-poll-card.btcc-poll-closed {
  background: #f9fafb;
  border-color: #e5e7eb;
}
.btcc-poll-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.btcc-poll-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--btcc-navy);
  margin: 0.25rem 0 0;
}
.btcc-poll-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 2px;
}
.btcc-poll-badge--open   { background: #dcfce7; color: #166534; }
.btcc-poll-badge--voted  { background: #dbeafe; color: #1d4ed8; }
.btcc-poll-badge--closed { background: #f3f4f6; color: #6b7280; }
.btcc-poll-desc {
  font-size: 0.875rem;
  color: var(--btcc-text-muted);
  margin-bottom: 0.75rem;
}
.btcc-poll-deadline {
  font-size: 0.78rem;
  color: var(--btcc-text-muted);
  white-space: nowrap;
  margin-top: 4px;
}
.btcc-poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.btcc-poll-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  transition: border-color var(--transition), background var(--transition);
}
.btcc-poll-option:hover {
  border-color: var(--btcc-navy);
  background: #f0f3f8;
}
.btcc-poll-option input[type="radio"] { accent-color: var(--btcc-navy); }
.btcc-poll-option-label { font-size: 0.9rem; color: var(--btcc-text-body); }
.btcc-poll-results { margin-bottom: 0.5rem; }
.btcc-poll-result-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.btcc-poll-result-row.btcc-poll-result-mine .btcc-poll-result-label { font-weight: 600; color: var(--btcc-navy); }
.btcc-poll-result-label { font-size: 0.875rem; color: var(--btcc-text-body); }
.btcc-poll-your-vote {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}
.btcc-poll-result-bar-wrap {
  width: 160px;
  background: #e5e7eb;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}
.btcc-poll-result-bar {
  height: 8px;
  background: var(--btcc-navy);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.btcc-poll-result-count { font-size: 0.8rem; color: var(--btcc-text-muted); width: 70px; text-align: right; }
.btcc-poll-total { font-size: 0.78rem; color: var(--btcc-text-muted); margin-top: 0.25rem; }
.btcc-poll-form {}
@media (max-width: 576px) {
  .btcc-poll-result-bar-wrap { width: 80px; }
  .btcc-poll-result-count { width: 55px; }
}

/* ── Admin colour picker ─────────────────────────────────────────────────── */
.btcc-cp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.4rem;
}

/* ── Player trophy badge ───────────────────────────────────────────────────── */
.btcc-player-trophy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--btcc-accent);
  margin-top: 0.35rem;
}
.btcc-player-trophy i { font-size: 0.7rem; }

/* ── Honours board cards ──────────────────────────────────────────────────── */
.btcc-honour-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--btcc-cream-dark);
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  height: 100%;
}
.btcc-honour-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--btcc-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btcc-honour-icon i { color: var(--btcc-accent); font-size: 0.9rem; }
.btcc-honour-body { flex: 1; min-width: 0; }
.btcc-honour-award {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--btcc-navy);
  line-height: 1.3;
}
.btcc-honour-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.btcc-honour-name {
  font-size: 0.82rem;
  color: var(--btcc-text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN UTILITY CLASSES
═══════════════════════════════════════════════════════════ */

.btcc-admin-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.btcc-admin-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin-bottom: 1rem;
}

/* Attendance picker */
.btcc-attendance-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
}
.btcc-attendance-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  margin: 0;
  border-bottom: 1px solid #f1f3f5;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.875rem;
  transition: background 0.1s;
  user-select: none;
}
.btcc-attendance-item:last-child { border-bottom: none; }
.btcc-attendance-item:hover { background: #f5f7fa; }
.btcc-attendance-item input[type="checkbox"] {
  accent-color: var(--btcc-navy);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}
.btcc-attendance-item.is-checked {
  background: #eef2f8;
  font-weight: 600;
}
.btcc-attendance-count {
  font-size: 0.8rem;
  color: var(--btcc-navy);
  font-weight: 600;
}

/* Action edit rows inside modal */
.btcc-action-edit-row {
  display: grid;
  grid-template-columns: 1fr 2fr 90px;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f3f5;
}
.btcc-action-edit-row:last-child { border-bottom: none; }
@media (max-width: 575px) {
  .btcc-action-edit-row { grid-template-columns: 1fr; }
}

/* @mention dropdown */
.btcc-mention-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  z-index: 1050;
  max-height: 210px;
  overflow-y: auto;
}
.btcc-mention-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: #2d3748;
  border-bottom: 1px solid #f1f3f5;
  cursor: pointer;
}
.btcc-mention-option:last-child { border-bottom: none; }
.btcc-mention-option:hover,
.btcc-mention-option.active {
  background: #eef2f8;
  color: var(--btcc-navy);
  font-weight: 600;
}
@keyframes btccRowFlash {
  0%   { background: rgba(59,130,246,0.15); }
  100% { background: transparent; }
}
.btcc-action-row-highlight {
  animation: btccRowFlash 2s ease-out forwards;
  border-radius: 4px;
}
.btcc-status-toggle {
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btcc-status-toggle:hover { opacity: 0.85; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.btcc-status-toggle.published { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.btcc-status-toggle.draft     { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.btcc-btn-outline-danger {
  border: 1px solid #dc3545;
  background: transparent;
  color: #dc3545;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btcc-btn-outline-danger:hover { background: #dc3545; color: #fff; }

/* ═══════════════════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════════════════ */

.btcc-gallery-album-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
  height: 100%;
}
.btcc-gallery-album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
  text-decoration: none;
}
.btcc-gallery-album-thumb {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--btcc-navy);
  position: relative;
}
.btcc-gallery-album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 0.85rem;
  gap: 0.4rem;
}
.btcc-gallery-album-card:hover .btcc-gallery-album-overlay { opacity: 1; }
.btcc-gallery-album-overlay i { font-size: 1.75rem; }
.btcc-gallery-album-info { padding: 1rem 1.25rem 1.25rem; }
.btcc-gallery-album-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin: 0 0 0.35rem;
}
.btcc-gallery-album-desc {
  font-size: 0.82rem;
  color: var(--btcc-text-muted);
  margin: 0 0 0.5rem;
}
.btcc-gallery-album-date {
  font-size: 0.75rem;
  color: var(--btcc-text-muted);
}

/* Public gallery grid (album view) */
.btcc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.btcc-gallery-grid-item {
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--btcc-navy);
  aspect-ratio: 1;
}
.btcc-gallery-grid-item img,
.btcc-gallery-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.btcc-gallery-grid-item:hover img,
.btcc-gallery-grid-item:hover video { transform: scale(1.04); }
.btcc-gallery-video-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.btcc-gallery-video-thumb video { position: absolute; inset: 0; }
.btcc-gallery-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.5rem;
}
.btcc-gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.72rem;
  padding: 1rem 0.6rem 0.4rem;
}

/* Lightbox */
.btcc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.btcc-lightbox.active { display: flex; }
.btcc-lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.btcc-lightbox-close,
.btcc-lightbox-prev,
.btcc-lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btcc-lightbox-close:hover,
.btcc-lightbox-prev:hover,
.btcc-lightbox-next:hover { background: rgba(255,255,255,0.25); }
.btcc-lightbox-close { top: 1rem; right: 1rem; }
.btcc-lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.btcc-lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.btcc-lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* Publish toggle row */
.btcc-publish-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f7f9fb;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  border: 1px solid #e8edf2;
}
.btcc-publish-status-text {
  font-size: 0.82rem;
  color: #92400e;
  margin-top: 0.2rem;
}
.btcc-publish-status-text.is-pub { color: #065f46; }

/* Upload file list */
.btcc-upload-file-list { margin-top: 0.75rem; }
.btcc-upload-file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  color: var(--btcc-text);
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btcc-upload-file-item:last-child { border-bottom: none; }
.btcc-upload-file-icon { color: #9ca3af; width: 14px; flex-shrink: 0; }
.btcc-upload-file-icon.uploading { color: var(--btcc-accent); }

/* Admin gallery grid */
.btcc-gallery-upload-zone {
  border: 2px dashed rgba(27,42,74,0.25);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btcc-gallery-upload-zone.drag-over {
  border-color: var(--btcc-accent);
  background: rgba(201,163,39,0.06);
}
.btcc-gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.btcc-gallery-admin-item {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  position: relative;
}
.btcc-gallery-admin-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.btcc-gallery-admin-type-badge,
.btcc-gallery-admin-cover-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: var(--btcc-navy);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}
.btcc-gallery-admin-cover-badge { background: var(--btcc-accent); color: var(--btcc-navy); font-weight: 700; }
.btcc-gallery-admin-actions { padding: 0.6rem; }

/* ═══════════════════════════════════════════════════════════
   CHAT
═══════════════════════════════════════════════════════════ */

.btcc-chat-layout { max-width: 1200px; }
.btcc-chat-container {
  display: flex;
  height: calc(100vh - 200px);
  min-height: 500px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Sidebar */
.btcc-chat-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--btcc-navy);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.btcc-chat-sidebar-header {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btcc-chat-sidebar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}
.btcc-chat-group-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.btcc-chat-group-item:hover,
.btcc-chat-group-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}
.btcc-chat-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.btcc-chat-group-name { font-size: 0.88rem; font-weight: 600; }
.btcc-chat-group-type { font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.btcc-chat-group-unread {
  margin-left: auto;
  background: var(--btcc-accent);
  color: var(--btcc-navy);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main panel */
.btcc-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-width: 0;
}
.btcc-chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  min-height: 58px;
}
.btcc-chat-menu-btn {
  background: none;
  border: none;
  color: var(--btcc-navy);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.25rem;
}
.btcc-chat-header-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--btcc-navy);
  flex: 1;
}
.btcc-chat-header-badge {
  background: var(--btcc-accent);
  color: var(--btcc-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: pulse-badge 1.5s infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.btcc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btcc-chat-empty {
  margin: auto;
  text-align: center;
  color: var(--btcc-text-muted);
  font-size: 0.9rem;
}
.btcc-chat-msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.btcc-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.btcc-chat-bubble-wrap { flex: 1; min-width: 0; }
.btcc-chat-msg-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--btcc-navy);
  margin-bottom: 0.2rem;
}
.btcc-chat-bubble {
  background: #f1f3f7;
  border-radius: 0 10px 10px 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #2d2d2d;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}
.btcc-chat-msg-time {
  font-size: 0.7rem;
  color: var(--btcc-text-muted);
  margin-top: 0.25rem;
}
.btcc-chat-input-bar {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  background: #fff;
}
.btcc-chat-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.4;
  transition: border-color 0.15s;
}
.btcc-chat-input:focus { border-color: var(--btcc-navy); }
.btcc-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btcc-navy);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btcc-chat-send:hover { background: var(--btcc-accent); color: var(--btcc-navy); }

/* Admin member chips */
.btcc-chat-member-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f3f7;
  border-radius: 20px;
  padding: 0.2rem 0.5rem 0.2rem 0.3rem;
  font-size: 0.8rem;
}
.btcc-chat-member-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.btcc-chat-member-remove {
  background: none;
  border: none;
  color: var(--btcc-text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.btcc-chat-member-remove:hover { color: #dc3545; }

/* Mobile chat */
@media (max-width: 767px) {
  .btcc-chat-container { height: calc(100vh - 160px); }
  .btcc-chat-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s;
    width: min(280px, 85vw);
  }
  .btcc-chat-sidebar.open { transform: translateX(0); }
  .btcc-chat-layout { padding-left: 0; padding-right: 0; }
  .btcc-chat-container { border-radius: 0; border-left: none; border-right: none; }
}

/* ═══════════════════════════════════════════════════════════
   SOCIAL FEEDS
═══════════════════════════════════════════════════════════ */

.btcc-social-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  color: #fff !important;
}
.btcc-social-btn:hover { opacity: 0.88; transform: translateY(-2px); text-decoration: none; }
.btcc-social-facebook  { background: #1877f2; }
.btcc-social-twitter   { background: #000; }
.btcc-social-instagram { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.btcc-social-youtube   { background: #ff0000; }

.btcc-social-feed-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--btcc-navy);
  font-weight: 600;
  margin-bottom: 1rem;
}
.btcc-social-feed-frame {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  min-height: 400px;
}

/* YouTube card */
.btcc-yt-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background: #fff;
}
.btcc-yt-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btcc-yt-thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #000;
  position: relative;
}
.btcc-yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(0,0,0,0.3);
}
.btcc-yt-card:hover .btcc-yt-play { opacity: 1; }
.btcc-yt-info { padding: 0.75rem 1rem; }
.btcc-yt-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--btcc-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.btcc-yt-date { font-size: 0.75rem; color: var(--btcc-text-muted); }

/* Admin code textarea */
.btcc-code-textarea {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  background: #f8f9fa;
}


/* ── Chat Widget ─────────────────────────────────────────────────────────── */
#btccChatWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1055;
  font-family: var(--font-body), system-ui, sans-serif;
}
.btcc-cw-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--btcc-accent);
  color: var(--btcc-navy);
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btcc-cw-btn:hover { background: var(--btcc-navy); color: #fff; transform: scale(1.06); box-shadow: 0 6px 24px rgba(0,0,0,0.32); }
.btcc-cw-btn.open  { background: var(--btcc-navy); color: #fff; }
.btcc-cw-btn.has-unread {
  animation: btccCwPulse 2s ease-in-out infinite;
}
@keyframes btccCwPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.28); }
  50%       { box-shadow: 0 4px 28px rgba(201,163,39,0.7), 0 0 0 6px rgba(201,163,39,0.18); }
}
.btcc-cw-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(239,68,68,0.45);
}
.btcc-cw-panel {
  position: absolute;
  bottom: 66px;
  right: 0;
  width: 360px;
  height: 520px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 48px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: btccCwIn 0.18s ease;
}
@keyframes btccCwIn {
  from { opacity:0; transform: scale(0.93) translateY(10px); }
  to   { opacity:1; transform: scale(1)    translateY(0);     }
}
.btcc-cw-header {
  background: var(--btcc-navy);
  color: #fff;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.btcc-cw-header-title {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-heading), Georgia, serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btcc-cw-header-close {
  background: none; border: none;
  color: rgba(255,255,255,0.65);
  cursor: pointer; font-size: 1rem;
  padding: 0 0 0 0.75rem; line-height: 1; flex-shrink: 0;
}
.btcc-cw-header-close:hover { color: #fff; }
.btcc-cw-groups {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.btcc-cw-groups::-webkit-scrollbar { display: none; }
.btcc-cw-group-tab {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
  position: relative;
}
.btcc-cw-group-tab:hover          { color: var(--btcc-navy); }
.btcc-cw-group-tab.active         { color: var(--btcc-navy); border-bottom-color: var(--btcc-accent); }
.btcc-cw-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  padding: 0 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.btcc-cw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  scroll-behavior: smooth;
}
.btcc-cw-empty,
.btcc-cw-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  color: #9CA3AF;
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
}
.btcc-cw-msg {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}
.btcc-cw-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}
.btcc-cw-bubble-wrap { flex: 1; min-width: 0; }
.btcc-cw-msg-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--btcc-navy);
  margin-bottom: 0.1rem;
}
.btcc-cw-bubble {
  background: #f1f5f9;
  border-radius: 0 8px 8px 8px;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #1F2937;
  word-break: break-word;
}
.btcc-cw-msg-time {
  font-size: 0.65rem;
  color: #9CA3AF;
  margin-top: 0.12rem;
}
.btcc-cw-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #fff;
}
.btcc-cw-input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.38rem 0.55rem;
  font-size: 0.83rem;
  resize: none;
  outline: none;
  max-height: 80px;
  overflow-y: auto;
  font-family: var(--font-body), system-ui, sans-serif;
  line-height: 1.4;
  transition: border-color 0.15s;
}
.btcc-cw-input:focus { border-color: var(--btcc-navy); }
.btcc-cw-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--btcc-navy);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btcc-cw-send:hover { background: var(--btcc-accent); color: var(--btcc-navy); }

/* Chat @mention autocomplete dropdown */
.btcc-cw-mention-drop {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
}
.btcc-cw-mi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.83rem;
}
.btcc-cw-mi:hover, .btcc-cw-mi.active { background: #f3f4f6; }
.btcc-cw-mi-img {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
/* @mention highlight inside chat bubbles */
.btcc-cw-at {
  color: var(--btcc-navy);
  font-weight: 600;
}
@media (max-width: 480px) {
  #btccChatWidget    { bottom: 16px; right: 16px; }
  .btcc-cw-panel {
    position: fixed;
    bottom: 0; right: 0; left: 0;
    width: 100%;
    height: 88vh;
    border-radius: 18px 18px 0 0;
  }
}
