:root{
  --bg:#05080b;
  --bg2:#070d10;
  --text:#eafff2;
  --muted:rgba(198,255,222,.68);
  --line:rgba(255,255,255,.10);

  --g:#22c55e;
  --g2:#16a34a;
  --glow: rgba(34,197,94,.24);

  --shadow: 0 28px 90px rgba(0,0,0,.70);
  --shadow2: 0 16px 46px rgba(0,0,0,.45);

  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 14px;

  --ring: 0 0 0 4px rgba(34,197,94,.20);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Sans";
  color:var(--text);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(34,197,94,.16), transparent 62%),
    radial-gradient(900px 520px at 88% 0%, rgba(11,90,44,.22), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 74px; /* miejsce na bottombar */
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,select{font:inherit}
::selection{background: rgba(34,197,94,.20)}

.container{
  width:min(1180px, 92vw);
  margin:0 auto;
  padding: 18px;
}

/* TOPBAR (minimal) */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(5,8,11,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-1px; height:1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.35), rgba(34,197,94,.10), transparent);
  pointer-events:none;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 12px 18px;
}

.brand{display:flex; gap:12px; align-items:center; min-width:0}
.logo{
  width:44px;height:44px;border-radius:16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  overflow:hidden;

  /* favicon */
  background-image: url("/favicon.ico");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.logo{
  box-shadow: 0 0 0 1px rgba(34,197,94,.18) inset, var(--shadow2), 0 0 22px rgba(34,197,94,.18);
}

.brand-meta{min-width:0}
.brand-title{font-weight: 980; letter-spacing:-.8px; line-height:1}
.brand-sub{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.mebox{font-size:13px;color:var(--muted)}

/* Skeleton */
.skeleton{
  width:170px;height:18px;border-radius:10px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.10),
    rgba(255,255,255,.04));
  background-size:200% 100%;
  animation: sh 1.15s infinite linear;
}
@keyframes sh{0%{background-position:0 0}100%{background-position:-200% 0}}

/* Buttons */
.btn{
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(18px 18px at 30% 20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,163,74,.55));
  color:white;
  padding: 11px 14px;
  border-radius: 16px;
  cursor:pointer;
  font-weight: 960;
  letter-spacing:.2px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
  touch-action: manipulation;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.03)}
.btn:active{transform: translateY(0); opacity:.95}
.btn.ghost{
  background: rgba(255,255,255,.05);
  box-shadow:none;
  font-weight: 920;
}
.btn.xl{padding: 14px 18px; border-radius: 18px}

.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:12px}

.iconbtn{
  width: 38px;height:38px;border-radius: 14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  cursor:pointer;
}

/* Inputs */
.input, .select{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.24);
  color: var(--text);
  outline:none;
}
.input:focus, .select:focus{border-color: rgba(34,197,94,.55); box-shadow: var(--ring)}
.select{cursor:pointer}

.muted{color: var(--muted); line-height: 1.6}
.small{font-size:12px}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(900px 520px at 78% 0%, rgba(0,0,0,.35), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.70));
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  padding: 34px 18px;
}
@media(max-width: 980px){
  .hero-inner{grid-template-columns:1fr; padding: 24px 18px}
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 950;
  letter-spacing: 1.2px;
  font-size: 12px;
}
.dot{width:10px;height:10px;border-radius:999px;background: var(--g); box-shadow: 0 0 0 6px rgba(34,197,94,.14)}

.hero-title{
  margin: 14px 0 10px 0;
  font-size: clamp(28px, 3.6vw, 54px);
  letter-spacing: -1.2px;
  line-height: 1.02;
  font-weight: 980;
  text-shadow: 0 18px 60px rgba(0,0,0,.55);
}
.hero-desc{color: rgba(234,255,242,.76); line-height: 1.6; max-width: 62ch}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px}

