:root {
  --primary: #1a1a2e;
  --secondary: #c8102e;
  --accent: #f5a623;
  --gold: #d4a017;
  --silver: #8a8a8a;
  --bronze: #cd7f32;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--gray-100);
}

.top-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--secondary);
}

header {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  color: var(--white);
  padding: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

header h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

header h1 span {
  color: var(--accent);
}

header .emblem {
  display: flex;
  align-items: center;
  gap: 8px;
}

header .emblem-icon {
  width: 2.0rem;
  height: 2.0rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .emblem-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s;
}

nav a:hover, nav a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero.has-banner {
  background: var(--primary);
  padding: 50px 20px 40px;
}

.hero.has-banner .hero-bg-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero.has-banner .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(22,33,62,0.5) 100%);
}

.hero.has-banner .container {
  position: relative;
  z-index: 2;
}

.hero.has-banner .badge {
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

.hero.has-banner .organizers {
  border-top-color: rgba(255,255,255,0.25);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .badge {
  display: inline-block;
  background: var(--secondary);
  padding: 16px 40px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(200,16,46,0.4);
  line-height: 1.3;
}

.hero h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
  opacity: 0.85;
}

.hero .subtitle {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero .details {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero .details span {
  display: inline-block;
  margin: 0 8px;
}
.hero .details .sep { opacity: 0.4; }

.hero .details .clickable {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.3s;
}
.hero .details .clickable:hover {
  background: rgba(255,255,255,0.15);
  opacity: 1;
}

.hero .organizers {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
}

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

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p, .card li {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.card ul { list-style: none; padding: 0; }
.card ul li { padding: 4px 0; border-bottom: 1px solid var(--gray-200); }
.card ul li:last-child { border-bottom: none; }

/* Section */
.section {
  padding: 28px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Tables */
.table-container {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.85rem;
}

thead {
  background: var(--primary);
  color: var(--white);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f0f4ff; }
tbody tr:nth-child(even) { background: #fafbfc; }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge.completed { background: #d4edda; color: #155724; }
.status-badge.ongoing { background: #fff3cd; color: #856404; animation: pulse 1.5s infinite; }
.status-badge.upcoming { background: #cce5ff; color: #004085; }

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

/* Score display */
.score-display {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 1px;
}
.score-display .vs { color: var(--gray-300); font-weight: 400; font-size: 0.85rem; margin: 0 6px; }

/* Standings medal */
.rank-medal { font-size: 1.1rem; }
.rank-1 { color: var(--gold); }
.rank-2 { color: var(--silver); }
.rank-3 { color: var(--bronze); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #2d2d4e; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--secondary); color: var(--white); }
.btn-accent:hover { background: #a00d24; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }

/* Result cards */
.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.result-card .teams { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.result-card .team { font-weight: 600; font-size: 0.9rem; }
.result-card .score { font-size: 1.4rem; font-weight: 900; color: var(--primary); }
.result-card .meta { font-size: 0.75rem; color: var(--gray-600); }
.result-card .divider { color: var(--gray-300); font-weight: 300; }

/* Standings podium */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  padding: 30px 0;
  margin-bottom: 24px;
}
.podium-item {
  text-align: center;
  width: 120px;
}
.podium-item .place {
  font-size: 2rem;
  margin-bottom: 4px;
}
.podium-item .team-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.podium-item .points {
  font-size: 0.8rem;
  color: var(--gray-600);
}
.podium-item .bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 0;
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
}
.podium-item.first .bar { height: 100px; background: linear-gradient(180deg, var(--gold), #f0c040); }
.podium-item.second .bar { height: 75px; background: linear-gradient(180deg, var(--silver), #b0b0b0); }
.podium-item.third .bar { height: 50px; background: linear-gradient(180deg, var(--bronze), #e0a070); }
.podium-item.first { order: 2; }
.podium-item.second { order: 1; }
.podium-item.third { order: 3; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}
.filter-bar select, .filter-bar input {
  -webkit-appearance: none;
  appearance: none;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--white);
  transition: border-color 0.3s;
}
.filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.1);
}

/* Accordion */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body.open {
  max-height: 3000px;
}
.accordion-header {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.accordion-header:hover h2 {
  opacity: 0.8;
}
.accordion-arrow {
  display: inline-block;
  font-size: 0.7rem;
  margin-left: 8px;
  transition: transform 0.3s;
  vertical-align: middle;
}
.accordion-header.open .accordion-arrow {
  transform: rotate(180deg);
}

/* Alert */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info { background: #e8f4fd; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }

/* Loading */
.loading { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.spinner { width: 40px; height: 40px; border: 4px solid var(--gray-200); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* QR */
.qr-section {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin: 20px 0;
  border: 1px solid var(--gray-200);
}
.qr-section h3 {
  color: var(--primary);
  margin-bottom: 8px;
}
.qr-section img {
  width: 140px;
  height: 140px;
  margin: 16px 0;
  border-radius: var(--radius-sm);
}
.qr-section .url {
  font-size: 0.8rem;
  color: var(--gray-600);
  word-break: break-all;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid .gallery-item {
  min-height: 180px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.05); }
.gallery-grid .gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 24px 10px 8px;
  font-size: 0.8rem;
}
.gallery-grid .placeholder {
  min-height: 180px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--gray-200), #d0d0d0);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  gap: 4px;
}

/* Bulletin */
.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.bulletin-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--gray-200);
}
.bulletin-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bulletin-item .day { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.bulletin-item .date { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 16px; }
.bulletin-item .icon { font-size: 2.2rem; margin-bottom: 12px; }

/* Floating Widgets */
.floating-btt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(200,16,46,0.35);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.floating-btt.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.floating-btt:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(200,16,46,0.5);
}

.floating-announce {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  animation: float-pulse 2s infinite;
}
.floating-announce:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(245,166,35,0.5);
}
.floating-announce .badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid white;
  font-size: 0.55rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-scoreboard {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: none;
  max-width: 500px;
  width: 90%;
  background: linear-gradient(135deg, var(--primary), #16213e);
  color: white;
  border-radius: var(--radius);
  padding: 10px 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}
.floating-scoreboard.show {
  display: flex;
}
.floating-scoreboard .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 1s infinite;
  flex-shrink: 0;
}
.floating-scoreboard .fs-teams {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floating-scoreboard .fs-score {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}
.floating-scoreboard .fs-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.floating-scoreboard .fs-close:hover { color: white; }

/* Announcement Modal */
.announce-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.announce-overlay.open { display: flex; }
.announce-modal {
  background: white;
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
}
.announce-modal h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-right: 30px;
}
.announce-modal .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.announce-modal .close-btn:hover {
  background: var(--gray-100);
  color: var(--primary);
}
.announce-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.announce-item:last-child { border-bottom: none; }
.announce-item .date {
  font-size: 0.72rem;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.announce-item .msg {
  font-size: 0.88rem;
  color: var(--primary);
  line-height: 1.5;
}
.announce-empty {
  text-align: center;
  padding: 30px;
  color: var(--gray-600);
  font-size: 0.85rem;
}

@keyframes float-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (max-width: 768px) {
  .floating-btt { bottom: 16px; right: 16px; width: 42px; height: 42px; font-size: 1.1rem; }
  .floating-announce { bottom: 16px; left: 16px; width: 42px; height: 42px; font-size: 1rem; }
  .floating-scoreboard { bottom: 66px; padding: 8px 14px; font-size: 0.8rem; }
  .floating-scoreboard .fs-score { font-size: 0.9rem; }
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 28px 0;
  margin-top: 28px;
}
footer .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
footer .logos span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}
footer p { font-size: 0.8rem; opacity: 0.6; }
footer .credit { font-size: 0.7rem; opacity: 0.4; margin-top: 4px; }

/* Responsive */
@media (max-width: 768px) {
  header .container { padding: 10px 16px; flex-wrap: wrap; }
  header h1 { font-size: 0.9rem; }
  .header-logos { display:none; }
  .hero { padding: 50px 16px 40px; }
  .hero.has-banner { padding: 40px 16px 30px; }
  .hero .badge { font-size: 1.1rem; padding: 12px 20px; letter-spacing: 1px; border-radius: 12px; word-break: break-word; }
  .hero h2 { font-size: 1rem; letter-spacing: 1px; }
  .hero .details { font-size: 0.8rem; }
  .hero .details span { display: inline-block; margin: 2px 4px; }
  nav { display: none; width: 100%; flex-direction: column; margin-top: 10px; }
  nav.show { display: flex; }
  .menu-toggle { display: block; }
  .section { padding: 20px 0; }
  .section-header h2 { font-size: 1.2rem; }
  .info-cards { grid-template-columns: 1fr; padding: 24px 0; }
  .card { padding: 20px; }
  .podium { flex-wrap: wrap; }
  .podium-item { width: 100px; }
  .podium-item.first .bar { height: 80px; }
  .podium-item.second .bar { height: 60px; }
  .podium-item.third .bar { height: 40px; }
  .result-card { flex-direction: column; text-align: center; }
  .result-card .teams { justify-content: center; }
  .qr-section { padding: 24px 16px; }
  table { font-size: 0.75rem; }
  th, td { padding: 8px 10px; }
  .agenda-item { flex-direction: column; gap: 4px; padding-left: 20px; }
  .agenda-item::before { left: 8px; }
  .agenda-items::before { left: 13px; }
  .agenda-time { min-width: auto; }
  .jk-grid { grid-template-columns: 1fr; }
}

/* Header Logos */
.header-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logos .logo-item {
  height: 36px;
  display: flex;
  align-items: center;
}
.header-logos .logo-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Agenda - Timeline Premium */
.agenda-day {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
  overflow: hidden;
}
.agenda-day-title {
  background: linear-gradient(135deg, var(--primary), #16213e);
  color: var(--white);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
}
.agenda-day-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.agenda-items {
  padding: 12px 0;
  position: relative;
}
.agenda-items::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.agenda-item {
  display: flex;
  gap: 16px;
  padding: 14px 20px 14px 54px;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
  position: relative;
  transition: all 0.3s;
}
.agenda-item:last-child { border-bottom: none; }
.agenda-item:hover {
  background: var(--gray-100);
}
.agenda-item::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--secondary);
  z-index: 1;
}
.agenda-item:first-child::before {
  background: var(--accent);
  border-color: var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.agenda-time {
  min-width: 100px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--secondary);
  white-space: nowrap;
  padding-top: 2px;
}
.agenda-desc {
  flex: 1;
  font-size: 0.88rem;
}
.agenda-desc strong {
  color: var(--primary);
}
.agenda-place {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 4px;
  background: var(--gray-100);
  padding: 2px 10px;
  border-radius: 10px;
}

/* Jawatankuasa - Premium Cards */
.jk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.jk-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.jk-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.jk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.jk-card-inner {
  padding: 20px;
}
.jk-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary), #a00d24);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 12px;
}
.jk-jawatan {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.jk-nama {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.jk-nama-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(21,101,192,0.15);
}
.jk-peranan {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
  border-top: 1px dashed var(--gray-200);
  padding-top: 8px;
  margin-top: 4px;
}

.stat-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-summary .card {
  text-align: center;
  padding: 16px 12px;
}
.stat-summary .card .stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat-summary .card .stat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.stat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.stat-filters label {
  font-size: 0.82rem;
  font-weight: bold;
  color: #555;
}
.stat-filters select {
  -webkit-appearance: none;
  appearance: none;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.stat-table-wrap {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  margin-bottom: 24px;
}
.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.stat-table th {
  background: var(--primary);
  color: var(--white);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
.stat-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eee;
}
.stat-table tr:hover td {
  background: #f8faff;
}
.stat-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-bar-bg {
  flex: 1;
  height: 18px;
  background: #eef2f7;
  border-radius: 9px;
  overflow: hidden;
  min-width: 60px;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, #1a3a5c, #2e7d32, #f9a825);
  transition: width 0.4s ease;
}
.stat-bar-label {
  font-weight: bold;
  font-size: 0.8rem;
  min-width: 28px;
  text-align: right;
  color: var(--primary);
}
.stat-kategori-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.7rem;
  margin-right: 3px;
  vertical-align: middle;
}
.stat-kategori-badge.active {
  background: #e8f5e9;
  color: #2e7d32;
}
.stat-kategori-badge.inactive {
  background: #f5f5f5;
  color: #bbb;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-section {
  animation: fadeInUp 0.3s ease;
}
.stat-section h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media print {
  header, .top-bar, footer, .menu-toggle, nav, .filter-bar { display: none; }
  .hero { padding: 20px; }
  .card, .result-card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
}
