:root{
  /* OpenATV 7.6 / MyMetrix-inspired dark navy theme (solid background) */
  --bg0:#061526;
  --bg1:#061526;

  --panel:#0c243a;
  --card:#0f2d47;
  --card2:#133553;
  --stroke:#1b4668;

  --text:#e9f2fb;
  --muted:#a8bbce;
  --accent:#3ba7ff;
  --accent2:#2dd4bf;

  --ok:#2ecc71;
  --warn:#fbbf24;
  --danger:#fb7185;

  --shadow: 0 14px 30px rgba(0,0,0,.45);
  --radius:14px;
  --radius2:18px;
  --maxw:1200px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Noto Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 500;
}
a{color:inherit} a:hover{color:var(--accent)}
.container{max-width:var(--maxw); margin:0 auto; padding:0 18px}

/* Top utility bar */
.topbar{
  position:sticky; top:0; z-index:60;
  background: var(--panel);
  border-bottom:1px solid var(--stroke);
}
.topbar-inner{display:flex; align-items:center; gap:12px; padding:10px 0}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand img{width:38px; height:38px; border-radius:12px; background: var(--card2); border:1px solid rgba(255,255,255,.08)}
.brand .name{font-weight:900; letter-spacing:.2px}
.brand .tag{display:block; font-size:.78rem; color:var(--muted); font-weight:600}

.spacer{flex:1}

.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:9px 12px;
  background: var(--card2);
  border:1px solid var(--stroke);
  border-radius:999px;
  text-decoration:none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pill:hover{transform: translateY(-1px); background: var(--card2); border-color: rgba(59,167,255,.70)}
.pill strong{font-weight:900}

.pill-accent{
  background: rgba(59,167,255,.18);
  border-color: rgba(59,167,255,.70);
}


.icon-btn{
  width:40px; height:40px; border-radius:12px;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--card2);
  border:1px solid var(--stroke);
  cursor:pointer;
}
.icon-btn:hover{border-color:rgba(96,165,250,.45)}

/* Nav */
.nav{
  background: var(--panel);
  border-top:1px solid var(--stroke);
  border-bottom:1px solid var(--stroke);
}
.nav-inner{display:flex; align-items:center; gap:8px; padding:10px 0; overflow:auto; scrollbar-width:none}
.nav-inner::-webkit-scrollbar{display:none}

/* Hide AI-Chat tab in top navigation (keep only in side drawer) */
.nav .nav-inner a[href="ai-chat.html"]{display:none}
.nav a{
  padding:9px 12px;
  border-radius:12px;
  text-decoration:none;
  color: rgba(147,197,253,.95);
  font-weight:750;
  font-size:.92rem;
  border:1px solid transparent;

  /* Ujednolicone wyrównanie tekstu w zakładkach (również dla 2‑linii) */
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.15;
  min-height:40px;
}
.nav a:hover{color:#fff; border-color:rgba(148,163,184,.18); background: rgba(255,255,255,.04)}
.nav a.active{color:#fff; border-color:rgba(96,165,250,.45); background:rgba(96,165,250,.10)}

/* Mobile drawer */
.drawer-backdrop{display:none; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:80}
.drawer{display:none; position:fixed; top:0; right:0; width:min(420px,86vw); height:100%; background: var(--panel); border-left:1px solid var(--stroke);  z-index:90; padding:16px}
.drawer.open,.drawer-backdrop.open{display:block}
.drawer .drawer-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.drawer .drawer-title{font-weight:900}
.drawer a{display:flex; gap:10px; align-items:center; padding:12px 12px; border-radius:14px; text-decoration:none; color:var(--text); border:1px solid var(--stroke); background: var(--card); margin:8px 0}
.drawer a:hover{border-color:rgba(96,165,250,.45)}

/* Hero */
.hero{padding:26px 0 14px}
.hero-grid{display:grid; gap:18px; grid-template-columns: 1.35fr .65fr; align-items:stretch}
.hero-card{
  background: var(--card2);
  border:1px solid var(--stroke);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  padding:20px;
}
.hero h1{margin:0 0 8px; font-size:1.65rem; letter-spacing:-.02em}
.hero p{margin:0; color:var(--muted); line-height:1.55}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}

.kpi{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.kpi .k{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:12px;
}
.kpi .k .t{color:var(--muted); font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em}
.kpi .k .v{font-weight:900; margin-top:6px}

/* Content blocks */
.section{padding:14px 0 24px}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:8px 0 12px}
.section-title{font-size:1.2rem; font-weight:950; margin:0}
.section-sub{margin:0; color:var(--muted); font-size:.94rem}

.grid{display:grid; gap:14px; grid-template-columns: repeat(3, 1fr)}
.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:16px;
}
.card:hover{border-color:rgba(96,165,250,.28)}
.card h2,.card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted); line-height:1.55}

