:root{
  --bg:#0b0d10;
  --text:#ffffff;
  --muted:#9aa3b2;

  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.14);

  --shadow: 0 18px 70px rgba(0,0,0,.55);
  --shadow2: 0 12px 40px rgba(0,0,0,.22);

  --r2:24px;

  --accent:#06b6d4;
  --accent2:#7c3aed;

  --panelBg: rgba(255,255,255,.02);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(1100px 700px at 120% 20%, rgba(6,182,212,.10), transparent 60%),
    var(--bg);
  min-height:100svh;
  overflow-x:hidden;
}

/* ========= LAYOUT ========= */
.shell{ width:100%; padding:18px; }
@media (max-width:700px){ .shell{ padding:0; } }

.main{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding-bottom:18px;
}
@media (max-width:700px){ .main{ padding-bottom:0; } }

/* ========= TOPBAR ========= */
.topbar{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  border-radius: var(--r2);
  border:1px solid var(--line);
  background: var(--panelBg);
  box-shadow: var(--shadow2);
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
@media (max-width:700px){
  .topbar{
    border-radius:0;
    border-left:0;
    border-right:0;
    padding:12px 14px;
  }
}

.brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.logo{
  width:44px;height:44px;
  border-radius:16px;
  display:grid;place-items:center;
  font-weight:1000;
  color:#0b0d10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex:0 0 auto;
}
.bt{ line-height:1.05; min-width:0; }
.bt .t{ font-weight:1000; letter-spacing:-.02em; }
.bt .s{ margin-top:2px; font-size:12px; color:rgba(154,163,178,.95); font-weight:900; }

.homeBtn{
  text-decoration:none;
  color:rgba(255,255,255,.92);
  font-weight:1000;
  font-size:12px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.homeBtn:hover{ border-color: rgba(255,255,255,.18); filter:brightness(1.03); }
.homeBtn .i{ opacity:.9; }

/* ========= HERO TITLE PANEL ========= */
.heroTitlePanel{
  margin-top:16px;
  border-radius: var(--r2);
  border:1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(6,182,212,.12), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(124,58,237,.12), transparent 55%),
    rgba(255,255,255,.02);
  box-shadow: var(--shadow);
  padding:16px;
  text-align:center;
}
@media (max-width:700px){
  .heroTitlePanel{
    border-radius:0;
    border-left:0;
    border-right:0;
    margin-top:0;
  }
}

.heroTitle{
  font-size:26px;
  font-weight:900;
  letter-spacing:-0.02em;
}
.heroSub{
  margin-top:8px;
  color:rgba(154,163,178,.95);
  font-size:13px;
  line-height:1.35;
  max-width: 860px;
  margin-left:auto;
  margin-right:auto;
}

/* YT promo */
.ytPromo{
  margin:12px auto 0;
  max-width: 760px;
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  color: rgba(226,232,240,.95);
}
.ytPromo:hover{ border-color: rgba(255,255,255,.18); filter: brightness(1.03); }
.ytDot{
  width:10px;height:10px;border-radius:99px;
  background:#ff3b30;
  box-shadow:0 0 14px rgba(255,59,48,.35);
  flex:0 0 auto;
}
.ytTxt{ font-size:12px; color: rgba(226,232,240,.92); }
.ytGo{ margin-left:auto; opacity:.85; font-weight:900; }

/* ========= MODE PANEL (TERAZ: MOBILE + DESKTOP) ========= */
.modePanel{
  margin-top:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  padding:12px;
}
@media (max-width:700px){
  .modePanel{
    border-radius:0;
    border-left:0;
    border-right:0;
  }
}
.modeBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.modeBtn{
  border-radius:999px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  font-size:12px;
  cursor:pointer;
}
.modeBtn:hover{ border-color: rgba(255,255,255,.18); }
.modeBtn.active{
  border:0;
  color:#0b0d10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.modeNote{
  margin-top:10px;
  color:rgba(154,163,178,.95);
  font-size:12px;
  text-align:center;
}

/* ========= PANELS WRAP ========= */
/* Desktop fix: ZAMIast 3 kolumn -> 1 duży panel jak na telefonie */
.panelsGrid{
  margin-top:14px;
  display:grid;
  gap:12px;
  grid-template-columns: 1fr;
}

/* Na dużych ekranach ogranicz szerokość panelu, żeby wyglądał jak "telefonowy" layout, tylko większy */
@media (min-width:980px){
  .panelsGrid{
    max-width: 920px;
    margin-left:auto;
    margin-right:auto;
  }
}

.panelBox{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow2);
  overflow:hidden;
}

