/* ===================================
   GreenPoints - Professional CSS
   Matching Next.js Design 100%
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary: #1B5E20;
  --primary-light: #2E7D32;
  --primary-dark: #0D3311;
  --accent: #8BC34A;
  --accent-light: #AED581;
  --green-lime: #CDDC39;
  --background: #F0F9F0;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --secondary: #E8F5E9;
  --secondary-foreground: #1B5E20;
  --destructive: #dc2626;
  --radius: 1rem;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --sidebar-bg: #1B5E20;
  --sidebar-hover: #2E7D32;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --danger: #DC2626;
  --warning: #D97706;
  --info: #0284C7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.9; }
img { max-width: 100%; }

/* Hero Background */
.hero-bg {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.header-transparent {
  background: transparent;
}

.header-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
}

.header-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

@media (min-width: 1024px) {
  .header-nav { height: 80px; padding: 0 2rem; }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* تصغير الشعار على الجوال فقط - سطح المكتب يأخذ القيم من inline style */
@media (max-width: 768px) {
  .logo-icon { width: 48px !important; height: 58px !important; padding: 4px !important; border-radius: 9px !important; }
  .logo-text { font-size: 1rem; }
  .logo { gap: 0.5rem; }
}

@media (max-width: 480px) {
  .logo-icon { width: 42px !important; height: 52px !important; padding: 4px !important; border-radius: 8px !important; }
  .logo-text { font-size: 0.9rem; }
  .logo-subtext { font-size: 0.55rem; }
}

.logo-text { font-size: 1.25rem; font-weight: 900; }
.logo-text-light { color: white; }
.logo-text-dark { color: var(--primary); }

.logo-subtext {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Navigation */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link-light { color: rgba(255, 255, 255, 0.9); }
.nav-link-light:hover { color: white; background: rgba(255, 255, 255, 0.1); }
.nav-link-dark { color: var(--foreground); }
.nav-link-dark:hover { color: var(--primary); background: var(--secondary); }

/* Auth Buttons */
.auth-buttons {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .auth-buttons { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
}

.btn-outline-light {
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: white; }

.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
}
.btn-outline-primary:hover { background: var(--secondary); }

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}
.btn-accent:hover { opacity: 0.9; color: white; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { opacity: 0.9; color: white; }

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-xl);
}
.btn-white:hover { transform: scale(1.02); }

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); color: white; }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 1rem; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-success { background: #16a34a; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }

/* Mobile Toggle */
.mobile-toggle {
  display: block;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
}

.mobile-toggle-dark { color: var(--foreground); }

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active { display: block; }

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover { background: var(--secondary); color: var(--primary); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-blob-1 {
  top: 5rem;
  left: 2.5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(255, 255, 255, 0.05);
}

.hero-blob-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(205, 220, 57, 0.1);
}

.hero-blob-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.03);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-container {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1rem 5rem;
}

