/* ============================================
   Tipi OffGolf - Portail
   Branding: Tipi (dark/premium) + OffGolf (pink/mint fun)
   Fonts: Inter + Poppins (from Tipi Golf)
   ============================================ */

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

:root {
  --primary: #1a5c3a;
  --primary-light: #2d8a5e;
  --primary-dark: #0f3d25;
  --pink: #d63384;
  --pink-light: #e85aaa;
  --mint: #5bc5a7;
  --mint-light: #8dd8c0;
  --gold: #c9a84c;
  --bg: #f5f6f8;
  --bg-dark: #141720;
  --bg-darker: #0d0f15;
  --card: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #e1e5eb;
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
}

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

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

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

/* ---- Navbar ---- */
.navbar {
  background: var(--primary);
  color: white;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-tipi {
  height: 24px;
  filter: brightness(0) invert(1);
}

.nav-logo-offgolf {
  height: 32px;
  margin-top: 4px;
}

.nav-brand-separator {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  font-size: 1.2rem;
}

.nav-logo-savi {
  height: 20px;
  margin-left: auto;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.15);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  font-size: 0.85rem;
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  width: 100%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--bg);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-green {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-green:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---- Login ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  background: var(--primary-dark);
}

.login-visual {
  flex: 1;
  background: url('/img/offgolf/OffGolf.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,61,37,0.95) 0%, rgba(15,61,37,0.4) 50%, rgba(15,61,37,0.1) 100%);
}

.login-visual-content {
  position: relative;
  color: white;
}

.login-visual-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-visual-content p {
  color: rgba(255,255,255,0.6);
}

.login-container {
  flex: 0 0 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.login-logo-tipi {
  height: 55px;
}

.login-logo-offgolf {
  height: 45px;
}

.login-header h1 {
  font-size: 1.3rem;
  color: white;
  font-weight: 500;
}

.login-header p {
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.login-help {
  text-align: center;
  margin-top: 1rem;
}

.login-help a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  text-decoration: none;
}

.login-help a:hover {
  color: rgba(255,255,255,0.7);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.required {
  color: var(--error);
}

.login-card .form-group label {
  color: rgba(255,255,255,0.6);
}

.login-card .form-group input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: white;
}

.login-card .form-group input:focus {
  border-color: var(--mint);
  background: rgba(255,255,255,0.1);
}

.login-card .form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,58,0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Alerts ---- */
.alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(231,76,60,0.1);
  color: var(--error);
  border: 1px solid rgba(231,76,60,0.2);
}

/* ---- Dashboard ---- */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-buttons {
  display: flex;
  gap: 0.5rem;
}

.dashboard-header h1 {
  font-size: 1.8rem;
  color: var(--bg-dark);
}

/* ---- Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}

.stat-connected {
  border-top-color: var(--mint);
}

.stat-connected .stat-number {
  color: var(--primary);
}

.stat-pending {
  border-top-color: var(--gold);
}

.stat-pending .stat-number {
  color: var(--gold);
}

.stat-planned {
  border-top-color: var(--pink);
}

.stat-planned .stat-number {
  color: var(--pink);
}

.stat-label {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ---- Sections ---- */
.section-zone {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Centre d'exploration */
.centre-card {
  display: flex;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border-left: 4px solid var(--mint);
  transition: all 0.25s ease;
}

.centre-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.centre-info {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.centre-info h2 {
  font-size: 1.15rem;
  color: var(--bg-dark);
  margin-bottom: 0.3rem;
}

.centre-image {
  flex: 0 0 80px;
  max-height: 155px;
  overflow: hidden;
}

.centre-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Sites Grid ---- */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.site-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  border-left: 4px solid var(--border);
  display: block;
  position: relative;
  overflow: hidden;
}

.site-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to left, rgba(91,197,167,0.04), transparent);
  pointer-events: none;
}

.site-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.site-connected {
  border-left-color: var(--mint);
}

.site-pending {
  border-left-color: var(--gold);
}

.site-planned {
  border-left-color: var(--pink);
}

.site-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.site-connected .site-status-badge {
  color: var(--primary);
}

.site-planned .site-status-badge {
  color: var(--pink);
}

.site-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--bg-dark);
}

.site-city {
  color: var(--text-light);
  font-size: 0.9rem;
}

.site-subnet {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 0.5rem;
  background: rgba(26,92,58,0.06);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.site-savi-logo {
  height: 18px;
  vertical-align: baseline;
  margin-left: 0.3rem;
  position: relative;
  top: -2px;
}

.site-description {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.5rem;
}

.site-notes {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ---- Site Detail ---- */
.back-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary);
}

.site-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.site-detail-header h1 {
  font-size: 2rem;
  color: var(--bg-dark);
}

