/* ============================================================
   WASZA-FARMA.PL — Główny arkusz stylów
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Fredoka+One&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --g1: #6b7280;
  --g2: #374151;
  --g3: #f3f4f6;
  --g4: #f9fafb;
  --y:  #d1d5db;
  --y2: #9ca3af;
  --o:  #6b7280;
  --blue: #4b5563;
  --text: #111827;
  --text2: #1f2937;
  --bg: #f5f5f5;
  --card: #ffffff;
  --border: #e5e7eb;
  --r: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,.07);
  --shadow-h: 0 8px 32px rgba(0,0,0,.13);
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--g2); text-decoration: none; }
a:hover { color: var(--g1); }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
.nav {
  background: #e8e8e8;
  border-bottom: 2px solid #9ca3af;
  padding: 0 32px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-right: 28px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 0 var(--g2);
  flex-shrink: 0;
}

.nav-logo-text  { font-family: 'Fredoka One', cursive; font-size: 20px; color: #374151; line-height: 1; }
.nav-logo-sub   { font-size: 11px; color: #dc2626; font-weight: 800; letter-spacing: .5px;
                  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 2px 2px 4px rgba(0,0,0,.3); }

.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  color: #4b7c59;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 13px;
  border-radius: 10px;
  transition: .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--g3);
  color: var(--g2);
}
.nav-links a.active { background: #6b7280; color: #fff; }

.nav-right { display: flex; gap: 8px; margin-left: auto; }

.btn         { display: inline-block; padding: 9px 20px; border-radius: 24px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; cursor: pointer; border: none; transition: .15s; }
.btn-login   { background: var(--g3); color: var(--g2); }
.btn-reg     { background: #4b5563; color: #fff; box-shadow: 0 3px 0 var(--y2); }
.btn-reg:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--y2); }
.btn-primary { background: #626977; color: #fff; box-shadow: 0 3px 0 #4b5563; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-danger  { background: #ef4444; color: #fff; box-shadow: 0 3px 0 #b91c1c; }

/* ── HERO ── */
.hero {
  background: #626977;
  padding: 52px 32px 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '🌾🌻🐄🌽🐓🌷🍎🥕🌾🌻🐄🌽🐓';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  font-size: 28px;
  letter-spacing: 10px;
  opacity: .1;
  white-space: nowrap;
  overflow: hidden;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  color: #bbf7d0;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.hero-dot { width: 7px; height: 7px; background: #9ca3af; border-radius: 50%; animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero h1 { font-family: 'Fredoka One', cursive; font-size: 48px; color: #fff; line-height: 1.1; margin-bottom: 12px; }
.hero h1 em { color: #d1d5db; font-style: normal; }
.hero-desc { color: #d1d5db; font-size: 15px; line-height: 1.6; font-weight: 600; max-width: 480px; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-btn-p {
  background: #6b7280; color: #fff;
  border: none; padding: 13px 26px; border-radius: 28px;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 900;
  cursor: pointer; box-shadow: 0 4px 0 var(--y2); transition: .15s;
}
.hero-btn-p:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--y2); }
.hero-btn-s {
  background: rgba(255,255,255,.15); color: #fff;
  border: 2px solid rgba(255,255,255,.35);
  padding: 13px 26px; border-radius: 28px;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800;
  cursor: pointer; transition: .15s;
}
.hero-btn-s:hover { background: rgba(255,255,255,.25); }

