/* ========================================
   PTKWF - Pekiti Tirsia Kali World Federation
   Global Stylesheet
   ======================================== */

/* --- CSS Variables --- */
:root {
  --gold: #C8A44E;
  --gold-light: #E0C878;
  --gold-dark: #A07A28;
  --teal: #1E6E7A;
  --teal-light: #2A8E9E;
  --teal-dark: #145058;
  --bg-darkest: #0A0A0A;
  --bg-dark: #0D0D0D;
  --bg-medium: #1A1A1A;
  --bg-light: #2D2D2D;
  --bg-card: #1F1F1F;
  --green: #4A6741;
  --text-primary: #F0E6D0;
  --text-secondary: #D0C8A8;
  --text-muted: #999;
  --white: #FFFFFF;
  --red: #C0392B;
  --border: rgba(200, 164, 78, 0.15);
  --border-hover: rgba(200, 164, 78, 0.4);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(200, 164, 78, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 500;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 { font-size: 3.5rem; letter-spacing: 0.1em; }
h2 { font-size: 2.5rem; letter-spacing: 0.08em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.3rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.25rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.gold-text {
  color: var(--gold);
}

.teal-text {
  color: var(--teal-light);
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  margin: 1rem auto 2rem;
  border-radius: 2px;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-darkest);
  box-shadow: 0 2px 15px rgba(200, 164, 78, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg-darkest);
  box-shadow: 0 4px 25px rgba(200, 164, 78, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg-darkest);
  transform: translateY(-2px);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  box-shadow: 0 2px 15px rgba(30, 110, 122, 0.3);
}

.btn-teal:hover {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  box-shadow: 0 4px 25px rgba(30, 110, 122, 0.5);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  height: 45px;
  width: 45px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-signin {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-signin .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: 1px solid var(--border);
  padding: 5rem 2rem 2rem;
  z-index: 999;
  transition: right 0.4s ease;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--gold);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-overlay.open {
  opacity: 1;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(200, 164, 78, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  animation: fadeInScale 1s ease-out;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(200, 164, 78, 0.3));
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h2 {
  font-size: 1.8rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.hero-scroll i {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-medium);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}

.about-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--gold);
  color: var(--bg-darkest);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

/* --- Leadership Section --- */
.leader-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.leader-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--gold);
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-avatar i {
  font-size: 3rem;
  color: var(--text-muted);
}

.leader-card h4 {
  margin-bottom: 0.25rem;
}

.leader-card .leader-title {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.leader-card p {
  font-size: 0.9rem;
}

.leader-featured {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
  border-color: var(--gold);
  position: relative;
}

.leader-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
  z-index: -1;
  opacity: 0.3;
}

.leader-featured .leader-avatar {
  width: 150px;
  height: 150px;
}

/* --- Quick Links / Features --- */
.feature-card {
  text-align: center;
  padding: 3rem 2rem;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(200, 164, 78, 0.1), rgba(200, 164, 78, 0.05));
  color: var(--gold);
  border: 1px solid var(--border);
}

.feature-card h4 {
  margin-bottom: 0.75rem;
}

.feature-card .btn {
  margin-top: 1.5rem;
}

/* --- Events Page --- */
.page-header {
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  text-align: center;
  background: var(--bg-medium);
  border-bottom: 1px solid var(--border);
}

.featured-event {
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 3rem;
}

.featured-event-image {
  background: linear-gradient(135deg, var(--teal-dark), var(--bg-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2rem;
}

.featured-event-image i {
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.5;
}

.featured-event-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  width: fit-content;
}

.event-badge.seminar {
  background: rgba(200, 164, 78, 0.15);
  color: var(--gold);
}

.event-badge.tournament {
  background: rgba(30, 110, 122, 0.15);
  color: var(--teal-light);
}

.event-badge.certification {
  background: rgba(74, 103, 65, 0.15);
  color: var(--green);
}

.event-badge.workshop {
  background: rgba(192, 57, 43, 0.15);
  color: #E74C3C;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.event-meta i {
  color: var(--gold);
  margin-right: 0.4rem;
}

.event-meta {
  font-weight: 600;
}

.event-card {
  padding: 1.75rem;
}

.event-card h4 {
  margin-bottom: 0.5rem;
}

.event-card .event-meta {
  margin: 0.75rem 0;
}

.event-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.events-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--bg-darkest);
  border-color: var(--gold);
}

