
:root{
  --rkga-bg: #0b1220;
  --rkga-panel: rgba(12,18,32,.72);
  --rkga-card: rgba(255,255,255,.08);
  --rkga-text: #eaf0ff;
  --rkga-muted: rgba(234,240,255,.72);
  --rkga-accent: #4dd3ff;
  --rkga-shadow: 0 18px 40px rgba(0,0,0,.35);
  --rkga-radius: 18px;
}
.rkga-body{ margin:0; padding:0; background:#000; overflow:hidden; }
.rkga-root{ position:fixed; inset:0; width:100vw; height:100vh; background:var(--rkga-bg); }
.rkga-map{ position:absolute; inset:0; }
.leaflet-control-container{ display:none; } /* clean app look */

/* searchbar over everything */
.rkga-searchbar{
  position:fixed;
  top: env(safe-area-inset-top, 0px);
  left:0; right:0;
  padding: 10px 12px 8px;
  z-index: 2147483000;
  pointer-events:none;
}
.rkga-search-inner{
  pointer-events:auto;
  margin: 0 auto;
  max-width: 900px;
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--rkga-shadow);
  backdrop-filter: blur(10px);
}
.rkga-search-ico{ opacity:.8; }
.rkga-search-input{
  border:0; outline:0; width:100%;
  font-size: 15px; background: transparent;
}
.rkga-clear{
  border:0; background: transparent; font-size:22px;
  opacity:.55; cursor:pointer; padding:0 6px;
}
.rkga-suggest{
  pointer-events:auto;
  max-width: 900px;
  margin: 8px auto 0;
  background: rgba(10,16,28,.86);
  color: var(--rkga-text);
  border-radius: 16px;
  box-shadow: var(--rkga-shadow);
  overflow:hidden;
  backdrop-filter: blur(12px);
}
.rkga-srow{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-top:1px solid rgba(255,255,255,.08); cursor:pointer; }
.rkga-srow:first-child{ border-top:0; }
.rkga-srow:hover{ background: rgba(255,255,255,.06); }
.rkga-sicon{ width:26px; text-align:center; opacity:.9; }
.rkga-stitle{ font-weight:800; }
.rkga-smeta{ font-size:12px; opacity:.75; margin-top:2px; }
.rkga-scol{ display:flex; flex-direction:column; }

/* top actions */
.rkga-top-actions{
  position:fixed;
  top: calc(env(safe-area-inset-top,0px) + 64px);
  right: 12px;
  z-index: 2147482000;
  display:flex; flex-direction:column; gap:10px;
}
.rkga-iconbtn{
  width:46px; height:46px; border-radius: 16px;
  border: 0;
  background: rgba(10,16,28,.72);
  color: var(--rkga-text);
  box-shadow: var(--rkga-shadow);
  backdrop-filter: blur(10px);
  cursor:pointer;
}
.rkga-ico{ font-size: 18px; }

/* bottom area */
.rkga-bottom{
  position:fixed;
  left:0; right:0;
  bottom: env(safe-area-inset-bottom,0px);
  padding: 10px 12px 14px;
  z-index: 2147481000;
  pointer-events:none;
}
.rkga-bottom-head{
  pointer-events:auto;
  display:flex; align-items:center; justify-content:space-between;
  max-width: 980px; margin: 0 auto 10px;
  color: var(--rkga-text);
}
.rkga-bottom-title{ font-weight:900; font-size:14px; text-shadow: 0 8px 18px rgba(0,0,0,.45); }
.rkga-mini{ border:0; background: transparent; padding:0; cursor:pointer; }
.rkga-mapthumb{
  width:46px; height:46px; display:block;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(77,211,255,.55), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  box-shadow: var(--rkga-shadow);
  border:1px solid rgba(255,255,255,.12);
}

