:root{
  color-scheme: light dark;
  --bg:#f7f7f8;
  --bg-soft:#ffffff;
  --surface:#ffffff;
  --surface-elevated:rgba(255,255,255,.88);
  --surface-muted:#f3f4f6;
  --surface-hover:#ececf1;
  --ink:#171717;
  --muted:#6b7280;
  --muted-strong:#4b5563;
  --line:#e5e7eb;
  --line-strong:#d1d5db;
  --accent:#111827;
  --accent-soft:#f3f4f6;
  --accent-text:#111827;
  --button-bg:#111827;
  --button-text:#ffffff;
  --button-secondary:#ffffff;
  --button-secondary-text:#111827;
  --danger:#b42318;
  --good:#0f7b55;
  --shadow:0 22px 70px rgba(15,23,42,.08);
  --shadow-soft:0 10px 30px rgba(15,23,42,.06);
  --radius:26px;
  --radius-sm:16px;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#212121;
    --bg-soft:#1b1b1b;
    --surface:#2f2f2f;
    --surface-elevated:rgba(47,47,47,.86);
    --surface-muted:#262626;
    --surface-hover:#3a3a3a;
    --ink:#ececec;
    --muted:#b4b4b4;
    --muted-strong:#d6d6d6;
    --line:#3f3f46;
    --line-strong:#52525b;
    --accent:#f4f4f5;
    --accent-soft:#303030;
    --accent-text:#ececec;
    --button-bg:#f4f4f5;
    --button-text:#111111;
    --button-secondary:#303030;
    --button-secondary-text:#ececec;
    --danger:#ff6b63;
    --good:#7ee2b8;
    --shadow:0 24px 80px rgba(0,0,0,.26);
    --shadow-soft:0 12px 32px rgba(0,0,0,.20);
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Manrope,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,var(--bg-soft) 0%,var(--bg) 42%,var(--bg) 100%);
  color:var(--ink);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%}
button,input,textarea,select{font:inherit}
::selection{background:color-mix(in srgb,var(--ink) 16%,transparent)}
:focus-visible{outline:3px solid color-mix(in srgb,var(--ink) 24%,transparent);outline-offset:3px}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}