/* --- Past Events --- */
.past-events-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
  transition: color var(--transition);
}

.past-events-toggle:hover {
  color: var(--gold);
}

.past-events-toggle i {
  transition: transform var(--transition);
}

.past-events-toggle.active i {
  transform: rotate(180deg);
}

.past-events {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.past-events.open {
  max-height: 2000px;
}

.past-events .event-card {
  opacity: 0.7;
}

/* --- Training Page --- */
.course-categories {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.course-card {
  overflow: hidden;
  padding: 0;
}

.course-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, var(--bg-light), var(--bg-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.course-thumbnail i {
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.course-level {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-level.beginner {
  background: rgba(46, 204, 113, 0.2);
  color: #2ECC71;
}

.course-level.intermediate {
  background: rgba(241, 196, 15, 0.2);
  color: #F1C40F;
}

.course-level.advanced {
  background: rgba(231, 76, 60, 0.2);
  color: #E74C3C;
}

.course-level.all-levels {
  background: rgba(30, 110, 122, 0.2);
  color: var(--teal-light);
}

.course-member-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--bg-darkest);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.course-body {
  padding: 1.5rem;
}

.course-body h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.course-instructor {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.course-body p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.course-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
}

.course-price.free {
  color: var(--teal-light);
}

.course-lessons {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Course Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition);
}

.modal-close:hover {
  color: var(--gold);
}

.modal-body {
  padding: 0 2rem 2rem;
}

.modal-curriculum {
  margin: 1.5rem 0;
}

.modal-curriculum h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.curriculum-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.curriculum-item i {
  color: var(--gold);
  font-size: 0.8rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Groups / Map Page --- */
.map-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
}

.map-sidebar {
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.map-sidebar-header h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.map-search {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-medium);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.map-search::placeholder {
  color: var(--text-muted);
}

.map-search:focus {
  outline: none;
  border-color: var(--gold);
}

.region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.region-btn {
  padding: 0.35rem 0.75rem;
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition);
}

.region-btn:hover,
.region-btn.active {
  background: var(--gold);
  color: var(--bg-darkest);
  border-color: var(--gold);
}

.group-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.group-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}

.group-item:hover {
  border-color: var(--gold);
  background: rgba(200, 164, 78, 0.05);
}

.group-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.group-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.group-item-meta i {
  color: var(--gold);
  margin-right: 0.3rem;
}

.group-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--teal-light);
  margin-top: 0.5rem;
}

.group-verified i {
  font-size: 0.75rem;
}

#map {
  width: 100%;
  height: 100%;
}

/* --- Sign In Page --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
}

.auth-container {
  max-width: 460px;
  width: 100%;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.auth-logo h2 {
  font-size: 1.5rem;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-medium);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group select option {
  background: var(--bg-medium);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input {
  accent-color: var(--gold);
}

.form-link {
  color: var(--gold);
  font-size: 0.85rem;
}

.auth-submit {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
}

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* --- Dashboard (mock) --- */
.dashboard {
  display: none;
}

.dashboard.active {
  display: block;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-welcome h3 {
  margin-bottom: 0.25rem;
}

.dashboard-welcome p {
  margin: 0;
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.dash-card {
  background: var(--bg-medium);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dash-card h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-card h4 i {
  color: var(--gold);
}

.progress-bar {
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 4px;
  transition: width 1s ease;
}

.dash-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dash-list-item:last-child {
  border-bottom: none;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 50px;
  height: 50px;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 164, 78, 0.1);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Leaflet Custom Styles --- */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}

.leaflet-popup-tip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-content {
  margin: 1rem !important;
  font-family: var(--font-body) !important;
}

.leaflet-popup-content h4 {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.leaflet-popup-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.25rem 0;
}

.leaflet-popup-close-button {
  color: var(--text-muted) !important;
}

.map-popup-verified {
  color: var(--teal-light);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.leaflet-tile-pane {
  filter: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .map-sidebar {
    max-height: 50vh;
  }

  #map {
    min-height: 50vh;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-event {
    grid-template-columns: 1fr;
  }

  .featured-event-image {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }

  .nav-links,
  .nav-signin {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .hero-logo {
    width: 150px;
    height: 150px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .modal {
    margin: 1rem;
  }

  .map-layout {
    margin-top: var(--nav-height);
  }

  .map-sidebar {
    max-height: 40vh;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 0.1em;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

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