.link-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  background: var(--card2);
  border:1px solid var(--stroke);
  color:var(--text);
  font-weight:800;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(59,167,255,.70); background: #18415e}
.btn.primary{background: rgba(59,167,255,.20); border-color: rgba(59,167,255,.70)}

/* Re-style legacy sections imported from old index */
.card .file-link{display:block; padding:10px 12px; border-radius:14px; background: var(--card); border:1px solid var(--stroke); text-decoration:none; margin:8px 0}
.card .file-link:hover{border-color:rgba(96,165,250,.45)}
.card .code-snippet{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:.9em; background:rgba(0,0,0,.25); border:1px solid var(--stroke); padding:2px 6px; border-radius:8px}
.card pre{white-space:pre-wrap; background:rgba(0,0,0,.25); border:1px solid var(--stroke); padding:12px; border-radius:16px; overflow:auto}

/* Footer */
.site-footer{margin-top:32px; background:rgba(5,8,22,.72); border-top:1px solid rgba(148,163,184,.14)}
.footer-inner{max-width:var(--maxw); margin:0 auto; padding:26px 18px}
.footer-grid{display:grid; grid-template-columns: 1.4fr .8fr .8fr 1.2fr; gap:24px; align-items:start; padding-bottom:18px; border-bottom:1px solid rgba(148,163,184,.12)}
.footer-title{font-weight:900; letter-spacing:.08em; text-transform:uppercase; font-size:.78rem; color:var(--muted); margin-bottom:12px}
.footer-link{display:block; text-decoration:none; color:var(--text); opacity:.9; padding:5px 0}
.footer-link:hover{color:var(--accent)}
.footer-link.inline{display:inline; padding:0; color:var(--accent)}
.footer-brand-row{display:flex; gap:12px; align-items:center; margin-bottom:10px}
.footer-logo{width:42px; height:42px; border-radius:14px; border:1px solid rgba(148,163,184,.18)}
.footer-brand-name{font-weight:950}
.footer-brand-tag{color:var(--muted); font-size:.85rem}
.footer-note{color:var(--muted); line-height:1.6; font-size:.92rem; max-width:360px}
.footer-kpi{display:flex; align-items:flex-start; gap:10px; color:var(--text); opacity:.92; padding:6px 0}
.footer-support{margin-top:14px; padding-top:14px; border-top:1px dashed rgba(148,163,184,.18)}
.footer-support-row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.support-btn{display:flex; align-items:center; justify-content:center; gap:10px; padding:10px 12px; border-radius:14px; border:1px solid var(--stroke); background: var(--card); text-decoration:none}
.support-btn:hover{border-color:rgba(96,165,250,.45)}
.support-logo svg{width:22px; height:22px; display:block}
.support-text{display:flex; flex-direction:column; line-height:1.05; text-align:left}
.support-name{font-weight:900}
.support-sub{display:none; color:var(--muted); font-size:.75rem}
.support-btn:hover .support-sub{display:block}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:14px; color:var(--muted); font-size:.85rem; gap:12px}
.footer-legal{display:flex; gap:14px; flex-wrap:wrap}
.footer-legal a{color:var(--muted); text-decoration:none}
.footer-legal a:hover{color:var(--text)}

