/* ==========================================================================
   MINIATURE AIRCRAFT COMBAT ASSOCIATION (MACA) - OFFICIAL STYLESHEET
   Unified Dark Slate Design System, 3D Metallic Navigation, and Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-dark: #0f172a;           /* Slate 900 */
  --bg-darker: #020617;         /* Slate 950 */
  --card-bg: #1e293b;           /* Slate 800 */
  --card-border: #334155;       /* Slate 700 */
  --card-hover-border: #475569; /* Slate 600 */

  --text-main: #f8fafc;         /* Slate 50 */
  --text-muted: #94a3b8;        /* Slate 400 */
  --text-sub: #cbd5e1;          /* Slate 300 */

  /* Metallic Red 3D Button Gradients */
  --btn-red-top: #ff232a;
  --btn-red-mid: #b80008;
  --btn-red-bot: #820005;
  --btn-red-border: #ff4d52;
  --btn-red-shadow: #4a0003;

  /* Button Hover State */
  --btn-hover-top: #ff3d44;
  --btn-hover-mid: #d4000a;
  --btn-hover-bot: #960006;
  --btn-hover-border: #ff7579;

  /* Button Active State */
  --btn-active-top: #990006;
  --btn-active-bot: #5a0003;
  --btn-active-border: #facc15;
  --btn-active-shadow: #2a0002;

  /* Accents */
  --accent-gold: #facc15;
  --accent-blue: #38bdf8;
  --accent-blue-dark: #2563eb;
  --accent-green: #4ade80;
  --accent-red: #ef4444;

  --success-border: #22c55e;
  --success-text: #4ade80;
}

/* --------------------------------------------------------------------------
   2. Base & Typography Resets
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   3. Layout Containers & Structural Grid
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px 16px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. Responsive Hero Banner
   -------------------------------------------------------------------------- */
.banner-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.banner-inner {
  width: 100%;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  background: var(--bg-darker);
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.responsive-banner {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   5. 3D Metallic Navigation Buttons
   -------------------------------------------------------------------------- */
.main-nav-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0 0 32px 0;
  padding: 0;
  width: 100%;
}

a.nav-btn-3d,
a.nav-btn-3d:visited,
a.nav-btn-3d:active {
  color: #ffffff;
  text-decoration: none;
}

.nav-btn-3d {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
  text-decoration: none;
  background: linear-gradient(180deg, var(--btn-red-top) 0%, var(--btn-red-mid) 55%, var(--btn-red-bot) 100%);
  color: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--btn-red-border);
  box-shadow: 
    0 6px 0 var(--btn-red-shadow),
    0 10px 18px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  transition: all 0.12s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.nav-btn-3d .btn-primary-text {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
  line-height: 1.2;
  display: block;
}

.nav-btn-3d .btn-sub-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffd6d7;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.02em;
  display: block;
}

