/* ══════════════════════════════════════════════════════════════
   YOURLEGACY ACADEMY — GROWTH LAB COMMUNITY PLATFORM
   Design System & Core Styles
   ══════════════════════════════════════════════════════════════ */

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

:root {
  /* ── IDENTIDAD ACADEMY — Emerald (YL-Tech=Blue, Studio=Purple, Academy=Emerald) ── */
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16,185,129,0.25);
  --accent-soft: rgba(16,185,129,0.08);
  --accent-dark: #047857;
  /* ── HERENCIA STITCH — Slate-950 depth ── */
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(15,23,42,0.6);
  --bg-glass: rgba(15,23,42,0.85);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-primary: #f8fafc;
  --text-secondary: rgba(248,250,252,0.7);
  --text-muted: rgba(248,250,252,0.4);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  /* ── HERENCIA YL-TECH (Brand Colors) ── */
  --brand-blue: #0d93f2;
  --brand-pink: #ec4899;
  --brand-teal: #14b8a6;
  /* ── GAMIFICACIÓN ── */
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #d97706;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY LAYER — WCAG 2.1 AA Compliance
   (AUDIT-2026-06-12) Added as part of Phase 3 accessibility remediation
   ══════════════════════════════════════════════════════════════ */

/* Screen reader only — visually hidden but accessible to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip navigation link — visible only on focus for keyboard users */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 99999;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* Focus-visible: high-contrast focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Live region announcements for screen readers */
.aria-live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Network status indicator */
.network-status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.network-status.offline {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  transform: translateY(0);
}
.network-status.back-online {
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: white;
  transform: translateY(0);
  animation: slideUp 3s ease 2s forwards;
}
@keyframes slideUp {
  to { transform: translateY(-100%); }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }

/* ── MICRO-ANIMATIONS ── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-20px); } to { opacity:1; transform:translateX(0); } }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes scaleIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }

.content { animation: fadeIn 0.3s ease; }
.card, .module-card, .feed-post, .schedule-item, .resource-card, .student-row {
  animation: fadeInUp 0.4s ease backwards;
}
.grid-4 > :nth-child(1) { animation-delay: 0s; }
.grid-4 > :nth-child(2) { animation-delay: 0.05s; }
.grid-4 > :nth-child(3) { animation-delay: 0.1s; }
.grid-4 > :nth-child(4) { animation-delay: 0.15s; }
.grid-3 > :nth-child(1) { animation-delay: 0s; }
.grid-3 > :nth-child(2) { animation-delay: 0.06s; }
.grid-3 > :nth-child(3) { animation-delay: 0.12s; }
.grid-2 > :nth-child(1) { animation-delay: 0s; }
.grid-2 > :nth-child(2) { animation-delay: 0.06s; }
.sidebar-nav li { animation: slideInLeft 0.3s ease backwards; }
.sidebar-nav li:nth-child(1) { animation-delay: 0.05s; }
.sidebar-nav li:nth-child(2) { animation-delay: 0.1s; }
.sidebar-nav li:nth-child(3) { animation-delay: 0.15s; }
.sidebar-nav li:nth-child(4) { animation-delay: 0.2s; }

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(168,85,247,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(59,130,246,0.06) 0%, transparent 50%),
              var(--bg-primary);
  padding: 20px; position: relative; overflow: hidden;
}
.login-bg-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(var(--text-muted) 1px, transparent 1px),
                    linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
  background-size: 60px 60px;
}
.login-card {
  width: 100%; max-width: 420px; position: relative; z-index: 1;
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 48px 36px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
/* ── Login Brand Composed System ── */
.login-brand {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.login-shield-wrap {
  width: 56px; height: 56px;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(16,185,129,0.35));
}
.login-shield {
  width: 100%; height: 100%;
}
.login-brand-text {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  line-height: 1.15;
}
.login-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text-primary);
}
.login-brand-sub {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent);
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.login-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.login-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.5; }
.login-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.input-group { margin-bottom: 16px; text-align: left; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.input-group input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg-tertiary);
  color: var(--text-primary); font-size: 14px; transition: var(--transition);
  outline: none;
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.btn {
  padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; border: none; transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); transform: translateY(-1px); }
.btn-oauth {
  background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border);
  margin-bottom: 10px;
}
.btn-oauth:hover { background: var(--bg-card); border-color: var(--border-hover); }
.btn-oauth img { width: 20px; height: 20px; }

/* ── APP LAYOUT ── */
.app { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w); height: 100vh; position: fixed; left: 0; top: 0; z-index: 100;
  background: var(--bg-secondary); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 0; overflow-y: auto;
  transition: transform 0.3s;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px; padding: 0 20px; margin-bottom: 28px;
}
.sidebar-brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.sidebar-brand-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; }
.sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); padding: 20px 20px 8px; margin-top: 4px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); border-left: 3px solid transparent;
}
.sidebar-nav li a:hover { color: var(--text-primary); background: var(--accent-soft); }
.sidebar-nav li a.active {
  color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600;
}
.sidebar-nav li a .nav-icon { font-size: 18px; width: 20px; text-align: center; }
.sidebar-nav li a .nav-badge {
  margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}
.sidebar-user {
  margin-top: auto; padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }

.sidebar-logout {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15);
  border-radius: 10px; color: #f87171; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; margin-top: 8px; width: 100%;
}
.sidebar-logout:hover { background: rgba(239,68,68,0.15); }

/* ── MAIN ── */
.main { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
  background: rgba(2,6,23,0.85); backdrop-filter: blur(12px);
}
.topbar-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-md);
  background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px;
  min-width: 200px;
}
.topbar-search input {
  background: none; border: none; color: var(--text-primary); font-size: 13px; outline: none; width: 100%;
}
.topbar-notif {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 16px; position: relative; transition: var(--transition);
}
.topbar-notif:hover { border-color: var(--border-hover); color: var(--text-primary); }
.notif-dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-primary);
}

