:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --stroke:rgba(255,255,255,.10);
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.55);
  --shadow:0 18px 45px rgba(0,0,0,.35);
  --r:18px;
  --accent:#36d7e7;
  --accent2:#62f3c2;
  --danger:#ff5c7a;
}

/* =========================================================
   LIGHT THEME OVERRIDES (requested)
   Goal: make all previously dark areas (backgrounds, panels,
   inputs, shop/meine jausen/swipe/chat) match the light-blue
   feel of the start screen.
   ========================================================= */

/* Override base tokens late so they win */
:root{
  --bg:#e9f7ff;
  --panel:rgba(255,255,255,.92);
  --stroke:rgba(11,18,32,.10);
  --muted:rgba(11,18,32,.70);
  --muted2:rgba(11,18,32,.55);
  --shadow:0 18px 45px rgba(11,18,32,.16);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 30% 0%, rgba(54,215,231,.22), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(98,243,194,.14), transparent 55%),
    var(--bg);
  color:#fff;
}

/* =========================
   Mobile "Sketch" UI (Index)
   ========================= */
.mApp{
  min-height:100vh;
  background:linear-gradient(180deg, rgba(14,165,255,.95), rgba(14,165,255,.82));
  padding:14px 14px 110px;
  position:relative;
}

.mTopbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 0 12px;
}

/* Corner-Buttons (Profil links, Coins rechts) */
.mCornerLeft{
  position:absolute;
  left:14px;
  top:8px;
}
.mCornerRight{
  position:absolute;
  right:14px;
  top:8px;
}