.site-header{
  position:sticky;top:0;z-index:50;
  background:color-mix(in srgb,var(--surface) 84%,transparent);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  border-bottom:1px solid var(--line);
}
.header-inner{min-height:76px;display:flex;align-items:center;gap:22px}
.brand{display:flex;align-items:center;gap:12px;min-width:max-content}
.brand-mark,.login-mark{
  width:44px;height:44px;border-radius:15px;display:grid;place-items:center;
  background:var(--accent);color:var(--bg-soft);font-weight:900;
  box-shadow:var(--shadow-soft);
}
.brand strong{letter-spacing:-.02em}
.brand small{display:block;color:var(--muted);font-weight:700;margin-top:1px}
.top-nav{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin-left:auto}
.top-nav a,.site-footer a{
  padding:9px 12px;border-radius:999px;color:var(--muted-strong);font-weight:800;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.top-nav a:hover,.site-footer a:hover{background:var(--surface-hover);color:var(--ink)}
.header-actions{display:flex;gap:10px;align-items:center}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;
  border-radius:16px;background:var(--button-bg);color:var(--button-text);font-weight:900;
  padding:13px 18px;box-shadow:var(--shadow-soft);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-small{padding:9px 13px;border-radius:13px;font-size:14px}
.btn-ghost{background:var(--button-secondary);color:var(--button-secondary-text);border-color:var(--line);box-shadow:none}
.btn-danger{background:var(--danger);color:#fff}

.user-pill{
  display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:999px;
  background:var(--surface);border:1px solid color-mix(in srgb,var(--glow) 35%,var(--line));font-weight:900;
  text-shadow:0 0 12px color-mix(in srgb,var(--glow) 64%,transparent);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--glow) 10%,transparent),0 0 22px color-mix(in srgb,var(--glow) 24%,transparent);
}
.role-admin{--glow:#d79a32}.role-moderator{--glow:#55a7ff}.role-user{--glow:#72c582}

.hero{padding:66px 0 28px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:24px;align-items:stretch}
.hero-copy,.hero-card,.content-card,.chat-shell{
  background:var(--surface-elevated);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
}
.hero-copy{padding:42px}
.hero h1{font-size:clamp(38px,7vw,86px);line-height:.95;letter-spacing:-.065em;margin:12px 0;color:var(--ink)}
.hero p,.page-hero p{font-size:19px;line-height:1.7;color:var(--muted);max-width:760px}
.eyebrow{
  display:inline-flex;font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:12px;
  color:var(--accent-text);background:var(--accent-soft);padding:8px 11px;border-radius:999px;border:1px solid var(--line);
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.hero-card{padding:28px;display:grid;gap:10px;align-content:center}
.hero-card strong{font-size:14px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.hero-card a{font-size:26px;font-weight:900;color:var(--ink);word-break:break-word;letter-spacing:-.03em}
.hero-card span{color:var(--muted);line-height:1.6}

.top-chat-wrap{margin-top:10px}
.chat-shell{padding:22px;margin-bottom:26px}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:16px}
.chat-head h2{margin:8px 0 4px;letter-spacing:-.03em}
.chat-head p{margin:0;color:var(--muted)}
.chat-messages{
  height:330px;overflow:auto;display:grid;align-content:start;gap:12px;padding:12px;border-radius:22px;
  background:var(--surface-muted);border:1px solid var(--line);
  scrollbar-color:var(--line-strong) transparent;
}
.chat-message{display:grid;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:12px 14px;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.chat-message.deleted{opacity:.68;background:var(--surface-muted)}
.chat-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px}
.chat-name{font-weight:900}
.chat-message p{margin:0;line-height:1.55}
.chat-message img{max-width:220px;border-radius:14px;display:block;border:1px solid var(--line)}
.chat-delete{border:0;background:transparent;color:var(--danger);font-weight:900;cursor:pointer}
.chat-form{display:flex;gap:10px;margin-top:12px}
.chat-form input,.gif-search-row input{
  flex:1;padding:14px 16px;border:1px solid var(--line);border-radius:16px;font:inherit;background:var(--surface);color:var(--ink);
}
.chat-form input::placeholder,.gif-search-row input::placeholder{color:var(--muted)}
.gif-panel{margin-top:12px;padding:14px;border:1px dashed var(--line-strong);border-radius:20px;background:var(--surface-muted)}
.gif-search-row{display:flex;gap:10px}
.gif-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-top:12px}
.gif-results button{border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:0;overflow:hidden;cursor:pointer}
.gif-results img{width:100%;height:100px;object-fit:cover;display:block}
.hint{color:var(--muted);font-size:13px}

.page-hero{padding:58px 0 22px}
.page-hero h1{font-size:clamp(34px,6vw,70px);line-height:.98;letter-spacing:-.06em;margin:12px 0;color:var(--ink)}
.content-card{padding:34px;margin-bottom:42px}
.page-content{font-size:18px;line-height:1.75}
.page-content h1,.page-content h2,.page-content h3{line-height:1.15;letter-spacing:-.035em}
.page-content p{color:color-mix(in srgb,var(--ink) 88%,var(--muted))}
.page-content a{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.page-content img{max-width:100%;border-radius:20px;box-shadow:var(--shadow-soft);border:1px solid var(--line)}
.page-content blockquote{margin:22px 0;padding:22px;border-left:6px solid var(--accent);background:var(--surface-muted);border-radius:18px;color:var(--muted-strong)}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.feature-grid div{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:20px;box-shadow:0 1px 0 rgba(0,0,0,.02)}
.feature-grid strong{display:block;font-size:20px;margin-bottom:8px;letter-spacing:-.03em}
.feature-grid span{color:var(--muted);line-height:1.55}

.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-bottom:50px}
.gallery-tile{border:1px solid var(--line);background:var(--surface);border-radius:24px;overflow:hidden;box-shadow:var(--shadow-soft);cursor:pointer;text-align:left;padding:0;color:var(--ink)}
.gallery-tile img{width:100%;height:190px;object-fit:cover;display:block;transition:.25s}
.gallery-tile:hover img{transform:scale(1.04)}
.gallery-tile span{display:block;padding:14px 16px;font-weight:900}
.lightbox{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:28px}
.lightbox[hidden]{display:none}
.lightbox figure{margin:0;max-width:min(1100px,90vw);max-height:82vh;display:grid;gap:12px}
.lightbox img{max-width:100%;max-height:74vh;object-fit:contain;border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.lightbox figcaption{color:#fff;text-align:center;display:grid;gap:4px}
.lightbox figcaption span{color:#d4d4d8}
.lightbox-close,.lightbox-nav{position:absolute;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.12);color:#fff;border-radius:999px;cursor:pointer;backdrop-filter:blur(12px)}
.lightbox-close{top:22px;right:22px;width:48px;height:48px;font-size:30px}
.lightbox-nav{top:50%;transform:translateY(-50%);width:58px;height:58px;font-size:46px}
.lightbox-prev{left:22px}.lightbox-next{right:22px}.lightbox-tools{position:absolute;bottom:22px;display:flex;gap:10px}

.site-footer{border-top:1px solid var(--line);background:var(--surface-elevated);padding:30px 0;margin-top:30px}
.footer-grid{display:flex;justify-content:space-between;gap:18px;align-items:center}
.site-footer p{color:var(--muted);margin:6px 0 0}
.site-footer nav{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.empty-state{text-align:center;color:var(--muted)}

@media(max-width:860px){
  .header-inner,.footer-grid{flex-direction:column;align-items:flex-start;padding:14px 0}
  .top-nav{margin-left:0}
  .hero-grid,.feature-grid{grid-template-columns:1fr}
  .hero-copy{padding:28px}
  .chat-head,.chat-form,.gif-search-row{flex-direction:column;align-items:stretch}
  .gallery-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .lightbox-nav{display:none}
}

/* v5: nick z samą poświatą, bez obwódki */
.user-pill,.chat-name,.glow-name{
  color:var(--glow)!important;background:transparent!important;border:0!important;box-shadow:none!important;
  text-shadow:0 0 8px color-mix(in srgb,var(--glow) 78%,transparent),0 0 22px color-mix(in srgb,var(--glow) 42%,transparent);
}
.user-pill{padding:4px 2px;border-radius:0;gap:8px}
.mini-avatar{width:26px;height:26px;border-radius:999px;object-fit:cover;border:1px solid var(--line);vertical-align:middle;margin-right:7px}
.chat-name{display:inline-flex;align-items:center;gap:7px;font-weight:950}
.chat-avatar{width:24px!important;height:24px!important;border-radius:999px!important;object-fit:cover!important;border:1px solid var(--line)!important;box-shadow:none!important}
.chat-gif{max-width:240px!important}
.mention{display:inline-flex;color:var(--ink);background:color-mix(in srgb,var(--glow,#111827) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--glow,#111827) 22%,var(--line));border-radius:999px;padding:0 7px;font-weight:900}
.brand-logo{width:44px;height:44px;border-radius:15px;object-fit:cover;box-shadow:var(--shadow-soft);border:1px solid var(--line)}

/* Forum */
.forum-shell{display:grid;gap:14px;margin-bottom:48px}
.forum-category,.forum-topic-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;
  background:var(--surface-elevated);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-soft);padding:20px;color:var(--ink)
}
.forum-category:hover,.forum-topic-row:hover{background:var(--surface);box-shadow:var(--shadow);transform:translateY(-1px)}
.forum-category strong,.forum-topic-row strong{font-size:22px;letter-spacing:-.035em}
.forum-category p{margin:6px 0 0;color:var(--muted);line-height:1.55}
.forum-stats{display:flex;gap:10px}.forum-stats span,.forum-topic-row>span{display:grid;place-items:center;min-width:76px;border:1px solid var(--line);background:var(--surface-muted);border-radius:18px;padding:10px;font-weight:950}.forum-stats small,.forum-topic-row small{display:block;color:var(--muted);font-size:12px;font-weight:800}
.forum-form{display:grid;gap:14px}.forum-form label{display:grid;gap:8px;font-weight:900}.forum-form input,.forum-form textarea{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);font:inherit}
.forum-post{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;background:var(--surface-elevated);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-soft);padding:18px}
.forum-post aside{display:grid;align-content:start;gap:8px;border-right:1px solid var(--line);padding-right:16px}.forum-avatar{width:74px;height:74px;border-radius:24px;object-fit:cover;border:1px solid var(--line)}
.rich-editor{border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}.rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px;border-bottom:1px solid var(--line);background:var(--surface-muted)}.rich-toolbar button,.rich-toolbar select,.rich-toolbar input{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:10px;padding:7px 9px;min-height:34px}.rich-area{min-height:220px;padding:16px;line-height:1.7;outline:0}.rich-area:focus{background:color-mix(in srgb,var(--surface) 92%,var(--surface-hover))}
@media(max-width:760px){.forum-category,.forum-topic-row{grid-template-columns:1fr}.forum-post{grid-template-columns:1fr}.forum-post aside{border-right:0;border-bottom:1px solid var(--line);padding-right:0;padding-bottom:12px}}

/* v6: dopracowane forum i zgodność subdomeny forum.ziolkowski.nl */
.forum-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:4px;
}
.forum-toolbar .actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.forum-empty-card{display:grid;justify-items:center;gap:10px;padding:34px}
.forum-category,.forum-topic-row{
  position:relative;overflow:hidden;transition:background .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease;
}
.forum-category::before,.forum-topic-row::before{
  content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--accent),transparent);opacity:.12;
}
.forum-topic-row small a,.forum-hero a{text-decoration:underline;text-underline-offset:3px}
.forum-post-body{min-width:0;display:grid;gap:12px}
.forum-post-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);padding-bottom:10px}
.forum-post-meta a{font-weight:900;color:var(--muted)}
.forum-inline-action{margin-top:10px}
.forum-avatar-empty{
  display:grid;place-items:center;background:var(--surface-muted);color:var(--ink);font-weight:950;font-size:26px;
}
.forum-post .page-content{font-size:16.5px;line-height:1.72}
.forum-post .page-content p:first-child{margin-top:0}
.forum-post .page-content p:last-child{margin-bottom:0}
.forum-form input:focus,.forum-form textarea:focus{outline:3px solid color-mix(in srgb,var(--ink) 14%,transparent);outline-offset:2px}