/* ── USER DROPDOWN ── */
.topbar-user-container { position: relative; z-index: 200; }
.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.topbar-user-btn:hover { border-color: var(--border-hover); background: var(--bg-card); }
.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-dropdown-header {
  padding: 12px 16px;
}
.user-dropdown-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.user-dropdown-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.user-dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.user-dropdown-item i { font-size: 16px; }

.content { padding: 28px; }

/* ── CARDS GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: var(--transition); position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.card-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.card-value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.card-footer { font-size: 12px; color: var(--text-muted); margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.card-footer .up { color: var(--success); }

/* ── MODULE CARDS ── */
.module-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); cursor: pointer;
}
.module-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.module-thumb {
  width: 100%; height: 180px; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.module-thumb img { width: 100%; height: 100%; object-fit: cover; }
.module-thumb-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex; align-items: flex-end; padding: 16px;
}
.module-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(168,85,247,0.9); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; box-shadow: 0 4px 16px var(--accent-glow);
  opacity: 0; transition: var(--transition);
}
.module-card:hover .module-play { opacity: 1; }
.module-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--text-muted);
}
.module-placeholder .icon { font-size: 32px; opacity: 0.5; }
.module-placeholder .text { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.module-body { padding: 20px; }
.module-week { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.module-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.module-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.module-meta { display: flex; align-items: center; gap: 16px; font-size: 11px; color: var(--text-muted); }
.module-meta span { display: flex; align-items: center; gap: 4px; }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 50px; font-size: 11px; font-weight: 600;
}
.badge-live { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-new { background: var(--accent-soft); color: var(--accent); }
.badge-done { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-locked { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* ── PROGRESS BAR ── */
.progress-bar { width: 100%; height: 6px; background: var(--bg-tertiary); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #7c3aed); border-radius: 3px; transition: width 0.6s; }

/* ── COMMUNITY FEED ── */
.feed-post {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 16px; transition: var(--transition);
}
.feed-post:hover { border-color: var(--border-hover); }
.feed-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.feed-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.feed-author { font-size: 14px; font-weight: 600; }
.feed-time { font-size: 12px; color: var(--text-muted); }
.feed-text { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
.feed-actions { display: flex; gap: 16px; }
.feed-action {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-muted); background: none; border: none; transition: var(--transition);
}
.feed-action:hover { color: var(--text-primary); background: var(--accent-soft); }

/* ── COMMUNITY BULLETIN BOARD ── */
.community-tag-btn {
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-muted); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.community-tag-btn.active {
  background: var(--accent-soft); color: var(--accent); border-color: rgba(16,185,129,0.3);
}
.community-tag-btn:hover { border-color: var(--accent); color: var(--accent); }
.community-filter {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-secondary); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.community-filter.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.community-filter:hover:not(.active) { border-color: var(--border-hover); color: var(--text-primary); }
.community-post {
  transition: all 0.2s ease;
}
.community-post:hover {
  border-color: rgba(16,185,129,0.2) !important;
}

/* ── SCHEDULE ── */
.schedule-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 8px; transition: var(--transition);
}
.schedule-item:hover { border-color: var(--border-hover); }
.schedule-time {
  min-width: 56px; font-size: 12px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.schedule-title { font-size: 13px; font-weight: 600; }
.schedule-host { font-size: 11px; color: var(--text-muted); }
.schedule-status { margin-left: auto; }

/* ── RESOURCE CARDS ── */
.resource-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: var(--transition); cursor: pointer;
}
.resource-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.resource-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.resource-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.resource-desc { font-size: 12px; color: var(--text-muted); }
.resource-arrow { margin-left: auto; color: var(--text-muted); font-size: 14px; }

/* ── SECTION HEADERS ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; }
.section-action { font-size: 13px; font-weight: 600; color: var(--accent); }
.section-action:hover { text-decoration: underline; }

/* ── MOBILE ── */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; }
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:150; }

/* ── BOTTOM NAV (Mobile) ── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 6px 0 env(safe-area-inset-bottom, 8px); backdrop-filter: blur(12px);
}
.bottom-nav-inner {
  display: flex; align-items: center; justify-content: space-around; max-width: 500px; margin: 0 auto;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: var(--radius-md); background: none; border: none;
  color: var(--text-muted); font-size: 10px; font-weight: 600; transition: var(--transition);
  font-family: inherit; position: relative;
}
.bottom-nav-item i { font-size: 22px; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item .nav-dot {
  position: absolute; top: 4px; right: 8px; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════
   SMART TEAM — MULTI-AGENT CHAT SYSTEM
   ══════════════════════════════════════════════════════════════ */

/* ── FAB (Floating Action Button) ── */
.smart-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 110;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(168,85,247,0.4); transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  animation: smart-pulse 3s infinite; cursor: pointer;
}
.smart-fab:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(168,85,247,0.5); }
.smart-fab.open { transform: rotate(45deg) scale(1.05); animation: none; }
@keyframes smart-pulse {
  0%,100% { box-shadow: 0 8px 32px rgba(168,85,247,0.35); }
  50% { box-shadow: 0 8px 48px rgba(168,85,247,0.55); }
}
.smart-fab-badge {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
  border-radius: 50%; background: #22c55e; border: 2px solid var(--bg-primary);
  font-size: 9px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ── Agent Selector (Radial Menu) ── */
.smart-selector {
  display: none; position: fixed; bottom: 96px; right: 24px; z-index: 115;
  flex-direction: column; gap: 10px; align-items: flex-end;
}
.smart-selector.open { display: flex; animation: selectorSlideIn 0.3s ease; }
@keyframes selectorSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.smart-agent-btn {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  border-radius: 50px; border: 1px solid var(--border);
  background: var(--bg-secondary); backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35); transition: all 0.25s ease;
  cursor: pointer; white-space: nowrap;
}
.smart-agent-btn:hover { transform: translateX(-4px); border-color: var(--smart-color, var(--accent)); }
.smart-agent-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.smart-agent-label { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.smart-agent-role { font-size: 10px; color: var(--text-muted); }

/* ── Chat Window ── */
.smart-chat {
  display: none; position: fixed; z-index: 130;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  flex-direction: column;
  bottom: 96px; right: 24px; width: 400px; height: 560px;
}
.smart-chat.open { display: flex; animation: chatOpen 0.3s ease; }
@keyframes chatOpen {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Chat Header ── */
.smart-chat-header {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(var(--smart-rgb,168,85,247),0.08), transparent);
}
.smart-chat-agent-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
  transition: background 0.3s;
}
.smart-chat-info { flex: 1; }
.smart-chat-name { font-size: 14px; font-weight: 700; color: var(--text-primary); transition: color 0.3s; }
.smart-chat-role { font-size: 11px; color: var(--text-muted); }
.smart-chat-status { font-size: 10px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.smart-chat-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); display: inline-block;
}
.smart-chat-actions { display: flex; gap: 4px; }
.smart-chat-btn {
  background: none; border: none; color: var(--text-muted); font-size: 18px; padding: 4px;
  border-radius: var(--radius-sm); transition: all 0.2s; cursor: pointer;
}
.smart-chat-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* ── Agent Bar (Tabs) ── */
.smart-agent-bar {
  display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.smart-agent-bar::-webkit-scrollbar { display: none; }
.smart-agent-tab {
  display: flex; align-items: center; gap: 5px; padding: 5px 10px;
  border-radius: 50px; border: 1px solid transparent; background: none;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.smart-agent-tab:hover { background: rgba(255,255,255,0.04); color: var(--text-secondary); }
.smart-agent-tab.active {
  border-color: var(--smart-active-color, var(--accent));
  background: rgba(var(--smart-active-rgb,168,85,247), 0.1);
  color: var(--smart-active-color, var(--accent));
}
.smart-agent-tab-emoji { font-size: 14px; }

/* ── Chat Body ── */
.smart-chat-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.smart-chat-body::-webkit-scrollbar { width: 4px; }
.smart-chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Messages ── */
.smart-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.6; animation: msgIn 0.2s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.smart-msg.bot {
  background: var(--bg-tertiary); color: var(--text-secondary);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.smart-msg.user {
  background: linear-gradient(135deg, var(--accent), #0d93f2);
  color: #fff; align-self: flex-end; border-bottom-right-radius: 4px;
}
.smart-msg.bot strong { color: var(--smart-active-color, var(--accent)); }
.smart-msg.bot em { color: var(--text-primary); font-style: italic; }
.smart-msg.bot code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(16,185,129,0.12); padding: 2px 6px;
  border-radius: 4px; font-size: 12px;
}
.smart-msg-agent-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; margin-bottom: 4px;
  opacity: 0.7;
}

/* ── Typing Indicator ── */
.smart-typing-dots {
  display: flex; align-items: center; gap: 5px; padding: 4px 0;
}
.smart-typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--smart-active-color, var(--accent)); opacity: 0.4;
  animation: smart-dot-bounce 1.4s ease-in-out infinite;
}
.smart-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.smart-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes smart-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Chat Input ── */
.smart-chat-input {
  display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.smart-chat-input input {
  flex: 1; padding: 10px 14px; border-radius: 50px; border: 1px solid var(--border);
  background: var(--bg-tertiary); color: var(--text-primary); font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.smart-chat-input input:focus { border-color: var(--smart-active-color, var(--accent)); }
.smart-chat-input button {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer;
}
.smart-chat-input button:hover { transform: scale(1.08); box-shadow: 0 4px 12px var(--accent-glow); }
.smart-chat-input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Agent Disabled Overlay ── */
.smart-agent-disabled {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center;
}
.smart-agent-disabled-icon { font-size: 40px; opacity: 0.5; }
.smart-agent-disabled-text { font-size: 14px; color: var(--text-secondary); }

/* ── Mobile Responsive ── */
@media(max-width: 768px) {
  .smart-fab { bottom: 76px; right: 16px; width: 52px; height: 52px; font-size: 22px; }
  .smart-selector { bottom: 140px; right: 16px; }
  .smart-chat {
    bottom: 0; right: 0; left: 0; width: 100%; height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   ELI CHAT — Floating AI Assistant (module.html)
   Purple-accented chat panel with slide-up animation
   ══════════════════════════════════════════════════════════════ */

/* ── Eli FAB (Floating Action Button) ── */
.eli-fab {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4),
              0 0 0 0 rgba(168, 85, 247, 0.3);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  animation: eliFabPulse 3s ease-in-out infinite;
}
.eli-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.55),
              0 0 0 6px rgba(168, 85, 247, 0.12);
}
.eli-fab:active {
  transform: scale(0.95);
}
@keyframes eliFabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4), 0 0 0 0 rgba(168, 85, 247, 0.3); }
  50%      { box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4), 0 0 0 8px rgba(168, 85, 247, 0); }
}