.hero-stats { display: flex; gap: 24px; margin-top: 24px; }
.hstat-num  { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 28px; color: #fff; }
.hstat-lbl  { font-size: 11px; color: #9ca3af; font-weight: 700; }

/* Kod bonusowy w hero */
.hero-code-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  min-width: 210px;
  position: relative;
}
.hcc-gift   { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 34px; }
.hcc-title  { font-family: 'Fredoka One', cursive; font-size: 13px; color: #4b7c59; margin-top: 14px; margin-bottom: 2px; }
.hcc-event  { font-size: 11px; color: #aaa; font-weight: 700; margin-bottom: 12px; }
.hcc-code   { background: var(--g4); border: 2px dashed var(--g1); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.hcc-lbl    { font-size: 9px; font-weight: 800; color: #aaa; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px; }
.hcc-val    { font-family: 'Fredoka One', cursive; font-size: 22px; color: var(--g2); letter-spacing: 3px; }
.hcc-reward { font-size: 11px; color: #555; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.hcc-exp    { background: #4b5563; color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 10px; font-weight: 800; }
.hcc-none   { color: #aaa; font-size: 13px; font-weight: 700; padding: 20px 0; }

/* ── WRAPPER ── */
.main { max-width: 980px; margin: 0 auto; padding: 32px 20px; }

/* ── SECTION HEADER ── */
.sec-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sec-title { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 22px; color: var(--text); }
.sec-more {
  color: var(--g2); font-size: 13px; font-weight: 800;
  padding: 6px 14px; border: 2px solid var(--border); border-radius: 20px; transition: .15s;
}
.sec-more:hover { background: var(--g3); color: var(--g2); }

/* ── POLA GRY ── */
.fields-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 36px; }
.field-card {
  background: #fff; border-radius: 14px; padding: 16px 10px; text-align: center;
  cursor: pointer; transition: .2s; box-shadow: var(--shadow); border: 2px solid transparent;
}
.field-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: var(--g3); }
.field-icon { font-size: 30px; margin-bottom: 8px; }
.field-name { font-size: 12px; font-weight: 800; color: var(--text2); line-height: 1.3; }

/* ── NEWS GRID ── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }

.news-card {
  background: var(--card); border-radius: var(--r); padding: 0;
  box-shadow: var(--shadow); cursor: pointer; transition: .2s;
  border: 2px solid transparent; overflow: hidden; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); border-color: var(--g3); }
.news-card.featured { grid-column: 1 / -1; flex-direction: row; }

.news-card-thumb {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--g3), #bbf7d0);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; flex-shrink: 0; overflow: hidden;
}
.news-card-thumb img { max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain; margin: auto; display: block; }
.news-card.featured .news-card-thumb { width: 220px; height: auto; min-height: 160px; font-size: 72px; }

.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  font-size: 10px; font-weight: 800; padding: 3px 10px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: .4px;
}
.badge-bonus  { background: #fef9c3; color: #854d0e; }
.badge-event  { background: #fce7f3; color: #9d174d; }
.badge-guide  { background: #eff6ff; color: #1e40af; }
.badge-update { background: #f5f3ff; color: #5b21b6; }
.badge-news   { background: #f0fdf4; color: #15803d; }
.badge-other  { background: #f8fafc; color: #475569; }
.badge-pinned { background: #6b7280; color: #fff; }

.news-title {
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 17px;
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.news-card.featured .news-title { font-size: 21px; }
.news-excerpt { font-size: 13px; color: #555; line-height: 1.6; font-weight: 600; margin-bottom: 12px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.news-date { font-size: 11px; color: #aaa; font-weight: 700; }
.news-views { font-size: 11px; color: #aaa; font-weight: 700; }
.news-coms  { font-size: 11px; color: var(--blue); font-weight: 800; }
.news-read  { font-size: 12px; color: var(--g1); font-weight: 800; margin-left: auto; }

/* ── BOTTOM GRID ── */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 32px; }

.side-card { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.side-title { font-family: 'Fredoka One', cursive; font-size: 16px; color: var(--text); margin-bottom: 14px; }

/* Forum items */
.forum-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--g3); align-items: flex-start; }
.forum-item:last-child { border-bottom: none; }
.forum-ava { width: 32px; height: 32px; border-radius: 10px; background: var(--g3); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.forum-item-text { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.forum-item-meta { font-size: 10px; color: #aaa; font-weight: 700; }

/* Ogłoszenia */
.ogl-item { padding: 9px 0; border-bottom: 1px solid var(--g3); }
.ogl-item:last-child { border-bottom: none; }
.ogl-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ogl-row  { display: flex; justify-content: space-between; align-items: center; }
.ogl-price { font-size: 12px; font-weight: 800; color: var(--o); }
.ogl-loc   { font-size: 10px; color: #aaa; font-weight: 700; }

/* Poll */
.poll-q { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.poll-opt { margin-bottom: 9px; }
.poll-opt-row { display: flex; justify-content: space-between; margin-bottom: 3px; }
.poll-opt-lbl { font-size: 12px; font-weight: 700; color: #555; }
.poll-opt-pct { font-size: 12px; font-weight: 800; color: var(--g2); }
.poll-bar-bg   { background: var(--g3); border-radius: 6px; height: 7px; }
.poll-bar-fill { background: linear-gradient(90deg, var(--g1), var(--g2)); height: 7px; border-radius: 6px; transition: width .6s ease; }
.poll-btn { background: var(--g1); color: #fff; border: none; border-radius: 20px; padding: 8px 20px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; cursor: pointer; margin-top: 10px; width: 100%; }

/* Services row */
.services-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.disc-card { background: linear-gradient(135deg, #5865f2, #7289da); border-radius: 14px; padding: 16px; text-align: center; color: #fff; box-shadow: var(--shadow); }
.chat-card { background: linear-gradient(135deg, #0ea5e9, #38bdf8); border-radius: 14px; padding: 16px; text-align: center; color: #fff; box-shadow: var(--shadow); }
.sc-icon  { font-size: 26px; margin-bottom: 6px; }
.sc-title { font-family: 'Fredoka One', cursive; font-size: 15px; margin-bottom: 8px; }
.sc-btn   { background: #fff; border: none; border-radius: 18px; padding: 7px 16px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; cursor: pointer; width: 100%; }
.sc-btn.disc { color: #5865f2; }
.sc-btn.chat { color: #0ea5e9; }

/* Newsletter */
.nl-card { background: linear-gradient(135deg, #374151, #4b5563); border-radius: var(--r); padding: 28px 32px; text-align: center; color: #fff; box-shadow: 0 4px 0 #15803d; margin-bottom: 32px; }
.nl-icon  { font-size: 36px; margin-bottom: 8px; }
.nl-title { font-family: 'Fredoka One', cursive; font-size: 22px; margin-bottom: 6px; }
.nl-desc  { font-size: 13px; opacity: .9; font-weight: 600; line-height: 1.5; margin-bottom: 18px; }
.nl-form  { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.nl-input { flex: 1; padding: 12px 18px; border-radius: 28px; border: none; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; }
.nl-submit { background: #6b7280; color: #fff; border: none; border-radius: 28px; padding: 12px 22px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--y2); white-space: nowrap; }

/* ── ARTYKUŁ (podstrona) ── */
.article-wrap { max-width: 760px; margin: 32px auto; padding: 0 20px; }
.article-header { margin-bottom: 24px; }
.article-title-big { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 34px; color: var(--text); line-height: 1.2; margin-bottom: 12px; }
.article-meta-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: #aaa; font-size: 13px; font-weight: 700; }
.article-body { font-size: 15px; line-height: 1.75; color: #333; text-align: center; font-weight: 600; }
.article-body img,
.article-body img.bbCodeImage,
.article-body img.LbImage { 
  border-radius: 12px; 
  margin: 12px auto !important; 
  display: block !important; 
  max-width: 100% !important;
  height: auto !important;
  float: none !important;
}
.article-body div { text-align: center; }
.article-body ul { display: inline-block; text-align: left; margin: 8px auto; }
.article-body h2, .article-body h3 { font-family: 'Fredoka One', cursive; color: var(--text); margin: 24px 0 10px; }
.article-body hr { margin: 20px auto; border: none; border-top: 2px dashed var(--g3); max-width: 80%; }
.article-body br { line-height: 1.4; }

/* Kod bonusowy w artykule */
.bonus-inline {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 3px solid var(--y);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: center;
  box-shadow: 0 4px 0 var(--y2);
}
.bonus-inline-code { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 28px; color: var(--g2); letter-spacing: 4px; }
.bonus-inline-info { font-size: 13px; color: #555; font-weight: 700; margin-top: 6px; }

/* Komentarze */
.comments-section { margin-top: 36px; }
.comment-card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.comment-author { font-size: 13px; font-weight: 800; color: var(--g2); margin-bottom: 4px; }
.comment-date   { font-size: 11px; color: #aaa; font-weight: 700; }
.comment-body   { font-size: 13px; color: #444; line-height: 1.6; margin-top: 6px; }
.comment-form-wrap { background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); margin-top: 16px; }

/* Formularze */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 11px 16px; border: 2px solid var(--border);
  border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: 14px;
  transition: .15s; background: #fff; color: var(--text);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--g1); box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* Alerty */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 700; }
.alert-ok  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── FOOTER ── */
.footer {
  background: #1f2937;
  color: #bbf7d0;
  text-align: center;
  padding: 22px 20px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 16px;
}
.footer strong { color: #d1d5db; }
.footer small  { opacity: .5; font-size: 10px; display: block; margin-top: 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; flex-wrap: wrap; }
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-code-card { display: none; }
  .hero h1 { font-size: 32px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { flex-direction: column; }
  .news-card.featured .news-card-thumb { width: 100%; height: 160px; }
  .fields-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-grid { grid-template-columns: 1fr; }
  .services-row { grid-template-columns: 1fr; }
  .main { padding: 20px 12px; }
}

/* ── BANNER ── */
.site-banner { width:100%; background:#1f2937; text-align:center; overflow:hidden; }
.site-banner img { max-width:100%; height:auto; display:inline-block; }

/* ── KOD BONUSOWY PASEK ── */
.bonus-bar {
  background:linear-gradient(90deg,#1f2937,#374151);
  padding:8px 20px; display:flex; align-items:center; gap:12px;
  flex-wrap:wrap; font-size:13px;
}
.bonus-bar-label { color:#bbf7d0; font-weight:700; }
.bonus-bar-code { background:#fff; color:#1f2937; font-family:'Fredoka One',cursive; font-size:16px; padding:2px 12px; border-radius:8px; letter-spacing:2px; }
.bonus-bar-desc { color:#dcfce7; font-weight:600; flex:1; }
.bonus-bar-exp { color:#bbf7d0; font-size:11px; font-weight:700; }
.bonus-bar-link { background:#6b7280; color:#fff; padding:4px 12px; border-radius:16px; font-size:12px; font-weight:800; text-decoration:none; white-space:nowrap; }

/* ── HOME LAYOUT ── */
.home-layout { display:grid; grid-template-columns:180px 1fr 300px; gap:12px; width:100%; padding:14px 12px; }
.chat-layout { width:100%; padding:0 12px 14px; }

/* ── LEWA KOLUMNA ── */
.left-col { display:flex; flex-direction:column; gap:10px; }
.side-panel { background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); }
.side-panel-title { background:linear-gradient(90deg,#4b5563,#6b7280); color:#fff; font-family:'Nunito',sans-serif; font-weight:900; font-size:13px; padding:8px 12px; letter-spacing:.3px; display:flex; align-items:center; gap:6px; }
.side-panel-title a { color:#fff; text-decoration:none; }

.fields-nav { display:flex; flex-direction:column; }
.field-nav-item { display:flex; align-items:center; gap:8px; padding:6px 12px; font-size:12px; font-weight:700; color:var(--text2); text-decoration:none; border-bottom:1px solid var(--g3); transition:.15s; }
.field-nav-item:last-child { border-bottom:none; }
.field-nav-item:hover { background:#f3f4f6; color:#111827; padding-left:16px; }
.field-nav-icon { font-size:16px; width:20px; text-align:center; flex-shrink:0; }
.field-nav-name { font-size:12px; }

.stats-list { padding:8px 0; }
.stat-row { display:flex; justify-content:space-between; align-items:center; padding:5px 12px; font-size:12px; color:#555; font-weight:600; border-bottom:1px solid var(--g3); }
.stat-row:last-child { border-bottom:none; }
.stat-row strong { color:#374151; font-size:13px; }

.poll-q { font-size:12px; font-weight:700; color:var(--text); padding:10px 12px 6px; line-height:1.4; }
.poll-radio { display:flex; align-items:center; gap:6px; padding:4px 12px; font-size:12px; font-weight:600; cursor:pointer; }
.poll-radio input { accent-color:var(--g1); }
.poll-btn { display:block; width:calc(100% - 24px); margin:8px 12px; background:#4b5563; color:#fff; border:none; border-radius:8px; padding:7px; font-family:'Nunito',sans-serif; font-size:12px; font-weight:800; cursor:pointer; }
.poll-opt { padding:4px 12px; }
.poll-opt-row { display:flex; justify-content:space-between; margin-bottom:2px; }
.poll-opt-lbl { font-size:11px; font-weight:700; color:#555; }
.poll-opt-pct { font-size:11px; font-weight:800; color:var(--g2); }
.poll-bar-bg { background:var(--g3); border-radius:4px; height:6px; }
.poll-bar-fill { background:linear-gradient(90deg,#6b7280,#374151); height:6px; border-radius:4px; }

.disc-panel { background:linear-gradient(135deg,#374151,#4b5563) !important; }
.disc-panel .side-panel-title { background:rgba(0,0,0,.2) !important; }
.disc-btn { display:block; margin:10px 12px; background:#fff; color:#374151; text-align:center; padding:8px; border-radius:8px; font-size:13px; font-weight:800; text-decoration:none; }

/* ── ŚRODEK ── */
.mid-col { min-width:0; }

/* ── PRAWA KOLUMNA: CZAT ── */
.right-col { display:flex !important; flex-direction:column; min-width:0; }
.chat-panel { flex:1; display:flex; flex-direction:column; }
.chat-panel-full { background:#fff; border-radius:12px; box-shadow:var(--shadow); overflow:hidden; margin-bottom:14px; }
.chat-panel-full .side-panel-title { background:linear-gradient(90deg,#4b5563,#6b7280); color:#fff; font-family:'Nunito',sans-serif; font-weight:900; font-size:14px; padding:10px 14px; }
.chat-messages {
  height:280px; overflow-y:auto;
  padding:10px; display:flex; flex-direction:column; gap:6px;
  background:#f8f8f8;
}
.chat-msg { display:flex; flex-direction:column; gap:2px; padding:7px 12px; border-radius:8px; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.06); align-self:flex-start; max-width:85%; }
.chat-msg-own { background:#e5e7eb; align-self:flex-start; }
.chat-user { font-size:13px; font-weight:900; color:#374151; }
.chat-user.rank-admin   { color:#dc2626; font-weight:900; }
.chat-user.rank-mod     { color:#16a34a; font-weight:900; }
.chat-user.rank-newsmod { color:#b45309; font-weight:900; }
.chat-text { font-size:14px; font-weight:500; color:#111827; line-height:1.5; word-break:break-word; }
.chat-time { font-size:10px; color:#9ca3af; font-weight:700; }
.chat-form { display:flex; gap:8px; padding:10px; border-top:2px solid #e5e7eb; background:#fff; }
.chat-input { flex:1; padding:9px 14px; border:2px solid #d1d5db; border-radius:8px; font-size:14px; font-weight:600; font-family:'Nunito',sans-serif; }
.chat-input:focus { outline:none; border-color:#4b5563; }
.chat-send { background:#4b5563; color:#fff; border:none; border-radius:8px; padding:9px 16px; font-size:16px; cursor:pointer; }

/* ── RESPONSIVE ── */
@media(max-width:800px) {
  .home-layout { grid-template-columns:180px 1fr; }
  .right-col { display:none; }
}
@media(max-width:700px) {
  .home-layout { grid-template-columns:1fr; }
  .left-col, .right-col { display:none; }
}

/* ── CZAT BOCZNY ── */
.chat-side-panel { background:#fff; border-radius:12px; box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column; height:520px; }
.chat-side-header { background:linear-gradient(90deg,#4b5563,#6b7280); color:#fff; font-family:'Nunito',sans-serif; font-weight:900; font-size:14px; padding:10px 14px; display:flex; justify-content:space-between; align-items:center; flex-shrink:0; }
.chat-messages { flex:1; overflow-y:auto; padding:8px; display:flex; flex-direction:column; gap:4px; background:#f5f5f5; }
.chat-msg { width:100%; border-radius:8px; padding:6px 10px; box-sizing:border-box; }
.chat-msg-header { display:flex; align-items:center; gap:6px; margin-bottom:3px; }
.chat-user { font-size:12px; font-weight:900; color:#374151; }
.chat-user.is-admin { color:#dc2626; }
.chat-time { font-size:10px; color:#9ca3af; font-weight:700; margin-left:auto; }
.chat-ip { font-size:11px; cursor:help; }
.chat-del-btn { background:none; border:none; color:#ef4444; font-size:11px; cursor:pointer; padding:0 2px; font-weight:800; }
.chat-del-btn:hover { color:#dc2626; }
.chat-text { font-size:13px; font-weight:700; color:#111827; line-height:1.5; word-break:break-word; }
.chat-text a { color:#374151; font-weight:800; }
.chat-form { display:flex; gap:6px; padding:8px; border-top:2px solid #e5e7eb; flex-shrink:0; }
.chat-input { flex:1; padding:7px 10px; border:2px solid #d1d5db; border-radius:8px; font-size:13px; font-weight:600; font-family:'Nunito',sans-serif; min-width:0; }
.chat-input:focus { outline:none; border-color:#4b5563; }
.chat-send { background:#4b5563; color:#fff; border:none; border-radius:8px; padding:7px 12px; font-size:14px; cursor:pointer; flex-shrink:0; }

/* ── Zastąp Fredoka One (brak polskich znaków) ── */
[style*="Fredoka One"],
[class*="admin-logo"],
[class*="admin-title"],
[class*="source-label"],
[class*="stat-card-num"],
[class*="admin-card-title"] {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 900 !important;
}

/* ── Sloty reklamowe ── */
.ad-slot { width: 100%; overflow: hidden; }
.ad-slot-header, .ad-slot-footer { text-align: center; padding: 8px 0; }
.ad-slot-sidebar_left, .ad-slot-sidebar_right { margin-top: 12px; }
.ad-slot-between_news { margin: 8px 0; }
.ad-slot-before_content, .ad-slot-after_content { margin: 16px 0; text-align: center; }