/* v7: Forum Pro IPB-like + piwa */
.forum-pro-hero{padding-bottom:18px}.forum-pro-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin-bottom:22px;border-radius:22px;box-shadow:var(--shadow-soft)}
.forum-mini-brand{display:flex;align-items:center;gap:10px;font-weight:950}.forum-mini-brand span{width:36px;height:36px;border-radius:13px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-weight:950}.forum-social-nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.forum-social-nav a{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-weight:900;color:var(--muted-strong)}.forum-social-nav a:hover{background:var(--surface-hover);color:var(--ink)}
.forum-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;margin-bottom:54px;align-items:start}.forum-main{display:grid;gap:16px}.forum-sidebar{display:grid;gap:14px;position:sticky;top:96px}.forum-widget{background:var(--surface-elevated);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-soft);padding:18px}.forum-widget h3{margin:0 0 12px;letter-spacing:-.03em}.muted{color:var(--muted)}
.forum-board{padding:0;overflow:hidden}.forum-board-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--surface),var(--surface-elevated))}.forum-board-head h2{margin:0}.forum-board-head p{margin:5px 0 0;color:var(--muted);line-height:1.5}.forum-board-title{font-size:24px;font-weight:950;letter-spacing:-.04em}.forum-board-meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.forum-board-meta span,.forum-count-pill{display:grid;place-items:center;min-width:78px;border:1px solid var(--line);background:var(--surface-muted);border-radius:16px;padding:9px 10px;font-weight:950}.forum-board-meta small,.forum-count-pill small{display:block;color:var(--muted);font-size:12px;font-weight:800}
.forum-subcategories{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--surface-muted)}.forum-subcategories a{display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 1px 0 rgba(0,0,0,.02)}.forum-subcategories strong{font-weight:950}.forum-subcategories small,.forum-subcategories span{color:var(--muted);line-height:1.45}.forum-subcategories-large{border-bottom:0;background:transparent;padding:0;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.forum-topic-table{display:grid}.forum-topic-table-head,.forum-topic-line{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,.5fr) 82px minmax(150px,.55fr);gap:14px;align-items:center}.forum-topic-table-head{padding:12px 18px;background:var(--surface-muted);color:var(--muted);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.forum-topic-line{padding:16px 18px;border-top:1px solid var(--line);transition:.18s}.forum-topic-line:hover{background:var(--surface-hover)}.forum-topic-name{display:grid;gap:4px}.forum-topic-name strong{font-size:17px;letter-spacing:-.02em}.forum-topic-name small,.forum-topic-line small{color:var(--muted);line-height:1.35}.forum-topic-empty{padding:28px;text-align:center;color:var(--muted)}.forum-topic-empty a{text-decoration:underline;font-weight:900}.forum-board-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 18px;border-top:1px solid var(--line);background:var(--surface-muted)}
.forum-breadcrumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--muted);font-weight:850;margin:0 0 16px}.forum-breadcrumbs a{text-decoration:underline;text-underline-offset:3px}.forum-breadcrumbs strong{color:var(--ink)}
.forum-activity-list,.forum-online-list{display:grid;gap:10px}.forum-activity-item{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:16px;border:1px solid var(--line);background:var(--surface)}.forum-activity-item:hover{background:var(--surface-hover)}.forum-activity-item span{display:grid;gap:4px;min-width:0}.forum-activity-item strong{font-size:14px;line-height:1.25}.forum-activity-item small{color:var(--muted);line-height:1.35}.forum-activity-item em{font-style:normal;color:var(--muted);font-size:12px;line-height:1.35}.forum-mini-avatar{width:34px;height:34px;border-radius:12px;object-fit:cover;flex:0 0 auto}.forum-mini-avatar-lg{width:48px;height:48px;border-radius:16px;object-fit:cover;flex:0 0 auto}.forum-online-list{display:flex;gap:8px;flex-wrap:wrap}.forum-online-user{font-size:14px}.forum-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.forum-stat-grid div{display:grid;place-items:center;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:14px}.forum-stat-grid strong{font-size:22px}.forum-stat-grid small{color:var(--muted);font-weight:850}
.forum-role-legend{display:grid;gap:12px}.forum-role-legend h2{margin:0}.forum-role-list{display:flex;flex-wrap:wrap;gap:12px}.forum-role-list a{font-weight:950}.forum-role-list small{font-size:12px;color:var(--muted);text-shadow:none;margin-left:4px}
.forum-post-pro{grid-template-columns:190px minmax(0,1fr);margin-bottom:14px}.forum-post-author{font-size:17px}.forum-author-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.forum-author-stats span{display:grid;place-items:center;border:1px solid var(--line);background:var(--surface-muted);border-radius:14px;padding:8px;font-weight:950}.forum-author-stats small{color:var(--muted);font-size:11px;text-shadow:none}.forum-hidden-link-box{border:1px dashed var(--line-strong);background:var(--surface-muted);padding:14px;border-radius:18px}.forum-hidden-link-box summary{font-weight:950;cursor:pointer;margin-bottom:10px}.beer-lock{display:grid;gap:10px;border:1px solid color-mix(in srgb,#f0b429 34%,var(--line));background:color-mix(in srgb,#f0b429 8%,var(--surface));border-radius:18px;padding:14px;margin-top:16px}.beer-lock p{margin:0;color:var(--muted)}.beer-lock small{color:var(--muted)}.beer-unlocked{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.beer-unlocked span{font-weight:950}.beer-form{margin:0}
.forum-profile-card{display:grid;gap:18px}.forum-profile-top{display:flex;gap:18px;align-items:center}.forum-profile-avatar{width:108px;height:108px;border-radius:30px;object-fit:cover;border:1px solid var(--line)}.forum-profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.forum-profile-stats div{display:grid;place-items:center;border:1px solid var(--line);background:var(--surface-muted);border-radius:18px;padding:16px}.forum-profile-stats strong{font-size:26px}.forum-profile-stats small{color:var(--muted);font-weight:900}.forum-profile-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.forum-profile-row small{color:var(--muted)}.forum-admin-profile-box{border-color:color-mix(in srgb,var(--danger) 32%,var(--line))}.forum-user-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.forum-user-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:13px}.forum-user-card span{display:grid;gap:4px}.forum-user-card small{color:var(--muted)}.forum-ranking-list{display:grid;gap:10px}.forum-ranking-row{display:grid;grid-template-columns:60px 56px minmax(0,1fr) 90px;gap:12px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:18px;padding:12px}.forum-ranking-row>b{font-size:22px;text-align:right}.forum-ranking-row small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:1040px){.forum-layout{grid-template-columns:1fr}.forum-sidebar{position:static}.forum-topic-table-head{display:none}.forum-topic-line{grid-template-columns:1fr;border-top:1px solid var(--line);gap:8px}.forum-count-pill{place-items:start;display:inline-flex;min-width:auto;width:max-content}.forum-board-head{display:grid}.forum-board-meta{justify-content:flex-start}}
@media(max-width:760px){.forum-pro-topbar,.forum-profile-top,.beer-unlocked{align-items:flex-start;flex-direction:column}.forum-social-nav{width:100%}.forum-post-pro{grid-template-columns:1fr}.forum-profile-stats{grid-template-columns:1fr}.forum-ranking-row{grid-template-columns:42px 48px minmax(0,1fr);}.forum-ranking-row>b{grid-column:1/-1;text-align:left}.forum-avatar{width:64px;height:64px;border-radius:20px}}
.forum-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:760px){.forum-form-row{grid-template-columns:1fr}}