/* ── Eli Chat Panel ── */
.eli-chat {
  position: fixed;
  bottom: 160px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: var(--bg-glass, rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl, 20px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(168, 85, 247, 0.1);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
}
.eli-chat.open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Chat Header ── */
.eli-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(124, 58, 237, 0.06));
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}
.eli-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}
.eli-chat-info {
  flex: 1;
  min-width: 0;
}
.eli-chat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.eli-chat-status {
  font-size: 11px;
  color: #a855f7;
  font-weight: 600;
  margin-top: 1px;
}
.eli-chat-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.eli-chat-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ── Chat Body (Messages) ── */
.eli-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.25) transparent;
}
.eli-chat-body::-webkit-scrollbar { width: 4px; }
.eli-chat-body::-webkit-scrollbar-track { background: transparent; }
.eli-chat-body::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 99px;
}

/* ── Chat Messages ── */
.eli-msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  animation: eliMsgIn 0.3s ease;
}
.eli-msg.bot {
  align-self: flex-start;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-bottom-left-radius: 4px;
}
.eli-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  border-bottom-right-radius: 4px;
  border: none;
}
@keyframes eliMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Chat Input ── */
.eli-chat-input {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.eli-chat-input input {
  flex: 1;
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}
.eli-chat-input input::placeholder {
  color: var(--text-muted);
}
.eli-chat-input input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}
.eli-chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.eli-chat-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}
.eli-chat-input button:active {
  transform: scale(0.95);
}

