/* ==========================================================================
   CONECTHUB S7VEN – MAIN.CSS
   Full page and component styles
   ========================================================================== */

/* ==========================================================================
   1. LANDING PAGE
   ========================================================================== */

/* Hero Section */
.landing-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8E53 30%, var(--teal) 70%, #43A89F 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-6);
  text-align: center;
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating blob decorations */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.hero-blob-1 {
  width: 400px; height: 400px;
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-blob-2 {
  width: 250px; height: 250px;
  bottom: -60px; left: -60px;
  animation: float 6s ease-in-out infinite reverse;
}

.hero-blob-3 {
  width: 150px; height: 150px;
  top: 30%; left: 10%;
  animation: float-gentle 5s ease-in-out infinite;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.landing-hero-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-8);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.landing-hero h1 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.landing-hero h1 .highlight {
  color: var(--yellow);
}

.landing-hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.btn-hero-primary {
  background: white;
  color: var(--coral);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-base);
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: var(--transition-spring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  color: var(--coral-dark);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition-spring);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-3px);
  color: white;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.hero-stat {
  color: white;
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* ==========================================================================
   2. PERSONA SELECTION
   ========================================================================== */

.persona-section {
  padding: var(--space-16) var(--space-6);
  background: var(--off-white);
}

.persona-section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.persona-section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.persona-section-header p {
  color: var(--slate-light);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: 0 auto;
}

.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .persona-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

.persona-card-inner {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  padding: var(--space-5);
  transition: var(--transition-spring);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}

.persona-card-inner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--persona-color);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.persona-card-inner:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--persona-color);
}

.persona-card-inner:focus-visible {
  outline: 3px solid var(--persona-color);
}

.persona-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-4);
  background: var(--persona-bg, var(--coral-subtle));
}

.persona-age-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--persona-badge-bg, var(--coral-subtle));
  color: var(--persona-color);
  margin-bottom: var(--space-3);
}

.persona-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.persona-subtitle {
  font-size: var(--text-xs);
  color: var(--slate-light);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.persona-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.persona-feature-pill {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--border-light);
  color: var(--slate);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
}

.persona-cta {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
  color: white;
  background: var(--persona-color);
}

.persona-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ==========================================================================
   3. DASHBOARD
   ========================================================================== */

.dashboard-page {
  background: var(--off-white);
  min-height: 100vh;
}

.dashboard-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-6);
}

/* Welcome Card */
.welcome-card {
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
  color: white;
}

.welcome-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  z-index: 0;
}

.welcome-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 30% 50% at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.welcome-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.welcome-card-icon {
  font-size: 4rem;
  line-height: 1;
}

.welcome-card h2 {
  color: white;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-1);
}

.welcome-card p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
}

.welcome-card-right {
  text-align: right;
}

/* XP Section inside welcome card */
.xp-section {
  margin-top: var(--space-5);
}

.xp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.xp-level-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.xp-points {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.xp-bar-bg {
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  height: 10px;
  overflow: hidden;
}

.xp-bar-inner {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--yellow), white);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.xp-bar-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Quick Stats Row */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-card-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: var(--space-1);
}

.stat-card-label {
  font-size: var(--text-xs);
  color: var(--slate-light);
  font-weight: 500;
}

/* ==========================================================================
   4. BENTO GRID CARDS
   ========================================================================== */

.bento-section {
  margin-bottom: var(--space-8);
}

.bento-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.bento-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
}

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

.bento-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.bento-card-tall .bento-card-img {
  aspect-ratio: 3/4;
}

.bento-card-body {
  padding: var(--space-5);
}

.bento-card-category {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.bento-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.bento-card-meta {
  font-size: var(--text-xs);
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ==========================================================================
   5. EVENT CARDS
   ========================================================================== */

.events-section {
  margin-bottom: var(--space-8);
}

.events-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.events-scroll::-webkit-scrollbar { display: none; }

.event-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition-slow);
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 280px;
}

@media (min-width: 768px) {
  .event-card {
    width: 320px;
  }
}

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

.event-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--coral-subtle), var(--teal-subtle));
}

