:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --secondary: #f59e0b;
  --dark: #0f172a;
  --dark2: #1e293b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--dark2);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-whatsapp { background: #25d366; color: white; padding: 8px 18px; }
.btn-whatsapp:hover { background: #128c7e; }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #d97706; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 16px; font-size: .85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  color: #a5b4fc;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .9rem;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.15);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--secondary); }
.hero p {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 40px;
}

.search-box {
  background: white;
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  max-width: 750px;
  margin: 0 auto 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  flex-wrap: wrap;
}
.search-box select, .search-box input {
  flex: 1;
  min-width: 150px;
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  background: var(--light-gray);
  outline: none;
}
.search-box .btn { flex-shrink: 0; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}
.hero-stat .num span { color: var(--secondary); }
.hero-stat p { color: #94a3b8; font-size: .9rem; }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-header p { color: var(--gray); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

/* ===== CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .card-img img { transform: scale(1.05); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  gap: 10px;
}
.card-img-placeholder i { font-size: 3rem; }
.card-img-placeholder span { font-size: .9rem; }

.card-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--secondary);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.card-badge.featured { background: var(--primary); }

.card-body { padding: 20px; }
.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: .9rem;
  margin-bottom: 14px;
}
.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}
.card-price span { font-size: .8rem; font-weight: 400; color: var(--gray); }

.card-features {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: .88rem;
}
.card-features span { display: flex; align-items: center; gap: 5px; }
.card-features i { color: var(--primary); }

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-developer { font-size: .85rem; color: var(--gray); }
.card-developer strong { color: var(--dark); }

/* Developer cards */
.developers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.developer-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.developer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.dev-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: var(--primary);
  overflow: hidden;
}
.dev-logo img { width: 100%; height: 100%; object-fit: cover; }
.developer-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.developer-card p { color: var(--gray); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Stats */
.stats-section { background: var(--dark); color: white; padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}
.stat-item .num::after { content: '+'; }
.stat-item p { color: #94a3b8; margin-top: 6px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 450px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 6rem;
}
.about-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.about-content p { color: var(--gray); line-height: 1.9; margin-bottom: 20px; }
.about-points { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-point i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }

/* Project detail page */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 120px 0 60px;
  color: white;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.breadcrumb { display: flex; gap: 10px; color: #94a3b8; font-size: .9rem; align-items: center; }
.breadcrumb a { color: #a5b4fc; }
.breadcrumb i { font-size: .7rem; }

.project-detail { padding: 60px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }

.gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 5rem;
  margin-bottom: 30px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}
.info-item {
  background: var(--light-gray);
  padding: 14px;
  border-radius: var(--radius-sm);
}
.info-item label { display: block; font-size: .8rem; color: var(--gray); margin-bottom: 4px; }
.info-item strong { font-size: 1rem; color: var(--dark); }

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.feature-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: sticky;
  top: 90px;
}
.sticky-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.sticky-price-sub { color: var(--gray); font-size: .9rem; margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
  color: var(--dark);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.contact-form textarea { resize: vertical; min-height: 100px; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 80px 0;
  text-align: center;
  color: white;
}
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; opacity: .85; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--light-gray); }
.btn-outline-white { border: 2px solid white; color: white; background: transparent; }
.btn-outline-white:hover { background: white; color: var(--primary); }

/* Filter bar */
.filter-bar {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--border);
}
.filter-bar select, .filter-bar input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
  color: var(--dark);
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }

/* Footer */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-logo i { color: var(--primary); }
.footer-brand p { line-height: 1.8; margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: white; }

.footer-links h4, .footer-contact h4 { color: white; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-right: 6px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--primary); width: 18px; }
.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
}

/* ===== ADMIN ===== */
.admin-body {
  font-family: 'Cairo', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  direction: rtl;
}
.admin-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 260px;
  height: 100vh;
  background: var(--dark);
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}
.sidebar-brand i { color: var(--primary); font-size: 1.3rem; }

.sidebar-nav { padding: 20px 12px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-label {
  font-size: .75rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 10px;
  margin-bottom: 8px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: .95rem;
  transition: var(--transition);
  margin-bottom: 4px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(99,102,241,.15);
  color: #a5b4fc;
}
.sidebar-nav a.active { color: var(--primary-light); }
.sidebar-nav i { width: 20px; text-align: center; }

.admin-main { margin-right: 260px; min-height: 100vh; }
.admin-header {
  background: white;
  padding: 0 30px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header h1 { font-size: 1.2rem; font-weight: 700; }
.admin-header-actions { display: flex; align-items: center; gap: 14px; }

.admin-content { padding: 30px; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.stat-card-icon.purple { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.amber { background: #fef3c7; color: #d97706; }
.stat-card-icon.green { background: #dcfce7; color: #16a34a; }
.stat-card-icon.red { background: #fee2e2; color: #dc2626; }
.stat-card-num { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card-label { font-size: .85rem; color: var(--gray); margin-top: 4px; }

.card-panel {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-panel-header h2 { font-size: 1rem; font-weight: 700; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: right;
  padding: 12px 16px;
  background: var(--light-gray);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-info { background: var(--primary-light); color: var(--primary); }

.table-actions { display: flex; gap: 8px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--dark2); }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  transition: var(--transition);
  outline: none;
  background: white;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--gray); margin-top: 5px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Login */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: white;
  border-radius: var(--radius);
  padding: 50px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo i { font-size: 3rem; color: var(--primary); display: block; margin-bottom: 12px; }
.login-logo h1 { font-size: 1.6rem; font-weight: 800; }
.login-logo p { color: var(--gray); font-size: .9rem; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray);
}
.upload-area:hover { border-color: var(--primary); color: var(--primary); }
.upload-area i { font-size: 2rem; display: block; margin-bottom: 8px; }
.upload-area span { font-size: .9rem; }

.img-preview-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.img-preview-item {
  position: relative;
  width: 100px; height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-remove {
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(0,0,0,.6);
  color: white;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: .7rem;
  border: none;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 110px 0 50px;
  color: white;
  text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.page-header p { color: #94a3b8; font-size: 1rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}
.empty-state i { font-size: 4rem; display: block; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: .9rem;
  transition: var(--transition);
}
.pagination a:hover, .pagination a.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Back to top */
#backToTop {
  position: fixed;
  bottom: 30px; left: 30px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
  z-index: 200;
}
#backToTop.show { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 70px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; gap: 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .developers-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .search-box { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-main { margin-right: 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