/* ── Typing Indicator ── */
.eli-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.eli-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  opacity: 0.4;
  animation: eliDotBounce 1.2s ease-in-out infinite;
}
.eli-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.eli-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes eliDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ── Eli Mobile Responsive ── */
@media (max-width: 768px) {
  .eli-fab {
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .eli-chat {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-xl, 20px) var(--radius-xl, 20px) 0 0;
  }
}

/* ── LANGUAGE TOGGLE ── */
.lang-toggle-btn {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 50px; padding: 4px 6px; font-size: 11px;
  font-weight: 700; cursor: pointer; transition: var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.lang-toggle-btn:hover { border-color: var(--accent); }
.lang-active {
  background: var(--accent); color: #fff; padding: 3px 8px;
  border-radius: 50px; font-size: 11px; letter-spacing: 0.02em;
}
.lang-inactive {
  color: var(--text-muted); padding: 3px 8px;
  font-size: 11px; letter-spacing: 0.02em;
}

@media(max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
  .sidebar { transform: translateX(-100%); z-index: 200; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content { padding: 16px; padding-bottom: 80px; }
  .topbar { padding: 0 16px; }
  .topbar-search { display: none; }
  .login-card { padding: 32px 24px; }
  .bottom-nav { display: block; }
  #community-layout { grid-template-columns: 1fr !important; }
  .leaderboard-grid { grid-template-columns: 1fr !important; }
  .members-grid { grid-template-columns: 1fr !important; }
  .map-container { height: 350px !important; }
  .map-stats { flex-direction: column; }
  .calendar-grid { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   MAP — LEAFLET.JS COMMUNITY MAP
   ══════════════════════════════════════════════════════════════ */
.map-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.map-container {
  height: calc(100vh - 220px);
  min-height: 400px;
  width: 100%;
  z-index: 1;
  background: #0b0f19 !important;
}
.leaflet-container,
.leaflet-pane,
.leaflet-tile-pane,
.leaflet-tile-container,
.leaflet-zoom-box {
  background: #0b0f19 !important;
}
.leaflet-tile {
  background: #0b0f19 !important;
}
.map-stats {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.map-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.map-stat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.map-stat strong {
  color: var(--text-primary);
  font-weight: 700;
}
.map-privacy {
  position: absolute;
  bottom: 60px;
  left: 12px;
  z-index: 10;
  background: rgba(2,6,23,0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
/* Custom Leaflet pin */
.yl-pin {
  width: 18px; height: 18px;
  background: radial-gradient(circle, var(--accent), var(--brand-blue));
  border-radius: 50%;
  border: 2.5px solid rgba(16,185,129,0.35);
  box-shadow: 0 0 14px rgba(16,185,129,0.5);
  animation: pulse-pin 2.5s infinite;
}
@keyframes pulse-pin {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
/* Leaflet popup custom */
.leaflet-popup-content-wrapper {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}
.leaflet-popup-tip { background: var(--bg-secondary) !important; }
.leaflet-popup-content { font-family: 'Plus Jakarta Sans', sans-serif !important; font-size: 13px !important; }

/* ══════════════════════════════════════════════════════════════
   LEADERBOARD — GAMIFICATION
   ══════════════════════════════════════════════════════════════ */
.leaderboard-hero {
  background: linear-gradient(135deg, var(--bg-secondary), rgba(16,185,129,0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.lb-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.lb-avatar-lg .lb-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px; height: 24px;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.lb-info h3 { font-size: 18px; font-weight: 700; }
.lb-info .lb-level-name { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 2px; }
.lb-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.lb-progress {
  flex: 1;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}
.lb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brand-teal));
  border-radius: 3px;
  transition: width 0.5s ease;
}
.lb-ranking-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.lb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(12px);
}
.lb-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.lb-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.lb-rank {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.lb-rank.gold   { background: rgba(245,158,11,0.2); color: var(--gold); }
.lb-rank.silver { background: rgba(148,163,184,0.2); color: var(--silver); }
.lb-rank.bronze { background: rgba(217,119,6,0.2);   color: var(--bronze); }
.lb-rank.normal { background: var(--bg-tertiary);     color: var(--text-muted); }
.lb-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.lb-user-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
/* Levels sidebar */
.levels-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(12px);
}
.level-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.level-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.level-name { flex: 1; font-weight: 600; }
.level-pct { color: var(--text-muted); font-size: 12px; }
/* How to earn */
.earn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
  backdrop-filter: blur(12px);
}
.earn-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.earn-pts {
  color: var(--accent);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   MEMBERS GRID
   ══════════════════════════════════════════════════════════════ */
.members-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.members-filter {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.members-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.members-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
}
.members-search::placeholder { color: var(--text-muted); }
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(12px);
}
.member-card:hover {
  border-color: var(--accent);
  background: rgba(16,185,129,0.04);
  transform: translateY(-1px);
}
.member-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.member-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-primary);
}
.member-info { flex: 1; min-width: 0; }
.member-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-bio {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.member-status {
  display: flex;
  align-items: center;
  gap: 4px;
}
.member-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* ══════════════════════════════════════════════════════════════
   CALENDAR
   ══════════════════════════════════════════════════════════════ */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calendar-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.calendar-nav button:hover { border-color: var(--accent); color: var(--accent); }
.calendar-month { font-size: 20px; font-weight: 700; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.calendar-day-header {
  padding: 10px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.calendar-day {
  min-height: 90px;
  padding: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.2s;
}
.calendar-day:hover { background: rgba(16,185,129,0.03); }
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day .day-num { font-weight: 700; margin-bottom: 4px; }
.calendar-day.today .day-num {
  background: var(--accent);
  color: #fff;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.calendar-day.other-month { color: var(--text-muted); opacity: 0.4; }
.calendar-event {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 4px;
  cursor: pointer;
  line-height: 1.3;
}
.calendar-event.session { background: rgba(16,185,129,0.15); color: var(--accent); }
.calendar-event.deadline { background: rgba(13,147,242,0.15); color: var(--brand-blue); }
.calendar-event.special { background: rgba(236,72,153,0.15); color: var(--brand-pink); }

/* ══════════════════════════════════════════════════════════════
   MODULE CARDS — PREMIUM EXPERIENCE
   ══════════════════════════════════════════════════════════════ */

@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 20px rgba(245,158,11,0.08); } 50% { box-shadow: 0 0 30px rgba(245,158,11,0.18); } }
@keyframes shimmerSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.module-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
  pointer-events: none;
}
.module-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-glow);
}
.module-card:hover::before { opacity: 1; }

/* Bonus card special styling */
.module-card:has(.module-week[style*="245,158,11"]) {
  border-color: rgba(245,158,11,0.2);
  animation: glowPulse 3s ease-in-out infinite;
}
.module-card:has(.module-week[style*="245,158,11"]):hover {
  border-color: #f59e0b;
  box-shadow: 0 20px 48px rgba(0,0,0,0.3), 0 0 40px rgba(245,158,11,0.15);
}

.module-thumb {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.module-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.module-placeholder::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  animation: shimmerSlide 3s ease-in-out infinite;
}
.module-placeholder .icon {
  font-size: 28px;
  color: var(--text-muted);
  transition: var(--transition);
}
.module-card:hover .module-placeholder .icon {
  color: var(--accent);
  transform: scale(1.15);
}
.module-placeholder .text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.module-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}
.module-card:hover .module-play {
  opacity: 1;
  transform: scale(1);
}

.module-body {
  padding: 16px;
  position: relative;
  z-index: 1;
}
.module-week {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 8px;
}
.module-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.module-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.module-meta i { margin-right: 4px; }

/* Staggered card entry */
.grid-3 > .module-card:nth-child(n) { animation: fadeInUp 0.5s ease backwards; }
.grid-3 > .module-card:nth-child(1) { animation-delay: 0s; }
.grid-3 > .module-card:nth-child(2) { animation-delay: 0.06s; }
.grid-3 > .module-card:nth-child(3) { animation-delay: 0.12s; }
.grid-3 > .module-card:nth-child(4) { animation-delay: 0.18s; }
.grid-3 > .module-card:nth-child(5) { animation-delay: 0.24s; }
.grid-3 > .module-card:nth-child(6) { animation-delay: 0.30s; }
.grid-3 > .module-card:nth-child(7) { animation-delay: 0.36s; }
.grid-3 > .module-card:nth-child(8) { animation-delay: 0.42s; }
.grid-3 > .module-card:nth-child(9) { animation-delay: 0.48s; }
.grid-3 > .module-card:nth-child(10) { animation-delay: 0.54s; }
.grid-3 > .module-card:nth-child(11) { animation-delay: 0.60s; }
.grid-3 > .module-card:nth-child(12) { animation-delay: 0.66s; }
.grid-3 > .module-card:nth-child(13) { animation-delay: 0.72s; }
.grid-3 > .module-card:nth-child(14) { animation-delay: 0.78s; }
.grid-3 > .module-card:nth-child(15) { animation-delay: 0.84s; }
.grid-3 > .module-card:nth-child(16) { animation-delay: 0.90s; }

/* ══════════════════════════════════════════════════════════════
   LIVE SESSIONS — WEEKLY CALENDAR ENGINE
   ══════════════════════════════════════════════════════════════ */

/* Next session hero card */
.live-hero {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(168,85,247,0.06));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.live-hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%);
  pointer-events: none;
}
.live-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.live-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: livePulseAnim 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(239,68,68,0.4);
}
.live-pulse.upcoming {
  background: var(--accent);
  animation: livePulseGreen 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent-glow);
}
@keyframes livePulseAnim {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(1.3); }
}
@keyframes livePulseGreen {
  0%,100% { opacity: 1; box-shadow: 0 0 12px var(--accent-glow); }
  50%     { opacity: 0.7; box-shadow: 0 0 24px var(--accent-glow); }
}
.live-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.live-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.live-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.live-hero-meta i { color: var(--accent); margin-right: 4px; }
.live-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.live-countdown i { font-size: 16px; }
.live-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: var(--transition);
  text-decoration: none;
}
.btn-join:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-join.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-join.secondary:hover { border-color: var(--border-hover); background: var(--bg-card); }