@media (min-width: 1024px) {
  .hero-container { padding: 6rem 2rem 5rem; }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-content {
  color: white;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content { text-align: right; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-badge svg { width: 1rem; height: 1rem; color: var(--green-lime); }

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-title-gradient {
  background: linear-gradient(135deg, #8BC34A, #CDDC39);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
  .hero-description { margin: 0 0 2rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }
@media (min-width: 1024px) { .hero-buttons { justify-content: flex-start; } }

.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.hero-stat-value { font-size: 1.5rem; font-weight: 900; color: white; }
.hero-stat-label { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); margin-top: 0.25rem; }

.hero-illustration {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-illustration { justify-content: flex-end; }
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.hero-image {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: 1rem;
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-floating-card-top { top: -1rem; right: -1rem; }
.hero-floating-card-bottom { bottom: -1rem; left: -1rem; }

.hero-floating-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-icon svg { width: 1rem; height: 1rem; color: white; }
.hero-floating-text { color: white; font-size: 0.75rem; font-weight: 700; }
.hero-floating-subtext { color: rgba(255, 255, 255, 0.7); font-size: 0.625rem; }

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg { width: 100%; display: block; }

/* ==========================================
   SECTIONS
   ========================================== */
.section { padding: 5rem 0; }
.section-alt { background: var(--card); }
.section-green { background: rgba(232, 245, 233, 0.5); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-badge svg { width: 1rem; height: 1rem; }

.section-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }

.section-description {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-grid { gap: 1.5rem; } }

.stat-card {
  position: relative;
  background: var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(27, 94, 32, 0.3);
  box-shadow: var(--shadow-xl);
}

.stat-card-bg {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.stat-card:hover .stat-card-bg { opacity: 0.2; }

.stat-icon {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.stat-icon svg { width: 1.75rem; height: 1.75rem; }

.stat-value { font-size: 1.875rem; font-weight: 900; }
.stat-suffix { font-size: 1.25rem; }
.stat-label { color: var(--muted-foreground); font-weight: 500; margin-top: 0.25rem; font-size: 0.875rem; }

/* ==========================================
   MAP SECTION
   ========================================== */
.map-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) { .map-grid { grid-template-columns: 3fr 2fr; } }

.map-visualization {
  position: relative;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  min-height: 460px;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.map-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1B5E20;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.map-pin:hover { transform: translate(-50%, -50%) scale(1.1); }
.map-pin.active { transform: translate(-50%, -50%) scale(1.25); z-index: 20; }

.map-pin-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid white;
  transition: all 0.2s ease;
}

.map-pin-icon.open { background: var(--primary); color: white; }
.map-pin-icon.closed { background: white; border-color: var(--primary); color: var(--primary); opacity: 0.6; }
.map-pin-icon svg { width: 1.25rem; height: 1.25rem; }

.map-pin-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.map-legend {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  box-shadow: var(--shadow);
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.map-legend-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-legend-dot.open { background: var(--primary); }
.map-legend-dot.closed { border: 2px solid rgba(27, 94, 32, 0.4); }

/* Location List & Card */
.location-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
  padding-left: 0.25rem;
}

.location-item {
  width: 100%;
  text-align: right;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s ease;
}

.location-item:hover { border-color: rgba(27, 94, 32, 0.3); background: rgba(232, 245, 233, 0.5); }
.location-item.active { background: rgba(27, 94, 32, 0.1); border-color: var(--primary); color: var(--primary); }

.location-card {
  flex: 1;
  background: var(--card);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.location-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.location-card-title { font-weight: 900; font-size: 1.125rem; color: var(--foreground); line-height: 1.3; }

.location-status {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.location-status.open { background: #E8F5E9; color: #2E7D32; }
.location-status.closed { background: #FFEBEE; color: #C62828; }

.location-card-info { margin-bottom: 1rem; }

.location-card-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
}

.location-card-info-item svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.125rem; color: var(--primary); }

.location-card-types { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }

.location-type-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.location-type-tag.plastic { background: #E3F2FD; color: #1565C0; }
.location-type-tag.glass { background: #E0F7FA; color: #00838F; }
.location-type-tag.paper { background: #FFF8E1; color: #F57F17; }
.location-type-tag.metal { background: #F5F5F5; color: #616161; }
.location-type-tag.electronics { background: #F3E5F5; color: #7B1FA2; }
.location-type-tag.default { background: #E8F5E9; color: #2E7D32; }

.location-card-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  transition: opacity 0.2s ease;
}

.location-card-button:hover { opacity: 0.9; }
.location-card-button svg { width: 1.25rem; height: 1.25rem; }

/* ==========================================
   ARTICLES SECTION
   ========================================== */
.articles-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .articles-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.articles-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.articles-link:hover { gap: 0.75rem; }
.articles-link svg { width: 1rem; height: 1rem; }

.articles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background: var(--card);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-card:hover { border-color: rgba(27, 94, 32, 0.3); box-shadow: var(--shadow-xl); }

.article-image {
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-image-icon {
  position: relative;
  font-size: 3rem;
  opacity: 0.3;
}

.article-category {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.article-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  gap: 0.75rem;
}

.article-title {
  font-weight: 900;
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.article-card:hover .article-title { color: var(--primary); }

.article-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.article-author { display: flex; align-items: center; gap: 0.5rem; }

.article-author-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.article-author-name { font-size: 0.75rem; font-weight: 500; color: var(--foreground); }

.article-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.article-info-item { display: flex; align-items: center; gap: 0.25rem; }
.article-info-item svg { width: 0.875rem; height: 0.875rem; }

/* ==========================================
   PARTNERS SECTION
   ========================================== */
.partners-section { overflow: hidden; }

.partners-scroll {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
  width: 100%;
  direction: ltr;
  /* تدرج شفاف عند الحواف لمظهر احترافي */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners-track {
  display: flex;
  direction: ltr;
  width: max-content;
  animation: partnersScroll 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.partner-card { direction: rtl; }

.partners-track-reverse {
  animation: partnersScrollReverse 45s linear infinite;
}

/* إيقاف الحركة عند التمرير بالماوس فوق الشريط */
.partners-scroll:hover .partners-track {
  animation-play-state: paused;
}

@keyframes partnersScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes partnersScrollReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

.partner-card {
  flex-shrink: 0;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  margin-right: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(27, 94, 32, 0.3); }

.partner-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
}

.partner-info { text-align: right; }
.partner-name { font-weight: 700; font-size: 0.875rem; color: var(--foreground); }
.partner-name-en { font-size: 0.75rem; color: var(--muted-foreground); }

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
  padding: 5rem 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.testimonials-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(60px);
}

.testimonials-blob-1 { top: 0; left: 0; width: 16rem; height: 16rem; transform: translate(-50%, -50%); }
.testimonials-blob-2 { bottom: 0; right: 0; width: 16rem; height: 16rem; transform: translate(50%, 50%); }

.testimonials-container {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) { .testimonials-container { padding: 0 2rem; } }

.testimonials-header { text-align: center; margin-bottom: 3rem; }

.testimonials-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.testimonials-badge svg { width: 1rem; height: 1rem; }

.testimonials-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: white;
}

@media (min-width: 640px) { .testimonials-title { font-size: 2.25rem; } }

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  text-align: center;
}

.testimonial-quote-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-quote-icon svg { width: 1.75rem; height: 1.75rem; color: white; }

.testimonial-text {
  color: white;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 2rem;
}

@media (min-width: 640px) { .testimonial-text { font-size: 1.25rem; } }

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-stars svg { width: 1.25rem; height: 1.25rem; }
.testimonial-stars svg.filled { fill: #FFC107; color: #FFC107; }
.testimonial-stars svg.empty { color: rgba(255, 255, 255, 0.3); }

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
}

.testimonial-name { color: white; font-weight: 900; }
.testimonial-city { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; }

.testimonial-points {
  margin-top: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.25rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.testimonial-nav-btn:hover { background: rgba(255, 255, 255, 0.2); }
.testimonial-nav-btn svg { width: 1.25rem; height: 1.25rem; }

.testimonial-dots { display: flex; gap: 0.5rem; }

.testimonial-dot {
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.testimonial-dot.active { width: 1.5rem; height: 0.625rem; background: white; }
.testimonial-dot.inactive { width: 0.625rem; height: 0.625rem; background: rgba(255, 255, 255, 0.3); }

.testimonial-thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.testimonial-thumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Tajawal', sans-serif;
}

.testimonial-thumb.active { background: white; color: var(--primary); }
.testimonial-thumb.inactive { background: rgba(255, 255, 255, 0.1); color: white; }
.testimonial-thumb.inactive:hover { background: rgba(255, 255, 255, 0.2); }

.testimonial-thumb-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.testimonial-thumb-name { font-size: 0.875rem; font-weight: 500; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: #1B5E20; color: white; }

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-main { grid-template-columns: repeat(4, 1fr); padding: 3.5rem 2rem; } }

.footer-brand { grid-column: span 1; }
@media (min-width: 640px) { .footer-brand { grid-column: span 2; } }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.25rem 0;
}

.footer-contact { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.footer-contact-item svg { width: 1rem; height: 1rem; color: var(--green-lime); flex-shrink: 0; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s ease; }
.footer-contact-item a:hover { color: white; }

.footer-links-title { font-weight: 700; color: white; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.875rem; transition: color 0.2s ease; }
.footer-links a:hover { color: white; }

.footer-newsletter-text { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; margin-bottom: 1rem; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.875rem;
  font-family: 'Tajawal', sans-serif;
}

.footer-newsletter-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-newsletter-input:focus { outline: none; border-color: var(--green-lime); }

.footer-newsletter-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: 'Tajawal', sans-serif;
}

.footer-newsletter-btn:hover { opacity: 0.9; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.footer-social-link {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease;
}

.footer-social-link:hover { background: rgba(255, 255, 255, 0.2); }
.footer-social-link svg { width: 1rem; height: 1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 640px) { .footer-bottom { flex-direction: row; padding: 1.5rem 2rem; } }

.footer-made-with { display: flex; align-items: center; gap: 0.375rem; }
.footer-made-with span { color: var(--green-lime); font-weight: 700; }

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.login-decorations { position: absolute; inset: 0; pointer-events: none; }

.login-blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.login-blob-1 { top: 2.5rem; right: 2.5rem; width: 18rem; height: 18rem; background: rgba(255, 255, 255, 0.05); }
.login-blob-2 { bottom: 2.5rem; left: 2.5rem; width: 14rem; height: 14rem; background: rgba(205, 220, 57, 0.1); }

.login-container { position: relative; width: 100%; max-width: 28rem; }

.login-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  padding: 2rem;
}

.login-logo { display: flex; justify-content: center; margin-bottom: 2rem; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-title { font-size: 1.5rem; font-weight: 900; color: var(--foreground); }
.login-subtitle { color: var(--muted-foreground); margin-top: 0.375rem; font-size: 0.875rem; }

/* Demo Accounts */
.demo-accounts {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--secondary);
  border-radius: 1rem;
}

.demo-accounts-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  text-align: center;
}

.demo-accounts-list { display: flex; flex-direction: column; gap: 0.5rem; }

.demo-account-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  text-align: right;
  padding: 0.625rem 0.75rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Tajawal', sans-serif;
}

.demo-account-btn:hover { border-color: rgba(27, 94, 32, 0.4); background: var(--secondary); }

.demo-account-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-account-info { flex: 1; text-align: right; }
.demo-account-label { font-weight: 600; font-size: 0.75rem; color: var(--foreground); }
.demo-account-email { font-size: 0.625rem; color: var(--muted-foreground); }
.demo-account-action { color: var(--primary); font-size: 0.75rem; }

/* Login Form */
.login-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--destructive);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.form-error svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }

.form-input-wrapper { position: relative; }

.form-input-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted-foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: var(--background);
  transition: all 0.2s ease;
  font-family: 'Tajawal', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.form-input-password { padding-left: 2.75rem; }

.form-toggle-password {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-toggle-password:hover { color: var(--foreground); }
.form-toggle-password svg { width: 1.125rem; height: 1.125rem; }

.login-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow);
  font-family: 'Tajawal', sans-serif;
}

.login-submit:hover { opacity: 0.9; }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.login-submit svg { width: 1.25rem; height: 1.25rem; }

.login-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.login-footer { margin-top: 1.5rem; text-align: center; }
.login-footer p { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.login-footer a { color: var(--primary); font-weight: 700; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

.login-back { text-align: center; margin-top: 1.5rem; }
.login-back a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.875rem; transition: color 0.2s ease; }
.login-back a:hover { color: white; }

/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */
.dashboard-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s ease;
}

.sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo { height: 38px; width: 38px; object-fit: contain; }
.sidebar-brand h2 { font-size: 1rem; font-weight: 800; color: white; }
.sidebar-brand span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }

.sidebar-nav { flex: 1; padding: 1rem 0; }

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.75rem 1.25rem 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-right: 3px solid transparent;
  margin: 0.1rem 0;
  text-decoration: none;
}

.sidebar-nav a:hover { background: var(--sidebar-hover); color: white; }
.sidebar-nav a.active { background: var(--sidebar-hover); color: white; border-right-color: var(--accent); font-weight: 600; }
.sidebar-nav a i { width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-nav .nav-badge { margin-right: auto; background: var(--danger); color: white; font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: 99px; font-weight: 700; }

.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.sidebar-user { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-radius: 8px; }

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); }

/* Main Content */
.main-content { margin-right: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  background: white;
  height: 60px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

.topbar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  color: var(--gray-500);
}

.topbar-toggle:hover { background: var(--gray-100); color: var(--gray-700); }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray-500); }
.breadcrumb a { color: var(--primary); }

.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: none;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  position: relative;
  transition: 0.2s;
}

.topbar-icon-btn:hover { background: var(--gray-100); color: var(--primary); }

.notif-count {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border-radius: 99px;
  font-weight: 700;
}

.page-content { padding: 1.5rem; flex: 1; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-title { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.page-subtitle { font-size: 0.9rem; color: var(--gray-500); margin-top: 0.2rem; }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body { padding: 1.25rem; }

/* Tables */
.table-container {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  overflow-x: auto;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table thead { background: var(--gray-50); }
.data-table th { padding: 0.85rem 1rem; font-weight: 700; color: var(--gray-700); text-align: right; border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
.data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-active, .status-open { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-suspended, .status-inactive, .status-closed { background: #fee2e2; color: #991b1b; }

.points-badge {
  background: var(--secondary);
  color: var(--primary);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
}

.level-badge {
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1023px) {
  .sidebar { width: 0; overflow: hidden; }
  .sidebar.open { width: 260px; }
  .main-content { margin-right: 0; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }

/* ============= DOWNLOAD APP SECTION ============= */
.download-app-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, #0d3818 0%, #1B5E20 50%, #2E7D32 100%);
  overflow: hidden;
  color: white;
}

.download-app-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(139, 195, 74, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(205, 220, 57, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.download-app-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.download-app-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

@media (min-width: 992px) {
  .download-app-wrapper {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }
}

.download-app-content { text-align: center; }

@media (min-width: 992px) {
  .download-app-content { text-align: right; }
}

.download-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 195, 74, 0.2);
  border: 1px solid rgba(139, 195, 74, 0.4);
  color: #CDDC39;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.download-app-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
  text-balance: balance;
}

@media (min-width: 768px) {
  .download-app-title { font-size: 2.75rem; }
}

.download-app-description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 600px;
}

@media (min-width: 992px) {
  .download-app-description { margin: 0 0 2rem 0; }
}

.download-app-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .download-app-features { align-items: flex-end; }
}

.download-app-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
  font-weight: 500;
}

.download-app-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(205, 220, 57, 0.15);
  border: 1px solid rgba(205, 220, 57, 0.3);
  border-radius: 50%;
  color: #CDDC39;
  flex-shrink: 0;
}

.download-app-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .download-app-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .download-app-buttons { justify-content: flex-end; }
}

.download-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: #000;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  text-decoration: none;
  font-family: inherit;
}

.download-app-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(205, 220, 57, 0.5);
}

.download-app-btn:active { transform: translateY(0); }

.download-app-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.download-app-btn-icon svg { width: 100%; height: 100%; }

.download-app-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}

.download-app-btn-small {
  font-size: 0.6875rem;
  opacity: 0.85;
  font-weight: 500;
}

.download-app-btn-large {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.download-app-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.75rem;
}

/* Phone Mockup */
.download-app-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.download-app-phone {
  position: relative;
  width: 240px;
  height: 480px;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}

.download-app-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.download-app-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.download-app-phone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.download-app-phone-logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.25);
  margin-bottom: 0.5rem;
}