.panelTop{
  padding:14px 14px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(6,182,212,.10), transparent 55%),
    rgba(0,0,0,.10);
}
.pTitle{
  font-weight:1000;
  letter-spacing:-.01em;
}
.pSub{
  margin-top:6px;
  color:rgba(154,163,178,.95);
  font-size:12px;
  line-height:1.35;
}

/* mobile: tylko 1 panel naraz – zostawiamy (u Ciebie to działa) */
@media (max-width:979px){
  .hiddenOnMobile{ display:none !important; }
}

/* NOWE: ukrywanie panelu na KAŻDYM widoku (też desktop) */
.hiddenPanel{ display:none !important; }

/* ========= CARD ========= */
.card{
  margin:12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  box-shadow: none;
  overflow:hidden;
}
@media (min-width:980px){
  .card{ margin:12px; border-radius: 20px; }
}

.cardHead{
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.cardTitle{ font-weight:1000; letter-spacing:-.01em; }
.cardHint{
  margin-top:6px;
  color:rgba(154,163,178,.95);
  font-size:12px;
  line-height:1.35;
}
.cardBody{ padding:14px; }

/* ========= FIELDS ========= */
.field{ display:flex; flex-direction:column; gap:6px; }
.lab{
  font-weight:900;
  font-size:12px;
  color:rgba(226,232,240,.92);
}
.miniLab{
  color:rgba(154,163,178,.95);
  font-size:12px;
  line-height:1.3;
}
.inp{
  width:100%;
  border-radius:16px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: rgba(238,242,255,.95);
  font-weight:900;
  outline:none;
}
.inp:focus{
  border-color:rgba(6,182,212,.55);
  box-shadow:0 0 0 3px rgba(6,182,212,.18);
}
.bigInp{
  padding:14px 14px;
  border-radius:18px;
  font-size:16px;
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width:420px){
  .two{ grid-template-columns:1fr; }
}

/* ========= BUTTONS ========= */
.btn{
  width:100%;
  border-radius:18px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  cursor:pointer;
}
.btn:hover{ border-color: rgba(255,255,255,.18); filter:brightness(1.03); }
.btn.big{
  border:0;
  color:#0b0d10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.btn.big:hover{ filter:brightness(1.02); }

.chipBtn{
  border-radius:999px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  font-size:12px;
  cursor:pointer;
}
.chipBtn:hover{ border-color: rgba(255,255,255,.18); filter:brightness(1.03); }

/* ========= RESULT ========= */
.result{
  margin:12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(34,197,94,.10), transparent 55%),
    rgba(255,255,255,.02);
  box-shadow: none;
  padding:14px;
  text-align:center;
}
.result.hidden{ display:none; }
.rTitle{ font-weight:1000; color:rgba(226,232,240,.95); }
.rBig{
  margin-top:8px;
  font-size:34px;
  font-weight:1000;
  letter-spacing:-.02em;
  color:rgba(255,255,255,.96);
}
.rMeta{
  margin-top:6px;
  color:rgba(154,163,178,.95);
  font-size:12px;
}

.miniSplit{
  margin-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:left;
}
.miniRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:rgba(154,163,178,.95);
}
.miniRow b{ color:rgba(255,255,255,.92); font-weight:1000; }