/* Notifications */
.notif{position:relative}
.notif-panel{display:none; position:absolute; right:0; top:46px; width:min(420px, 92vw); background:rgba(5,8,22,.94); border:1px solid var(--stroke); border-radius:18px; box-shadow:var(--shadow); padding:12px}
.notif-panel.open{display:block}
.notif-item{display:flex; gap:10px; padding:10px; border-radius:14px; border:1px solid var(--stroke); background: var(--card); margin:8px 0}
.notif-item .date{color:var(--muted); font-size:.82rem}

/* Chat page */
.chat-shell{display:grid; grid-template-columns: 1fr .9fr; gap:14px; align-items:start}
.chat-box{min-height:520px; display:flex; flex-direction:column}
.chat-messages{flex:1; overflow:auto; padding-right:6px}
.msg{background: var(--card); border:1px solid var(--stroke); border-radius:16px; padding:10px 12px; margin:10px 0}
.msg.user{border-color:rgba(96,165,250,.35); background:rgba(96,165,250,.10)}
.msg .meta{font-size:.75rem; color:var(--muted); font-weight:800; margin-bottom:6px}
.chat-form{display:flex; gap:10px; margin-top:10px}
.chat-form input{flex:1; padding:12px 12px; border-radius:14px; border:1px solid var(--stroke); background:rgba(0,0,0,.18); color:var(--text)}
.chat-form button{white-space:nowrap}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{padding:8px 10px; border-radius:999px; border:1px solid var(--stroke); background: var(--card); cursor:pointer; font-weight:800; color:var(--text)}
.chip:hover{border-color:rgba(96,165,250,.45)}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr; gap:18px}
  .footer-support-row{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column; align-items:flex-start}
  .chat-shell{grid-template-columns:1fr}
}

/* ===== Additions (Next Redesign v2) ===== */

