:root {
  --primary: #0066cc;
  --primary-dark: #004d99;
  --primary-light: #e6f0fa;
  --secondary: #00a651;
  --accent: #ff6b00;
  --text-primary: #1a1a2e;
  --text-secondary: #5a5a6e;
  --text-muted: #8a8a9a;
  --bg-white: #ffffff;
  --bg-light: #f8f9fc;
  --bg-dark: #0a1628;
  --border: #e2e4e9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.map-page { background: var(--bg-dark); overflow: hidden; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TASKBAR ===== */
#top-taskbar {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 60px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 2000;
  box-shadow: var(--shadow-sm);
}

.taskbar-brand { display: flex; align-items: center; gap: 12px; }
.taskbar-brand img { height: 36px; width: 36px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--primary); letter-spacing: -0.5px; text-decoration: none; }
.brand-name:hover { text-decoration: none; }
.brand-tagline { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.taskbar-nav { display: flex; gap: 4px; }
.nav-item {
  padding: 8px 14px; font-size: 14px; font-weight: 500;
  cursor: pointer; border-radius: var(--radius-sm);
  color: var(--text-secondary); transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.nav-item.active { background: var(--primary); color: white; }
.nav-item.active:hover { background: var(--primary-dark); }
.nav-icon { width: 18px; height: 18px; opacity: 0.8; flex-shrink: 0; }
.nav-register { background: var(--secondary); color: white; }
.nav-register:hover { background: #008a44; color: white; }

/* Role badges */
.role-badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 700; }
.role-user { background: #f1f5f9; color: #64748b; }
.role-trusted { background: #dcfce7; color: #16a34a; }
.role-moderator { background: #dbeafe; color: #1d4ed8; }
.role-admin { background: #fce7f3; color: #9d174d; }

/* Dropdown */
.nav-dropdown { position: relative; }
.user-nav-btn { cursor: pointer; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--bg-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.2s ease; z-index: 3000;
  border: 1px solid var(--border);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 16px; border: none; background: none;
  font-size: 13px; font-family: inherit; color: var(--text-primary);
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-light); text-decoration: none; }
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-item.mod-link { color: var(--primary); }
.dropdown-item.danger-item { color: #dc2626; }
.dropdown-item.danger-item:hover { background: #fef2f2; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.taskbar-status { display: flex; align-items: center; gap: 8px; }

/* ===== MAIN CONTENT ===== */
#main-content {
  margin-top: 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; width: 100%; }
.page-container.wide { max-width: 1400px; }

/* ===== MAP PAGE ===== */
body.map-page #main-content { margin-top: 60px; height: calc(100vh - 60px); }
#map-container { width: 100%; height: 100%; }
#map { width: 100%; height: 100%; }

/* Map sidebar */
#map-sidebar {
  position: fixed; top: 72px; left: 12px;
  width: 340px; max-height: calc(100vh - 84px);
  background: var(--bg-white); z-index: 1500;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#map-sidebar.hidden { transform: translateX(-360px); opacity: 0; pointer-events: none; }
.sidebar-header { padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg-light); }
.sidebar-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.sidebar-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.sidebar-body { padding: 16px; overflow-y: auto; flex: 1; }
.sidebar-toggle {
  position: fixed; top: 72px; left: 12px; z-index: 1600;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px;
  box-shadow: var(--shadow-md); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  transition: var(--transition);
}
.sidebar-toggle:hover { background: var(--primary-light); color: var(--primary); }

/* Map cluster stats */
.map-stats-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(10,22,40,0.85); color: white;
  padding: 10px 20px; border-radius: 30px;
  font-size: 12px; font-weight: 500; z-index: 1400;
  display: flex; gap: 16px; align-items: center;
  backdrop-filter: blur(8px);
}
.map-stats-bar span { display: flex; align-items: center; gap: 6px; }
.stats-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }

/* ===== HERO / SEARCH BAR ===== */
.hero { background: var(--bg-dark); padding: 48px 24px 40px; text-align: center; }
.hero h1 { color: white; font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.hero p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 24px; }
.hero-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.hero-search input {
  flex: 1; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md); background: rgba(255,255,255,0.08);
  color: white; font-size: 15px; font-family: inherit;
  transition: var(--transition);
}
.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search input:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.12); }
.hero-search button { padding: 14px 22px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.hero-search button:hover { background: var(--primary-dark); }
.hero-stats { display: flex; gap: 32px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 28px; font-weight: 700; color: white; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* ===== CARDS / GRID ===== */
.section-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); text-decoration: none; }
.card-thumb { aspect-ratio: 16/10; background: var(--bg-light); overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f0fb 0%, #d4e3f5 100%);
}
.card-thumb-placeholder svg { width: 48px; height: 48px; color: #a0b4cc; opacity: 0.7; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.card-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag-lattice { background: #fef3c7; color: #92400e; }
.tag-monopole { background: #dbeafe; color: #1e40af; }
.tag-rooftop { background: #f3e8ff; color: #6b21a8; }
.tag-guyed { background: #dcfce7; color: #14532d; }
.tag-tower { background: #fee2e2; color: #991b1b; }
.tag-pylon { background: #ffedd5; color: #9a3412; }
.tag-other { background: #f1f5f9; color: #475569; }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg-light); font-size: 12px; color: var(--text-muted); }
.card-footer .photo-count { display: flex; align-items: center; gap: 4px; }

/* ===== MAST DETAIL ===== */
.mast-detail-header { background: var(--bg-dark); padding: 40px 24px; }
.mast-detail-header h1 { color: white; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.mast-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.mast-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.mast-breadcrumb a:hover { color: white; }
.mast-meta-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-pill { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.detail-main {}
.detail-sidebar { position: sticky; top: 80px; }

.info-card { background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 20px; }
.info-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg-light); font-weight: 700; font-size: 14px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.info-card-body { padding: 20px; }
.info-table { width: 100%; }
.info-table tr td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.info-table tr:last-child td { border-bottom: none; }
.info-table td:first-child { color: var(--text-muted); font-weight: 600; width: 40%; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; padding-right: 12px; }

/* ===== PHOTO GALLERY ===== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-item { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; background: var(--bg-light); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-item:hover img { transform: scale(1.05); }
.photo-item .photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%); opacity: 0; transition: opacity 0.2s ease; display: flex; align-items: flex-end; padding: 10px; }
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-caption { font-size: 11px; color: white; font-weight: 500; }
.photo-primary-badge { position: absolute; top: 8px; left: 8px; background: var(--primary); color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.1); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 12px; text-align: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: white; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== MAP MINI ===== */
.mini-map { height: 220px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-light); }

/* ===== FORMS ===== */
.form-card { background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 32px; max-width: 520px; }
.form-card.wide { max-width: 800px; }
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.form-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-label .required { color: #dc2626; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; transition: var(--transition);
  background: var(--bg-white); color: var(--text-primary);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-light); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--secondary); color: white; }
.btn-success:hover { background: #008a44; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; }
.btn-icon svg { width: 16px; height: 16px; }

/* ===== ALERTS / FLASH MESSAGES ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 32px; }
.page-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text-secondary); background: var(--bg-white); text-decoration: none; transition: var(--transition); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ===== SEARCH / FILTER BAR ===== */
.filter-bar { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; box-shadow: var(--shadow-sm); }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.filter-group .form-input, .filter-group .form-select { padding: 9px 12px; font-size: 13px; }
.filter-group.flex-1 { flex: 1; min-width: 200px; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; transition: var(--transition);
  cursor: pointer; background: var(--bg-light);
}
.upload-zone:hover, .upload-zone.dragging { border-color: var(--primary); background: var(--primary-light); }
.upload-zone svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 12px; }
.upload-zone p { font-size: 15px; color: var(--text-secondary); }
.upload-zone span { font-size: 12px; color: var(--text-muted); }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.upload-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb-remove { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 240px; background: var(--bg-dark); flex-shrink: 0; padding: 24px 0; }
.admin-sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.3); padding: 0 20px 8px; margin-top: 16px; }
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); transition: var(--transition); text-decoration: none; }
.admin-nav-link:hover { color: white; background: rgba(255,255,255,0.08); text-decoration: none; }
.admin-nav-link.active { color: white; background: var(--primary); }
.admin-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-content { flex: 1; padding: 32px; overflow-y: auto; }
.admin-page-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.admin-page-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card-value { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th { padding: 13px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg-light); border-bottom: 1px solid var(--border); text-align: left; }
.data-table td { padding: 14px 16px; font-size: 13px; color: var(--text-primary); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }
.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== PHOTO REVIEW (MODERATION) ===== */
.review-card { background: var(--bg-white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.review-card-img { aspect-ratio: 16/10; background: var(--bg-light); }
.review-card-img img { width: 100%; height: 100%; object-fit: cover; }
.review-card-body { padding: 16px; }
.review-card-meta { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.review-card-actions { display: flex; gap: 8px; }

/* Status badges */
.status-badge { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-active { background: #dcfce7; color: #166534; }
.status-banned { background: #fee2e2; color: #991b1b; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-dark); padding: 32px 24px; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 32px; object-fit: contain; }
.footer-brand-name { font-weight: 700; font-size: 16px; color: white; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-meta { font-size: 12px; color: rgba(255,255,255,0.3); text-align: right; }
.footer-meta a { color: rgba(255,255,255,0.5); }
.footer-meta p { margin-bottom: 4px; }

/* ===== LOGIN / REGISTER ===== */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2d4a 50%, var(--bg-dark) 100%); padding: 40px 24px; }
.auth-box { background: var(--bg-white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 60px; margin-bottom: 12px; }
.auth-logo h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.auth-logo p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.auth-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===== EMPTY STATES ===== */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state svg { width: 56px; height: 56px; opacity: 0.3; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ===== CONTRIBUTOR PROFILE ===== */
.profile-header { background: var(--bg-dark); padding: 40px 24px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 24px; margin-bottom: 12px; }
.profile-name { color: white; font-size: 24px; font-weight: 700; }
.profile-meta { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 4px; }
.trust-progress { background: rgba(255,255,255,0.1); border-radius: 10px; height: 6px; width: 200px; margin-top: 10px; }
.trust-progress-fill { height: 100%; background: var(--secondary); border-radius: 10px; transition: width 0.5s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #top-taskbar { padding: 0 12px; }
  .brand-tagline { display: none; }
  .taskbar-nav .nav-item span { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
  .admin-nav-link { flex-shrink: 0; border-radius: var(--radius-sm); }
  .admin-content { padding: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .hero-stats { gap: 20px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.spinner-sm { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* MapLibre popup custom */
.maplibregl-popup-content { padding: 0 !important; border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-lg) !important; font-family: 'Inter', sans-serif !important; overflow: hidden; min-width: 280px; }
.maplibregl-popup-close-button { font-size: 18px !important; padding: 10px !important; color: var(--text-muted) !important; }
.maplibregl-popup-close-button:hover { background: var(--bg-light) !important; }
.maplibregl-ctrl-bottom-right { display: none !important; }

.map-popup-inner { padding: 16px; }
.map-popup-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.map-popup-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.map-popup-btn { display: block; padding: 9px 14px; background: var(--primary); color: white; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.map-popup-btn:hover { background: var(--primary-dark); text-decoration: none; }