.mSchool{
  background:rgba(255,255,255,.88);
  color:#0b1220;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  min-width:52%;
  text-align:center;
  /* On very small screens, avoid overlapping the corner buttons */
  max-width:calc(100% - 140px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mTopRight{
  position:absolute;
  right:14px;
  top:14px;
  display:flex;
  gap:8px;
  align-items:center;
}

.mIconBtn{
  border:none;
  background:rgba(255,255,255,.9);
  color:#0b1220;
  width:40px;
  height:40px;
  border-radius:999px;
  cursor:pointer;
  font-size:16px;
  line-height:1;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.mCoins{
  border:none;
  background:rgba(255,255,255,.96);
  color:#0b1220;
  padding:10px 12px;
  border-radius:999px;
  font-weight:900;
  display:flex;
  gap:6px;
  align-items:center;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.18);
}

.mMain{
  margin-top:12px;
  height:calc(100vh - 160px);
  display:flex;
}

.mPreview{
  width:100%;
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
}

.mPreviewInner{
  height:100%;
  background:#fff;
  color:#0b1220;
  border-radius:28px;
  padding:16px;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
}

.mPreviewLabel{
  font-weight:1000;
  font-size:22px;
}

.mPreviewImg{
  width:100%;
  max-height:58vh;
  object-fit:cover;
  border-radius:18px;
}

.mMuted{ opacity:.75; font-weight:700; }

.mFab{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:18px;
  width:min(72vw, 420px);
  height:78px;
  border:none;
  border-radius:24px;
  background:#5b21b6;
  color:#fff;
  font-size:46px;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 18px 45px rgba(0,0,0,.35);
}

.mViewer{
  position:fixed;
  inset:0;
  background:#0b1220;
  padding:14px;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mViewerTop{ display:flex; justify-content:flex-end; }

.mStage{
  flex:1;
  border-radius:18px;
  overflow:hidden;
  background:#000;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action:pan-y;
}

.mViewerImg{ width:100%; height:100%; object-fit:contain; }

.mStageOverlay{
  position:absolute;
  left:12px;
  top:12px;
  display:flex;
  gap:10px;
}

.mStagePill{
  background:rgba(255,255,255,.12);
  color:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-weight:900;
  backdrop-filter:blur(8px);
}

.mViewerActions, .mViewerActions2{ display:flex; gap:10px; }

.mViewerActions button, .mViewerActions2 button{
  flex:1;
  border:none;
  border-radius:16px;
  padding:14px 16px;
  font-weight:900;
  cursor:pointer;
}

.mGhost{ background:rgba(255,255,255,.12); color:#fff; }
.mPrimary{ background:#5b21b6; color:#fff; }

.drawerHeaderActions{display:flex; gap:8px; align-items:center}
.btn.danger{border:none; background:var(--danger); color:#fff}
a{color:inherit;text-decoration:none}
.container{max-width:980px;margin:0 auto;padding:22px 16px 40px}
.hidden{display:none !important}
.muted{color:var(--muted)}
.small{font-size:12px;color:var(--muted2)}

.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid var(--stroke);
  /* Hellblau wie Startscreen (statt dunkel) */
  background:linear-gradient(180deg, rgba(14,165,255,.95), rgba(14,165,255,.82));
  backdrop-filter:blur(10px);
  position:sticky;top:0;z-index:20
}

/* Buttons/Chips/Wallet in der Topbar: hell (wie in der App-Startansicht) */
.topbar .btn,
.topbar .chip,
.topbar .wallet{
  background:rgba(255,255,255,.92);
  color:#0b1220;
  border:none;
}

.topbar .btn:hover,
.topbar .chip:hover{
  background:rgba(255,255,255,.98);
}

.topbar .btn.ghost{ /* Profil-Button war sonst “dunkel/transparent” */
  background:rgba(255,255,255,.92);
}

.topbar .wallet{ box-shadow:0 10px 25px rgba(0,0,0,.18); }

.topbar .btn{ box-shadow:0 10px 25px rgba(0,0,0,.18); }
.brand{display:flex;align-items:center;gap:12px}
.brandLogo{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);padding:6px}
.brandText{display:flex;align-items:center;gap:10px}
.brandName{font-weight:900;letter-spacing:.2px}
.topbarRight{display:flex;align-items:center;gap:10px}

.wallet{
  display:flex;align-items:center;gap:8px;
  padding:8px 10px;border:1px solid var(--stroke);border-radius:999px;
  background:rgba(255,255,255,.04)
}
.coinIcon{width:18px;height:18px}
.coinIconSm{width:14px;height:14px}

.btn{
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:10px 14px;
  background:rgba(255,255,255,.04);
  color:#fff;cursor:pointer;font-weight:700
}
.btn:hover{background:rgba(255,255,255,.07)}
.btn.primary{
  border:none;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#001018
}
.btn.primary:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent}

.chip{
  border:1px solid var(--stroke);border-radius:999px;
  padding:8px 12px;background:rgba(255,255,255,.04);
  cursor:pointer;color:#fff;font-weight:700
}

.input{
  width:100%;
  border-radius:14px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  padding:12px;color:#fff;outline:none
}
.input::placeholder{color:rgba(255,255,255,.45)}
.textarea{min-height:92px;resize:vertical}

.card{
  border-radius:var(--r);
  border:1px solid var(--stroke);
  background:rgba(15,26,46,.70);
  box-shadow:var(--shadow);
}

.cardPad{padding:18px}

.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:800px){.grid2{grid-template-columns:1fr}}

.jauseCard{
  width:min(820px,100%);
  display:grid;grid-template-columns:260px 1fr;gap:18px;
  padding:18px;border-radius:var(--r);border:1px solid var(--stroke);
  background:rgba(15,26,46,.70);box-shadow:var(--shadow)
}
@media (max-width:820px){.jauseCard{grid-template-columns:1fr}}

.jauseMedia{
  border-radius:16px;overflow:hidden;border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);min-height:220px;
  display:flex;align-items:center;justify-content:center
}
.jauseImg{width:100%;height:100%;object-fit:cover;display:block}
.jauseInfo{display:flex;flex-direction:column;gap:10px}
.jauseTitleRow{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.jauseTitle{margin:0;font-size:26px;letter-spacing:.2px}
.pricePill{
  display:flex;align-items:center;gap:6px;border:1px solid var(--stroke);
  border-radius:999px;padding:8px 10px;background:rgba(255,255,255,.04);font-weight:900
}
.jauseMeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.dot{opacity:.55}
.jauseDesc{margin:0;line-height:1.5;color:rgba(255,255,255,.85)}

.swipeRow{display:flex;gap:12px;margin-top:10px;justify-content:center}
.swipeBtn{
  width:68px;height:68px;border-radius:999px;border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);cursor:pointer;font-size:28px;
  box-shadow:0 12px 25px rgba(0,0,0,.25)
}
.swipeBtn.nope:hover{border-color:rgba(255,92,122,.55)}
.swipeBtn.like:hover{border-color:rgba(98,243,194,.55)}
.bottomRow{display:flex;gap:10px;justify-content:center}

/* --- Drawer overlay (Chat) --- */
.drawerOverlay{
  position:fixed;inset:0;z-index:55;
  background:rgba(0,0,0,.55);
  display:flex;align-items:center;justify-content:center;
  padding:16px
}

.drawer{
  width:min(980px,100%);
  height:min(86vh,760px);
  border-radius:22px;border:1px solid var(--stroke);
  background:rgba(15,26,46,.92);backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
  display:flex;flex-direction:column;overflow:hidden;
  animation:popIn .16s ease-out
}
.drawerHeader{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid var(--stroke)}
.drawerTitle{font-weight:900;font-size:18px}
.drawerSubtitle{font-size:12px;margin-top:2px}
.drawerBody{flex:1;overflow:hidden}
.drawerCols{display:grid;grid-template-columns:280px 1fr;height:100%}
@media (max-width:820px){.drawerCols{grid-template-columns:1fr}}
.chatList{border-right:1px solid var(--stroke);overflow-y:auto}
@media (max-width:820px){.chatList{border-right:none;border-bottom:1px solid var(--stroke);max-height:220px}}
.chatItem{padding:12px;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.06)}
.chatItemRow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.chatDelBtn{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:#fff;
  width:32px;
  height:32px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
}
.chatDelBtn:hover{background:rgba(255,92,122,.18);border-color:rgba(255,92,122,.35)}
.chatItem:hover{background:rgba(255,255,255,.04)}
.chatItem.active{background:rgba(54,215,231,.12)}
.chatItemTitle{font-weight:900}
.chatItemSub{font-size:12px;color:var(--muted);margin-top:2px}
.chatPanel{display:flex;flex-direction:column;height:100%}
.chatMeta{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06)}
.chatMessages{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.msg{max-width:80%;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);padding:10px 12px;border-radius:14px;line-height:1.35}
.msg.you{margin-left:auto;border-color:rgba(98,243,194,.25)}
.msg.other{margin-right:auto;border-color:rgba(54,215,231,.25)}
.msgTime{display:block;margin-top:4px;font-size:11px;color:rgba(255,255,255,.55)}
.chatComposer{display:flex;gap:10px;padding:12px;border-top:1px solid rgba(255,255,255,.06)}

