:root {
  --bg: #0f1115;
  --card: #161a22;
  --border: #242a36;
  --text: #eef2fb;
  --muted: #a9b0bd;
  --accent: #4dabf7;
  --accent-2: #82c91e;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: #0e121a; position: sticky; top: 0; z-index: 10;
}
.topbar h1 { margin: 0; font-size: 20px; }
.badge { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: #0c1017; color: var(--muted); margin-right: 8px; }

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

h2, h3 { margin-top: 12px; color: var(--muted); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.event-card { cursor: pointer; transition: transform .08s ease, border-color .15s ease; min-height: 100px; display: flex; align-items: center; justify-content: center; text-align: center; }
.event-card:hover { transform: translateY(-2px); border-color: var(--accent); }

.photos .photo { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #0b0e14; }
.photos .photo img { width: 100%; height: 180px; object-fit: cover; display: block; cursor: zoom-in; }
.photos .photo .actions { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 6px; }
.photos .photo .admin-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; }
.photos .photo .select-box { position: absolute; top: 6px; left: 6px; }
.selected { outline: 2px solid var(--accent); }

.btn, button { background: var(--accent); color: #081018; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.secondary { background: #2a3345; color: #cfe0ff; }
.danger { background: var(--danger); color: #180a0a; }

.hidden { display: none !important; }
.actions { display: flex; gap: 8px; }
.images-header { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.grow { flex: 1; }

.centered { display: grid; place-items: center; height: 100vh; padding: 16px; }
.field { display: grid; gap: 6px; margin: 10px 0; }
.field input { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: #0c1017; color: var(--text); }
.error { color: #ff6b6b; margin-top: 8px; }
.muted { color: var(--muted); margin-left: 10px; }

.divider { height: 1px; background: var(--border); margin: 12px 0; }

.lightbox { position: fixed; inset: 0; background: rgba(7,10,15,0.93); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-width: 95vw; max-height: 80vh; border-radius: 10px; }
.lightbox .lightbox-close { position: absolute; top: 12px; right: 12px; background: #222a36; color: #fff; border: 1px solid var(--border); }
.lightbox .lightbox-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: center; }
.upload-card { margin-bottom: 12px; }
/* --- Admin Toolbar (patch) --- */
.admin-toolbar{position:fixed;right:14px;bottom:14px;z-index:9999;background:#161a22;border:1px solid #242a36;border-radius:10px;padding:12px;color:#eef2fb;box-shadow:0 6px 24px rgba(0,0,0,.35);max-width:360px}
.admin-toolbar h4{margin:0 0 8px 0;font-size:14px;color:#a9b0bd}
.admin-toolbar .row{display:flex;gap:6px;align-items:center;margin:6px 0}
.admin-toolbar input,.admin-toolbar select{flex:1;padding:6px 8px;border-radius:6px;border:1px solid #242a36;background:#0c1017;color:#eef2fb}
.admin-toolbar button{padding:6px 10px;border:none;border-radius:8px;cursor:pointer;font-weight:600;background:#4dabf7;color:#081018}
.admin-toolbar button.secondary{background:#2a3345;color:#cfe0ff}
.admin-toolbar button.danger{background:#ff6b6b;color:#180a0a}
.admin-toolbar .muted{color:#a9b0bd;font-size:12px}