/* v7: tagi tematów forum */
.forum-topic-tag{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-right:8px;
  padding:3px 9px;
  border:1px solid var(--tag-border,#d1d5db);
  border-radius:999px;
  background:var(--tag-bg,#f3f4f6);
  color:var(--tag-text,#374151);
  font-size:11px;
  line-height:1.25;
  font-weight:950;
  letter-spacing:.01em;
  text-transform:none;
  vertical-align:middle;
  box-shadow:0 1px 0 rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.38);
  white-space:nowrap;
}
.forum-hero h1 .forum-topic-tag{font-size:13px;padding:5px 11px;margin-right:10px;transform:translateY(-3px)}
.forum-tag-mini-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}
.forum-tag-mini-form select{min-height:36px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:0 10px;font-weight:850}
.forum-tag-preview-row{display:flex;gap:8px;flex-wrap:wrap;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface-muted)}
@media(max-width:760px){.forum-hero h1 .forum-topic-tag{display:flex;margin:0 0 8px 0;transform:none}.forum-topic-tag{white-space:normal}}

/* v9 Forum Pro: statusy, kolory tematów, rejestracja */
.forum-topic-title-colored{color:var(--topic-color,#2563eb);font-weight:800;text-shadow:0 0 18px color-mix(in srgb,var(--topic-color,#2563eb) 24%,transparent)}
.forum-top-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.status-menu{position:relative;z-index:30}.status-trigger{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:8px 11px;display:flex;align-items:center;gap:8px;font-weight:800;box-shadow:0 10px 24px rgba(15,23,42,.06);cursor:pointer}.status-trigger small{opacity:.6}.status-dot{width:10px;height:10px;border-radius:999px;background:var(--status-dot,#22c55e);box-shadow:0 0 0 4px color-mix(in srgb,var(--status-dot,#22c55e) 18%,transparent),0 0 16px color-mix(in srgb,var(--status-dot,#22c55e) 50%,transparent);display:inline-block;flex:none}.status-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:8px;box-shadow:0 24px 70px rgba(15,23,42,.16);opacity:0;visibility:hidden;transform:translateY(-8px) scale(.98);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}.status-menu.is-open .status-dropdown{opacity:1;visibility:visible;transform:translateY(0) scale(1)}.status-dropdown button{width:100%;border:0;background:transparent;color:var(--ink);border-radius:12px;padding:10px 11px;display:flex;align-items:center;gap:9px;font-weight:800;text-align:left;cursor:pointer}.status-dropdown button:hover,.status-dropdown button.active{background:var(--surface-hover)}.status-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800;background:var(--surface);color:var(--muted)}.status-badge i{width:8px;height:8px;border-radius:50%;background:var(--status-dot,#22c55e);box-shadow:0 0 12px var(--status-dot,#22c55e)}.forum-online-chip{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;margin:3px 6px 3px 0}.forum-tag-mini-form input[type=color]{width:44px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:3px}.terms-check{align-items:flex-start;line-height:1.5}.login-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.register-form .check a{font-weight:900}.container.narrow{max-width:860px}.forum-post aside .status-badge{margin-top:8px;justify-content:center}.forum-toolbar .status-badge{margin-left:8px}
@media(max-width:760px){.forum-pro-topbar{align-items:flex-start}.status-dropdown{left:0;right:auto}.forum-top-left{width:100%}}

/* v9.3 CoreHub CMS: ikony tematów i przyciski konta */
.forum-topic-icon{display:inline-flex;align-items:center;justify-content:center;margin-right:.35rem;font-size:1rem;line-height:1;vertical-align:-.08em;filter:drop-shadow(0 4px 10px rgba(0,0,0,.08))}
.header-actions .btn{white-space:nowrap}
.forum-tag-mini-form select[name="topic_icon"]{min-width:130px}


/* v9.4 CoreHub CMS: dopracowanie forum, profilu i galerii */
.profile-hover-menu{position:relative;z-index:80;display:inline-flex;align-items:center}
.profile-hover-trigger{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:7px 10px 7px 8px;display:inline-flex;align-items:center;gap:8px;font:inherit;font-weight:900;cursor:pointer;box-shadow:var(--shadow-soft);transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}
.profile-hover-trigger:hover,.profile-hover-menu:focus-within .profile-hover-trigger{transform:translateY(-1px);background:var(--surface-hover);border-color:color-mix(in srgb,var(--glow,#ef4444) 34%,var(--line));box-shadow:0 16px 45px color-mix(in srgb,var(--glow,#ef4444) 18%,transparent)}
.profile-hover-name{color:var(--glow,#ef4444);text-shadow:0 0 16px color-mix(in srgb,var(--glow,#ef4444) 70%,transparent),0 0 34px color-mix(in srgb,var(--glow,#ef4444) 32%,transparent)}
.profile-hover-status-dot{width:10px;height:10px;border-radius:999px;background:var(--status-dot,#22c55e);box-shadow:0 0 0 4px color-mix(in srgb,var(--status-dot,#22c55e) 16%,transparent),0 0 16px color-mix(in srgb,var(--status-dot,#22c55e) 55%,transparent)}
.profile-hover-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:min(310px,calc(100vw - 24px));background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:12px;box-shadow:0 30px 90px rgba(15,23,42,.20);opacity:0;visibility:hidden;transform:translateY(-10px) scale(.98);transform-origin:top right;transition:opacity .2s ease,transform .2s ease,visibility .2s ease;display:grid;gap:10px}
.profile-hover-menu:hover .profile-hover-dropdown,.profile-hover-menu:focus-within .profile-hover-dropdown{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.profile-hover-head{display:grid;gap:2px;padding:10px 10px 12px;border-bottom:1px solid var(--line)}
.profile-hover-head strong{font-size:17px}.profile-hover-head span{font-size:12px;color:var(--muted);font-weight:850}.profile-status-menu .status-trigger{width:100%;justify-content:space-between;border-radius:16px;box-shadow:none}.profile-status-menu .status-dropdown{position:static;display:grid;opacity:1;visibility:visible;transform:none;box-shadow:none;border-radius:16px;margin-top:8px;max-height:0;overflow:hidden;padding:0;border-width:0;transition:max-height .22s ease,padding .22s ease,border-width .22s ease}.profile-status-menu.is-open .status-dropdown,.profile-hover-menu:hover .profile-status-menu .status-dropdown,.profile-hover-menu:focus-within .profile-status-menu .status-dropdown{max-height:230px;padding:8px;border-width:1px}.profile-hover-links{display:grid;gap:4px}.profile-hover-links a{padding:10px 11px;border-radius:14px;color:var(--ink);font-weight:900}.profile-hover-links a:hover{background:var(--surface-hover)}.profile-hover-logout{color:var(--danger)!important}.mini-avatar{width:28px;height:28px;border-radius:999px;object-fit:cover;border:1px solid var(--line)}
.forum-sidebar{justify-self:stretch;width:100%;text-align:left}.forum-widget,.forum-widget *{text-align:left}.forum-stat-grid div{place-items:start;align-items:start;justify-items:start}.forum-stat-grid strong{line-height:1}.forum-activity-item{justify-content:flex-start}.forum-online-list{justify-content:flex-start}.forum-layout{grid-template-columns:minmax(0,1fr) minmax(320px,360px)}
.lightbox-close,.lightbox-nav,.lightbox-tool-btn{display:inline-flex;align-items:center;justify-content:center;line-height:1}.lightbox-close span{display:block;line-height:1;transform:translateY(-1px)}.lightbox-nav{font-size:0}.lightbox-nav svg,.lightbox-tool-btn svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.lightbox-nav svg{width:34px;height:34px}.lightbox-tool-btn{width:46px;height:46px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.13);color:#fff;border-radius:999px;cursor:pointer;backdrop-filter:blur(12px);transition:transform .16s ease,background .16s ease,border-color .16s ease}.lightbox-tool-btn:hover,.lightbox-tool-btn.is-active{transform:translateY(-1px);background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.35)}
@media(max-width:1040px){.forum-layout{grid-template-columns:1fr}.profile-hover-dropdown{right:auto;left:0;transform-origin:top left}}

/* v9.5 CoreHub CMS: menu ikonowe, status, tagi postów */
.ui-icon{width:18px;height:18px;display:inline-block;vertical-align:-3px;flex:none;stroke:currentColor}
.top-nav a,.site-footer nav a,.profile-hover-links a,.forum-social-nav a,.icon-btn{display:inline-flex;align-items:center;gap:8px}
.top-nav a .ui-icon{width:19px;height:19px;opacity:.92}.top-nav a span{font-weight:900}.site-footer nav a .ui-icon{width:17px;height:17px;opacity:.86}
.icon-btn .ui-icon{width:17px;height:17px}.profile-hover-links a .ui-icon{width:18px;height:18px;opacity:.88}.forum-social-nav a .ui-icon{width:18px;height:18px}.forum-mini-brand .ui-icon{width:18px;height:18px}
.profile-hover-menu.is-closing .profile-hover-dropdown{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-10px) scale(.98)!important}
.profile-hover-links a span{min-width:0}.profile-status-menu .status-dropdown{will-change:max-height,opacity}
.forum-post-tags{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 4px}.forum-post-tags span{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;border:1px solid var(--line);background:var(--surface-hover);font-size:12px;font-weight:900;color:var(--muted)}.forum-post-tags .ui-icon{width:13px;height:13px;color:var(--accent)}
.forum-form label small{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:750}
.forum-top-left .forum-mini-brand span{display:inline-flex;align-items:center;justify-content:center}.forum-social-nav{justify-content:flex-end;flex-wrap:wrap}
.forum-sidebar{justify-self:stretch!important;align-self:start!important}.forum-widget{margin-left:0;text-align:left}
@media(max-width:760px){.top-nav a span,.icon-btn span{display:none}.top-nav a,.icon-btn{width:42px;height:42px;justify-content:center;padding:0}.forum-social-nav a span{font-size:13px}.profile-hover-dropdown{width:min(330px,calc(100vw - 16px))}}


/* v9.5 polish: forum right sidebar left-aligned and icon-first navigation */
.forum-sidebar{justify-self:start!important;width:100%!important;margin-left:0!important;text-align:left!important}
.forum-sidebar .forum-widget{display:block;text-align:left!important}
.forum-sidebar .forum-widget h3,.forum-sidebar .forum-widget p,.forum-sidebar .forum-widget small,.forum-sidebar .forum-widget strong,.forum-sidebar .forum-widget em{ text-align:left!important; justify-self:start!important; align-self:start!important; }
.forum-stat-grid{justify-items:stretch!important;align-items:stretch!important}
.forum-stat-grid div{place-items:start!important;text-align:left!important;justify-content:start!important;align-content:start!important}
.top-nav a .ui-icon,.site-footer nav a .ui-icon{flex:0 0 auto}
.profile-hover-menu.is-closing .profile-hover-dropdown{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-12px) scale(.96)!important}
@media(min-width:761px){.top-nav a{padding-inline:12px}.top-nav a .ui-icon{width:19px;height:19px}}

/* CoreHub v9.7.1 - MyBB-like posts and comments */
.forum-topic-description{max-width:920px;margin-top:10px;color:var(--muted)}
.forum-comments{margin-top:18px;border-top:1px solid var(--line);padding-top:14px;display:grid;gap:10px}
.forum-comments h3{font-size:.95rem;margin:0;display:flex;gap:8px;align-items:center;color:var(--ink)}
.forum-comments h3 span{font-size:.75rem;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:2px 8px;color:var(--muted)}
.forum-comment{display:grid;grid-template-columns:34px 1fr;gap:10px;border:1px solid var(--line);background:var(--soft);border-radius:16px;padding:10px}
.forum-comment.is-deleted{opacity:.7}
.forum-comment-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.forum-comment-meta small,.forum-comment-meta a:last-child{color:var(--muted);font-size:.78rem}
.forum-comment-form{border:1px dashed var(--line);border-radius:14px;padding:10px;background:var(--surface)}
.forum-comment-form summary{cursor:pointer;font-weight:800;color:var(--ink)}
.forum-comment-form form{margin-top:10px;display:grid;gap:10px}
.small-content{font-size:.95rem;line-height:1.55}
.forum-topic-table .forum-topic-line{scroll-margin-top:90px}

/* v9.7.2 CoreHub CMS — forum MyBB/PyLife layout polish */
@media (min-width: 1041px){
  .forum-hero .container,
  .forum-layout.container{
    width:min(1500px, calc(100% - 44px));
    max-width:none;
  }
  .forum-layout{
    grid-template-columns:minmax(0,1fr) minmax(318px,348px) !important;
    gap:18px !important;
  }
  .forum-sidebar{
    justify-self:start!important;
    width:100%!important;
    margin-left:0!important;
  }
}
.forum-hero{padding-top:34px;padding-bottom:16px}
.forum-hero h1{font-size:clamp(34px,4.4vw,58px);line-height:.98;letter-spacing:-.065em;margin-bottom:12px}
.forum-board-title{font-size:20px!important;letter-spacing:-.035em}
.forum-topic-name strong,.forum-topic-title-colored{font-size:15.5px!important;line-height:1.25;font-weight:850}
.forum-topic-line{min-height:66px;padding-top:13px!important;padding-bottom:13px!important}
.forum-topic-line small{font-size:12px!important;line-height:1.35}
.forum-topic-table-head,.forum-topic-line{grid-template-columns:minmax(0,1.35fr) minmax(112px,.42fr) 74px minmax(146px,.5fr)!important}
.forum-board-head{padding:18px 20px!important}
.forum-board-meta span,.forum-count-pill{min-width:68px!important;border-radius:14px!important;padding:8px 9px!important}
.forum-widget{border-radius:20px!important;padding:16px!important}
.forum-activity-item{border-radius:15px!important;padding:10px!important}
.forum-pro-topbar{border-radius:18px!important;margin-bottom:18px!important}
.forum-category-icon,.forum-topic-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;vertical-align:-.08em}
@media(max-width:760px){
  .forum-hero h1{font-size:34px}
  .forum-topic-name strong,.forum-topic-title-colored{font-size:15px!important}
}