/* ========= ACCORDION ========= */
.acc{
  margin:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  overflow:hidden;
}
.accSum{
  list-style:none;
  cursor:pointer;
  padding:14px 14px 12px;
  display:grid;
  grid-template-columns: 1fr auto;
  gap:8px 10px;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.accSum::-webkit-details-marker{ display:none; }
.accT{ font-weight:1000; letter-spacing:-.01em; }
.accS{
  grid-column:1 / -1;
  color:rgba(154,163,178,.95);
  font-size:12px;
  line-height:1.35;
}
.accChev{
  justify-self:end;
  opacity:.85;
  font-weight:1000;
  transform: rotate(0deg);
  transition: transform .15s ease;
}
.acc[open] .accChev{ transform: rotate(180deg); }
.accBody{ padding:12px 14px 14px; }

.cardInAcc{
  margin:0;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}

/* ========= SUMMARY ========= */
.summary{
  margin:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(6,182,212,.12), transparent 55%),
    radial-gradient(120% 120% at 100% 0%, rgba(124,58,237,.10), transparent 55%),
    rgba(255,255,255,.02);
  padding:14px;
}
.summary.hidden{ display:none; }
.sumHead{
  font-weight:1000;
  letter-spacing:-.01em;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:10px;
}
.sumLine{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:rgba(154,163,178,.95);
  font-size:12px;
}
.sumLine b{ color:rgba(255,255,255,.92); font-weight:1000; }
.sumLine.hidden{ display:none; }

.netBig{
  margin-top:12px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  padding:12px;
  text-align:center;
}
.netLabel{ font-weight:1000; color:rgba(226,232,240,.95); font-size:12px; }
.netVal{ margin-top:8px; font-size:30px; font-weight:1000; letter-spacing:-.02em; }
.netMini{ margin-top:6px; color:rgba(154,163,178,.95); font-size:12px; }

.rentText{
  margin-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:12px;
  color:rgba(154,163,178,.95);
  font-size:12px;
  line-height:1.45;
  white-space:pre-line;
}
.rentText.hidden{ display:none; }

/* ========= TOGGLES ========= */
.togGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.tog{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  cursor:pointer;
}
.tog:hover{ border-color: rgba(255,255,255,.16); }
.tog input{ display:none; }