.status-badge {
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-connected {
  background: rgba(91,197,167,0.15);
  color: var(--primary);
}

.status-pending {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.status-planned {
  background: rgba(214,51,132,0.1);
  color: var(--pink);
}

.info-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: var(--card);
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.info-card:has(.savi-access) {
  background: var(--bg-dark);
}

.savi-arrow {
  display: none;
}

.edit-textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.info-card-notes {
  text-align: left;
  padding: 1.5rem;
}

.info-card h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.info-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.info-card dt {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-light);
}

.info-card dd {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
}

.savi-access {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.savi-arrow {
  color: var(--text-light);
  font-size: 1.4rem;
}

.btn-savi {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(to bottom, #3a3d45, #1a1d25, #0d0f15);
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  transition: all 0.2s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}

.btn-savi img {
  height: 20px;
}

.btn-savi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), inset 0 2px 0 rgba(255,255,255,0.2);
}

.btn-savi:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.3);
}

.site-iframe-container {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.site-iframe-container.hidden {
  display: none;
}

.site-iframe {
  width: 100%;
  height: 75vh;
  border: none;
  display: block;
}

.text-muted {
  color: var(--text-light);
  font-style: italic;
}

.admin-section {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  border-left: 4px solid var(--gold);
}

.admin-section h3 {
  margin-bottom: 1rem;
  color: var(--bg-dark);
  font-size: 0.95rem;
}

.admin-controls {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.toggle-input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-input:checked + .toggle-slider {
  background: var(--error);
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

.btn-savi-maintenance {
  position: relative;
  cursor: not-allowed;
}

.tooltip-maintenance {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #e74c3c;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.tooltip-maintenance::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #e74c3c;
}

.btn-savi-maintenance:hover .tooltip-maintenance {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ---- Docs ---- */
.filter-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.doc-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc-card h3 {
  margin: 0.5rem 0;
  color: var(--bg-dark);
}

.doc-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-light);
}

.cat-tuto { background: rgba(91,197,167,0.12); color: var(--primary); }
.cat-rapport { background: rgba(214,51,132,0.1); color: var(--pink); }
.cat-technique { background: rgba(201,168,76,0.12); color: #8a7030; }

.doc-site {
  font-size: 0.85rem;
  color: var(--text-light);
}

.doc-excerpt {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.6;
  color: var(--text);
}

.doc-card-inner {
  display: flex;
  gap: 1rem;
}

.doc-card-text {
  flex: 1;
  min-width: 0;
}

.doc-card-preview {
  flex: 0 0 80px;
  overflow: hidden;
  border-radius: 6px;
}

.doc-card-preview img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.doc-card-preview:hover img,
.doc-card-preview:hover canvas {
  opacity: 0.85;
}

.pdf-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.doc-download {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: var(--bg);
  border-radius: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.doc-download:hover {
  background: var(--primary);
  color: white;
}

.doc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.doc-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

/* ---- Members ---- */
.members-section {
  margin-top: 1rem;
}

.members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-email {
  color: var(--text-light);
}

.member-role {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-light);
}

.member-role.admin {
  background: rgba(26,92,58,0.1);
  color: var(--primary);
}

.member-actions {
  display: flex;
  gap: 0.3rem;
}

.member-pw-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-radius: 0 0 8px 8px;
  margin-top: -0.3rem;
}

.member-pw-form.hidden {
  display: none;
}

.member-pw-form input {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
}

.btn-edit {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.btn-edit:hover {
  color: var(--primary);
  background: rgba(26,92,58,0.1);
}

.btn-delete {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.btn-delete:hover {
  color: var(--error);
  background: rgba(231,76,60,0.1);
}

.member-access-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-radius: 0 0 8px 8px;
  margin-top: -0.3rem;
  flex-wrap: wrap;
}

.member-access-form.hidden {
  display: none;
}

.access-sites {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.access-checkbox {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.access-checkbox input {
  accent-color: var(--primary);
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(13,15,21,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: var(--bg-dark);
}

/* ---- Error Page ---- */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

.error-page h1 {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.footer strong {
  color: var(--text);
}

/* ---- Burger & Mobile Menu ---- */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.nav-mobile {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    gap: 1rem;
  }

  .nav-links, .nav-user {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .nav-mobile {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 0 0 0 var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  .nav-mobile a:hover {
    color: var(--mint);
  }

  .nav-mobile-savi {
    height: 20px;
    margin-bottom: 0.25rem;
  }

  .nav-mobile-user {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .container {
    padding: 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
  }

  .sites-grid {
    grid-template-columns: 1fr;
  }

  .site-detail-header {
    flex-direction: column;
    gap: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .login-page {
    flex-direction: column;
  }

  .login-visual {
    min-height: 200px;
  }

  .login-container {
    flex: 1;
  }
}
