/* ========================================
   سوريا سر - CSS الرئيسي
   ======================================== */

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

/* ---- المتغيرات ---- */
:root {
  --primary: #29ABE2;
  --primary-dark: #1a8ab5;
  --primary-light: #7FCDEE;
  --primary-xlight: #E0F5FF;
  --secondary: #0077B6;
  --accent: #00C9A7;
  --accent2: #FFB703;
  --white: #ffffff;
  --gray-100: #f8fbfe;
  --gray-200: #EAF6FD;
  --gray-300: #d0e9f7;
  --gray-400: #a0c4d8;
  --gray-600: #5a8fa8;
  --gray-800: #2c4a5a;
  --text-dark: #1a3a4a;
  --text-mid: #3a6070;
  --text-light: #6a9ab0;
  --shadow-sm: 0 2px 12px rgba(41,171,226,0.10);
  --shadow-md: 0 6px 30px rgba(41,171,226,0.15);
  --shadow-lg: 0 12px 50px rgba(41,171,226,0.20);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--gray-100);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--gray-200); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }

/* ==============================
   NAVBAR
============================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(41,171,226,0.12);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar .logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(41,171,226,0.35);
}
.navbar .logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.navbar .logo-text span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-xlight);
  color: var(--primary-dark);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-nav-outline {
  padding: 8px 20px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  background: transparent;
  transition: var(--transition);
}
.btn-nav-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-nav-primary {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(41,171,226,0.35);
}
.btn-nav-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(41,171,226,0.45);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block; width: 26px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ==============================
   HERO SECTION
============================== */
.hero {
  min-height: 92vh;
  background: linear-gradient(145deg, #e0f5ff 0%, #c8edf8 30%, #b0e2f5 60%, #d4f0ff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,0.18) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,0.12) 0%, transparent 70%);
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(41,171,226,0.15);
  border: 1.5px solid rgba(41,171,226,0.3);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.3); }
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}
.hero-title .highlight {
  color: var(--primary);
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; right: 0; left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  border-radius: 3px;
  opacity: 0.5;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 2.2rem;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(41,171,226,0.4);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(41,171,226,0.5);
}
.btn-secondary {
  padding: 13px 28px;
  background: white;
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid var(--primary-light);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  background: var(--primary-xlight);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}
.hero-stat .lbl {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-main {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 340px;
  position: relative;
  z-index: 2;
}
.hero-card-main .card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 1.5rem;
}
.hero-card-main .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
}
.hero-card-main .user-info .name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
}
.hero-card-main .user-info .role {
  font-size: 0.8rem;
  color: var(--text-light);
}
.points-bar-label {
  display: flex; justify-content: space-between; margin-bottom: 6px;
}
.points-bar-label span { font-size: 0.82rem; color: var(--text-mid); font-weight: 600; }
.points-bar-label strong { color: var(--primary); }
.progress-bar {
  height: 10px; background: var(--gray-200); border-radius: 10px; overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 1.5s ease;
}
.badges-row {
  display: flex; gap: 8px; margin-top: 1.2rem; flex-wrap: wrap;
}
.badge-chip {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.badge-chip.blue { background: #E0F5FF; color: var(--primary-dark); }
.badge-chip.green { background: #D4FAF5; color: #00816A; }
.badge-chip.gold { background: #FFF4D4; color: #9a6800; }
.badge-chip.purple { background: #F0E8FF; color: #6B3FA0; }

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
}
.floating-card.top-left { top: -20px; right: -40px; }
.floating-card.bottom-right { bottom: -15px; left: -50px; }
.floating-card .fc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.floating-card.top-left .fc-icon { background: #FFF4D4; }
.floating-card.bottom-right .fc-icon { background: #D4FAF5; }
.floating-card .fc-text .fc-num {
  font-weight: 800; font-size: 1rem; color: var(--text-dark);
}
.floating-card .fc-text .fc-lbl {
  font-size: 0.73rem; color: var(--text-light); font-weight: 600;
}

/* ==============================
   SECTIONS COMMON
============================== */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--gray-200); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  border: 1.5px solid rgba(41,171,226,0.25);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}
.section-title span { color: var(--primary); }
.section-desc {
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==============================
   HOW IT WORKS
============================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.step-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.step-number {
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(41,171,226,0.4);
}
.step-icon {
  width: 72px; height: 72px;
  background: var(--primary-xlight);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.2rem;
}
.step-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ==============================
   PROJECTS SECTION
============================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.8rem;
}
.project-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1.5px solid var(--gray-300);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.project-banner {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.project-banner.edu { background: linear-gradient(135deg, #E0F5FF, #B0E2F5); }
.project-banner.health { background: linear-gradient(135deg, #D4FAF5, #A8EDE5); }
.project-banner.env { background: linear-gradient(135deg, #D4EDDA, #A8D8B8); }
.project-banner.tech { background: linear-gradient(135deg, #F0E8FF, #D4C5F0); }
.project-banner.food { background: linear-gradient(135deg, #FFF4D4, #FFE5A0); }
.project-banner.rebuild { background: linear-gradient(135deg, #FFE8D4, #FFCBA0); }
.project-cat-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  background: rgba(255,255,255,0.85); color: var(--primary-dark);
  backdrop-filter: blur(6px);
}
.project-body { padding: 1.5rem; }
.project-body h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.project-body p {
  font-size: 0.875rem; color: var(--text-mid); line-height: 1.65;
  margin-bottom: 1.2rem;
}
.project-meta {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.project-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.8rem; color: var(--text-light); font-weight: 600;
}
.project-progress-wrap { margin-bottom: 1.2rem; }
.project-progress-header {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-mid); font-weight: 600;
  margin-bottom: 5px;
}
.project-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.points-tag {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary-xlight);
  color: var(--primary-dark);
  padding: 6px 12px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
}
.btn-join {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 10px;
  font-weight: 700; font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(41,171,226,0.3);
}
.btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(41,171,226,0.45);
}
.view-all-wrap { text-align: center; margin-top: 3rem; }

/* ==============================
   LEADERBOARD
============================== */
.leaderboard-wrap {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gray-300);
}
.leaderboard-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 14px; color: white;
}
.leaderboard-header .lh-icon {
  font-size: 1.8rem;
}
.leaderboard-header h3 { font-size: 1.2rem; font-weight: 800; }
.leaderboard-header p { font-size: 0.85rem; opacity: 0.85; }
.leaderboard-item {
  display: flex;
  align-items: center;
  padding: 1.1rem 2rem;
  border-bottom: 1.5px solid var(--gray-200);
  transition: var(--transition);
  gap: 1rem;
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { background: var(--gray-100); }
.leaderboard-item.rank-1 { background: linear-gradient(90deg, #FFF9E0, #FFFFF8); }
.leaderboard-item.rank-2 { background: linear-gradient(90deg, #F5F5F5, #FAFAFA); }
.leaderboard-item.rank-3 { background: linear-gradient(90deg, #FFF0E8, #FFFAF7); }
.rank-badge {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.9rem; flex-shrink: 0;
}
.rank-1 .rank-badge { background: linear-gradient(135deg, #FFD700, #FFA500); color: white; box-shadow: 0 3px 12px rgba(255,165,0,0.4); }
.rank-2 .rank-badge { background: linear-gradient(135deg, #B8C0CC, #8A929E); color: white; }
.rank-3 .rank-badge { background: linear-gradient(135deg, #CD7F32, #A0612A); color: white; }
.rank-other .rank-badge { background: var(--gray-200); color: var(--text-mid); }
.lb-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.lb-info { flex: 1; }
.lb-info .lb-name { font-weight: 800; font-size: 0.95rem; color: var(--text-dark); }
.lb-info .lb-detail { font-size: 0.8rem; color: var(--text-light); font-weight: 600; }
.lb-points {
  text-align: left;
}
.lb-points .pts { font-size: 1.1rem; font-weight: 900; color: var(--primary); }
.lb-points .pts-lbl { font-size: 0.72rem; color: var(--text-light); font-weight: 600; }

/* ==============================
   BADGES SECTION
============================== */
.badges-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.5rem;
}
.badge-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}
.badge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}
.badge-icon-wrap {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1rem;
}
.badge-card h4 { font-size: 0.95rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.badge-card p { font-size: 0.78rem; color: var(--text-light); font-weight: 600; }

/* ==============================
   COMMUNITY SECTION
============================== */
.community-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
.post-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-300);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.post-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1rem;
}
.post-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.post-user .post-name { font-weight: 800; font-size: 0.93rem; color: var(--text-dark); }
.post-user .post-time { font-size: 0.76rem; color: var(--text-light); }
.post-content { font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1rem; }
.post-actions {
  display: flex; gap: 1.2rem; border-top: 1.5px solid var(--gray-200); padding-top: 0.9rem;
}
.post-action-btn {
  display: flex; align-items: center; gap: 6px;
  background: none;
  font-size: 0.83rem; color: var(--text-light); font-weight: 600;
  font-family: inherit;
  padding: 4px 8px; border-radius: 8px;
  transition: var(--transition);
}
.post-action-btn:hover { background: var(--primary-xlight); color: var(--primary-dark); }
.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-300);
  margin-bottom: 1.5rem;
}
.widget-header {
  padding: 1rem 1.4rem;
  background: var(--primary-xlight);
  border-bottom: 1.5px solid var(--gray-300);
  font-weight: 800; font-size: 0.95rem; color: var(--primary-dark);
  display: flex; align-items: center; gap: 8px;
}
.widget-body { padding: 1.2rem 1.4rem; }
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  padding: 5px 13px; border-radius: 50px;
  background: var(--gray-200); color: var(--text-mid);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.tag:hover { background: var(--primary); color: white; }
.online-user {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}
.online-user:last-child { border-bottom: none; }
.online-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; position: relative;
}
.online-dot {
  position: absolute; bottom: 1px; left: 1px;
  width: 10px; height: 10px; background: var(--accent);
  border-radius: 50%; border: 2px solid white;
}
.online-name { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }

/* ==============================
   STATS BAR
============================== */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3rem 2rem;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}
.stat-item {
  text-align: center; color: white;
}
.stat-item .stat-num {
  font-size: 2.4rem; font-weight: 900; display: block;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.stat-item .stat-lbl {
  font-size: 0.88rem; opacity: 0.88; font-weight: 600;
}

/* ==============================
   CTA SECTION
============================== */
.cta-section {
  padding: 5rem 2rem;
  background: linear-gradient(145deg, #e0f5ff, #c2eaf7, #d4f0ff);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,171,226,0.2) 0%, transparent 70%);
}
.cta-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-box h2 {
  font-size: 2rem; font-weight: 900; color: var(--text-dark);
  margin-bottom: 1rem;
}
.cta-box h2 span { color: var(--primary); }
.cta-box p {
  font-size: 1.05rem; color: var(--text-mid); margin-bottom: 2rem;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ==============================
   FOOTER
============================== */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-text-footer {
  font-size: 1.5rem; font-weight: 900; color: white; margin-bottom: 1rem;
}
.footer-brand .logo-text-footer span { color: var(--primary-light); }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 { color: white; font-weight: 800; margin-bottom: 1.2rem; font-size: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); }
.social-links { display: flex; gap: 10px; margin-top: 1.5rem; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: white;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.8rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; }
.footer-bottom .heart { color: #ff6b6b; }

/* ==============================
   MODAL
============================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,35,50,0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-header {
  text-align: center; margin-bottom: 1.8rem;
}
.modal-header .modal-logo {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 6px 20px rgba(41,171,226,0.4);
}
.modal-header h3 { font-size: 1.4rem; font-weight: 900; color: var(--text-dark); }
.modal-header p { font-size: 0.88rem; color: var(--text-light); margin-top: 4px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--gray-100);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  background: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(41,171,226,0.12);
}
.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(41,171,226,0.35);
  margin-top: 0.5rem;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(41,171,226,0.45); }
.modal-close {
  position: absolute; top: 16px; left: 16px;
  width: 34px; height: 34px;
  background: var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
}
.modal-close:hover { background: var(--primary); color: white; }
.modal-box { position: relative; }
.modal-switch { text-align: center; margin-top: 1.2rem; font-size: 0.87rem; color: var(--text-light); }
.modal-switch a { color: var(--primary); font-weight: 700; }

/* ==============================
   VOLUNTEER PROFILE PAGE
============================== */
.profile-hero {
  background: linear-gradient(145deg, #c8edf8, #e0f5ff, #d4f0ff);
  padding: 4rem 2rem 0;
}
.profile-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; gap: 2.5rem; align-items: flex-end;
}
.profile-avatar-wrap {
  position: relative; flex-shrink: 0;
}
.profile-avatar-big {
  width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: white;
  border: 5px solid white;
  box-shadow: 0 8px 30px rgba(41,171,226,0.3);
}
.profile-level-badge {
  position: absolute; bottom: 4px; right: 4px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: white; font-weight: 900;
  border: 3px solid white;
}
.profile-info { flex: 1; padding-bottom: 1.5rem; }
.profile-info h1 { font-size: 2rem; font-weight: 900; color: var(--text-dark); margin-bottom: 6px; }
.profile-info .profile-tagline { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 1rem; }
.profile-info .profile-stats-mini {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.profile-stats-mini .psm-item { text-align: center; }
.psm-num { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.psm-lbl { font-size: 0.75rem; color: var(--text-light); font-weight: 600; }
.profile-tabs {
  background: white; border-bottom: 2px solid var(--gray-300);
  position: sticky; top: 70px; z-index: 100;
}
.profile-tabs .container {
  display: flex; gap: 0;
}
.profile-tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-mid);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-family: inherit;
  display: flex; align-items: center; gap: 6px;
}
.profile-tab-btn:hover { color: var(--primary); }
.profile-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.profile-content { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem; }
.profile-main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.profile-card {
  background: white; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-300); margin-bottom: 1.5rem;
}
.profile-card h3 {
  font-size: 1rem; font-weight: 800; color: var(--text-dark);
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 8px;
}
.profile-card h3 .card-icon {
  width: 30px; height: 30px; background: var(--primary-xlight);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.badges-grid-profile {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem;
}
.badge-item-profile {
  text-align: center; padding: 1.2rem 0.8rem;
  background: var(--gray-100); border-radius: var(--radius-sm);
  transition: var(--transition); border: 2px solid transparent;
}
.badge-item-profile:hover { border-color: var(--primary-light); background: var(--primary-xlight); }
.badge-item-profile .bi-icon { font-size: 2rem; margin-bottom: 6px; }
.badge-item-profile .bi-name { font-size: 0.76rem; font-weight: 700; color: var(--text-mid); }
.badge-item-profile.locked { opacity: 0.4; filter: grayscale(1); }
.activity-list .activity-item {
  display: flex; gap: 12px; padding: 1rem 0;
  border-bottom: 1.5px solid var(--gray-200);
}
.activity-list .activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  background: var(--primary-xlight);
}
.activity-text .at-title { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); }
.activity-text .at-sub { font-size: 0.78rem; color: var(--text-light); }
.points-breakdown { display: flex; flex-direction: column; gap: 0.8rem; }
.points-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--gray-100); border-radius: 10px;
}
.points-item .pi-label { font-size: 0.88rem; font-weight: 600; color: var(--text-mid); }
.points-item .pi-pts { font-weight: 800; color: var(--primary); }

/* ==============================
   COMMUNITY PAGE
============================== */
.community-hero {
  background: linear-gradient(145deg, #e0f5ff, #c8edf8);
  padding: 3.5rem 2rem;
  text-align: center;
}
.community-hero h1 { font-size: 2.2rem; font-weight: 900; color: var(--text-dark); margin-bottom: 0.7rem; }
.community-hero h1 span { color: var(--primary); }
.community-hero p { font-size: 1.05rem; color: var(--text-mid); max-width: 550px; margin: 0 auto 1.8rem; }
.post-composer {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-300); margin-bottom: 1.8rem;
}
.post-composer-top {
  display: flex; gap: 12px; margin-bottom: 1rem; align-items: flex-start;
}
.composer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: white; flex-shrink: 0;
}
.composer-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  font-size: 0.92rem; font-family: inherit; color: var(--text-dark);
  resize: none; background: var(--gray-100); height: 80px;
  transition: var(--transition);
}
.composer-input:focus {
  border-color: var(--primary); background: white;
  outline: none; box-shadow: 0 0 0 4px rgba(41,171,226,0.12);
}
.composer-actions { display: flex; justify-content: flex-end; gap: 10px; }
.community-main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.community-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }

/* ==============================
   PROJECTS PAGE
============================== */
.projects-page-hero {
  background: linear-gradient(145deg, #e0f5ff, #c8edf8);
  padding: 3.5rem 2rem; text-align: center;
}
.projects-page-hero h1 { font-size: 2.2rem; font-weight: 900; color: var(--text-dark); margin-bottom: 0.7rem; }
.projects-page-hero h1 span { color: var(--primary); }
.projects-page-hero p { font-size: 1.05rem; color: var(--text-mid); max-width: 550px; margin: 0 auto; }
.projects-filter-bar {
  background: white; padding: 1.2rem 2rem;
  box-shadow: 0 2px 12px rgba(41,171,226,0.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  position: sticky; top: 70px; z-index: 90;
}
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700;
  background: var(--gray-200); color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
  border: none; font-family: inherit;
}
.filter-tab:hover, .filter-tab.active { background: var(--primary); color: white; }
.search-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-100); border: 1.5px solid var(--gray-300);
  border-radius: 10px; padding: 7px 14px;
}
.search-input-wrap input {
  border: none; background: none; font-size: 0.88rem; font-family: inherit;
  color: var(--text-dark); outline: none; min-width: 180px;
}
.search-input-wrap span { color: var(--text-light); }
.projects-page-content { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; }

/* ==============================
   NOTIFICATION TOAST
============================== */
.toast {
  position: fixed; bottom: 30px; left: 30px;
  background: white; border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 12px;
  z-index: 99999; min-width: 280px;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  border-right: 4px solid var(--primary);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.4rem; }
.toast-text .toast-title { font-weight: 800; font-size: 0.92rem; color: var(--text-dark); }
.toast-text .toast-msg { font-size: 0.8rem; color: var(--text-light); }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { justify-content: flex-start; }
  .community-grid, .community-layout, .profile-main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; right: 0; left: 0;
    background: white; padding: 1rem 2rem;
    box-shadow: 0 8px 20px rgba(41,171,226,0.12);
    gap: 0.5rem;
  }
  .nav-links.open + .nav-actions { display: flex; padding: 0 2rem 1rem; background: white; }
  .hero-container { padding: 3rem 1.5rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .profile-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .projects-filter-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 1.2rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .modal-box { padding: 2rem 1.5rem; }
  .floating-card { display: none; }
}