.togUi{
  width:44px;
  height:26px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  position:relative;
  flex:0 0 auto;
  margin-top:1px;
}
.togUi::after{
  content:"";
  width:22px;height:22px;
  border-radius:99px;
  background: rgba(255,255,255,.82);
  position:absolute;
  top:1px; left:1px;
  transition: transform .15s ease, background .15s ease;
}
.tog input:checked + .togUi{
  border-color: rgba(6,182,212,.45);
  background: rgba(6,182,212,.18);
}
.tog input:checked + .togUi::after{
  transform: translateX(18px);
  background: #0b0d10;
  box-shadow: 0 0 0 1px rgba(6,182,212,.35), 0 6px 18px rgba(0,0,0,.25);
}
.tog input:checked + .togUi{
  box-shadow: 0 0 0 3px rgba(6,182,212,.12);
}
.tog input:disabled + .togUi{
  opacity:.5;
  filter:grayscale(1);
}
.togTxt{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.togTxt b{ font-weight:1000; }
.tSmall{ font-size:12px; color:rgba(154,163,178,.95); line-height:1.35; }

/* ========= PERIOD / TAX / PARTNER ========= */
.periodTiles, .taxTiles, .partnerTiles{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.periodTile, .taxTile, .partnerTile{
  flex:1 1 140px;
  border-radius:18px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  cursor:pointer;
}
.periodTile:hover, .taxTile:hover, .partnerTile:hover{
  border-color: rgba(255,255,255,.18);
  filter: brightness(1.03);
}
.periodTile.active, .taxTile.active, .partnerTile.active{
  border:0;
  color:#0b0d10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.infoPanel{
  margin-top:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  padding:12px;
}
.infoPanel.hidden{ display:none; }
.infoText{
  color:rgba(154,163,178,.95);
  font-size:12px;
  line-height:1.35;
}

/* ========= APPS LIST ========= */
.appsWrap{ display:flex; flex-direction:column; gap:10px; }
.appsActions{ display:flex; gap:10px; flex-wrap:wrap; }
.appsList{ display:flex; flex-direction:column; gap:10px; }

.appEntry{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  padding:12px;
}
.appEntryHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.appEntryTitle{ font-weight:1000; color:rgba(226,232,240,.95); }
.appRemoveBtn{
  border-radius:999px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  font-size:12px;
  cursor:pointer;
}
.appRemoveBtn:hover{ border-color: rgba(255,255,255,.18); }

.appIcons{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.appIco{
  border-radius:999px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  font-size:12px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.appIco:hover{ border-color: rgba(255,255,255,.18); }
.appIco.active{
  border:0;
  color:#0b0d10;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.appI{ width:18px; display:inline-flex; justify-content:center; }
.appT{ opacity:.95; }

.miniNote{
  color:rgba(154,163,178,.95);
  font-size:12px;
  line-height:1.35;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:10px;
}

/* ========= PICKER (ZUS BUTTON) ========= */
.pickerBtn{
  width:100%;
  border-radius:18px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.pickerBtn:hover{ border-color: rgba(255,255,255,.18); filter:brightness(1.03); }
.pickerBtn .chev{ opacity:.85; }

/* ========= MODAL (ZUS) ========= */
.modal{ position:fixed; inset:0; z-index:9999; }
.modal.hidden{ display:none; }

.modalBackdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.modalCard{
  position:relative;
  width:min(520px, calc(100vw - 24px));
  margin: 10vh auto 0;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(8,12,24,.92);
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
  overflow:hidden;
}

.modalHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.modalTitle{ font-weight:1000; letter-spacing:-.02em; }
.modalSub{
  margin-top:4px;
  color:rgba(167,176,198,.95);
  font-size:12px;
}
.modalX{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:rgba(238,242,255,.95);
  width:36px;height:36px;
  border-radius:14px;
  cursor:pointer;
}
.modalBody{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height: 64vh;
  overflow:auto;
  padding-right:10px;
}
.optGroup{
  margin-top:6px;
  color:rgba(226,232,240,.95);
  font-weight:1000;
  font-size:12px;
  opacity:.95;
}
.optBtn{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  padding:10px 12px;
  cursor:pointer;
  text-align:left;
  color:rgba(238,242,255,.95);
  font-weight:900;
  font-size:12px;
  line-height:1.3;
}
.optBtn:hover{
  border-color:rgba(255,255,255,.16);
  transform:translateY(-1px);
}
.modalFoot{
  padding:12px 14px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.modalOk{
  border-radius:14px;
  padding:10px 12px;
  font-weight:1000;
  cursor:pointer;
  border:none;
  color:#0b0d10;
  background:linear-gradient(135deg,var(--accent), var(--accent2));
}

/* ========= UTIL ========= */
.hidden{ display:none !important; }
/* ===============================
   SILKTIDE — tylko pozycja (bez zmiany wyglądu)
================================ */

#silktide-cookie-icon,
#silktideCookieIcon,
.silktide-cookie-icon,
.silktide-cookie-icon-button,
[data-silktide-cookie-icon],
[id*="silktide" i][id*="cookie" i][id*="icon" i],
[class*="silktide" i][class*="cookie" i][class*="icon" i]{
  position: fixed !important;
  top: 98px !important;   /* pod topbarem */
  left: 18px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  z-index: 2147483647 !important;
}

/* mobile */
@media (max-width:700px){
  #silktide-cookie-icon,
  #silktideCookieIcon,
  .silktide-cookie-icon,
  .silktide-cookie-icon-button,
  [data-silktide-cookie-icon],
  [id*="silktide" i][id*="cookie" i][id*="icon" i],
  [class*="silktide" i][class*="cookie" i][class*="icon" i]{
    top: 70px !important;
    left: 12px !important;
  }
}