.download-app-phone-logo img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

.download-app-phone-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1B5E20;
}

.download-app-phone-subtitle {
  font-size: 0.875rem;
  color: #2E7D32;
  letter-spacing: 1px;
  font-weight: 600;
}

.download-app-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(46, 125, 50, 0.1);
  color: #1B5E20;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.download-app-phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(205, 220, 57, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============= PWA INSTALL MODAL ============= */
.pwa-install-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pwa-install-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pwa-install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.pwa-install-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-install-modal-close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
}

.pwa-install-modal-close:hover {
  background: #eee;
  color: #000;
}

.pwa-install-modal-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
}

.pwa-install-modal-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.pwa-install-modal-title {
  font-size: 1.375rem;
  font-weight: 800;
  text-align: center;
  color: #1B5E20;
  margin-bottom: 0.5rem;
}

.pwa-install-modal-description {
  text-align: center;
  color: #666;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pwa-install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.pwa-install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem;
  background: #F1F8E9;
  border-radius: 12px;
  border: 1px solid rgba(46, 125, 50, 0.1);
}

.pwa-install-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #2E7D32;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.pwa-install-step-text {
  flex: 1;
  font-size: 0.9375rem;
  color: #333;
  line-height: 1.5;
  padding-top: 2px;
}

.pwa-install-step-text strong {
  color: #1B5E20;
  font-weight: 700;
}
