/* ============================================================
   MULTILOS — APP.CSS
   Style unikalne dla pojedynczych podstron. Reset, navbar, stopka,
   przyciski, tagi i inne elementy współdzielone między stronami
   żyją w shared.css — tutaj nic ich nie dubluje.
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   GRUPY — LISTA (Groups/index.php)
   ══════════════════════════════════════════════════════════ */
.groups-page-header {
  background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%);
  padding: 36px 0 32px;
  position: relative; overflow: hidden;
}
.groups-page-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(109,40,217,0.3) 0%, transparent 70%); pointer-events: none; }
.groups-page-header .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  position: relative; z-index: 1;
}
.groups-page-header h1 { font-size: clamp(1.5rem,3vw,2rem); color:#fff; font-weight:800; margin:0 0 6px; }
.groups-page-header p { color:rgba(255,255,255,0.6); font-size:0.88rem; margin:0; }
.header-btns { display:flex; gap:10px; flex-wrap:wrap; }
.btn-kod {
  background:rgba(255,255,255,0.12); color:#fff;
  border:1.5px solid rgba(255,255,255,0.25); border-radius:10px;
  padding:9px 18px; font-weight:600; font-size:0.875rem;
  display:flex; align-items:center; gap:7px; cursor:pointer; transition:all 0.15s;
}
.btn-kod:hover { background:rgba(255,255,255,0.2); }
.btn-add {
  background:#fff; color:var(--purple-main); border:none;
  border-radius:10px; padding:10px 20px; font-weight:700; font-size:0.875rem;
  display:flex; align-items:center; gap:7px; cursor:pointer; transition:background 0.15s;
  text-decoration:none;
}
.btn-add:hover { background:#f3f0ff; color:var(--purple-main); }

.page-body {
  max-width:1280px; margin:0 auto; padding:28px 24px 60px;
  display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start;
}
@media(max-width:900px){
  .page-body { grid-template-columns:1fr; }
  .sidebar { display:none; }
}
.sidebar {
  background:#fff; border-radius:14px; border:1px solid var(--border);
  padding:18px 16px; position:sticky; top:72px;
  width:280px; min-width:280px;
}
.sidebar-search { position:relative; margin-bottom:20px; }
.sidebar-search input {
  width:100%; border:1px solid var(--border); border-radius:9px;
  padding:9px 12px 9px 36px; font-size:0.85rem; color:var(--text);
  outline:none; background:var(--light-bg); transition:border 0.15s;
}
.sidebar-search input:focus { border-color:var(--purple-main); background:#fff; }
.sidebar-search i { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:0.9rem; }
.filter-group { margin-bottom:18px; }
.filter-label { font-size:0.7rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:8px; }
.mobile-filters-toggle {
  display:none; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding:9px 16px; font-size:0.875rem; font-weight:600; cursor:pointer;
  margin-bottom:16px; color:var(--text);
}
@media(max-width:900px){ .mobile-filters-toggle { display:flex; } }
.offcanvas-title { font-weight:700; }
.btn-clear-filters {
  display:inline-flex; align-items:center; gap:5px;
  background:none; border:none; padding:6px 2px;
  font-weight:600; font-size:0.78rem; color:var(--muted);
  cursor:pointer; transition:color 0.15s; text-decoration:none;
}
.btn-clear-filters:hover { color:#ef4444; }
.btn-clear-filters-row {
  flex:1 1 0; justify-content:center; padding:11px; font-size:0.875rem; font-weight:500;
  border:1.5px solid var(--border); border-radius:10px; background:none;
}
.btn-clear-filters-row:hover { border-color:#ef4444; }
#mobileFilters #applyMobileFilters { flex:1 1 0; }
/* .btn-add domyślnie jest biały na fioletowy nagłówek — w panelu filtrów
   (białe tło) potrzebuje odwróconych kolorów, inaczej znika. */
#mobileFilters .btn-add { background:#6c3fff; color:#fff; }
#mobileFilters .btn-add:hover { background:#5a2fd9; color:#fff; }

.groups-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media(max-width:1100px){ .groups-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .groups-grid { grid-template-columns:1fr; } }

.group-card {
  background:#fff; border-radius:14px; border:1px solid var(--border);
  padding:18px 20px; display:flex; flex-direction:column;
  transition:box-shadow 0.2s, transform 0.15s;
}
.group-card:hover { box-shadow:0 4px 20px rgba(108,63,255,0.1); transform:translateY(-1px); }
.card-header-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.prog-bar.low { background: var(--purple-main); }

.infinite-loader { display:flex; justify-content:center; align-items:center; gap:10px; padding:32px 0; color:var(--muted); font-size:0.88rem; }
.infinite-loader-spinner { width:20px; height:20px; border:2px solid var(--border); border-top-color:var(--purple-main); border-radius:50%; animation:spin 0.7s linear infinite; }

/* ── Modal "Mam kod" (dostęp do prywatnej grupy przez kod) ── */
.code-modal-content { border-radius:16px; border:none; }
.code-modal-title { font-weight:800; font-size:1.15rem; }
.code-modal-title i { color:var(--purple-main); }
.code-modal-desc { font-size:0.88rem; color:var(--muted); margin-bottom:20px; }
.code-field { margin-bottom:16px; }
.code-field label { display:block; font-size:0.82rem; font-weight:600; color:var(--text); margin-bottom:8px; }
.code-input {
  width:100%; border:1.5px solid var(--border); border-radius:10px; padding:14px 16px;
  font-size:1.3rem; font-weight:700; letter-spacing:0.25em; text-align:center;
  text-transform:uppercase; outline:none; transition:border 0.15s; font-family:inherit;
}
.code-error { visibility:hidden; font-size:0.78rem; color:var(--red); margin-top:8px; display:flex; align-items:center; gap:5px; min-height:18px; }
.code-info-box { background:#f8f7ff; border-radius:10px; padding:11px 14px; font-size:0.79rem; color:var(--muted); display:flex; gap:8px; align-items:flex-start; }
.code-info-box i { color:var(--purple-main); flex-shrink:0; margin-top:1px; }
.code-modal-footer { gap:10px; }
.btn-code-cancel { flex:1; border:1.5px solid var(--border); border-radius:10px; font-weight:600; padding:11px; }
.btn-code-primary { flex:1; background:var(--purple-main); color:#fff; border-radius:10px; font-weight:700; padding:11px; border:none; }
.code-step2-header { display:flex; align-items:center; gap:10px; }
.btn-code-back { background:none; border:none; cursor:pointer; color:var(--muted); padding:0; font-size:1.05rem; }
.code-success-box { background:#d1fae5; border:1px solid #6ee7b7; border-radius:10px; padding:10px 14px; display:flex; align-items:center; gap:8px; margin-bottom:18px; font-size:0.82rem; color:#065f46; }
.code-success-box i { color:var(--green); flex-shrink:0; }
.code-details-box { background:#f8f7ff; border-radius:12px; padding:18px 20px; margin-bottom:16px; }
.code-details-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.code-detail-label { font-size:0.7rem; color:var(--muted); margin-bottom:3px; display:flex; align-items:center; gap:4px; }
.code-detail-value { font-size:1rem; font-weight:700; color:var(--text); }
#codeGroupGame { color:var(--purple-main); }
.btn-code-confirm { flex:2; background:var(--purple-main); color:#fff; border-radius:10px; font-weight:700; padding:11px; border:none; text-align:center; text-decoration:none; }

/* ══════════════════════════════════════════════════════════
   GRUPA — SZCZEGÓŁY (Groups/view.php)
   ══════════════════════════════════════════════════════════ */
.group-header {
    background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%);
    padding: 28px 0 36px;
    position: relative; overflow: hidden;
}
.group-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(109,40,217,0.3) 0%, transparent 70%); pointer-events: none; }
.group-header .inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.header-badges { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.badge-game { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 99px; padding: 4px 14px; font-size: 0.78rem; font-weight: 600; }
.badge-status { background: rgba(16,185,129,0.2); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); border-radius: 99px; padding: 4px 14px; font-size: 0.78rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.badge-status.full { background: rgba(239,68,68,0.15); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.badge-status.closed { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.15); }
.badge-private { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.15); border-radius: 99px; padding: 4px 12px; font-size: 0.78rem; display: flex; align-items: center; gap: 5px; }

.main { max-width: 1280px; margin: 0 auto; padding: 32px 24px 60px; display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .main { grid-template-columns: 1fr; } .sidebar-col { order: -1; } }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.stat-cell { background: #fff; padding: 18px 20px; }
.stat-icon { color: #6c3fff; font-size: 1.1rem; margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; color: #6b7280; margin-bottom: 4px; }
.stat-value { font-size: 1rem; font-weight: 700; color: #1f2937; }

.countdown-card { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 22px 24px; margin-bottom: 20px; }
.countdown-header { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: #1f2937; margin-bottom: 14px; }
.countdown-grid { display: flex; gap: 10px; margin-bottom: 12px; }
.countdown-note { font-size: 0.78rem; color: #6b7280; display: flex; align-items: center; gap: 5px; }
.countdown-unit { flex: 1; border-radius: 10px; padding: 14px 8px; text-align: center; background: #f8f7ff; border: 1px solid #ede9fe; transition: background 0.3s, border-color 0.3s; }
.countdown-unit.state-open { background: #f8f7ff; border-color: #ede9fe; }
.countdown-unit.state-urgent { background: #fef2f2; border-color: #fecaca; }
.countdown-unit.state-draw { background: #6c3fff; border-color: #6c3fff; }
.countdown-unit.state-ended { background: #f9fafb; border-color: #e5e7eb; }
.countdown-num { font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.state-open .countdown-num    { color: #6c3fff; }
.state-urgent .countdown-num  { color: #ef4444; }
.state-draw .countdown-num    { color: #fff; }
.state-ended .countdown-num   { color: #9ca3af; }
.countdown-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; }
.state-draw .countdown-label  { color: rgba(255,255,255,0.7); }
.cd-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; margin-bottom: 14px; }
.cd-badge.open    { background: #ede9fe; color: #6c3fff; }
.cd-badge.urgent  { background: #fee2e2; color: #ef4444; animation: pulse 1s ease-in-out infinite; }
.cd-badge.draw    { background: #6c3fff; color: #fff; }
.cd-badge.ended   { background: #f3f4f6; color: #6b7280; }

.fill-card { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 22px 24px; margin-bottom: 20px; }
.fill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fill-title { font-size: 0.95rem; font-weight: 700; color: #1f2937; }
.fill-pct { font-size: 0.95rem; font-weight: 700; color: #6c3fff; }
.fill-bar-bg { background: #f3f4f6; border-radius: 99px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.fill-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6c3fff, #a78bfa); transition: width 1s ease; }
.fill-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: #9ca3af; }

.protection-card { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 14px; padding: 20px 22px; }
.protection-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.protection-header i { color: #f59e0b; font-size: 1.2rem; }
.protection-title { font-size: 0.95rem; font-weight: 700; color: #92400e; }
.protection-desc { font-size: 0.83rem; color: #78350f; line-height: 1.6; margin-bottom: 14px; }
.protection-list { display: flex; flex-direction: column; gap: 6px; }
.protection-list li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #78350f; list-style: none; }
.protection-list li i { color: #f59e0b; font-size: 0.9rem; }
.protection-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #fde68a; font-size: 0.78rem; color: #92400e; line-height: 1.55; }
.protection-note i { flex-shrink: 0; margin-top: 2px; color: #d97706; }

.join-card { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 22px; margin-bottom: 12px; }
.join-title { font-size: 1.05rem; font-weight: 800; color: #1f2937; margin-bottom: 6px; }
.join-sub { font-size: 0.82rem; color: #6b7280; margin-bottom: 16px; }
.join-progress { margin-bottom: 16px; }
.join-bar-bg { background: #f3f4f6; border-radius: 99px; height: 6px; overflow: hidden; }
.join-bar { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6c3fff, #a78bfa); }
.btn-join { width: 100%; background: #6c3fff; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 0.92rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-join:hover { background: #5a32d4; }
.btn-join.disabled { background: #e5e7eb; color: #9ca3af; cursor: default; }
.join-code-field { margin-bottom: 12px; }
.join-code-label { font-size: 0.75rem; font-weight: 600; color: #6b7280; margin-bottom: 5px; display: block; }
.join-code-input { width: 100%; border: 1.5px solid #ddd6fe; border-radius: 9px; padding: 9px 12px; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.15em; text-align: center; text-transform: uppercase; outline: none; background: #f8f7ff; font-family: inherit; }
.btn-back { width: 100%; background: #fff; color: #1f2937; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 11px; font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-back:hover { background: #f9fafb; color: #1f2937; }

/* ══════════════════════════════════════════════════════════
   GRUPA — TWORZENIE (Groups/add.php)
   ══════════════════════════════════════════════════════════ */
.create-header {
  background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%);
  padding: 20px 0 28px;
  margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.create-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(109,40,217,0.3) 0%, transparent 70%); pointer-events: none; }
.create-header .inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
  position: relative; z-index: 1;
}
.create-header-icon {
  width: 48px; height: 48px; min-width: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
}
.create-header h1 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0 0 4px; }
.create-header p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin: 0; }

.create-body { max-width: 720px; margin: 0 auto; padding: 0 24px 60px; display: flex; flex-direction: column; gap: 20px; }

.step-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 28px 24px; }
.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-num { width: 28px; height: 28px; min-width: 28px; background: var(--purple-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.78rem; font-weight: 700; }
.step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; }
.step-sub { font-size: 0.8rem; color: var(--muted); margin: 2px 0 0; }

.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; }
.input-with-icon .form-control-mlt { padding-left: 34px; }

.visibility-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.visibility-info { display: flex; align-items: center; gap: 12px; }
.visibility-icon { width: 38px; height: 38px; background: var(--purple-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--purple-main); font-size: 1rem; }
.visibility-label { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.visibility-desc { font-size: 0.78rem; color: var(--muted); }

.create-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.btn-cancel { background: #fff; color: var(--text); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.15s; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.btn-cancel:hover { background: #f9fafb; color: var(--text); }
.btn-submit { background: var(--purple-main); color: #fff; border: none; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-submit:hover { background: #5a32d4; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD (Dashboard/index.php + templates/element/dashboard/*)
   ══════════════════════════════════════════════════════════ */
.dash-header {
    background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%);
    padding: 24px 0 28px;
    position: relative; overflow: hidden;
}
.dash-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(109,40,217,0.3) 0%, transparent 70%); pointer-events: none; }
.dash-header .inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 900px) { .dash-header .inner { flex-direction: column; align-items: flex-start; gap: 16px; } }

.dash-user { display: flex; align-items: center; gap: 14px; }
.dash-avatar { width: 52px; height: 52px; background: linear-gradient(135deg, #6c3fff, #a78bfa); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; font-weight: 700; }
.dash-greeting { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-bottom: 3px; }
.dash-name { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.dash-badges { display: flex; align-items: center; gap: 8px; }
.dash-badge { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,0.55); font-size: 0.78rem; }

.dash-header-right { display: flex; align-items: center; gap: 12px; }
.btn-browse { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.8); font-size: 0.88rem; font-weight: 500; text-decoration: none; padding: 8px 16px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); transition: all 0.15s; }
.btn-browse:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-logout { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); border-radius: 9px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.15s; text-decoration: none; }
.btn-logout:hover { background: rgba(255,255,255,0.15); color: #fff; }

.dash-main { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.stat-card { background: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.stat-icon.purple { background: #ede9fe; color: #6c3fff; }
.stat-icon.blue   { background: #eff6ff; color: #3b82f6; }
.stat-icon.green  { background: #d1fae5; color: #10b981; }
.stat-icon.orange { background: #fff7ed; color: #f97316; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: #1f2937; line-height: 1; margin-bottom: 2px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.notif-bar { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.15s; }
.notif-bar:hover { background: #fafafa; }
.notif-left { display: flex; align-items: center; gap: 12px; }
.notif-icon { width: 36px; height: 36px; background: #ede9fe; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #6c3fff; font-size: 1rem; flex-shrink: 0; }
.notif-title { font-size: 0.9rem; font-weight: 700; color: #1f2937; margin-bottom: 2px; }
.notif-sub { font-size: 0.78rem; color: #6b7280; }
.notif-arrow { color: #9ca3af; font-size: 1.1rem; }

/* overflow-x:auto — 4 zakładki + ikony + padding nie mieszczą się na wąskich
   telefonach; zamiast wymuszać poziomy scroll całej strony (i przez to
   "rozjeżdżać" ją względem position:fixed navbara), scrolluje się tylko ten
   pasek. flex-shrink:0 na .dash-tab, żeby zakładki się nie ściskały. */
.dash-tabs { display: flex; align-items: center; gap: 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.dash-tab { display: flex; align-items: center; gap: 7px; padding: 10px 18px; font-size: 0.9rem; font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.dash-tab:hover { color: #1f2937; }
.dash-tab.active { color: #6c3fff; border-bottom-color: #6c3fff; font-weight: 600; }
.dash-tab i { font-size: 0.95rem; }

/* Podpowiedzi "da się przewinąć" — zanikające tło + strzałka na obu
   krawędziach .dash-tabs. Chowane przez JS (dashboard.js): prawa gdy pasek
   jest w pełni widoczny albo doscrollowany do końca, lewa dopóki jesteśmy
   na samym początku (nie ma dokąd wrócić). */
.dash-tabs-wrap { position: relative; }
.dash-tabs-hint {
  position: absolute; top: 0; bottom: 2px; width: 34px;
  display: flex; align-items: center;
  color: #9ca3af; font-size: 0.85rem; pointer-events: none;
  transition: opacity 0.2s;
}
.dash-tabs-hint-right {
  right: 0; justify-content: flex-end;
  background: linear-gradient(to right, rgba(244,244,248,0), var(--light-bg) 60%);
}
.dash-tabs-hint-left {
  left: 0; justify-content: flex-start;
  background: linear-gradient(to left, rgba(244,244,248,0), var(--light-bg) 60%);
}
.dash-tabs-hint.is-hidden { opacity: 0; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Status grupy — zakładki "Moje grupy" i "Umowy" */
.group-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.group-status.active   { background: #ede9fe; color: #6c3fff; }
.group-status.full     { background: #eff6ff; color: #2563eb; }
.group-status.waiting  { background: #fff7ed; color: #ea580c; }
.group-status.finished { background: #f3f4f6; color: #6b7280; }
.group-status.won      { background: #ecfdf5; color: #10b981; }
.btn-download { display: inline-flex; align-items: center; gap: 5px; color: #6c3fff; font-size: 0.78rem; font-weight: 600; text-decoration: none; background: #ede9fe; border-radius: 8px; padding: 5px 12px; transition: background 0.15s; }
.btn-download:hover { background: #ddd6fe; }

.profile-label { font-size: 0.75rem; font-weight: 600; color: #6b7280; margin-bottom: 5px; display: block; letter-spacing: 0.02em; }
.profile-input { width: 100%; border: 1.5px solid #e5e7eb; border-radius: 9px; padding: 10px 14px; font-size: 0.9rem; color: #1f2937; outline: none; font-family: inherit; transition: border-color 0.15s; }
.profile-input:focus { border-color: #6c3fff; }
.btn-save { background: #6c3fff; color: #fff; border: none; border-radius: 9px; padding: 11px 28px; font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-save:hover { background: #5a32d4; }

/* Kolumna boczna (260px) + treść — musiała żyć w CSS (nie inline style), bo
   inline nie może mieć media query. Bez tej reguły stała szerokość 260px
   wypychała formularz poza ekran na telefonie. */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.profile-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .profile-field-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
}

/* ── Dashboard / Profil (element/dashboard/profile_settings.php) ── */
.profile-avatar-card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:24px; text-align:center; margin-bottom:12px; }
.profile-avatar { width:72px; height:72px; background:linear-gradient(135deg,#6c3fff,#a78bfa); border-radius:18px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.6rem; font-weight:700; margin:0 auto 12px; }
.profile-name { font-size:1rem; font-weight:700; color:var(--text); margin-bottom:3px; }
.profile-email-sub { font-size:0.78rem; color:var(--muted); margin-bottom:4px; }
.profile-user-number { font-family:monospace; font-size:0.72rem; color:#9ca3af; margin-bottom:10px; }
.profile-role-badge { display:inline-flex; align-items:center; gap:5px; background:#ede9fe; color:var(--purple-main); border-radius:99px; padding:3px 12px; font-size:0.75rem; font-weight:600; }
.profile-role-badge i { font-size:0.7rem; }

.profile-nav-card { background:#fff; border:1px solid var(--border); border-radius:14px; overflow:hidden; margin-bottom:12px; }
.profile-nav-item { display:flex; align-items:center; gap:10px; padding:12px 16px; cursor:pointer; border-left:3px solid transparent; font-size:0.88rem; font-weight:500; color:#374151; }
.profile-nav-item + .profile-nav-item { border-top:1px solid #f3f4f6; }
.profile-nav-item.active { background:#f8f7ff; border-left-color:var(--purple-main); font-weight:600; color:var(--purple-main); }
.btn-logout { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; background:#fff; border:1.5px solid #fecaca; border-radius:10px; padding:10px; font-size:0.88rem; font-weight:600; color:var(--red); cursor:pointer; font-family:inherit; transition:background 0.15s; text-decoration:none; }

.profile-form-panel { background:#fff; border:1px solid var(--border); border-radius:14px; padding:28px; }
.profile-tab-panel { display:none; }
.profile-tab-panel.active { display:block; }
.profile-section-title { display:flex; align-items:center; gap:8px; font-size:0.95rem; font-weight:700; color:var(--text); margin-bottom:22px; }
.profile-section-title i { color:var(--purple-main); }
.profile-security-title { display:flex; align-items:center; gap:8px; font-size:0.95rem; font-weight:700; color:var(--text); margin-bottom:24px; }
.profile-security-title i { color:var(--purple-main); }
.profile-field { margin-bottom:16px; }
.profile-field--sm { margin-bottom:14px; }
.profile-field-row--tight { margin-bottom:6px; }
.profile-input-disabled { background:#f9fafb; color:#9ca3af; }
.profile-bank-hint { font-size:0.72rem; color:#9ca3af; margin-top:-10px; margin-bottom:16px; }
.profile-password-hint { font-size:0.72rem; color:#9ca3af; margin-bottom:14px; }
.profile-protection-box { background:#f8f7ff; border:1px solid #ddd6fe; border-radius:10px; padding:12px 16px; display:flex; gap:10px; align-items:flex-start; margin-bottom:20px; }
.profile-protection-box i { color:var(--purple-main); flex-shrink:0; margin-top:1px; }
.profile-protection-title { font-size:0.82rem; font-weight:700; color:var(--purple-main); margin-bottom:2px; }
.profile-protection-text { font-size:0.78rem; color:#7c3aed; line-height:1.5; }
.btn-save { display:inline-flex; align-items:center; gap:7px; }

.profile-security-list { display:flex; flex-direction:column; }
.profile-security-row { display:flex; align-items:center; justify-content:space-between; padding:16px 0; }
.profile-security-row--bordered { border-bottom:1px solid #f3f4f6; }
.profile-password-block { padding:20px 0; border-bottom:1px solid #f3f4f6; }
.profile-row-title { font-size:0.9rem; font-weight:600; color:var(--text); margin-bottom:2px; }
.profile-row-title--section { margin-bottom:14px; }
.profile-row-value { font-size:0.78rem; color:var(--muted); }
.profile-badge-success { display:inline-flex; align-items:center; gap:5px; background:#d1fae5; color:#065f46; border-radius:99px; padding:4px 12px; font-size:0.75rem; font-weight:700; }
.profile-badge-success i { font-size:0.7rem; }
.profile-badge-warning { display:inline-flex; align-items:center; gap:5px; background:#fef3c7; color:#92400e; border-radius:99px; padding:4px 12px; font-size:0.75rem; font-weight:700; }
.profile-badge-warning i { font-size:0.7rem; }
.profile-badge-neutral { background:#f3f4f6; color:var(--muted); border-radius:99px; padding:4px 12px; font-size:0.75rem; font-weight:600; }

.profile-danger-zone { background:#fef2f2; border:1px solid #fecaca; border-radius:12px; padding:16px 20px; margin-top:20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.profile-danger-content { display:flex; align-items:center; gap:12px; }
.profile-danger-icon { color:var(--red); font-size:1.1rem; flex-shrink:0; }
.profile-danger-title { font-size:0.9rem; font-weight:700; color:var(--red); margin-bottom:2px; }
.btn-delete-account { background:#fff; border:1.5px solid #fecaca; border-radius:9px; padding:8px 16px; font-size:0.82rem; font-weight:700; color:var(--red); cursor:pointer; font-family:inherit; white-space:nowrap; transition:background 0.15s; }

.modal-content-rounded { border-radius:16px; border:none; }
.modal-title-danger { font-weight:800; font-size:1.15rem; color:var(--red); }
.profile-modal-warning-text { font-size:0.85rem; color:var(--muted); margin-bottom:18px; line-height:1.5; }
.modal-footer-tight { gap:10px; }
.btn-modal-cancel { flex:1; border:1.5px solid var(--border); border-radius:10px; font-weight:600; padding:11px; }
.btn-modal-danger { flex:1; background:var(--red); color:#fff; border-radius:10px; font-weight:700; padding:11px; border:none; }

/* ══════════════════════════════════════════════════════════
   FAQ (Pages/faq.php)
   ══════════════════════════════════════════════════════════ */
.faq-hero { background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%); padding: 48px 0 56px; text-align: center; position: relative; overflow: hidden; }
.faq-hero::before { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(109,40,217,0.25) 0%, transparent 65%); pointer-events: none; }
.faq-hero .inner { max-width: 700px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero-search { position: relative; max-width: 480px; margin: 0 auto; }
.hero-search input { width: 100%; background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 13px 20px 13px 46px; color: #fff; font-size: 0.95rem; font-family: inherit; outline: none; transition: all 0.15s; }
.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search input:focus { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.hero-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); font-size: 1.1rem; }

.faq-main { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.faq-cat { border: 1.5px solid #e5e7eb; background: #fff; border-radius: 99px; padding: 6px 18px; font-size: 0.83rem; font-weight: 500; cursor: pointer; transition: all 0.15s; color: #374151; }
.faq-cat:hover { border-color: #6c3fff; color: #6c3fff; }
.faq-cat.active { background: #6c3fff; border-color: #6c3fff; color: #fff; font-weight: 600; }

.faq-group { margin-bottom: 36px; }
.faq-group-title { font-size: 0.75rem; font-weight: 700; color: #6c3fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.faq-group-title::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }

.faq-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: 0 2px 12px rgba(108,63,255,0.08); }
.faq-item.open { border-color: #c4b5fd; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; gap: 16px; }
.faq-q-text { font-size: 0.92rem; font-weight: 600; color: #1f2937; line-height: 1.4; }
.faq-item.open .faq-q-text { color: #6c3fff; }
.faq-chevron { color: #9ca3af; font-size: 0.9rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #6c3fff; }
.faq-a { display: none; padding: 0 20px 18px; font-size: 0.875rem; color: #4b5563; line-height: 1.7; border-top: 1px solid #f3f4f6; padding-top: 14px; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: #6c3fff; text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

.faq-cta { background: linear-gradient(135deg, #1a0a3b, #2d1282); border-radius: 16px; padding: 36px; text-align: center; }
.faq-cta h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.faq-cta p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 20px; }
.faq-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { background: #fff; color: #6c3fff; border: none; border-radius: 10px; padding: 11px 24px; font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: none; }
.btn-cta-secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 11px 24px; font-size: 0.9rem; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   KONTAKT (Pages/contact.php)
   ══════════════════════════════════════════════════════════ */
.contact-hero { background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%); padding: 48px 0 56px; text-align: center; position: relative; overflow: hidden; }
.contact-hero::before { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(109,40,217,0.25) 0%, transparent 65%); pointer-events: none; }
.contact-hero .inner { max-width: 700px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.contact-main { max-width: 1000px; margin: 0 auto; padding: 40px 24px 60px; display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; }
@media(max-width:800px) { .contact-main { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.info-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.info-icon.purple { background: #ede9fe; color: #6c3fff; }
.info-icon.green  { background: #d1fae5; color: #10b981; }
.info-icon.blue   { background: #eff6ff; color: #3b82f6; }
.info-icon.orange { background: #fff7ed; color: #f97316; }
.info-title { font-size: 0.92rem; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.info-val { font-size: 0.88rem; color: #6c3fff; font-weight: 600; text-decoration: none; }
.info-sub { font-size: 0.78rem; color: #6b7280; margin-top: 3px; }

.faq-link { background: linear-gradient(135deg, #1a0a3b, #2d1282); border-radius: 14px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none; transition: opacity 0.15s; }
.faq-link:hover { opacity: 0.9; }
.faq-link-text { color: #fff; font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; }
.faq-link-sub { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.faq-link-arrow { color: rgba(255,255,255,0.5); font-size: 1.2rem; }

.contact-form-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; }
.form-title { font-size: 1rem; font-weight: 800; color: #1f2937; margin-bottom: 4px; }
.form-sub { font-size: 0.82rem; color: #6b7280; margin-bottom: 22px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 5px; letter-spacing: 0.02em; }
.form-input { width: 100%; border: 1.5px solid #e5e7eb; border-radius: 9px; padding: 10px 14px; font-size: 0.88rem; color: #1f2937; outline: none; font-family: inherit; transition: border-color 0.15s; }
.form-input:focus { border-color: #6c3fff; }
.form-input::placeholder { color: #d1d5db; }
textarea.form-input { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.topic-btn { border: 1.5px solid #e5e7eb; background: #fff; border-radius: 9px; padding: 9px 12px; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.15s; color: #374151; text-align: left; display: flex; align-items: center; gap: 7px; font-family: inherit; }
.topic-btn:hover { border-color: #6c3fff; color: #6c3fff; }
.topic-btn.active { background: #ede9fe; border-color: #6c3fff; color: #6c3fff; font-weight: 600; }

.btn-send { width: 100%; background: #6c3fff; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 0.92rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-send:hover { background: #5a32d4; }

.send-success { display: none; text-align: center; padding: 16px 0; }
.send-success-icon { width: 56px; height: 56px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }

/* ══════════════════════════════════════════════════════════
   REGULAMIN + PRYWATNOŚĆ (Pages/terms.php, Pages/privacy.php)
   ══════════════════════════════════════════════════════════ */
.legal-hero { background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%); padding: 48px 0 56px; text-align: center; position: relative; overflow: hidden; }
.legal-hero::before { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(109,40,217,0.25) 0%, transparent 65%); pointer-events: none; }
.legal-hero .inner { max-width: 700px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero-meta { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

.reg-layout { max-width: 1000px; margin: 0 auto; padding: 36px 24px 60px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
@media(max-width:800px) { .reg-layout { grid-template-columns: 1fr; } .reg-nav { display:none; } }

.reg-nav { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; position: sticky; top: 72px; }
.reg-nav-title { font-size: 0.72rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; padding: 0 8px; }
.reg-nav a { display: block; padding: 7px 10px; font-size: 0.82rem; color: #374151; text-decoration: none; border-radius: 7px; transition: all 0.15s; margin-bottom: 2px; }
.reg-nav a:hover { background: #f8f7ff; color: #6c3fff; }
.reg-nav a.active { background: #ede9fe; color: #6c3fff; font-weight: 600; }

.reg-content { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 36px 40px; }
@media(max-width:640px) { .reg-content { padding: 24px 20px; } }
.reg-content h2 { font-size: 1.15rem; font-weight: 800; color: #1f2937; margin: 36px 0 14px; padding-top: 8px; border-top: 1px solid #f3f4f6; display: flex; align-items: center; gap: 10px; }
.reg-content h2:first-child { margin-top: 0; border-top: none; }
.reg-content h2 .sec-num { width: 26px; height: 26px; background: #6c3fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.reg-content p { font-size: 0.88rem; color: #4b5563; line-height: 1.8; margin-bottom: 12px; }
.reg-content ul, .reg-content ol { padding-left: 20px; margin-bottom: 12px; }
.reg-content li { font-size: 0.88rem; color: #4b5563; line-height: 1.8; margin-bottom: 4px; }
.reg-content strong { color: #1f2937; }

.highlight-box { background: #f8f7ff; border-left: 3px solid #6c3fff; border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 16px 0; }
.highlight-box p { margin: 0; color: #374151; }
.warning-box { background: #fffbeb; border-left: 3px solid #f59e0b; border-radius: 0 8px 8px 0; padding: 14px 16px; margin: 16px 0; }
.warning-box p { margin: 0; color: #78350f; }

.reg-date { display: inline-flex; align-items: center; gap: 6px; background: #f3f4f6; border-radius: 99px; padding: 4px 14px; font-size: 0.75rem; color: #6b7280; margin-bottom: 24px; }

.reg-table-wrap { overflow-x:auto; margin:12px 0 16px; }
.reg-table { width:100%; border-collapse:collapse; font-size:0.82rem; }
.reg-table th { background:#f8f7ff; color:#6c3fff; font-weight:700; padding:8px 12px; text-align:left; border:1px solid #e5e7eb; font-size:0.75rem; text-transform:uppercase; letter-spacing:0.04em; }
.reg-table td { padding:8px 12px; border:1px solid #e5e7eb; color:#374151; }
.reg-table tr:nth-child(even) td { background:#fafafa; }

/* ══════════════════════════════════════════════════════════
   POMOC — używane w kilku miejscach naraz (Groups/view.php,
   Groups/add.php — podpowiedzi pod polami formularza)
   ══════════════════════════════════════════════════════════ */
.field-hint { display:flex; align-items:flex-start; gap:6px; font-size:0.76rem; color:#6b7280; margin-top:7px; line-height:1.5; }
.field-hint i { flex-shrink:0; margin-top:2px; color:#9ca3af; }

/* Rozwijane podpowiedzi (Groups/add.php) — treść dostępna na życzenie,
   żeby długie wyjaśnienia nie rozpychały formularza i nie gubiły w nich pól. */
.info-details { margin-top: 10px; }
.info-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-main);
  user-select: none;
}
.info-details summary::-webkit-details-marker { display: none; }
.info-details summary:hover { text-decoration: underline; }
.info-details .info-content {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: #5b21b6;
  background: #f8f7ff;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 12px 16px;
  line-height: 1.5;
}
.info-details .info-content > div { display: flex; gap: 8px; align-items: flex-start; }
.info-details .info-content i { flex-shrink: 0; margin-top: 1px; }

/* details/summary jako nagłówek całego kroku (Groups/add.php, krok 5) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.step-card > summary .bi-chevron-down { transition: transform 0.15s; margin-left: 6px; font-size: 0.8rem; color: var(--purple-main); }
details.step-card[open] > summary .bi-chevron-down { transform: rotate(180deg); }

/* ══════════════════════════════════════════════════════════
   BLOG (Blog/index.php, Blog/view.php)
   ══════════════════════════════════════════════════════════ */
.blog-hero { background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%); padding: 48px 0 56px; text-align: center; position: relative; overflow: hidden; }
.blog-hero::before { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(109,40,217,0.25) 0%, transparent 65%); pointer-events: none; }
.blog-hero .inner { max-width: 700px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.blog-main { max-width: 1280px; margin: 0 auto; padding: 40px 24px 60px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow 0.2s, transform 0.15s; height: 100%; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(108,63,255,0.12); transform: translateY(-2px); }
.blog-card-icon { width: 44px; height: 44px; background: #ede9fe; color: #6c3fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; flex-shrink: 0; }
.blog-card-title { font-size: 1.05rem; font-weight: 800; color: #1f2937; margin-bottom: 8px; line-height: 1.35; }
.blog-card-desc { font-size: 0.85rem; color: #6b7280; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: #9ca3af; }
.blog-card-meta span { display: flex; align-items: center; gap: 5px; }

.blog-article-hero { background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%); padding: 40px 0 44px; position: relative; overflow: hidden; }
.blog-article-hero::before { content: ''; position: absolute; top: -150px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(109,40,217,0.25) 0%, transparent 65%); pointer-events: none; }
.blog-article-hero .inner { max-width: 760px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.blog-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.8rem; }
.blog-breadcrumb li { color: rgba(255,255,255,0.45); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-breadcrumb li:not(:last-child)::after { content: '/'; margin: 0 8px; color: rgba(255,255,255,0.3); }
.blog-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.blog-breadcrumb a:hover { color: #fff; }
.blog-breadcrumb li[aria-current] { color: rgba(255,255,255,0.85); }
.blog-article-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
.blog-article-meta { display: flex; align-items: center; gap: 14px; font-size: 0.82rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; }
.blog-article-meta span { display: flex; align-items: center; gap: 5px; }

.blog-article-main { max-width: 760px; margin: 0 auto; padding: 40px 24px 60px; }
.blog-article-body { font-size: 0.95rem; color: #374151; line-height: 1.8; }
.blog-article-body h2 { font-size: 1.35rem; font-weight: 800; color: #1f2937; margin: 36px 0 14px; }
.blog-article-body h2:first-child { margin-top: 0; }
.blog-article-body h3 { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin: 26px 0 10px; }
.blog-article-body p { margin-bottom: 14px; }
.blog-article-body ul, .blog-article-body ol { padding-left: 22px; margin-bottom: 14px; }
.blog-article-body li { margin-bottom: 6px; }
.blog-article-body strong { color: #1f2937; }
.blog-article-body a { color: #6c3fff; text-decoration: underline; }
.blog-article-body blockquote { background: #f8f7ff; border-left: 3px solid #6c3fff; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 20px 0; color: #374151; font-style: italic; }
.blog-article-body blockquote p:last-child { margin-bottom: 0; }

.blog-author-box { display: flex; align-items: center; gap: 12px; margin: 36px 0; padding: 18px 20px; background: #f8f7ff; border-radius: 14px; }
.blog-author-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #6c3fff, #a78bfa); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.blog-author-name { font-size: 0.88rem; font-weight: 700; color: #1f2937; }
.blog-author-role { font-size: 0.78rem; color: #6b7280; }

.blog-cta { background: linear-gradient(135deg, #1a0a3b, #2d1282); border-radius: 16px; padding: 32px; text-align: center; margin-top: 40px; }
.blog-cta h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.blog-cta p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 18px; }

.blog-related { margin-top: 48px; }
.blog-related-title { font-size: 0.75rem; font-weight: 700; color: #6c3fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.blog-related-title::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .blog-related-grid { grid-template-columns: 1fr; } }