.event-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--coral-subtle), var(--teal-subtle));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.event-card-body {
  padding: var(--space-4) var(--space-5);
}

.event-card-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.event-card-meta-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--slate-light);
}

.event-meta-item .meta-icon {
  font-size: 0.875rem;
}

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

.event-join-btn {
  background: var(--coral);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: var(--transition-spring);
}

.event-join-btn:hover {
  background: var(--coral-dark);
  transform: scale(1.05);
}

.event-join-btn.joined {
  background: var(--teal);
}

.event-attendees {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--slate-light);
}

/* Events Grid (full events page) */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   6. JOB / GIG CARDS
   ========================================================================== */

.gigs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .gigs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gigs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gig-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-5);
  transition: var(--transition-slow);
}

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

.gig-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.gig-company-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--border-light);
  flex-shrink: 0;
}

.gig-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.gig-company-name {
  font-size: var(--text-xs);
  color: var(--slate-light);
}

.gig-type-badge {
  flex-shrink: 0;
}

.gig-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.gig-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.gig-reward-xp {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #8B6914;
}

.gig-reward-money {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--teal-dark);
}

.gig-reward-duration {
  font-size: var(--text-xs);
  color: var(--slate-light);
}

.gig-card-footer {
  display: flex;
  gap: var(--space-3);
}

.gig-card-footer .btn {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   7. MAP PAGE
   ========================================================================== */

.map-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px - 72px);
}

@media (min-width: 768px) {
  .map-page {
    height: calc(100vh - 64px);
    flex-direction: row;
  }
}

#ch-map {
  flex: 1;
  min-height: 400px;
  z-index: 1;
}

.map-sidebar {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .map-sidebar {
    width: 320px;
    max-height: none;
    border-top: none;
    border-left: 1px solid var(--border);
  }
}

.map-spot-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.map-spot-card:hover {
  border-color: var(--coral);
  background: var(--coral-subtle);
}

.map-spot-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--slate-dark);
  margin-bottom: var(--space-1);
}

.map-spot-meta {
  font-size: var(--text-xs);
  color: var(--slate-light);
}

/* Leaflet overrides */
.leaflet-container {
  font-family: var(--font-body) !important;
  border-radius: var(--radius);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border) !important;
}

.leaflet-popup-tip-container { display: none; }

/* ==========================================================================
   8. ARENA / LEADERBOARD
   ========================================================================== */

.arena-page {
  padding: var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .leaderboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .leaderboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.school-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-6);
  position: relative;
  transition: var(--transition-slow);
  overflow: hidden;
}

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

.school-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--school-color, var(--coral));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.school-rank-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-sm);
  color: white;
  background: var(--school-color, var(--coral));
}

.school-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.school-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: var(--space-1);
}

.school-card-full-name {
  font-size: var(--text-xs);
  color: var(--slate-light);
  margin-bottom: var(--space-4);
}

.school-xp-bar {
  background: var(--border-light);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.school-xp-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--school-color, var(--coral));
  transition: width 1s ease;
}

.school-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
  text-align: center;
}

.school-stat-item {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.school-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--slate-dark);
}

.school-stat-label {
  font-size: 0.6rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   9. PROFILE PAGE
   ========================================================================== */

.profile-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6);
}

.profile-header-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(135deg, var(--coral), var(--teal));
}

.profile-avatar {
  position: relative;
  z-index: 1;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  background: var(--coral-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 60px auto var(--space-4);
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: var(--space-2);
}

.profile-level {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--yellow-subtle);
  border: 1px solid var(--yellow-dark);
  color: #8B6914;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.profile-xp-section {
  max-width: 400px;
  margin: 0 auto var(--space-5);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

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

.profile-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--slate-dark);
}

.profile-stat-label {
  font-size: var(--text-xs);
  color: var(--slate-light);
}

/* Profile Settings Form */
.settings-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.settings-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--slate-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}

.form-control::placeholder {
  color: var(--slate-lighter);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   10. FILTER TABS
   ========================================================================== */

.filter-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scrollbar-width: none;
  margin-bottom: var(--space-6);
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.filter-tab:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--coral-subtle);
}

