
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0b0b12;
  color: white;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
}

.menu a {
  display: block;
  margin: 10px 0;
  color: #f2c66f;
  text-decoration: none;
}

.main {
  padding: 40px;
}
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.login-container form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 280px;
  margin-top: 20px;
}

.login-container input {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
}

.map-overlay-locked {
  pointer-events: auto;
}

.map-locked .map-core {
  filter: blur(4px);
  opacity: 0.7;
}

.map-unlocked .map-overlay-locked {
  display: none;
}


#map { width: 100%; height: 100%; }

/* MAP CONTAINER FIX */
.map-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.map-core {
  width: 100%;
  height: 100%;
}

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(11,11,18,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.logo {
  font-weight: 700;
}

.topnav a,
.topnav button {
  margin-left: 14px;
  background: none;
  border: none;
  color: #f2c66f;
  cursor: pointer;
  font-size: 14px;
}

/* Map offset under header */
.map-container {
  position: relative;
  width: 100%;
  height: 100vh;
  padding-top: 56px;
}

/* Auth visibility */
.auth-only { display: none; }
.guest-only { display: inline; }

.map-unlocked .auth-only { display: inline; }
.map-unlocked .guest-only { display: none; }

/* ===== WALLET ===== */

.wallet {
  max-width: 520px;
}

.wallet .subtitle {
  color: #b5b5b5;
  margin-bottom: 28px;
  font-size: 14px;
}

.balance-card {
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  margin-bottom: 22px;
}

.balance-card .label {
  font-size: 13px;
  color: #b5b5b5;
}

.balance {
  font-size: 38px;
  font-weight: 600;
  color: #f2c66f;
  margin: 10px 0;
}

.balance small {
  font-size: 16px;
  margin-left: 6px;
  opacity: 0.9;
}

.note {
  font-size: 12px;
  color: #9a9a9a;
}

.withdraw-btn {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(242,198,111,0.4);
  background: transparent;
  color: #f2c66f;
  font-size: 14px;
  cursor: pointer;
}

.withdraw-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.withdraw-info {
  font-size: 12px;
  color: #8a8a8a;
  margin-top: 8px;
}

.conditions,
.history {
  margin-top: 32px;
}

.conditions h3,
.history h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.conditions ul,
.history ul {
  padding-left: 18px;
  color: #b0b0b0;
  font-size: 13px;
}

.history li {
  margin-bottom: 6px;
}

/* ===== TASK FEEDBACK ===== */

.task-feedback {
  margin-top: 10px;
  font-size: 12px;
  color: #9fcf9f; /* validation douce */
  display: none;
}

.tasks {
  max-width: 720px;
}

.task-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.task-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  border-radius: 20px;
  padding: 26px;
  position: relative;
}

/* petite barre verticale élégante */
.task-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: rgba(242,198,111,0.4);
  border-radius: 3px;
}

.task-card button {
  margin-top: 18px;
  background: linear-gradient(
    135deg,
    rgba(242,198,111,0.18),
    rgba(242,198,111,0.05)
  );
  border: 1px solid rgba(242,198,111,0.5);
  color: #f2c66f;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
}

.task-card button:hover {
  background: rgba(242,198,111,0.18);
}

.task-card.attention::before {
  background: rgba(242,198,111,0.6);
}

.task-card.verification::before {
  background: rgba(140,200,255,0.4);
}

.task-card.movement::before {
  background: rgba(140,255,200,0.35);
}

h1 {
  font-size: 32px;
  font-weight: 600;
}

.subtitle {
  font-size: 15px;
  color: #b5b5b5;
}

p {
  font-size: 14px;
  color: #d0d0d0;
}

.dashboard .balance-card .note {
  margin-bottom: 30px;
}

/* ===== MICRO ANIMATION : OPEN MAP BUTTON ===== */

.withdraw-btn {
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.withdraw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 18px rgba(242,198,111,0.25);
  background-color: rgba(242,198,111,0.08);
}

.dashboard .task-group {
  margin-bottom: 48px;
}

/* ===== RR BALANCE BADGE ===== */

.rr-badge {
  position: fixed;
  top: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 1200;
}

.rr-badge img {
  width: 24px;
  height: 24px;
}

.rr-badge span {
  font-size: 14px;
  font-weight: 600;
  color: #f2c66f;
}

.rr-badge:hover {
  box-shadow: 0 0 18px rgba(242,198,111,0.25);
}

/* Landing page: map ALWAYS locked */
body[data-page="landing"] .map-core {
  filter: blur(10px);
  pointer-events: none;
}

body[data-page="landing"] .map-overlay-locked {
  display: flex;
}

/* Real map page: never blurred */
body[data-page="map"] .map-overlay-locked {
  display: none;
}

body[data-page="map"] .map-core {
  filter: none;
  pointer-events: auto;
}

/* Leaflet zoom controls must stay above topbar */
.leaflet-top,
.leaflet-control {
  z-index: 1100;
}

/* Remove tile seams / white grid lines */
.leaflet-tile {
  outline: none !important;
}

.leaflet-container {
  background: #aad3df; /* couleur mer OSM */
}

/* ===== OFFLINE MODE (GLOBAL OVERRIDE) ===== */

body.offline .map-core {
  filter: blur(8px) !important;
  pointer-events: none !important;
  opacity: 0.75;
}

body.offline .map-overlay-offline {
  display: flex;
}

.map-overlay-offline {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(11,11,18,0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-overlay-offline .offline-box {
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 320px;
  border: 1px solid rgba(242,198,111,0.35);
}

.map-overlay-offline h2 {
  font-size: 18px;
  color: #f2c66f;
  margin-bottom: 10px;
}

.map-overlay-offline p {
  font-size: 13px;
  color: #d0d0d0;
  line-height: 1.4;
}



