@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --rotary-blue: #2563eb;
  --rotary-blue-hover: #1d4ed8;
  --rotary-gold: #f59e0b;
  --rotary-gold-bright: #fbbf24;
  --rotary-gold-light: #fef08a;
  --rotary-gold-dark: #d97706;
  --rotary-gold-metallic: #d4af37;
  
  --bg-body: #0a0d14;
  --bg-card: #121824;
  --bg-card-alt: #161e2e;
  --bg-card-hover: #192233;
  --bg-darker: #070a10;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #fbbf24;
  --text-light: #e2e8f0;
  
  --border-color: rgba(245, 158, 11, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold-glow: rgba(245, 158, 11, 0.45);
  
  --success: #10b981;
  --info: #38bdf8;
  --warning: #f59e0b;
  --danger: #ef4444;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-body);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.12), transparent 70%),
    radial-gradient(circle at 10% 30%, rgba(212, 175, 55, 0.04), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(37, 99, 235, 0.04), transparent 40%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: rgba(12, 16, 24, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.8rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-rotary-text {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--rotary-gold);
}

.nav-brand-divider {
  height: 30px;
  width: 1px;
  background: rgba(245, 158, 11, 0.35);
  margin: 0 0.5rem;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.nav-logo-text span {
  color: var(--rotary-gold-bright);
}

.nav-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.nav-link.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0e14;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  border-color: #f59e0b;
}

.nav-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.btn-nav-projector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(245, 158, 11, 0.35);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-nav-projector:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--rotary-gold-bright);
  color: #fbbf24;
}

.btn-nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0a0d14;
  border: 1px solid #f59e0b;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-nav-admin:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: #080b11 url('../img/hero-banner-bg.jpg') no-repeat right center;
  background-size: cover;
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 3rem 4rem 3rem;
  overflow: hidden;
}

.hero-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, #0a0d14 42%, rgba(10, 13, 20, 0.94) 55%, rgba(10, 13, 20, 0.15) 78%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-left-content {
  max-width: 620px;
}