.rkga-carousel{
  pointer-events:auto;
  max-width: 980px; margin: 0 auto;
  display:flex; gap:12px; overflow:auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

/* Live feed strip */
.rkga-feed{
  position:fixed;
  left:0; right:0;
  /* keep clear of bottom carousel on small screens */
  bottom: calc(env(safe-area-inset-bottom,0px) + 250px);
  padding: 0 12px;
  z-index: 2147480900;
  pointer-events:none;
}
.rkga-feed-head{
  pointer-events:auto;
  max-width: 980px;
  margin: 0 auto 8px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.rkga-feed-title{ color: var(--rkga-text); font-weight:1000; font-size:13px; text-shadow: 0 8px 18px rgba(0,0,0,.45); }
.rkga-feed-hint{ color: var(--rkga-muted); font-size:11px; }
.rkga-feedstrip{
  pointer-events:auto;
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  gap:12px;
  overflow:auto;
  padding: 2px 0 6px;
  scroll-snap-type: x mandatory;
}
.rkga-feeditem{
  scroll-snap-align:start;
  width: 280px;
  flex:0 0 auto;
  border-radius: 18px;
  background: rgba(10,16,28,.72);
  box-shadow: var(--rkga-shadow);
  border:1px solid rgba(255,255,255,.10);
  padding: 12px;
  color: var(--rkga-text);
  cursor:pointer;
}
.rkga-feedtop{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.rkga-av{ width:30px; height:30px; border-radius:999px; background: rgba(255,255,255,.15); background-size:cover; background-position:center; }
.rkga-un{ font-weight:1000; font-size:12px; }
.rkga-fc{ color: var(--rkga-muted); font-size:12px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.rkga-card{
  scroll-snap-align:start;
  width: 230px; flex:0 0 auto;
  border-radius: 18px;
  background: rgba(10,16,28,.72);
  box-shadow: var(--rkga-shadow);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.rkga-cardimg{ height:110px; background: rgba(255,255,255,.10); background-size:cover; background-position:center; }
.rkga-cardbody{ padding:10px 12px 12px; color: var(--rkga-text); }
.rkga-ctitle{ font-weight:900; font-size:13px; line-height:1.2; }
.rkga-cmeta{ margin-top:6px; font-size:12px; color: var(--rkga-muted); display:flex; gap:10px; flex-wrap:wrap; }

/* Sheet */
.rkga-sheet{ position:fixed; inset:0; z-index:2147483500; }
.rkga-sheet-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.45); }
.rkga-sheet-panel{
  position:absolute; left:0; right:0; bottom:0;
  background: rgba(10,16,28,.92);
  color: var(--rkga-text);
  border-radius: 22px 22px 0 0;
  padding: 10px 14px 18px;
  box-shadow: var(--rkga-shadow);
  backdrop-filter: blur(14px);
  max-height: 75vh;
  overflow:auto;
}
.rkga-sheet-handle{ width:64px; height:6px; border-radius:999px; background: rgba(255,255,255,.22); margin: 4px auto 10px; }
.rkga-sheet-title{ font-weight:900; font-size:13px; margin: 8px 2px; opacity:.95; }
.rkga-cats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }
.rkga-cat{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 12px 10px;
  cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.rkga-cat .i{ font-size:20px; }
.rkga-cat .t{ font-weight:900; font-size:12px; text-align:center; }
.rkga-cat .c{ font-size:11px; opacity:.7; }

.rkga-dests{ display:flex; gap:10px; overflow:auto; padding: 6px 2px; }
.rkga-chip{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  color: var(--rkga-text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight:900; font-size:12px;
  cursor:pointer;
  white-space:nowrap;
}
.rkga-tools{ display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; }
.rkga-tool{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 12px 12px;
  display:flex; align-items:center; gap:10px;
  cursor:pointer;
}
.rkga-tool .i{ font-size:18px; }
.rkga-tool .t{ font-weight:900; font-size:13px; }

/* Modal */
.rkga-modal{ position:fixed; inset:0; z-index:2147483600; }
.rkga-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); }
.rkga-modal-panel{
  position:absolute; left:12px; right:12px; bottom:12px;
  background: rgba(10,16,28,.92);
  color: var(--rkga-text);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--rkga-shadow);
  backdrop-filter: blur(14px);
  max-width: 520px;
  margin: 0 auto;
}
.rkga-h{ font-weight:1000; font-size:16px; margin: 0 0 6px; }
.rkga-p{ color: var(--rkga-muted); margin:0 0 12px; line-height:1.35; }
.rkga-row{ display:flex; gap:10px; }
.rkga-btn{
  border:0; border-radius: 16px;
  padding: 12px 14px;
  font-weight:900; cursor:pointer;
}
.rkga-btn.primary{ background: #0b63e6; color:#fff; flex:1; }
.rkga-btn.ghost{ background: rgba(255,255,255,.08); color: var(--rkga-text); }

/* Modal list (for "Weitere Kategorien") */
.rkga-mh{ font-weight:1000; font-size:16px; margin: 0 0 6px; }
.rkga-mp{ color: var(--rkga-muted); margin:0 0 12px; line-height:1.35; }
.rkga-list{ display:flex; flex-direction:column; gap:8px; max-height: 52vh; overflow:auto; padding-right:2px; }
.rkga-listrow{
  width:100%;
  display:flex; align-items:center; gap:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--rkga-text);
  border-radius: 16px;
  padding: 10px 12px;
  cursor:pointer;
}
.rkga-listico{ width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius: 14px; background: rgba(255,255,255,.08); }
.rkga-listtxt{ display:flex; flex-direction:column; gap:2px; text-align:left; }
.rkga-listtxt b{ font-size:13px; }
.rkga-listtxt small{ font-size:12px; color: var(--rkga-muted); }
.rkga-mactions{ display:flex; gap:10px; margin-top:12px; }

/* Toast */
.rkga-toast{
  position:fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom,0px) + 92px);
  background: rgba(10,16,28,.90);
  color: var(--rkga-text);
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: var(--rkga-shadow);
  z-index: 2147483900;
  max-width: 92vw;
  white-space:nowrap;
}