.modal{
  position:fixed;inset:0;background:rgba(0,0,0,.55);
  display:flex;align-items:center;justify-content:center;z-index:60;padding:16px
}
.modalCard{
  width:min(520px,100%);
  border-radius:20px;border:1px solid var(--stroke);
  background:rgba(15,26,46,.92);backdrop-filter:blur(10px);
  box-shadow:var(--shadow);padding:14px;
  animation:popIn .16s ease-out
}

/* --- Action Sheet content --- */
.sheetCard{width:min(520px,100%)}
.sheetBody{color:rgba(255,255,255,.92);line-height:1.45}
.sheetActions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
.sheetActions .btn{min-width:120px}

@keyframes popIn{
  from{transform:translateY(10px) scale(.98);opacity:0}
  to{transform:translateY(0) scale(1);opacity:1}
}
.modalHeader{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.modalTitle{font-weight:900}
.schoolList{margin-top:10px;display:flex;flex-direction:column;gap:8px;max-height:340px;overflow:auto}
.schoolItem{padding:12px;border-radius:14px;border:1px solid var(--stroke);background:rgba(255,255,255,.04);cursor:pointer;font-weight:800}
.schoolItem:hover{background:rgba(255,255,255,.07)}

.notice{
  padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);line-height:1.4
}