.nav-btn-3d:hover {
  background: linear-gradient(180deg, var(--btn-hover-top) 0%, var(--btn-hover-mid) 55%, var(--btn-hover-bot) 100%);
  border-color: var(--btn-hover-border);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 0 var(--btn-red-shadow),
    0 14px 24px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.nav-btn-3d:active {
  transform: translateY(4px);
  box-shadow: 
    0 2px 0 var(--btn-red-shadow),
    0 4px 8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-btn-3d.active {
  background: linear-gradient(180deg, var(--btn-active-top) 0%, var(--btn-active-bot) 100%);
  border-color: var(--btn-active-border);
  box-shadow: 
    0 3px 0 var(--btn-active-shadow),
    0 0 14px rgba(250, 204, 21, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(2px);
}

.nav-btn-3d.active .btn-sub-text {
  color: #fef08a;
}

/* --------------------------------------------------------------------------
   6. Content Cards & Typography Hierarchy
   -------------------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 1.6rem;
  font-weight: 800;
}

.card h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Helper Utilities */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.w-full { width: 100%; }

/* --------------------------------------------------------------------------
   7. Form Controls & Inputs
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Radio & Checkbox Card Selectors */
.membership-type-selector,
.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.radio-card:hover {
  border-color: var(--card-hover-border);
  background: rgba(15, 23, 42, 0.9);
}

.payment-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.payment-card.selected {
  border-color: var(--accent-blue);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.payment-card-body strong {
  display: block;
  color: var(--text-main);
  font-size: 0.95rem;
}

.payment-card-body small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. Renewal Quick Auto-Fill Lookup Box
   -------------------------------------------------------------------------- */
.renewal-lookup-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid #3b82f6;
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.lookup-input-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.lookup-input-group input {
  flex: 1;
  min-width: 240px;
}

.lookup-btn {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid #2563eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease-in-out;
}

.lookup-btn:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  transform: translateY(-1px);
}

.lookup-status-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.lookup-success { color: var(--accent-green); }
.lookup-error { color: #f87171; }
.lookup-warning { color: #fde68a; }

.lookup-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

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

/* --------------------------------------------------------------------------
   9. Unlimited Dynamic Family Members Section
   -------------------------------------------------------------------------- */
.family-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
}

.family-member-card {
  background: var(--card-bg);
  border: 1px solid var(--card-hover-border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  position: relative;
}

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

.remove-family-btn {
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.remove-family-btn:hover {
  background: #b91c1c;
}

.add-family-btn {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #047857;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  transition: all 0.15s ease-in-out;
}

.add-family-btn:hover {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.supporter-badge-notice {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  color: #7dd3fc;
  font-size: 0.9rem;
  margin-top: 10px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Dues Summary Box & Instructions
   -------------------------------------------------------------------------- */
.dues-summary-box {
  background: var(--bg-darker);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 18px;
  margin-top: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--card-border);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-highlight {
  color: var(--accent-gold);
}

.mail-in-instructions {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px;
}

.mail-in-instructions address {
  font-style: normal;
  background: rgba(30, 41, 59, 0.8);
  padding: 12px;
  border-radius: 6px;
  margin: 12px 0;
  border-left: 3px solid var(--accent-blue);
}

/* --------------------------------------------------------------------------
   11. Action Buttons (General 3D Buttons)
   -------------------------------------------------------------------------- */
.action-btn-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #3b82f6;
  box-shadow: 0 4px 0 #1e3a8a, 0 6px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.12s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.action-btn-3d:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1e3a8a, 0 8px 16px rgba(0, 0, 0, 0.5);
}

.action-btn-3d:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1e3a8a, 0 3px 6px rgba(0, 0, 0, 0.4);
}

.action-btn-3d.secondary {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  border-color: #64748b;
  box-shadow: 0 4px 0 #1e293b, 0 6px 12px rgba(0, 0, 0, 0.4);
}

.action-btn-3d.secondary:hover {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.secondary-btn {
  background: #334155;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #475569;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn:hover {
  background: #475569;
}

/* --------------------------------------------------------------------------
   12. Standings & Tables
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: #0b1120;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.standings-table th {
  background: var(--card-bg);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}

.standings-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  color: var(--text-main);
}

.standings-table tr:hover {
  background: rgba(30, 41, 59, 0.6);
}

.discipline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.pill-btn {
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-btn:hover {
  border-color: #64748b;
  color: #ffffff;
  background: var(--card-bg);
}

.pill-btn.active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Rank Badging */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.9rem;
}

.rank-1 {
  background: radial-gradient(circle, #fef08a 0%, #eab308 100%);
  color: #713f12;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.rank-2 {
  background: radial-gradient(circle, #f1f5f9 0%, #94a3b8 100%);
  color: #0f172a;
}

.rank-3 {
  background: radial-gradient(circle, #fed7aa 0%, #ea580c 100%);
  color: #431407;
}

.rank-default {
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--card-hover-border);
}

.points-highlight {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.loader-box {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--accent-blue);
  animation: spin 0.8s linear infinite;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   13. Responsive Video & Feature Cards
   -------------------------------------------------------------------------- */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: var(--bg-darker);
  margin-top: 14px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  background: #152033;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.feature-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--accent-gold);
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   14. Resource Grid (Rules Hub Cards)
   -------------------------------------------------------------------------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.resource-card {
  background: linear-gradient(145deg, #1e293b 0%, #152033 100%);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff232a, #facc15);
  opacity: 0.8;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: #60a5fa;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.resource-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.resource-badge {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.resource-org {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-top: 2px;
}

.resource-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 12px 0 20px 0;
  flex-grow: 1;
}

.resource-meta {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.resource-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--text-sub);
}

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

/* --------------------------------------------------------------------------
   15. Expandable Accordion (Bylaws & Governance)
   -------------------------------------------------------------------------- */
.bylaws-accordion {
  margin-top: 24px;
}

.accordion-item {
  background: #152033;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.accordion-item:hover {
  border-color: var(--card-hover-border);
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-header .indicator {
  font-size: 1.2rem;
  color: var(--accent-gold);
  transition: transform 0.2s ease-in-out;
}

.accordion-item.open .indicator {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 20px 20px 20px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  display: none;
}

.accordion-item.open .accordion-content {
  display: block;
}

.accordion-content p {
  margin: 10px 0;
}

.accordion-content ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}

.accordion-content li {
  margin-bottom: 6px;
}

.highlight-pill {
  display: inline-block;
  background: rgba(250, 204, 21, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   16. Unified Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.facebook-link-3d,
.contact-btn-3d {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--card-bg);
  border: 1px solid var(--card-hover-border);
  transition: all 0.15s ease-in-out;
}

.facebook-link-3d:hover,
.contact-btn-3d:hover {
  background: var(--card-border);
  border-color: #64748b;
  transform: translateY(-1px);
}

.facebook-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   17. US F2D Cup Standings Tracker Sub-Tabs & Event Components
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.tab {
  background: var(--bg-dark);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.15s ease-in-out;
  user-select: none;
}

.tab:hover {
  border-color: #64748b;
  color: #ffffff;
  background: var(--card-bg);
}

.tab.active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.tab-content {
  display: none !important;
}

.tab-content.active {
  display: block !important;
}

.event-card-item {
  background: #152033;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease-in-out;
}

.event-card-item:hover {
  border-color: #60a5fa;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-eligible {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-ineligible {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-dq {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.danger-btn {
  background: #dc2626 !important;
  border: 1px solid #b91c1c !important;
  color: #ffffff !important;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.danger-btn:hover {
  background: #b91c1c !important;
}

.edit-btn {
  background: #0284c7 !important;
  border: 1px solid #0369a1 !important;
  color: #ffffff !important;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.edit-btn:hover {
  background: #0369a1 !important;
}

.btn-sm {
  padding: 5px 12px !important;
  font-size: 0.82rem !important;
}

.edit-banner {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 12px 18px;
  border-radius: 8px;
  color: #fef08a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.login-link {
  color: #38bdf8;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
}


    .btn-logo-icon {
      width: 22px;
      height: 22px;
      object-fit: contain;
      vertical-align: middle;
      border-radius: 50%;
      display: inline-block;
      flex-shrink: 0;
    }