.hero-welcome {
  font-size: 1rem;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-title .hero-year {
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.hero-org {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.hero-org-name {
  color: #fde68a;
  font-weight: 700;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

.hero-tagline-text {
  font-size: 0.95rem;
  color: #f59e0b;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-right-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2rem;
  padding-right: 1.5rem;
}

.hero-cursive-quote {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fef08a;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 20px rgba(245, 158, 11, 0.4);
  transform: rotate(-3deg);
}

.hero-rotary-crest {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.hero-rotary-logo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-rotary-text {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-rotary-crest-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border: 1.5px solid var(--rotary-gold);
}

.hero-rotary-motto {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fbbf24;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Floating Search Bar */
.search-container {
  max-width: 1200px;
  width: 100%;
  margin: -1.8rem auto 2.2rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 20;
}

.search-box {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0.45rem 0.6rem 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 1px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--rotary-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 158, 11, 0.35);
}

.search-icon-symbol {
  font-size: 1.25rem;
  color: #fbbf24;
  margin-right: 0.75rem;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.85rem 0.5rem;
  font-size: 1.05rem;
  outline: none;
  color: #ffffff;
  background: transparent;
}

.search-input::placeholder {
  color: #64748b;
}

.search-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0e14;
  border: none;
  padding: 0.75rem 2.4rem;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

/* Action Cards Grid */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem 1.5rem;
  flex: 1;
  width: 100%;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.action-card {
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--rotary-gold);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(245, 158, 11, 0.15);
}

.action-card:active {
  transform: translateY(0);
}

.ac-left-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ac-icon {
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.ac-subtitle {
  font-size: 0.8rem;
  line-height: 1.3;
}

.ac-chevron-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Specific Card Themes */
/* Card 1: Pairings */
.action-card[data-action="pairings"] {
  background: linear-gradient(135deg, #101e38 0%, #0d1629 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #ffffff;
}
.action-card[data-action="pairings"] .ac-title {
  color: #ffffff;
}
.action-card[data-action="pairings"] .ac-subtitle {
  color: #93c5fd;
}
.action-card[data-action="pairings"] .ac-chevron-circle {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Card 2: Standings */
.action-card[data-action="standings"] {
  background: linear-gradient(135deg, #2b1c06 0%, #171004 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #ffffff;
}
.action-card[data-action="standings"] .ac-title {
  color: #fef08a;
}
.action-card[data-action="standings"] .ac-subtitle {
  color: #fde047;
}
.action-card[data-action="standings"] .ac-chevron-circle {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Card 3: Players */
.action-card[data-action="players"] {
  background: linear-gradient(135deg, #131f2f 0%, #0c1420 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #ffffff;
}
.action-card[data-action="players"] .ac-title {
  color: #e0f2fe;
}
.action-card[data-action="players"] .ac-subtitle {
  color: #7dd3fc;
}
.action-card[data-action="players"] .ac-chevron-circle {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Card 4: Info */
.action-card[data-action="info"] {
  background: linear-gradient(135deg, #1a202c 0%, #10141d 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.action-card[data-action="info"] .ac-title {
  color: #ffffff;
}
.action-card[data-action="info"] .ac-subtitle {
  color: #94a3b8;
}
.action-card[data-action="info"] .ac-chevron-circle {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Active Card Indicator */
.action-card.active {
  box-shadow: 0 0 0 2px var(--rotary-gold-bright), 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.3) !important;
  border-color: var(--rotary-gold-bright) !important;
}

/* Main Body Full Width View Container */
.main-view-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-lg), 0 0 1px rgba(245, 158, 11, 0.25);
  margin-bottom: 2rem;
}

.view-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.view-heading-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.view-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.badge-round-blue {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0a0d14;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Category Switcher Tabs */
.group-switch-tabs {
  display: inline-flex;
  background: #090c13;
  padding: 0.3rem;
  border-radius: 8px;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-tab-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.group-tab-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0a0d14;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Pairings List / Board Cards */
.pairings-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pairing-board-row {
  display: grid;
  grid-template-columns: 90px 1fr 140px 1fr;
  align-items: center;
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #151b27;
  transition: all 0.15s ease;
}

.pairing-board-row:hover {
  background: #192232;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.p-board-tag {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fbbf24;
}

.p-player-block {
  display: flex;
  flex-direction: column;
}

.p-player-block.right-align {
  text-align: right;
  align-items: flex-end;
}

.p-player-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.p-player-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}

.p-result-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-result-badge {
  font-weight: 800;
  font-size: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.p-result-badge.win {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.p-result-badge.draw {
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.4);
}

/* Standings & Players Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #0d121c;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  color: #f1f5f9;
}

.data-table tbody tr {
  background: #121824;
}

.data-table tbody tr:nth-child(even) {
  background: #0f1420;
}

.data-table tbody tr:hover {
  background: #1a2333;
}

.rank-badge {
  font-weight: 800;
  font-size: 1rem;
}

/* Recent Announcements Card */
.announcements-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.announcements-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.announcements-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.announcements-link {
  color: var(--rotary-gold);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.announcements-banner-item {
  background: #161e2e;
  padding: 0.9rem 1.25rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.announce-text-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.announce-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rotary-gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.announce-timestamp {
  font-size: 0.85rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Dark Footer */
.footer-dark {
  background: #070a10;
  border-top: 1px solid var(--border-color);
  padding: 2.2rem 2.5rem;
  color: #ffffff;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-rotary-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rotary-gold);
}

.footer-divider {
  height: 28px;
  width: 1px;
  background: rgba(245, 158, 11, 0.35);
  margin: 0 0.25rem;
}

.footer-event-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer-tagline {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-gold-line {
  width: 28px;
  height: 2px;
  background: var(--rotary-gold);
}

.footer-motto {
  color: #fde68a;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, #161e2e 25%, #1e293b 50%, #161e2e 75%);
  background-size: 400% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sk-text { height: 16px; width: 60%; }
.sk-row { height: 48px; width: 100%; margin-bottom: 0.5rem; border-radius: 8px; }

/* =========================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Laptops, Tablets, Mobile, and Big Screen / Projector
   ========================================================= */

/* --- Big Screens & Full HD Projector (min-width: 1440px) --- */
@media (min-width: 1440px) {
  .main-container, .hero-content, .search-container {
    max-width: 1320px;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-cursive-quote {
    font-size: 3.2rem;
  }
}

/* --- Tablets Landscape & Standard Laptops (max-width: 1200px) --- */
@media (max-width: 1200px) {
  .hero-section {
    padding: 3rem 2rem 3.5rem 2rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-cursive-quote {
    font-size: 2.4rem;
  }
  .action-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* --- Tablets Portrait (max-width: 992px) --- */
@media (max-width: 992px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .hero-right-content {
    display: none;
  }
  .hero-left-content {
    max-width: 100%;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .search-container {
    padding: 0 1.25rem;
    margin: -1.4rem auto 1.8rem auto;
  }
  .main-view-card {
    padding: 1.25rem 1.5rem;
  }
  .view-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .view-heading-group {
    width: 100%;
    justify-content: space-between;
  }
  .group-switch-tabs {
    width: 100%;
    display: flex;
  }
  .group-tab-btn {
    flex: 1;
    text-align: center;
  }
}

/* --- Phablets & Small Tablets (max-width: 768px) --- */
@media (max-width: 768px) {
  .navbar {
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .nav-brand {
    gap: 0.5rem;
  }
  .nav-rotary-text {
    font-size: 1.35rem;
  }
  .nav-logo-img {
    width: 32px;
    height: 32px;
  }
  .nav-logo-text {
    font-size: 1.05rem;
  }
  .nav-subtitle {
    display: none;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    font-size: 0.88rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .btn-nav-projector span, .btn-nav-admin span {
    display: inline;
  }
  .btn-nav-projector, .btn-nav-admin {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .hero-section {
    padding: 2.25rem 1rem 3rem 1rem;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.2;
  }
  .hero-org {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .hero-badges-row {
    gap: 0.45rem;
  }
  .hero-badge-item {
    font-size: 0.82rem;
    padding: 0.3rem 0.65rem;
  }
  .hero-sponsors-strip {
    padding: 0.5rem 0.75rem;
    gap: 0.45rem;
  }
  .hero-sponsor-tag {
    font-size: 0.78rem;
    padding: 0.22rem 0.6rem;
  }

  .search-container {
    padding: 0 1rem;
    margin: -1.2rem auto 1.5rem auto;
  }
  .search-box {
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  }
  .search-input {
    font-size: 0.95rem;
    padding: 0.65rem 0.35rem;
  }
  .search-btn {
    padding: 0.65rem 1.35rem;
    font-size: 0.92rem;
  }

  .action-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .action-card {
    padding: 1rem 1.15rem;
  }

  /* Admin Header & Round Controls */
  .admin-tabs-bar {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
  }
  .admin-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .footer-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-divider {
    display: none;
  }
}

/* --- Mobile Phones (max-width: 600px) --- */
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .main-container {
    padding: 0 0.85rem 2.5rem 0.85rem;
  }
  .main-view-card {
    padding: 1rem;
    border-radius: 10px;
  }
  .view-main-title {
    font-size: 1.2rem;
  }

  /* Mobile Pairing Board Row: Stacked card design */
  .pairing-board-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    position: relative;
  }
  .p-board-tag {
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.4rem;
  }
  .p-player-block {
    width: 100%;
  }
  .p-player-block.right-align {
    text-align: left;
    align-items: flex-start;
  }
  .p-result-badge-wrap {
    width: 100%;
    margin-top: 0.25rem;
  }
  .p-result-badge {
    width: 100%;
    text-align: center;
    padding: 0.45rem;
    font-size: 1.05rem;
  }

  /* Mobile Standings & Data Tables */
  .data-table {
    min-width: 580px;
  }
  .data-table th, .data-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.88rem;
  }

  /* Admin Board Scoring Card on Mobile */
  .admin-board-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.35rem !important;
    margin-top: 0.6rem;
  }
  .admin-action-btn {
    min-width: 0 !important;
    width: 100%;
    text-align: center;
    min-height: 44px;
    font-size: 0.95rem;
    padding: 0.5rem 0.2rem;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }
  .modal-card {
    padding: 1.25rem 1rem;
    max-height: 94vh;
    border-radius: 10px;
  }
  .modal-title {
    font-size: 1.15rem;
  }

  /* Announcements */
  .announcements-card {
    padding: 1rem;
  }
  .announcements-banner-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* --- Extra Small Mobile (max-width: 400px) --- */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .search-btn {
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
  }
  .btn-nav-projector span {
    display: none;
  }
  .btn-nav-admin span {
    display: none;
  }
  .btn-nav-projector, .btn-nav-admin {
    padding: 0.45rem 0.6rem;
  }
}

/* Admin Dashboard & Form Styles */
.card {
  background: rgba(18, 24, 36, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}
.admin-login-wrapper {
  max-width: 440px;
  margin: 3rem auto;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #fde68a;
}
.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #161e2e;
  color: #ffffff;
}
.form-input:focus, .form-select:focus {
  border-color: var(--rotary-gold-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0a0d14;
  font-weight: 800;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: #e2e8f0;
}
.btn-outline:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--rotary-gold);
  color: #fbbf24;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}
.badge-outline {
  background: #161e2e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  cursor: pointer;
}
.badge-outline.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  color: #0a0d14;
  font-weight: 800;
}
.admin-action-btn {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(26, 34, 50, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e2e8f0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.admin-action-btn:hover { 
  background: rgba(34, 45, 66, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.admin-action-btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.admin-action-btn.win { border-color: rgba(16, 185, 129, 0.5); color: #34d399; }
.admin-action-btn.win:hover { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2); }
.admin-action-btn.win.selected { background: #10b981; color: #ffffff; box-shadow: 0 0 16px rgba(16, 185, 129, 0.5); }
.admin-action-btn.draw { border-color: rgba(245, 158, 11, 0.5); color: #fde047; }
.admin-action-btn.draw:hover { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2); }
.admin-action-btn.draw.selected { background: #f59e0b; color: #0a0d14; box-shadow: 0 0 16px rgba(245, 158, 11, 0.5); }
.admin-action-btn.black { border-color: rgba(2, 132, 199, 0.5); color: #7dd3fc; }
.admin-action-btn.black:hover { box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2); }
.admin-action-btn.black.selected { background: #0284c7; color: #ffffff; box-shadow: 0 0 16px rgba(2, 132, 199, 0.5); }
.admin-action-btn.btn-result-ff.selected { background: var(--danger); color: #fff; box-shadow: 0 0 16px rgba(239, 68, 68, 0.5); }

/* Pulse Animation for Live Status */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.live-pulse {
  animation: pulseGlow 2s infinite;
}

/* Podium Highlights */
.podium-rank-1 {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.05) 100%) !important;
  border-left: 4px solid #fbbf24 !important;
}
.podium-rank-2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.2) 0%, rgba(192, 192, 192, 0.05) 100%) !important;
  border-left: 4px solid #e2e8f0 !important;
}
.podium-rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.25) 0%, rgba(205, 127, 50, 0.05) 100%) !important;
  border-left: 4px solid #fdba74 !important;
}


/* Sponsors Highlight Showcase */
.hero-sponsors-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #f59e0b;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-sponsor-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.5rem;
}

.hero-sponsor-tag {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.02em;
}
.hero-sponsor-tag:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.sponsor-tag-canvas {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.3) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2), inset 0 0 10px rgba(16, 185, 129, 0.1);
}
.sponsor-tag-sub {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  letter-spacing: 0.05em;
  margin-left: 0.3rem;
}
.sponsor-tag-bhise {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2), inset 0 0 10px rgba(245, 158, 11, 0.1);
}
.sponsor-tag-gayatri {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.3) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
}
.sponsor-tag-devidas {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(147, 51, 234, 0.3) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2), inset 0 0 10px rgba(168, 85, 247, 0.1);
}

.sponsors-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--rotary-gold);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.sponsors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sponsors-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sponsors-badge-icon {
  font-size: 2rem;
  line-height: 1;
}

.sponsors-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

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

.sponsors-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--rotary-gold);
  color: #fde047;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sponsors-grid {
    grid-template-columns: 1fr;
  }
}

.sponsor-card {
  background: #161e2e;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.35rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 15px rgba(245, 158, 11, 0.2);
  border-color: var(--rotary-gold);
  background: #192233;
}

.sponsor-card.featured {
  background: linear-gradient(180deg, #13241b 0%, #161e2e 100%);
  border-color: rgba(16, 185, 129, 0.4);
}

.sponsor-card.featured:hover {
  border-color: #10b981;
}

.sponsor-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #121824;
  border: 2px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.sponsor-badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.sponsor-badge-tag.title-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.sponsor-badge-tag.key-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sponsor-badge-tag.partner-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.sponsor-badge-tag.patron-tag {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.sponsor-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.sponsor-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
}