.mini-stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
@media(max-width: 520px){ .mini-stats{grid-template-columns:1fr} }
.mini{
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.mini-k{font-size:11px; letter-spacing: 1.4px; font-weight: 950; color: rgba(234,255,242,.70)}
.mini-v{margin-top:6px; font-weight:980; font-size:22px}
.mini-s{margin-top:6px; color: rgba(234,255,242,.55); font-size:12px}

.hero-card{
  background: rgba(0,0,0,.34);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow);
}
.h2{margin:0 0 10px 0; font-weight: 980; letter-spacing:-.4px}

.how-steps{display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px}
.hstep{
  display:flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13px;
}
.hstep span{
  width:24px;height:24px;border-radius:12px;
  background: rgba(34,197,94,.16);
  border:1px solid rgba(34,197,94,.32);
  display:flex; align-items:center; justify-content:center;
  font-weight: 950;
}

/* Sections */
.section{padding: 26px 0}
.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
@media(max-width: 980px){ .split{grid-template-columns:1fr} }

.panel{
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow2);
}
.panel.glass{
  background: rgba(255,255,255,.03);
  border-style: dashed;
}

.sec-title{
  font-size: 12px;
  letter-spacing: 2.2px;
  font-weight: 980;
  color: rgba(234,255,242,.66);
}
.sec-h{
  margin-top: 8px;
  font-weight: 980;
  letter-spacing: -0.6px;
  font-size: 24px;
}

.tiers{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media(max-width: 820px){ .tiers{grid-template-columns:1fr} }
.tier{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
}
.tier-t{font-weight: 980}
.tier-d{margin-top: 6px; font-size: 13px}

/* SHOP */
.shop-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.shop-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.shop-tools .input{min-width: 260px}
@media(max-width: 520px){
  .shop-tools .input, .shop-tools .select{width:100%}
  .shop-tools{width:100%}
}

/* PRODUCT GRID */
.grid-products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media(max-width: 980px){ .grid-products{grid-template-columns: repeat(2, 1fr)} }
@media(max-width: 520px){ .grid-products{grid-template-columns: 1fr} }

.pcard{
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction:column;
  min-height: 250px;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.pcard:hover{
  transform: translateY(-1px);
  border-color: rgba(34,197,94,.22);
  background: rgba(255,255,255,.035);
}
.pimg{
  height: 120px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.pimg img{width:100%; height:100%; object-fit:cover}
.pbody{padding: 12px; display:flex; flex-direction:column; gap:8px; flex:1}
.ptitle{font-weight: 980; letter-spacing:-.2px}
.pdesc{color: rgba(234,255,242,.70); font-size: 13px; line-height: 1.45; flex:1}
.pmeta{display:flex; align-items:center; justify-content:space-between; gap:10px}
.pprice{font-weight: 980; font-size: 18px}
.pcur{color: rgba(234,255,242,.55); font-size: 12px}
.pbadges{display:flex; gap:8px; flex-wrap:wrap}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 980;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.12);
  color: #dfffea;
}
.badge.manual{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(234,255,242,.90);
}
.hidden{display:none !important}

/* MODAL */
.modal{position:fixed; inset:0; z-index:80}
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
}
.modal-card{
  position:relative;
  width:min(520px, 92vw);
  margin: 10vh auto 0;
  background: rgba(0,0,0,.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding: 16px 16px 0 16px;
}
.modal-body{padding: 16px}

/* BOTTOM BAR */
.bottombar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:70;
  background: rgba(5,8,11,.90);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
}
.bottombar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 18px;
}
.bb-left{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.bb-pill{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.bb-online{color: rgba(234,255,242,.75)}
.bb-actions{display:flex; gap:10px; flex-wrap:wrap}

@media(max-width: 760px){
  .topbar-inner{flex-direction:column; align-items:stretch}
  .brand-sub{white-space:normal}
  .bottombar-inner{flex-direction:column; align-items:stretch}
  .bb-actions .btn{width:100%}
}
/* === PRODUCT IMAGE: smaller + fully visible (icons) === */
.pimg{
  height: 92px;            /* było 120px */
  padding: 10px;           /* żeby ikona nie kleiła się do krawędzi */
  background: rgba(0,0,0,.22);
}

.pimg img{
  width: 100%;
  height: 100%;
  object-fit: contain;     /* było cover -> nie ucina */
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}