/* Top marquee */
.marquee-bar{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(6, 10, 20, 0.92);
  border-bottom: 1px solid rgba(148,163,184,.12);
  backdrop-filter: blur(10px);
}
.marquee-inner{
  display:flex;
  align-items:center;
  gap:14px;
  padding: 8px 14px;
}
.marquee-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(251,191,36,.28);
  background: rgba(251,191,36,.10);
  color:#fffbeb;
  font-weight:700;
  font-size:.86rem;
  white-space:nowrap;
}
.marquee-track{
  position: relative;
  overflow:hidden;
  flex:1;
  min-width: 180px;
}
.marquee-text{
  display:inline-block;
  white-space:nowrap;
  color: #22d3ee;
  font-weight:700;
  letter-spacing:.2px;
  text-shadow: 0 0 14px rgba(34,211,238,.35);
  padding-left: 100%;
  animation: marqueeMove 18s linear infinite;
}
@keyframes marqueeMove{
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.marquee-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius: 999px;
  border:1px solid rgba(251,191,36,.55);
  background: rgba(251,191,36,.22);
  color:#fffbeb;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  box-shadow: 0 12px 30px rgba(251,191,36,.14);
}
.marquee-cta:hover{ border-color: rgba(245,158,11,.85); background: rgba(245,158,11,.28); color:#0b1220; }

/* Countdown badge (home) */
.year-countdown{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,.72);
  background: linear-gradient(90deg, rgba(245,158,11,.32), rgba(236,72,153,.18));
  color:#fffbeb;
  font-weight:900;
  font-size:.92rem;
  margin-top: 10px;
  box-shadow: 0 18px 42px rgba(245,158,11,.16);
}
.year-countdown .yc-label{opacity:.95;}
.year-countdown .yc-time{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,.25);
  background: rgba(2,6,23,.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.year-countdown .yc-part{display:inline-flex; align-items:baseline; gap:6px;}
.year-countdown .yc-num{font-size:1.05rem; color:#fff;}
.year-countdown .yc-unit{font-size:.78rem; color:#fef3c7; opacity:.9;}
.year-countdown .yc-sep{color: rgba(251,191,36,.9); font-weight:900;}

.year-countdown.done{
  border-color: rgba(34,197,94,.38);
  background: rgba(34,197,94,.14);
  color:#dcfce7;
  box-shadow: 0 14px 34px rgba(34,197,94,.10);
}
.year-countdown.done .yc-icon{font-size:1.1rem;}
.year-countdown.done .yc-msg{font-weight:900;}

/* Seasonal badge */
.seasonal-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
  color:#fee2e2;
  font-weight:800;
  font-size:.9rem;
  margin-top: 10px;
}

/* Ad banners */
.ad-banner-section{
  margin: 18px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.35);
  padding: 14px;
  overflow:hidden;
}
.ad-banner-section a{ display:block; text-decoration:none; }
.ad-banner-img{ width:100%; height:auto; display:block; border-radius: 14px; }
.banner-desktop{ display:block; }
.banner-mobile{ display:none; }
@media (max-width: 820px){
  .banner-desktop{ display:none; }
  .banner-mobile{ display:block; }
}

/* One-liner generator output */
.cmd-wrapper{
  display:flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.command-box{
  flex:1;
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(2,6,23,.55);
  color:#e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .92rem;
  line-height: 1.35;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.copy-btn{
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: rgba(15,23,42,.55);
  color:#e2e8f0;
  font-weight:800;
  cursor:pointer;
}
.copy-btn:hover{ border-color: rgba(96,165,250,.55); background: rgba(96,165,250,.14); }

/* Support QR sizing */
.qr-code{
  width: min(520px, 100%);
  max-width: 520px;
  height:auto;
  display:block;
  margin: 14px auto;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.03);
  padding: 10px;
}

/* External counter (small) */
.counterliczniki{
  opacity: .85;
  font-size: .82rem;
}
.counterliczniki a{ color: #94a3b8; text-decoration:none; }
.counterliczniki a:hover{ color:#e2e8f0; }

/* ===== Future Lab / details UI ===== */
.details-note{border:1px solid rgba(148,163,184,.15); background:rgba(15,23,42,.55); padding:12px 14px; border-radius:12px;}
.details-note > summary{cursor:pointer; font-weight:700; color:#e2e8f0; list-style:none;}
.details-note > summary::-webkit-details-marker{display:none;}
.details-note > summary:after{content:'▾'; float:right; opacity:.8;}
.details-note[open] > summary:after{content:'▴';}

/* ===== Mini gallery (Nowe Projekty) ===== */
.mini-gallery{display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-top:10px;}
.mini-gallery a{display:block;}
.mini-gallery img{width:100%; height:auto; border-radius:14px; border:1px solid rgba(148,163,184,.16); box-shadow:0 18px 45px rgba(0,0,0,.28);}
.mini-gallery .cap{margin-top:6px; font-size:.9rem; color:var(--muted); text-align:center;}

.future-grid{display:grid; gap:14px; grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:900px){.future-grid{grid-template-columns:1fr;}}

.form-row{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.form-row input[type="file"]{max-width:100%;}

.diff-table{width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border-radius:12px; border:1px solid var(--stroke);}
.diff-table th, .diff-table td{padding:10px 12px; border-bottom:1px solid rgba(148,163,184,.10); vertical-align:top;}
.diff-table th{font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; color:#94a3b8; background:rgba(2,6,23,.35);}
.diff-badge{display:inline-flex; align-items:center; gap:6px; font-size:.78rem; padding:4px 10px; border-radius:999px; border:1px solid var(--stroke); background:rgba(2,6,23,.25);}
.diff-added{border-color:rgba(34,197,94,.25);}
.diff-removed{border-color:rgba(239,68,68,.25);}
.diff-changed{border-color:rgba(59,130,246,.25);}

.mini-kpi{display:flex; gap:12px; flex-wrap:wrap;}
.mini-kpi .pill{padding:8px 12px; border-radius:999px; background:rgba(15,23,42,.55); border:1px solid var(--stroke); font-size:.85rem;}

.service-list{max-height:480px; overflow:auto; border:1px solid var(--stroke); border-radius:12px;}
.service-item{display:flex; gap:10px; padding:10px 12px; border-bottom:1px solid rgba(148,163,184,.08);}
.service-item:last-child{border-bottom:none;}
.service-ref{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:.84rem; color:#cbd5e1;}
.service-name{font-weight:700; color:#e2e8f0;}
.service-meta{font-size:.82rem; color:#94a3b8;}

.checklist-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
@media(max-width:900px){.checklist-grid{grid-template-columns:1fr;}}

.check-card{border:1px solid var(--stroke); border-radius:12px; padding:12px 14px; background:rgba(2,6,23,.20);}
.check-title{font-weight:800;}
.check-status{margin-top:6px; color:#cbd5e1;}
.check-status small{color:#94a3b8;}


/* ===== AI Chat Drawer ===== */
.ai-fab{
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 50;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  cursor:pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.ai-fab__icon{font-size: 16px;}
.ai-fab__text{font-weight:700; font-size: 13px;}
.ai-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 60;
}
.ai-backdrop.is-open{opacity:1; pointer-events:auto;}
.ai-drawer{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 36px));
  background: rgba(15,23,42,.92);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 70;
  display:flex;
  flex-direction: column;
  overflow:hidden;
}
.ai-drawer.is-open{opacity:1; transform: translateY(0); pointer-events:auto;}
.ai-drawer__head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.ai-drawer__title{font-weight:800;}
.ai-drawer__close{
  border:0;
  background: transparent;
  color: #cbd5e1;
  font-size: 18px;
  cursor:pointer;
}
.ai-drawer__meta{
  padding: 8px 14px;
  font-size: 12px;
  color:#94a3b8;
}
.ai-drawer__messages{
  padding: 10px 14px;
  overflow:auto;
  flex: 1;
}
.ai-msg{
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0;
  line-height: 1.35;
  font-size: 13px;
  border: 1px solid rgba(148,163,184,.12);
}
.ai-msg--user{
  margin-left: 30px;
  background: rgba(30,41,59,.55);
}
.ai-msg--bot{
  margin-right: 30px;
  background: rgba(2,6,23,.35);
}
.ai-drawer__form{
  display:flex;
  gap: 10px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(148,163,184,.12);
}
.ai-drawer__input{
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.35);
  color:#e2e8f0;
  padding: 10px 12px;
}
.ai-drawer__send{
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(56,189,248,.18);
  color:#e2e8f0;
  font-weight:800;
  padding: 10px 12px;
  cursor:pointer;
}
.ai-drawer__hint{
  padding: 0 14px 12px;
  font-size: 12px;
  color: #94a3b8;
}
html.ai-lock{overflow:hidden;}

/* =========================
   CONTACT (Kontakt)
   ========================= */
.contact-grid{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap:16px;
}
@media (max-width: 900px){
  .contact-grid{grid-template-columns:1fr;}
}

.contact-card{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.contact-title{
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
}
.contact-mini-title{
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 8px;
  opacity: .95;
}
.contact-subtitle{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.contact-form{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.contact-label{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-top: 6px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
.contact-form textarea{resize: vertical; min-height: 140px;}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(96,165,250,.55);
  background: rgba(0,0,0,.22);
}

.contact-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact-note{
  font-size: 12px;
  color: var(--muted);
}

.btn-primary{
  background: rgba(96,165,250,.22);
  border-color: rgba(96,165,250,.45);
}
.btn-primary:hover{
  background: rgba(96,165,250,.28);
  border-color: rgba(96,165,250,.60);
}
.btn-ghost{
  background: transparent;
  border-color: rgba(148,163,184,.18);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(148,163,184,.35);
}

.contact-links{
  display:grid;
  gap: 10px;
  margin-top: 6px;
}
.contact-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.contact-link:hover{
  border-color: rgba(96,165,250,.45);
  background: rgba(255,255,255,.09);
}
.contact-link-telegram{ }
.contact-link-messenger{ }
.contact-link-mail{ }
.contact-link-supabase{ }

.contact-divider{
  height:1px;
  background: rgba(148,163,184,.14);
  margin: 14px 0;
}
.contact-hr{
  border: none;
  height: 1px;
  background: rgba(148,163,184,.14);
  margin: 28px 0;
}


::selection{ background: rgba(59,167,255,.35); color: var(--text); }

/* =========================
   Support page – donation panel
   ========================= */
.support-section .support-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.support-section .support-head h2 {
  margin: 0;
}

.support-section .support-head p {
  margin: 0;
  color: var(--muted);
}

.support-grid{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

.support-qr-card{
  border: 1px solid var(--stroke);
  background: rgba(2, 6, 23, 0.28);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.support-qr-title{
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 10px;
}

.support-qr{
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 10px;
}

.support-qr-sub{
  margin-top: 10px;
  font-size: .9rem;
  color: var(--muted);
}

.support-actions-title{
  font-weight: 800;
  margin: 2px 0 10px;
  color: var(--text);
}

.support-actions-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-copy{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  line-height: 1.55;
}

.support-copy strong{
  color: var(--text);
}

.support-sign{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px){
  .support-grid{
    grid-template-columns: 1fr;
  }
  .support-actions-grid{
    grid-template-columns: 1fr;
  }
  .support-qr{
    max-width: 220px;
  }
}


/* Prominent topbar update pills */
.pill-prominent{
  padding: 12px 14px;
  font-size: .95rem;
  border-color: rgba(59,167,255,.90);
  box-shadow: 0 0 0 1px rgba(59,167,255,.25), 0 10px 26px rgba(0,0,0,.28);
}
.pill-iptvdream{
  background: rgba(59,167,255,.22);
}
@media (max-width: 820px){
  .topbar-inner{flex-wrap: wrap;}
  .pill-prominent{width: 100%; justify-content: space-between;}
}


/* ===== Plugin galleries + key shortcuts ===== */
.plugin-gallery{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-top:10px;}
.plugin-gallery a{display:block;}
.plugin-gallery img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.16);
  box-shadow:0 18px 45px rgba(0,0,0,.28);
}
@media(max-width:520px){.plugin-gallery img{height:120px;}}

.key-list{list-style:none; padding-left:0; margin:10px 0;}
.key-list li{margin:8px 0; display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap;}
.key-list li strong{display:inline-flex; align-items:center; justify-content:center; min-width:120px; padding:3px 10px; border-radius:999px; border:1px solid rgba(148,163,184,.18); background:rgba(255,255,255,.04);}
.key-list li code{opacity:.95}

.k-red{border-color:rgba(239,68,68,.40)!important; color:rgba(252,165,165,.98)!important;}
.k-green{border-color:rgba(34,197,94,.40)!important; color:rgba(134,239,172,.98)!important;}
.k-yellow{border-color:rgba(234,179,8,.40)!important; color:rgba(253,224,71,.98)!important;}
.k-blue{border-color:rgba(59,130,246,.40)!important; color:rgba(147,197,253,.98)!important;}

.details-body{margin-top:12px;}
.details-body h3{margin-top:14px;}
.details-body p,.details-body li{line-height:1.6}

/* ===== Quick access (spójne kafelki na podstronach) ===== */
.quick-access{margin:12px 0 16px;}
.quick-access .qa-head{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.quick-access .qa-head h2{font-size:1.15rem; margin:0;}
.quick-access .qa-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; margin-top:10px;}
.quick-access a.qa{
  display:block;
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(255,255,255,.03);
  text-decoration:none;
  color:var(--text);
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.quick-access a.qa:hover{background:rgba(255,255,255,.045); border-color:rgba(148,163,184,.24)}
.quick-access .qa-title{font-weight:900; letter-spacing:.2px;}
.quick-access .qa-sub{color:var(--muted); font-size:.92rem; margin-top:3px;}
