:root {
  --bg: #0b0d12;
  --panel: #141821;
  --panel-2: #1b2030;
  --line: #262d40;
  --text: #eef1f7;
  --muted: #8a93a8;
  --accent: #ff3b5c;
  --accent-2: #ffd400;
  --ok: #2bd96b;
  --warn: #ff8a00;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; filter: grayscale(.7); cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.gold { background: var(--accent-2); border-color: var(--accent-2); color: #111; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff7b8f; }
.btn.sm { padding: 5px 9px; font-size: 13px; border-radius: 8px; }

input, textarea, select {
  width: 100%; background: #0e1119; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 14px; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 10px 0; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line);
}
.badge.ok { color: var(--ok); border-color: #1f5e3a; }
.badge.off { color: var(--muted); }
.badge.gold { color: #111; background: var(--accent-2); border-color: var(--accent-2); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #222a3d; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px;
  z-index: 9999; box-shadow: 0 10px 30px #0008; max-width: calc(100% - 32px);
}
.toast.err { border-color: var(--accent); }

.pm-confirm {
  position: fixed; inset: 0; z-index: 9000; background: #000b; display: grid; place-items: center; padding: 16px;
}
.pm-confirm .card { width: 100%; max-width: 420px; box-shadow: 0 20px 60px #000c; }
.pm-confirm p { margin: 0 0 16px; font-size: 16px; }

/* ---------------- Pings no mapa ---------------- */
.leaflet-container { background: #0d2c44; font: inherit; }
.pin-wrap { background: none; border: none; }
.pin {
  position: relative; width: var(--s, 18px); height: var(--s, 18px);
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
}
.pin-free .dot {
  position: absolute; inset: 0; border-radius: 50%; background: #d7dbe5;
  border: 3px solid #39404f; box-shadow: 0 2px 6px #0009;
}
.pin-paid .dot {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c); border: 3px solid #fff; box-shadow: 0 4px 14px #000a, 0 0 22px var(--c);
}
.pin-paid .ico {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: calc(var(--s) * .5); line-height: 1; filter: drop-shadow(0 1px 1px #0008);
}
.pin-paid { transform: translate(-50%, -100%); }
.pin .ring {
  position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 50%;
  transform: translate(-50%, -50%); border: 3px solid var(--c, #d7dbe5);
  animation: ring 1.8s ease-out infinite; pointer-events: none;
}
.pin-paid .ring { top: 100%; }
@keyframes ring { from { opacity: .9; width: 100%; height: 100%; } to { opacity: 0; width: 320%; height: 320%; } }
.pin .tag {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  white-space: nowrap; background: #000c; color: #fff; padding: 2px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; border: 1px solid var(--c, #555);
}
.pin.focus .tag { background: var(--accent-2); color: #111; border-color: #111; }
.pin.focus .dot { box-shadow: 0 0 0 4px var(--accent-2), 0 0 30px var(--accent-2); }
.pin.new { animation: drop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes drop { from { opacity: 0; margin-top: -60px; } to { opacity: 1; margin-top: 0; } }
.pin.mine .dot { border-color: var(--accent-2); }