/* Feed richer meta */
.rkga-fmeta{display:flex;flex-direction:column;gap:2px}
.rkga-fline{font-size:12px;opacity:.8}
.rkga-dot{margin:0 6px;opacity:.7}
.rkga-ago{opacity:.9}

/* Location preview modal */
.rkga-prev{display:flex;flex-direction:column}
.rkga-prev-img{height:160px;background-size:cover;background-position:center;border-radius:16px;margin:-4px -4px 12px -4px}
.rkga-prev-ph{background:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));}
.rkga-prev-body{padding:0 2px 2px 2px}
.rkga-prev-hint{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);padding:10px 12px;border-radius:14px;margin-top:10px}
.rkga-prev-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.rkga-mini2{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:8px 10px;font-size:13px}
.rkga-mini2:active{transform:scale(.98)}
.rkga-muted{opacity:.8}

/* Down arrow + Learn panel */
.rkga-down{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + env(safe-area-inset-bottom));z-index:999999;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.18);width:44px;height:44px;border-radius:999px;color:#fff;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(10px)}
.rkga-down-ico{font-size:22px;line-height:1;opacity:.95}
.rkga-learn{position:fixed;left:0;right:0;top:0;bottom:0;z-index:999998;background:linear-gradient(180deg, rgba(10,12,18,.96), rgba(10,12,18,.92));backdrop-filter:blur(12px);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);display:flex;flex-direction:column}
.rkga-learn-open .rkga-map{filter:saturate(.9) brightness(.85)}

.rkga-learn-open #rkga-feedstrip{display:none!important}
.rkga-learn-open #rkga-feed{display:none!important}
.rkga-learn-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px}
.rkga-learn-title{font-weight:800;font-size:16px;letter-spacing:.2px}
.rkga-up{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;border-radius:999px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:18px}
.rkga-learn-chips{display:flex;gap:8px;overflow:auto;padding:8px 14px 10px}
.rkga-chip2{white-space:nowrap;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:8px 10px;font-size:13px}
.rkga-chip2.active{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.22)}
.rkga-learn-body{flex:1;overflow:auto;padding:10px 14px 80px}
.rkga-learn-foot{position:fixed;left:0;right:0;bottom:0;padding:12px 14px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(180deg, rgba(10,12,18,0), rgba(10,12,18,.92))}
.rkga-learn-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:14px;margin-bottom:12px}
.rkga-learn-hero{display:flex;gap:12px;align-items:flex-start}
.rkga-learn-hero-ico{font-size:22px}
.rkga-learn-h{font-weight:800;font-size:14px}
.rkga-learn-p{opacity:.85;font-size:13px;margin-top:4px;line-height:1.35}
.rkga-learn-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rkga-learn-kpi{font-weight:800;font-size:13px;margin-bottom:6px}
.rkga-learn-steps{display:flex;flex-direction:column;gap:10px}
.rkga-step{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);border-radius:16px;padding:12px}
.rkga-step span{width:28px;height:28px;border-radius:10px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;font-weight:800}
.rkga-step b{font-size:13px}
.rkga-step em{font-size:12px;opacity:.75;font-style:normal;margin-left:auto}
.rkga-learn-tools-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rkga-toolcard{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px;color:#fff;text-decoration:none}
.rkga-toolic{font-size:18px}
.rkga-tooltxt{font-weight:700;font-size:13px}


/* Points badge */
.rkga-badge{
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 14px;
  z-index: 999999;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(16, 24, 40, .55);
  color: var(--rkga-text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rkga-badge:active{ transform: scale(.98); }
