/* ===== Global Reset & Base ===== */
* {
  box-sizing: border-box;
}

/* Import better fonts */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@600;700;900&family=Inter:wght@500;600;700;800&display=swap');

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;  /* Bolder! */
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  background: radial-gradient(circle at bottom, #ff0080, #7928ca 40%, #0f0f1a 100%);
  position: relative;
  overflow-x: hidden;
}

/* Use Titillium Web for headers and logo */
h1, h2, h3, h4, h5, h6, .logo-text, nav {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Make data more readable */
table, .leaderboard, .stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 700;  /* Extra bold! */
  letter-spacing: 0.5px;
}

/* Better readability for text content */
p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

ul, ol {
  font-size: 1.1rem;
  line-height: 1.8;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 700;
  color: #fff;
}

code {
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1.05rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

/* Animated grid overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  animation: gridScroll 30s linear infinite;
}

@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* ===== Header & Logo ===== */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

.logo-wrap {
  margin-bottom: 20px;
}

header img.logo {
  max-width: 480px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 0 transparent));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 0 transparent)); }
  100% { filter: drop-shadow(0 0 0 transparent)); }
}

/* ===== Navigation ===== */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 30px;
}

nav ul li a {
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

nav ul li a:hover {
  color: #ff0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

nav ul li a:active {
  transform: translateY(0);
}

/* ===== Container ===== */
.container,
main.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Glass Cards ===== */
.card,
.panel {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 25px;
  margin: 20px 0;
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 255, 255, 0.2);
}

/* Card Headers */
.card h2,
.card h3,
.card h4,
.panel h2,
.card-header {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.8rem;
  color: #ffcc00;
  letter-spacing: 2px;
  font-weight: 700;
}

.card-header {
  background: rgba(255, 204, 0, 0.1);
  margin: -25px -25px 20px -25px;
  padding: 15px 25px;
  border-radius: 16px 16px 0 0;
  border-bottom: 2px solid rgba(255, 204, 0, 0.3);
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.row .card {
  flex: 1;
  min-width: 300px;
}

/* ===== Tables ===== */
table,
table.leaderboard {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed; /* Force column widths */
}

table th,
table.leaderboard th {
  text-align: left;
  padding: 16px;
  color: #ffcc00;
  font-size: 1.3rem;  /* Bigger! */
  font-weight: 800;  /* Extra bold! */
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 204, 0, 0.4);
  background: rgba(255, 204, 0, 0.05);
  letter-spacing: 1px;  /* More spacing */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Column widths for dashboard mini-tables */
.dashboard-grid table th:first-child,
.dashboard-grid table td:first-child {
  width: 12%;
  text-align: center;
}

.dashboard-grid table th:nth-child(2),
.dashboard-grid table td:nth-child(2) {
  width: 55%;
}

.dashboard-grid table th:last-child,
.dashboard-grid table td:last-child {
  width: 33%;
  text-align: right;
}

/* Smaller fonts for dashboard cards */
.dashboard-grid .card h2 {
  font-size: 1.3rem;
}

.dashboard-grid .card table {
  font-size: 1rem;
}

.dashboard-grid .card table th {
  font-size: 0.9rem;
  padding: 10px 8px;
}

.dashboard-grid .card table td {
  font-size: 1.05rem;
  padding: 10px 8px;
}

table td,
table.leaderboard td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;  /* Much bigger! */
  font-weight: 700;  /* Extra bold! */
  letter-spacing: 0.8px;  /* More spacing */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

table tbody tr,
table.leaderboard tbody tr {
  transition: background 0.2s ease;
}

table tbody tr:hover,
table.leaderboard tbody tr:hover {
  background: rgba(0, 255, 255, 0.08);
}

/* Rank highlighting */
.rank-1,
tr.rank-1 {
  color: #ffd700 !important;
  font-weight: 700;
}

.rank-2,
tr.rank-2 {
  color: #c0c0c0 !important;
  font-weight: 600;
}

.rank-3,
tr.rank-3 {
  color: #cd7f32 !important;
  font-weight: 600;
}

/* ===== Links ===== */
a {
  color: #0ff;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ff0;
}

table a,
.leaderboard a {
  color: #fff;
  font-weight: bold;
}

table a:hover,
.leaderboard a:hover {
  color: #ffcc00;
}

/* ===== Badges ===== */
.badge,
span.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 8px;
}

.badge.bg-primary { background: #0066ff; }
.badge.bg-secondary { background: #6c757d; }
.badge.bg-success { background: #28a745; }
.badge.bg-warning { background: #ffc107; color: #000; }
.badge.bg-info { background: #17a2b8; }

/* Division badges */
.division-badge-bronze {
  background: linear-gradient(135deg, #cd7f32, #8b5a2b);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  
}

.division-badge-silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: #000;
  
}

.division-badge-gold {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: #000;
  
}

.division-badge-elite {
  background: linear-gradient(135deg, #9b59b6, #7928ca);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  
}

/* ===== Progress Bar ===== */
.progress-container {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin: 15px 0;
  
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00eaff, #0099ff, #0066ff);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  transition: width 0.8s ease;
  border-radius: 12px;
}

/* ===== Activity Feed ===== */
.activity-feed {
  max-height: 600px;
  overflow-y: auto;
}

.activity-item {
  padding: 12px 16px;
  margin: 8px 0;
  border-left: 4px solid #0ff;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(0, 255, 255, 0.12);
  transform: translateX(4px);
}

.activity-steal {
  border-left-color: #ff0080;
  background: rgba(255, 0, 128, 0.08);
}

.activity-steal:hover {
  background: rgba(255, 0, 128, 0.15);
}

.activity-qso {
  border-left-color: #0ff;
  background: rgba(0, 255, 255, 0.05);
}

.activity-penalty {
  border-left-color: #ff6600;
  background: rgba(255, 102, 0, 0.08);
}

.activity-penalty:hover {
  background: rgba(255, 102, 0, 0.15);
}

.activity-time {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 4px;
}

.activity-msg {
  font-size: 1rem;
  line-height: 1.4;
}

.station-link {
  color: #0ff;
  font-weight: bold;
  text-decoration: none;
}

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

.contact-link {
  color: #fff;
  text-decoration: none;
}

.contact-link:hover {
  color: #0ff;
}

.victim-link {
  color: #ff6b6b;
  text-decoration: none;
}

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

.steal-text {
  color: #ff0080;
  font-weight: bold;
  text-transform: uppercase;
  animation: pulse-steal 1s ease-in-out infinite;
}

@keyframes pulse-steal {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.band-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin: 0 4px;
}

.points-gain {
  color: #0f0;
  font-weight: bold;
}

.points-loss {
  color: #ff4444;
  font-weight: bold;
}

.points-normal {
  color: #0ff;
  font-weight: bold;
}

.reason-tag {
  background: #ff4444;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 8px;
}

.bonus-tag {
  background: #ffd700;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-left: 8px;
}

.steal-info {
  color: #ff80ab;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== Stats ===== */
.stats,
ul.stats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats li {
  margin: 10px 0;
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats li:last-child {
  border-bottom: none;
}

.stats li span {
  color: #0ff;
  font-weight: bold;
  float: right;
}

/* Stat cards */
.stat-card {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #0ff;
  margin: 10px 0;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Buttons ===== */
.btn,
button:not(.nav-toggle) {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

/* Button bar wrapper */
.btn-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #0099ff, #0066ff);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 153, 255, 0.4);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid #0ff;
  color: #0ff;
}

.btn-outline-light:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #fff;
}

/* ===== Nav Pills/Tabs ===== */
.nav-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.nav-pills .nav-link {
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
  background: rgba(0, 255, 255, 0.1);
  color: #0ff;
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #0099ff, #0066ff);
  color: #fff;
}

/* ===== Forms ===== */
.form-control,
.form-select,
select,
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: 'Inter', sans-serif;  /* Changed to Inter! */
  font-size: 1.1rem;  /* Slightly bigger */
  font-weight: 600;  /* Bold */
  transition: all 0.3s ease;
}

/* Dropdown options */
select option {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: #1a1a2e;
  color: #fff;
}

.form-control:focus,
.form-select:focus,
select:focus {
  outline: none;
  border-color: #0ff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #ffcc00;
  font-weight: 600;
}

/* ===== Charts ===== */
.chart-container {
  position: relative;
  height: 300px;
  margin: 20px 0;
}

/* ===== Comparison Layout ===== */
.vs-badge {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff0080;
  text-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
  text-align: center;
  margin: 20px 0;
}

.compare-stat {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-stat:last-child {
  border-bottom: none;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 5px 0;
}

.winner {
  color: #0ff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.loser {
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0099ff, #7928ca);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00eaff, #ff0080);
}

/* ===== Auto-refresh Indicator ===== */
.auto-refresh-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  font-size: 0.85rem;
  z-index: 1000;
}

.refresh-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #0ff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 30px 15px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Responsive ===== */

/* Table wrapper for horizontal scrolling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -15px;
  padding: 0 15px;
}

.table-responsive table {
  min-width: 600px;
}

/* Mobile navigation toggle - hidden on desktop */
.nav-toggle {
  display: none !important;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid #0ff;
  color: #0ff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(0, 255, 255, 0.2);
}

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container,
  main.container {
    padding: 15px;
  }

  .card,
  .panel {
    padding: 20px;
  }

  table th,
  table.leaderboard th {
    font-size: 1.1rem;
    padding: 12px;
  }

  table td,
  table.leaderboard td {
    font-size: 1.1rem;
    padding: 12px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  header {
    padding: 15px 0;
  }

  header img.logo {
    max-width: 280px;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: block !important;
    margin: 0 auto 15px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav ul.nav-open {
    max-height: 800px;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 1rem;
    padding: 12px 20px;
    display: block;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
  }

  .container,
  main.container {
    padding: 10px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .row {
    flex-direction: column;
  }

  .row .card {
    min-width: 100%;
  }

  .card,
  .panel {
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
  }

  .card h2,
  .card h3,
  .panel h2 {
    font-size: 1.3rem;
  }

  .card-header {
    margin: -15px -15px 15px -15px;
    padding: 12px 15px;
  }

  /* Tables - horizontal scroll */
  table,
  table.leaderboard {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  table th,
  table.leaderboard th {
    font-size: 0.9rem;
    padding: 10px 8px;
    letter-spacing: 0.5px;
  }

  table td,
  table.leaderboard td {
    font-size: 0.95rem;
    padding: 10px 8px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .vs-badge {
    font-size: 1.8rem;
  }

  /* Stats list on mobile */
  .stats li span {
    float: none;
    display: block;
    margin-top: 5px;
  }

  /* Comparison layout mobile */
  .compare-stat {
    padding: 12px 10px;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  /* Progress bar */
  .progress-container {
    height: 20px;
  }

  /* Auto-refresh indicator - smaller on mobile */
  .auto-refresh-indicator {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  /* Division info boxes */
  .card > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Division header flex layout */
  .card > div[style*="display: flex"][style*="justify-content: space-between"] {
    flex-direction: column !important;
    text-align: center !important;
  }

  .card > div[style*="display: flex"][style*="justify-content: space-between"] > div[style*="text-align: right"] {
    text-align: center !important;
    margin-top: 10px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  header img.logo {
    max-width: 220px;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .container,
  main.container {
    padding: 8px;
  }

  .card,
  .panel {
    padding: 12px;
    border-radius: 10px;
  }

  .card h2,
  .panel h2 {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .card-header {
    margin: -12px -12px 12px -12px;
    padding: 10px 12px;
    font-size: 1rem;
  }

  table th,
  table.leaderboard th {
    font-size: 0.8rem;
    padding: 8px 6px;
  }

  table td,
  table.leaderboard td {
    font-size: 0.85rem;
    padding: 8px 6px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .vs-badge {
    font-size: 1.4rem;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  /* Activity items */
  .activity-item {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  /* Buttons */
  .btn,
  button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* Forms */
  .form-control,
  .form-select,
  select,
  input[type="text"],
  input[type="email"] {
    padding: 10px;
    font-size: 1rem;
  }

  /* Footer */
  footer {
    padding: 20px 10px;
    font-size: 0.8rem;
  }

  /* Hide less important columns on very small screens */
  table .hide-mobile,
  table.leaderboard .hide-mobile {
    display: none;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  header img.logo {
    max-width: 180px;
  }

  .card h2,
  .panel h2 {
    font-size: 1rem;
  }

  table th,
  table.leaderboard th {
    font-size: 0.75rem;
    padding: 6px 4px;
  }

  table td,
  table.leaderboard td {
    font-size: 0.8rem;
    padding: 6px 4px;
  }

  .stat-number {
    font-size: 1.4rem;
  }
}

/* Dropdowns - position above if near bottom of screen */
.dropdown-up .dropdown-menu,
.dropup .dropdown-menu {
  bottom: 100%;
  top: auto;
  margin-bottom: 5px;
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  nav ul li a,
  .btn,
  button,
  table a,
  .leaderboard a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  table td a {
    padding: 5px 0;
  }
}

/* Landscape orientation on phones */
@media (max-height: 500px) and (orientation: landscape) {
  header {
    padding: 10px 0;
  }

  header img.logo {
    max-width: 200px;
  }

  .card,
  .panel {
    padding: 10px;
  }
}

/* ===== Division Page Specific ===== */
.division-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.division-header h2 {
  margin: 0;
}

.division-header-info {
  text-align: right;
}

.division-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.division-promo-grid > div {
  text-align: center;
}

.division-info-box {
  margin-top: 15px;
  padding: 15px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .division-header {
    flex-direction: column;
    text-align: center;
  }

  .division-header-info {
    text-align: center;
    width: 100%;
  }

  .division-promo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .division-info-box {
    padding: 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .division-info-box {
    padding: 10px;
    font-size: 0.8rem;
  }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-muted { color: rgba(255, 255, 255, 0.6); }
.float-end { float: right; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