/* --- Generic list (used for "Meine Jausen") --- */
.list{margin-top:6px;display:flex;flex-direction:column;gap:10px;max-height:420px;overflow:auto}
.listRow{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:12px;border-radius:16px;border:1px solid var(--stroke);background:rgba(255,255,255,.04)
}
.listRow:hover{background:rgba(255,255,255,.06)}
.listLeft{display:flex;flex-direction:column;gap:4px;min-width:0}
.listTitle{font-weight:900}
.listSub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:320px}
.dangerBtn{border:1px solid rgba(255,92,122,.45);background:rgba(255,92,122,.10)}
.dangerBtn:hover{background:rgba(255,92,122,.16)}

/* =========================
   Light theme overrides
   ========================= */

/* Base page background + text */
body{
  color:#0b1220;
  background:linear-gradient(180deg, rgba(14,165,255,.20), rgba(14,165,255,.08)), var(--bg);
}

/* Desktop/inner pages top container should also feel “start screen” */
.container{padding-top:18px}

/* Inputs (Shop / Meine Jausen / Chat composer / Forms) */
.input,
.wallet,
.pricePill,
.schoolItem,
.notice,
.listRow,
.msg,
.swipeBtn{
  background:rgba(255,255,255,.92);
  border:1px solid var(--stroke);
  color:#0b1220;
}
.input::placeholder{color:rgba(11,18,32,.45)}

/* Buttons + chips everywhere (not only topbar) */
.btn,
.chip,
.mIconBtn,
.mCoins,
.mGhost{
  background:rgba(255,255,255,.92);
  color:#0b1220;
  border:1px solid var(--stroke);
}
.btn:hover,
.chip:hover,
.mIconBtn:hover,
.mCoins:hover{
  background:rgba(255,255,255,.98);
}
.btn.ghost{background:transparent;color:#0b1220}

/* Cards/panels */
.card,
.jauseCard,
.drawer,
.modalCard{
  background:rgba(255,255,255,.92);
  border:1px solid var(--stroke);
  box-shadow:var(--shadow);
}
.jauseDesc{color:rgba(11,18,32,.78)}
.small,.muted,.drawerSubtitle,.chatItemSub,.msgTime,.listSub{color:var(--muted)}

/* Chat list separators a bit darker on light bg */
.chatItem{border-bottom:1px solid rgba(11,18,32,.08)}
.chatList{border-right:1px solid rgba(11,18,32,.10)}
.chatMeta{border-bottom:1px solid rgba(11,18,32,.10)}
.chatComposer{border-top:1px solid rgba(11,18,32,.10)}
.drawerHeader{border-bottom:1px solid rgba(11,18,32,.10)}

/* Chat bubbles */
.msg{background:rgba(255,255,255,.96)}
.msg.you{border-color:rgba(98,243,194,.45)}
.msg.other{border-color:rgba(54,215,231,.45)}

/* Swipe buttons */
.swipeBtn{box-shadow:0 12px 25px rgba(11,18,32,.18)}

/* Mobile viewer should be its own “screen” (no transparent background) */
.mViewer{background:linear-gradient(180deg, #d7f0ff, #eef9ff)}
.mStage{background:#fff}
.mStagePill{background:rgba(255,255,255,.92); color:#0b1220; border:1px solid var(--stroke)}



/* === ONLY corner spacing adjustment (no other changes) === */
.mProfile {
  left: 4px !important;
}

.mCoins {
  right: 4px !important;
}


/* === ONLY: push Profile + Coins buttons further to the screen edges === */
.mProfile { left: 0px !important; }
.mCoins { right: 0px !important; }


/* === FINAL micro-adjustment: push only Profile & Coins further outward === */
.mProfile { left: -4px !important; }
.mCoins { right: -4px !important; }


/* === FORCE buttons to the absolute screen edge === */
.mProfile {
  left: -16px !important;
}

.mCoins {
  right: -12px !important;
}