/* Weekly calendar grid */
.live-week-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.live-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.live-day-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.live-day-card.today {
  border-color: rgba(16,185,129,0.3);
  background: linear-gradient(135deg, rgba(16,185,129,0.06), var(--bg-card));
}
.live-day-card.today::after {
  content: 'HOY';
  position: absolute; top: 12px; right: 12px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
}
.live-day-card.past { opacity: 0.55; }
.live-day-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.live-day-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.live-day-topic {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}
.live-day-time {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.live-day-host {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.live-day-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.live-day-badge.live { background: rgba(239,68,68,0.15); color: #ef4444; }
.live-day-badge.upcoming { background: var(--accent-soft); color: var(--accent); }
.live-day-badge.recorded { background: rgba(59,130,246,0.12); color: #60a5fa; }
.live-day-badge.optional { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.live-day-badge.completed { background: rgba(34,197,94,0.12); color: var(--success); }

/* Past sessions / recordings */
.live-recordings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.live-recordings-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.live-recording-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.live-recording-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.live-rec-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(59,130,246,0.1);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.live-rec-info { flex: 1; }
.live-rec-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.live-rec-meta { font-size: 12px; color: var(--text-muted); }
.live-rec-duration {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════════════════════════════
   RESOURCES HUB — ENRICHED
   ══════════════════════════════════════════════════════════════ */

/* Resource stats row */
.res-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.res-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.res-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}
.res-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Resource category filters */
.res-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.res-filter {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.res-filter.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.res-filter:hover:not(.active) { border-color: var(--border-hover); color: var(--text-primary); }

/* Resource enriched cards */
.res-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  position: relative;
}
.res-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.res-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.res-icon-lg {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.res-icon-lg.pdf { background: rgba(239,68,68,0.12); color: #ef4444; }
.res-icon-lg.doc { background: rgba(59,130,246,0.12); color: #60a5fa; }
.res-icon-lg.link { background: rgba(16,185,129,0.12); color: var(--accent); }
.res-icon-lg.video { background: rgba(168,85,247,0.12); color: #a855f7; }
.res-icon-lg.template { background: rgba(245,158,11,0.12); color: #f59e0b; }
.res-icon-lg.tool { background: rgba(6,182,212,0.12); color: #06b6d4; }
.res-card-info { flex: 1; min-width: 0; }
.res-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.res-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.res-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.res-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.res-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.res-tag.module { background: rgba(168,85,247,0.1); color: #a855f7; }
.res-card-size {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.res-card-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  transition: var(--transition);
}
.res-card-download:hover { background: var(--accent); color: #fff; }

/* Recommended section */
.res-recommended {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.res-recommended-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}


@media(max-width: 768px) {
  .live-week-grid { grid-template-columns: 1fr; }
  .live-hero-actions { flex-direction: column; }
  .res-stats { flex-direction: column; }
}
@media(max-width: 1024px) {
  .live-week-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   LAZY LOADING SPINNER & NEW KEYFRAMES
   ══════════════════════════════════════════════════════════════ */
@keyframes spin { 100% { transform: rotate(360deg); } }
.loading-spin { animation: spin 1s linear infinite; }

/* ══════════════════════════════════════════════════════════════
   SEARCH RESULTS DROPDOWN
   ══════════════════════════════════════════════════════════════ */
.search-container { position: relative; }
.search-results-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 320px;
  max-height: 400px; overflow-y: auto; background: rgba(15,23,42,0.95);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 1000; display: none;
  backdrop-filter: blur(12px); padding: 8px 0;
}
.search-results-dropdown.open { display: block; }
.search-section-header {
  font-size: 10px; font-weight: 700; color: var(--accent);
  padding: 6px 14px; text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 4px;
}
.search-result-item {
  display: flex; flex-direction: column; padding: 10px 14px;
  cursor: pointer; transition: background 0.2s;
}
.search-result-item:hover { background: rgba(16,185,129,0.08); }
.search-result-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.search-result-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   NOTIFICATIONS DROPDOWN
   ══════════════════════════════════════════════════════════════ */
.topbar-notif-container { position: relative; }
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 300px;
  max-height: 400px; overflow-y: auto; background: rgba(15,23,42,0.95);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 1000; display: none;
  backdrop-filter: blur(12px); padding: 8px 0;
}
.notif-dropdown.open { display: block; }
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; font-weight: 700; color: var(--text-primary);
}
.notif-clear-btn { font-size: 11px; color: var(--accent); background: none; border: none; cursor: pointer; }
.notif-clear-btn:hover { text-decoration: underline; }
.notif-item {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.02);
  cursor: pointer; transition: background 0.2s; display: flex; gap: 10px;
}
.notif-item:hover { background: rgba(255,255,255,0.02); }
.notif-item.unread { background: rgba(16,185,129,0.04); }
.notif-icon { font-size: 16px; margin-top: 2px; }
.notif-body { flex: 1; }
.notif-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }


/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST DEEP OPTIMIZATION (May 2026)
   Touch targets ≥44px, fluid typography, safe areas, performance
   ══════════════════════════════════════════════════════════════ */

/* ── 1. FLUID TYPOGRAPHY ──
   Uses clamp() for smooth scaling between 375px and 1440px viewports.
   No sudden jumps at breakpoints. */
@media (max-width: 1024px) {
  .section-title {
    font-size: clamp(1rem, 4vw, 1.25rem); /* 16px → 20px */
  }
  .card-value {
    font-size: clamp(1.25rem, 5vw, 1.75rem); /* 20px → 28px */
  }
  .topbar-title {
    font-size: clamp(0.875rem, 3.5vw, 1.125rem); /* 14px → 18px */
  }
  .module-title {
    font-size: clamp(0.8125rem, 3vw, 0.875rem); /* 13px → 14px */
  }
  .live-hero-title {
    font-size: clamp(1rem, 4vw, 1.25rem); /* 16px → 20px */
  }
  .live-day-date {
    font-size: clamp(1.125rem, 4.5vw, 1.375rem); /* 18px → 22px */
  }
}

/* ── 2. TOUCH TARGET OPTIMIZATION ──
   All interactive elements guaranteed ≥44×44px on mobile.
   Uses padding to expand hit area without bloating visual size. */
@media (max-width: 768px) {
  /* Buttons & filters */
  .community-tag-btn,
  .community-filter,
  .members-filter,
  .res-filter {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Feed action buttons */
  .feed-action {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Sidebar nav links */
  .sidebar-nav li a {
    min-height: 44px;
    padding: 12px 20px;
  }

  /* Bottom nav items (expanded for thumb reach) */
  .bottom-nav-item {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 6px;
  }

  /* Calendar nav buttons */
  .calendar-nav button {
    width: 44px;
    height: 44px;
  }

  /* General tappable cards */
  .member-card,
  .live-recording-item,
  .resource-card,
  .res-card {
    min-height: 44px;
  }

  /* Smart chat input send button */
  .smart-chat-input button {
    width: 44px;
    height: 44px;
  }

  /* Smart chat header buttons */
  .smart-chat-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }
}

/* ── 3. BOTTOM NAV ENHANCEMENT ──
   Better labels, spacing, and safe-area-inset-bottom for notched phones. */
@media (max-width: 768px) {
  .bottom-nav {
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bottom-nav-inner {
    max-width: 100%;
    padding: 0 4px;
  }

  .bottom-nav-item {
    gap: 3px;
    font-size: 10px;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
  }

  .bottom-nav-item i {
    font-size: 20px;
  }

  .bottom-nav-item.active {
    color: var(--accent);
    background: var(--accent-soft);
  }

  .bottom-nav-item span {
    display: block;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── 4. CARD OPTIMIZATION ──
   Better padding and margins on small screens. */
@media (max-width: 768px) {
  .card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .card-header {
    margin-bottom: 12px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .card-value {
    font-size: 22px;
  }

  .card-label {
    font-size: 11px;
  }

  /* Reduce gap between stat cards */
  .grid-4 {
    gap: 10px;
  }
}

/* ── 5. MODULE CARDS — HORIZONTAL LAYOUT ON MOBILE ──
   Switch from vertical to horizontal card layout on small screens
   with smaller thumbnails for better scanning. */
@media (max-width: 768px) {
  .module-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
  }

  .module-thumb {
    width: 100px;
    min-width: 100px;
    height: auto;
    min-height: 100px;
  }

  .module-body {
    padding: 12px;
    flex: 1;
    min-width: 0;
  }

  .module-title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .module-desc {
    font-size: 11px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .module-week {
    font-size: 9px;
    padding: 2px 8px;
    margin-bottom: 6px;
  }

  .module-meta {
    font-size: 10px;
    gap: 8px;
  }

  /* Play button adjustments for horizontal layout */
  .module-play {
    width: 28px;
    height: 28px;
    font-size: 12px;
    right: 8px;
    bottom: 8px;
  }
}

/* ── 6. LEADERBOARD — SIMPLIFIED MOBILE LAYOUT ──
   Single-column with no overflow issues. */
@media (max-width: 768px) {
  #leaderboard-layout {
    grid-template-columns: 1fr !important;
  }

  .leaderboard-hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
  }

  .lb-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .lb-info h3 {
    font-size: 16px;
  }

  .lb-progress-wrap {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lb-entry {
    gap: 8px;
    padding: 10px 0;
  }

  .lb-user-name {
    font-size: 12px;
  }

  .lb-score {
    font-size: 12px;
    white-space: nowrap;
  }

  .lb-card {
    padding: 14px;
  }

  .lb-card-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* Levels and earn cards */
  .levels-card,
  .earn-card {
    padding: 16px;
  }

  .earn-row {
    font-size: 12px;
    padding: 8px 0;
  }
}

/* ── 7. COMMUNITY POSTS — BETTER TOUCH INTERACTIONS ──
   Larger tap areas, better spacing for mobile reading. */
@media (max-width: 768px) {
  .community-post,
  .feed-post {
    padding: 14px;
    margin-bottom: 10px;
  }

  .feed-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .feed-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .feed-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .feed-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  /* Category filter buttons — horizontal scroll on mobile */
  #community-category-btns {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  #community-category-btns::-webkit-scrollbar { display: none; }
  #community-category-btns .community-tag-btn {
    flex-shrink: 0;
  }

  /* Reply inputs — full width with proper sizing */
  #feed-container input[id^="reply-"] {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 10px 12px;
  }
}

/* ── 8. SMART TEAM CHAT — FULL-SCREEN ON MOBILE ──
   Full viewport with proper safe area padding. */
@media (max-width: 768px) {
  .smart-chat {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
    border-radius: 0 !important;
    z-index: 200 !important;
  }

  .smart-chat-header {
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .smart-chat-input {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .smart-chat-input input {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 12px 16px;
  }

  .smart-agent-bar {
    padding: 6px 8px;
  }

  .smart-agent-tab {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  /* FAB position above bottom nav */
  .smart-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .smart-selector {
    bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    right: 12px;
  }
}

/* ── 9. TOPBAR — COMPACT MOBILE VERSION ──
   Essential actions only, no overflow. */
@media (max-width: 768px) {
  .topbar {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-title {
    font-size: 15px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-right {
    gap: 8px;
  }

  .topbar-notif {
    width: 40px;
    height: 40px;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    -webkit-tap-highlight-color: transparent;
  }
}

/* ── 10. REDUCED MOTION — Component-specific overrides ──
   Generic * selector is already defined at the top of this file.
   These are additional specific overrides for components with
   persistent animations or hover transforms. */
@media (prefers-reduced-motion: reduce) {
  .smart-fab,
  .yl-pin,
  .live-pulse,
  .module-placeholder::after,
  .eli-fab {
    animation: none !important;
  }

  .module-card:hover,
  .card:hover {
    transform: none !important;
  }
}

/* ── 11. SMALL SCREEN (≤375px) — iPhone SE, Galaxy S Mini ──
   Extra compact adjustments for very small screens. */
@media (max-width: 375px) {
  .content {
    padding: 12px;
    padding-bottom: 80px;
  }

  .section-title {
    font-size: 15px;
  }

  .card {
    padding: 12px;
  }

  .card-value {
    font-size: 18px;
  }

  /* Module cards: stack vertically on tiny screens */
  .module-card {
    flex-direction: column;
  }

  .module-thumb {
    width: 100%;
    min-width: unset;
    height: 100px;
  }

  /* Bottom nav: tighter spacing */
  .bottom-nav-item {
    padding: 6px 4px;
    font-size: 9px;
  }

  .bottom-nav-item i {
    font-size: 18px;
  }

  /* Live session hero */
  .live-hero {
    padding: 16px;
  }

  .live-hero-title {
    font-size: 15px;
  }

  .live-countdown {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Leaderboard compact */
  .lb-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .leaderboard-hero {
    padding: 14px;
  }

  /* Login card */
  .login-card {
    padding: 24px 16px;
  }

  .login-title {
    font-size: 20px;
  }

  /* Resource cards */
  .res-card {
    padding: 14px;
  }

  .res-icon-lg {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Members toolbar */
  .members-toolbar {
    gap: 8px;
  }

  .members-search {
    min-width: unset;
    width: 100%;
  }
}

/* ── 12. LANDSCAPE PHONE ──
   Prevent layout breaking when users rotate their phone. */
@media (max-width: 896px) and (orientation: landscape) {
  .content {
    padding: 12px 20px;
    padding-bottom: 72px;
  }

  .topbar {
    height: 48px;
  }

  /* Bottom nav: more compact in landscape */
  .bottom-nav {
    padding: 2px 0 calc(2px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav-item {
    flex-direction: row;
    gap: 4px;
    font-size: 10px;
  }

  .bottom-nav-item i {
    font-size: 16px;
  }

  /* Smart chat: landscape-optimized */
  .smart-chat {
    height: 100vh !important;
    height: 100dvh !important;
  }

  /* Module cards: horizontal row in landscape */
  .module-card {
    flex-direction: row;
  }

  .module-thumb {
    width: 120px;
    min-width: 120px;
    height: auto;
  }

  /* Map: shorter in landscape */
  .map-container {
    height: 250px !important;
    min-height: 200px;
  }

  /* Sidebar: scrollable within viewport */
  .sidebar.open {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
  }

  /* Grid: 2-column in landscape */
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ── 13. VIDEO PLAYER — RESPONSIVE ASPECT RATIO ──
   Maintains 16:9 aspect ratio for embedded videos. */
.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}

.video-responsive video,
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* ── 14. TABLES — HORIZONTAL SCROLL WRAPPER ──
   Prevents data tables from overflowing on mobile. */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.table-scroll::-webkit-scrollbar {
  height: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.table-scroll table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
}

/* ── 15. FORMS/INPUTS — PREVENT ZOOM ON iOS ──
   iOS Safari zooms on inputs with font-size < 16px.
   Ensure all interactive inputs are at least 16px on mobile. */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Compensate for potentially larger inputs */
  .input-group input {
    padding: 14px 16px;
  }

  .topbar-search input {
    font-size: 16px !important;
  }

  /* Announcement composer */
  #announce-text,
  #announce-category {
    font-size: 16px !important;
  }

  /* Community post input */
  #community-post-input {
    font-size: 16px !important;
    min-height: 60px;
  }
}

/* ── MOBILE SIDEBAR OVERLAY FIX ──
   Ensure sidebar overlay covers full viewport on mobile. */
@media (max-width: 768px) {
  .sidebar-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    -webkit-tap-highlight-color: transparent;
  }

  .sidebar.open {
    z-index: 200;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
  }
}

/* ── SAFE AREA SUPPORT FOR NOTCHED DEVICES ──
   Additional safe area insets for content areas. */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .content {
      padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .login-page {
      padding: 20px;
      padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
  }
}

/* ── 16. GUIDED ONBOARDING TOUR ── */
.yla-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9990;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.yla-tour-overlay.show {
  opacity: 1;
}
.yla-tour-highlight {
  position: relative !important;
  z-index: 9995 !important;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.2), 0 0 20px var(--accent) !important;
  pointer-events: none !important;
  transition: box-shadow 0.3s ease !important;
}
.yla-tour-popover {
  position: absolute;
  z-index: 10000;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 320px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(16, 185, 129, 0.1);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, top 0.3s ease, left 0.3s ease;
  pointer-events: auto;
}
.yla-tour-popover.show {
  opacity: 1;
  transform: scale(1);
}
.yla-tour-popover::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #111a2e;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transform: rotate(45deg);
  display: none;
}
/* Placement arrows */
.yla-tour-popover.placement-right::after {
  display: block;
  left: -7px;
  top: 24px;
  border-top: none;
  border-right: none;
}
.yla-tour-popover.placement-left::after {
  display: block;
  right: -7px;
  top: 24px;
  border-bottom: none;
  border-left: none;
}
.yla-tour-popover.placement-bottom::after {
  display: block;
  top: -7px;
  left: 24px;
  border-bottom: none;
  border-right: none;
}
.yla-tour-popover.placement-top::after {
  display: block;
  bottom: -7px;
  left: 24px;
  border-top: none;
  border-left: none;
}

@media (max-width: 768px) {
  .yla-tour-popover {
    position: fixed !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px !important;
    right: 16px !important;
    width: calc(100% - 32px) !important;
    transform: translateY(32px) scale(0.98);
    box-shadow: 0 -10px 32px rgba(0,0,0,0.5);
  }
  .yla-tour-popover.show {
    transform: translateY(0) scale(1);
  }
  .yla-tour-popover::after {
    display: none !important;
  }
}