.filter-tab.active {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
  box-shadow: var(--shadow-coral);
}

/* ==========================================================================
   11. CITY ALERTS STRIP
   ========================================================================== */

.city-alerts {
  background: linear-gradient(90deg, var(--coral), var(--teal));
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.city-alerts-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  animation: pulse-soft 2s ease-in-out infinite;
}

.city-alerts-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  flex: 1;
}

.city-alerts-btn {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}

.city-alerts-btn:hover {
  background: rgba(255,255,255,0.4);
  color: white;
}

/* ==========================================================================
   12. QUICK ACTIONS FLOATING
   ========================================================================== */

.quick-actions-fab {
  position: fixed;
  right: var(--space-5);
  bottom: 90px;
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .quick-actions-fab {
    bottom: var(--space-8);
  }
}

.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-spring);
}

.fab-main {
  background: var(--coral);
  color: white;
  width: 60px; height: 60px;
  font-size: 1.5rem;
  box-shadow: var(--shadow-coral);
  animation: pulse-glow 3s ease-in-out infinite;
}

.fab-main:hover {
  transform: scale(1.1) rotate(45deg);
  box-shadow: 0 16px 40px rgba(255,107,107,0.4);
}

.fab-secondary {
  background: var(--white);
  color: var(--slate-dark);
  font-size: 1.25rem;
  border: 1px solid var(--border);
}

.fab-secondary:hover {
  transform: scale(1.1);
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* ==========================================================================
   13. DESKTOP FOOTER
   ========================================================================== */

.site-footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) var(--space-6) var(--space-8);
}

@media (max-width: 768px) {
  .site-footer {
    display: none;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  max-width: 1280px;
  margin: 0 auto var(--space-12);
}

.footer-brand .navbar-logo-text {
  color: var(--coral);
  display: block;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: white;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ==========================================================================
   14. PAGE LAYOUT
   ========================================================================== */

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.page-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-6);
}

.page-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.page-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: var(--space-5);
}

/* ==========================================================================
   15. FEATURES SECTION (Landing)
   ========================================================================== */

.features-section {
  padding: var(--space-20) var(--space-6);
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}

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

.feature-icon-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--slate-light);
  line-height: 1.7;
}

/* ==========================================================================
   16. SOCIAL PROOF NUMBERS
   ========================================================================== */

.social-proof {
  background: linear-gradient(135deg, var(--coral-subtle), var(--teal-subtle));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-16) var(--space-6);
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .social-proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proof-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.proof-label {
  font-size: var(--text-sm);
  color: var(--slate-light);
  font-weight: 500;
}

/* ==========================================================================
   17. PAGE HEADER (inner pages)
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--coral), var(--teal));
  padding: var(--space-12) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: var(--off-white);
  clip-path: ellipse(55% 60px at 50% 100%);
}

.page-hero h1 {
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-3);
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   18. EMPTY STATE
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--text-xl);
  color: var(--slate);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--slate-light);
  font-size: var(--text-sm);
}

/* ==========================================================================
   19. SKELETON LOADING
   ========================================================================== */

.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

.skeleton-text { height: 16px; border-radius: var(--radius-pill); }
.skeleton-title { height: 24px; border-radius: var(--radius-pill); }
.skeleton-img { aspect-ratio: 16/9; border-radius: var(--radius); }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }

/* ==========================================================================
   20. MOBILE RESPONSIVE TWEAKS
   ========================================================================== */

@media (max-width: 768px) {
  .dashboard-content {
    padding: var(--space-4);
  }

  .welcome-card {
    padding: var(--space-5);
  }

  .welcome-card h2 {
    font-size: var(--text-xl);
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .bento-span-2,
  .bento-span-3 {
    grid-column: span 2;
  }

  .section-title {
    font-size: var(--text-xl);
  }

  .navbar {
    padding: 0 var(--space-4);
  }

  .profile-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .features-section {
    padding: var(--space-12) var(--space-4);
  }

  .social-proof {
    padding: var(--space-10) var(--space-4);
  }
}

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

  .persona-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .hero-stats {
    gap: var(--space-5);
  }

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