/* ============================================================
   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: minmax(0, 1fr) 480px; gap: 24px; align-items: start; }
.protection-card--full { grid-column: 1 / -1; }
@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; text-decoration: none; }
.btn-submit:hover { color: #fff; }
.btn-submit:hover { background: #5a32d4; }

/* ══════════════════════════════════════════════════════════
   EKRAN AKCEPTACJI KUPONU (coupon-capture.js) — odczyt ze zdjęcia,
   siatka zakładów do poprawy przed zgłoszeniem. Mobile-first: inputy
   liczbowe muszą być wygodne kciukiem.
   ══════════════════════════════════════════════════════════ */
.coupon-accept { display: none; }
.coupon-accept.is-visible { display: block; }

/* Wyświetlenie do weryfikacji, NIE input — rozpoznana gra jest ustalana
   przez model, user ją tylko widzi i potwierdza wizualnie, nie edytuje. */
.coupon-readonly-field {
    background: #f3f4f6; border: 1.5px solid #e5e7eb; border-radius: 10px;
    padding: 10px 14px; font-size: 0.92rem; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.coupon-readonly-field::before { content: '\f26a'; font-family: 'bootstrap-icons'; color: var(--purple-main); }

/* Miniaturka wgranego zdjęcia kuponu — potwierdzenie wizualne, że to
   właściwy plik, zamiast tylko nazwy/rozmiaru. */
.coupon-thumb-preview {
    display: flex; align-items: center; gap: 12px; text-align: left;
}
.coupon-thumb-btn {
    width: 56px; height: 56px; flex-shrink: 0; padding: 0; border: 1.5px solid #e5e7eb;
    border-radius: 8px; background: #fff; cursor: zoom-in; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.coupon-thumb-btn img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Pełnoekranowy podgląd zdjęcia kuponu (coupon-capture.js openLightbox) */
.coupon-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(17, 24, 39, 0.92);
    display: flex; align-items: center; justify-content: center;
    padding: env(safe-area-inset-top, 24px) 24px env(safe-area-inset-bottom, 24px);
    cursor: zoom-out;
}
.coupon-lightbox img {
    max-width: 100%; max-height: 100%; border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); cursor: default;
}
.coupon-lightbox-pdf {
    width: min(90vw, 800px); height: 90vh; border: none; border-radius: 10px; background: #fff;
}
.coupon-lightbox-close {
    position: absolute; top: max(16px, env(safe-area-inset-top, 16px)); right: 16px;
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.15); color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.coupon-lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Duża, trudna do przeoczenia karta statusu — user musi widzieć, że coś się
   dzieje w tych kilku sekundach między wyborem zdjęcia a wynikiem odczytu,
   nie tylko po fakcie, że liczby "nagle" się pojawiły. */
.coupon-status-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px; margin-bottom: 14px;
    font-size: 0.92rem; font-weight: 700; line-height: 1.35;
    background: #f3f4f6; color: #4b5563; border: 1.5px solid #e5e7eb;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.coupon-status-icon {
    width: 34px; height: 34px; min-width: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    background: #e5e7eb; color: #6b7280;
}
.coupon-status-card.is-reading { background: #f5f3ff; border-color: #ddd6fe; color: #5b21b6; }
.coupon-status-card.is-reading .coupon-status-icon { background: #ede9fe; color: #6c3fff; animation: coupon-spin 0.9s linear infinite; }
.coupon-status-card.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.coupon-status-card.is-ok .coupon-status-icon { background: #d1fae5; color: #10b981; }
.coupon-status-card.is-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.coupon-status-card.is-warning .coupon-status-icon { background: #fef3c7; color: #d97706; }
.coupon-status-card.is-failed { background: #f9fafb; border-color: #e5e7eb; color: #4b5563; }
.coupon-status-card.is-failed .coupon-status-icon { background: #f3f4f6; color: #9ca3af; }

@keyframes coupon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.coupon-accept-hint { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }

.coupon-bet-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 8px;
    background: #fafafa;
}
.coupon-bet-row--low-confidence { border-color: #f59e0b; background: #fffbeb; }
.coupon-num-group { display: flex; gap: 6px; flex-wrap: wrap; }
.coupon-num-sep { color: var(--muted); font-weight: 700; }
.coupon-num-input {
    width: 38px; height: 38px; text-align: center; font-size: 1rem; font-weight: 700;
    border: 1.5px solid var(--border); border-radius: 8px; color: var(--text);
    -moz-appearance: textfield;
}
.coupon-bet-row--low-confidence .coupon-num-input { border-color: #f59e0b; }
.coupon-num-input:focus { border-color: var(--purple-main); outline: none; }
.coupon-num-input.is-invalid { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.coupon-num-input[readonly] { background: #f3f4f6; color: #374151; cursor: default; border-color: #e5e7eb; }
.coupon-bet-remove {
    margin-left: auto; width: 32px; height: 32px; border: none; background: none;
    color: #dc2626; font-size: 0.95rem; cursor: pointer; border-radius: 8px;
}
.coupon-bet-remove:hover { background: #fef2f2; }
.coupon-bet-add {
    display: flex; align-items: center; gap: 6px; background: #fff; color: var(--purple-main);
    border: 1.5px dashed var(--border); border-radius: 10px; padding: 9px 14px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; width: 100%; justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   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-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; }
/* Podpowiedź bezpośrednio pod polem (w .profile-field) -- bez ujemnego marginesu,
   który jest pod .profile-field-row z własnym odstępem. */
.profile-bank-hint--inline { margin-top:6px; margin-bottom:0; line-height:1.5; }
.profile-bank-hint a { color:var(--purple-main); font-weight:600; text-decoration:none; }
.profile-bank-hint a:hover { text-decoration:underline; }
.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; }
.modal-title-primary { font-weight:800; font-size:1.15rem; color:var(--purple-main); }
.btn-modal-primary { flex:1; background:var(--purple-main); 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; } }

/* ══════════════════════════════════════════════════════════
   CENNIK (Pages/cennik.php) — kolorystyka jak w reszcie serwisu
   (jasne karty, fioletowy ciemny hero), układ kart (pływająca
   odznaka, podtytuł planu, kaskadowa lista cech) i nowe teksty
   zostają. Statyczna prezentacja planów (Start/Pro/Max), sprzedaż
   jest na razie wyłączona — patrz templates/Pages/cennik.php.
   ══════════════════════════════════════════════════════════ */
.cennik-hero { background: linear-gradient(135deg, #1a0a3b 0%, #2d1282 55%, #3b1fa0 100%); padding: 48px 0 76px; text-align: center; position: relative; overflow: hidden; }
.cennik-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; }
.cennik-hero .inner { max-width: 700px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.cennik-hero .hero-note { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: -18px 0 24px; }

.billing-toggle { display: inline-flex; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 99px; padding: 5px; gap: 4px; }
.billing-toggle button { border: 0; background: transparent; color: #cfc6ee; font-weight: 600; font-size: 0.88rem; padding: 9px 18px; border-radius: 99px; cursor: pointer; transition: background 0.15s, color 0.15s; font-family: inherit; }
.billing-toggle button.active { background: #fff; color: #1a0a3b; }
.billing-toggle .save-badge { background: #10b981; color: #fff; font-size: 0.66rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; margin-left: 6px; }

.cennik-main { max-width: 1080px; margin: -44px auto 0; padding: 0 24px 60px; position: relative; z-index: 1; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 28px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Checkout (Payments/checkout.php) -- szerszy niż .cennik-main (jak .dash-main),
   bo to układ dwukolumnowy, nie karty w rzędzie. */
.checkout-main { max-width: 1280px; margin: 0 auto; padding: 32px 24px 60px; position: relative; z-index: 1; }
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: stretch; }
.checkout-grid > .step-card { height: 100%; display: flex; flex-direction: column; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-grid .pricing-card { margin: 0; }

/* Wybór metody płatności -- teraz realny wybór (2026-10-16): BLIK cykliczny
   to kod wpisywany u nas (Level 0), karta to przekierowanie do Tpay. */
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pay-methods[hidden], .blik-wait[hidden], .blik-wait-state[hidden] { display: none; }
.pay-method { display: block; border: 1.5px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pay-method:hover { border-color: #c4b5fd; }
.pay-method.is-selected { border-color: var(--purple-main); background: #faf9ff; }
.pay-method-head { display: flex; align-items: center; gap: 12px; }
.pay-method-head input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--purple-main); flex-shrink: 0; }
.pay-method-label { font-size: 0.92rem; font-weight: 600; color: #1f2937; }
.pay-method-logos { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.pay-method-logos img { height: 16px; width: auto; }
.pay-method-logos--blik img { width: 40px; height: 20px; border-radius: 4px; object-fit: cover; }
.pay-method-body { display: none; margin-top: 12px; padding-left: 30px; }
.pay-method.is-selected .pay-method-body { display: block; }
.pay-method-field-label { display: block; font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.pay-method-note { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.blik-code-input { width: 100%; max-width: 220px; padding: 10px 12px; border: 1.5px solid #d1d5db; border-radius: 10px; font-size: 1.45rem; font-weight: 700; letter-spacing: 0.18em; text-align: center; font-variant-numeric: tabular-nums; color: #1f2937; background: #fff; }
.blik-code-input:focus { outline: none; border-color: var(--purple-main); box-shadow: 0 0 0 3px rgba(108, 63, 255, 0.15); }
.blik-code-input.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }

/* Ekran oczekiwania na potwierdzenie BLIK w aplikacji banku. */
.blik-wait { margin-top: 4px; border: 1.5px dashed #c4b5fd; background: #faf9ff; border-radius: 12px; padding: 26px 20px 20px; text-align: center; }
.blik-wait-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #ede9fe; color: var(--purple-main); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.blik-wait-icon--muted { background: #f3f4f6; color: #6b7280; }
.blik-wait-title { font-size: 1rem; font-weight: 700; color: #1f2937; margin: 0 0 6px; }
.blik-wait-text { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin: 0 auto 16px; max-width: 360px; }
.blik-wait-spinner { width: 28px; height: 28px; margin: 0 auto 10px; border: 3px solid #ddd6fe; border-top-color: var(--purple-main); border-radius: 50%; animation: blik-spin 0.9s linear infinite; }
@keyframes blik-spin { to { transform: rotate(360deg); } }
.blik-wait-timer { font-size: 0.8rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.blik-wait-cancel { margin-top: 16px; background: none; border: none; color: var(--purple-main); font-size: 0.8rem; font-weight: 600; cursor: pointer; text-decoration: underline; }
.blik-wait-cancel:disabled { color: var(--muted); cursor: progress; text-decoration: none; }

/* Przycisk w trakcie pracy serwera (wysyłanie kodu BLIK, oczekiwanie na bank) -- MltBlik.busy() w webroot/js/blik.js */
.btn-submit.is-busy, .btn-submit.is-busy:hover { background: #8b6cff; cursor: progress; }
.btn-spinner { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: blik-spin 0.8s linear infinite; }
.blik-code-input[readonly] { background: #f9fafb; color: #6b7280; }

/* Karta wyłączona do czasu umowy kartowej z Tpay (Payment.cardsEnabled). */
.pay-method.is-disabled { cursor: not-allowed; background: #fafafa; }
.pay-method.is-disabled:hover { border-color: #e5e7eb; }
.pay-method.is-disabled .pay-method-label,
.pay-method.is-disabled .pay-method-logos { opacity: 0.55; }
.pay-method.is-disabled .pay-method-body { display: block; }
.pay-method-soon { font-size: 0.68rem; font-weight: 700; color: #6c3fff; background: #ede9fe; border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* Błąd płatności BLIK (zły kod, odrzucenie, brak potwierdzenia) */
.blik-error { margin-top: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; line-height: 1.5; }
.blik-error[hidden], .blik-form [data-blik-fields][hidden] { display: none; }

/* Formularz kodu BLIK (podwyższenie planu, odnowienie zgody) -- element payments/blik_form.php */
.blik-form { margin-top: 10px; }
.blik-form-submit { margin-top: 12px; width: 100%; max-width: 320px; }
.blik-form-note { font-size: 0.76rem; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.plan-upgrade-option { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; }
.plan-upgrade-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 2px; }

.trust-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

.trust-tpay-logo { height: 13px; width: auto; vertical-align: middle; margin: 0 2px; }

/* Osobna klasa zamiast .btn-logout -- ta nazwa jest już zajęta w dwóch innych
   kontekstach w tym pliku (ikonka wylogowania w navbarze, pełnoszerokościowy
   przycisk w sidebarze profilu) i kolizja powodowała rozciągnięty przycisk
   z znikającym tekstem po najechaniu (feedback 2026-09-26). */
.btn-cancel-subscription { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #fecaca; border-radius: 10px; padding: 10px 18px; font-size: 0.88rem; font-weight: 600; color: #dc2626; cursor: pointer; font-family: inherit; text-decoration: none; transition: background 0.15s, color 0.15s; }
.btn-cancel-subscription:hover { background: #fef2f2; color: #b91c1c; }
.trust-banks-label { font-size: 0.8rem; color: var(--muted); margin: 0 0 12px; }
.trust-banks-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; width: 100%; }
.trust-bank-logo { height: 20px; width: auto; max-width: 90px; object-fit: contain; filter: grayscale(1); opacity: 0.55; transition: opacity 0.15s, filter 0.15s; }
.trust-bank-logo:hover { filter: grayscale(0); opacity: 1; }
.trust-bank-logo--square { height: 28px; border-radius: 4px; }
/* PKO BP -- największy bank w Polsce, ma dostać więcej wizualnej wagi niż
   pozostałe, nie tonąć w rzędzie jako maleńka ikona (feedback 2026-09-26). */
.trust-bank-logo--pko { height: 42px; max-width: none; }

.pricing-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(45,30,87,0.14); }
.pricing-card--featured { border: 2px solid #6c3fff; padding-top: 0; overflow: hidden; }
.pricing-card--featured:hover { transform: translateY(-4px); }

/* Układ z pływającą odznaką nad górną krawędzią karty (zamiast pełnowymiarowego paska) — tylko na /cennik */
.cennik-main .pricing-card { position: relative; overflow: visible; padding-top: 32px; }
.cennik-main .pricing-card--featured { padding-top: 32px; overflow: visible; }

.featured-ribbon { background: #6c3fff; color: #fff; font-weight: 700; font-size: 0.8rem; text-align: center; padding: 9px; margin: 0 -28px 24px; }

.cennik-main .featured-ribbon {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    margin: 0; width: max-content; border-radius: 99px; padding: 7px 18px; font-size: 0.7rem; letter-spacing: 0.03em;
}

.plan-name { font-size: 1.15rem; font-weight: 800; color: #1a0a3b; text-align: center; margin-bottom: 14px; }
.cennik-main .plan-name { text-align: left; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; margin-bottom: 4px; }

.cennik-plan-subtitle { color: #6b7280; font-size: 0.82rem; margin-bottom: 22px; }

.pricing-price { text-align: center; font-size: 2.4rem; font-weight: 800; color: #1a0a3b; line-height: 1; margin-bottom: 4px; }
.pricing-price small { font-size: 0.9rem; font-weight: 500; color: #6b7280; }
.cennik-main .pricing-price { text-align: left; }

.pricing-note { text-align: center; font-size: 0.8rem; color: #6b7280; margin-bottom: 24px; min-height: 1.2em; }
.cennik-main .pricing-note { text-align: left; }

.cennik-trial-note { color: #6b7280; font-size: 0.76rem; text-align: center; line-height: 1.5; margin: 12px 0 22px; }

.pricing-features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.pricing-features li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; font-size: 0.85rem; color: #6b7280; border-bottom: 1px solid #f3f4f6; }
.pricing-features li:last-child { border-bottom: 0; }
.pricing-features .feature-value { color: #1a0a3b; font-weight: 700; white-space: nowrap; text-align: right; }
.pricing-features .feature-value.val-none { color: #f87171; font-weight: 400; font-size: 0.85rem; }
.pricing-features .feature-value.val-check { color: #10b981; font-size: 1.1rem; }
.pricing-features li.feature-row--off { display: none; }
.pricing-features .feature-detail { display: none; flex-basis: 100%; font-size: 0.76rem; color: #9ca3af; line-height: 1.45; margin-top: 2px; }
.pricing-card--details-open .pricing-features .feature-detail { display: block; }

.pricing-details-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: none; border: none; border-top: 1px solid #f3f4f6; margin-top: -4px; padding: 12px 0 0; color: #6c3fff; font-weight: 700; font-size: 0.78rem; font-family: inherit; cursor: pointer; }
.pricing-details-toggle:hover { color: #5a32d4; }
.pricing-details-toggle i { transition: transform 0.15s; font-size: 0.7rem; }
.pricing-card--details-open .pricing-details-toggle i { transform: rotate(180deg); }

/* Kaskadowa lista ("Wszystko ze Start" + delta) — ikona z lewej, bez linii dzielących, tylko na /cennik */
.cennik-main .pricing-features li { justify-content: flex-start; border-bottom: 0; padding: 8px 0; }
.cennik-main .pricing-features .feature-value { text-align: left; order: -1; margin-right: 10px; font-weight: 400; color: #1a0a3b; }
.cennik-main .pricing-features .feature-value.val-check { color: #10b981; }
.cennik-main .pricing-features .feature-value.val-none { color: #f87171; }
.cennik-main .pricing-features .feature-detail { margin-left: 24px; flex-basis: calc(100% - 24px); }

.btn-pricing { display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: 0.9rem; border-radius: 10px; padding: 12px; font-family: inherit; }
.btn-pricing-solid { background: #6c3fff; color: #fff; border: none; }
.btn-pricing-solid:hover { background: #5a32d4; color: #fff; }
.btn-pricing-outline { background: #fff; color: #6c3fff; border: 1.5px solid #6c3fff; }
.btn-pricing-outline:hover { background: #f8f7ff; }

.cennik-footnote { text-align: center; font-size: 0.8rem; color: #6b7280; max-width: 780px; margin: 0 auto; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   KROKI ZGŁOSZENIA (draft) -- wspólny widok /zgloszenia/{id}
   (templates/SubmissionDrafts/view.php) w układzie koszyka: lewa kolumna
   element submission/stepper.php, prawa -- podsumowanie zgłoszenia.
   ═══════════════════════════════════════════════════════════════ */
.steps-hero { padding-bottom: 56px; }
.steps-grid { grid-template-columns: 1.45fr 1fr; align-items: start; }
.steps-grid > .step-card { height: auto; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }
.steps-summary-list { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0 0 18px; font-size: 0.85rem; }
.steps-summary-list dt { color: var(--muted); font-weight: 500; }
.steps-summary-list dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.steps-summary-mono { font-family: monospace; }
.steps-summary-note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.76rem; color: var(--muted); line-height: 1.5; padding-top: 14px; border-top: 1px solid #f3f4f6; margin-bottom: 14px; }
.steps-summary-note i { flex-shrink: 0; margin-top: 2px; }
.steps-summary-cancel { align-self: flex-start; }

.mlt-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; counter-reset: none; }
.mlt-step { flex: 1; display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding-top: 10px; border-top: 3px solid #ede9fe; }
.mlt-step-dot { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; background: #f3f4f6; color: #9ca3af; }
.mlt-step-text { display: flex; flex-direction: column; min-width: 0; }
.mlt-step-label { font-size: 0.8rem; font-weight: 600; color: #9ca3af; line-height: 1.3; }
.mlt-step-detail { font-size: 0.72rem; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.mlt-step.is-done { border-top-color: #10b981; }
.mlt-step.is-done .mlt-step-dot { background: #d1fae5; color: #059669; }
.mlt-step.is-done .mlt-step-label { color: var(--text); }
.mlt-step.is-active { border-top-color: var(--purple-main); }
.mlt-step.is-active .mlt-step-dot { background: var(--purple-main); color: #fff; }
.mlt-step.is-active .mlt-step-label { color: var(--purple-main); }

.mlt-stepper-body { padding: 18px 0 4px; border-top: 1px solid #f3f4f6; }
.mlt-stepper-step-title { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.mlt-stepper-step-title i { color: var(--purple-main); }
.mlt-stepper-finish-btn { width: 100%; }

.mlt-stepper-cancel { background: none; border: none; padding: 0; color: #dc2626; font-size: 0.78rem; font-weight: 600; cursor: pointer; text-decoration: underline; font-family: inherit; }

@media (max-width: 600px) {
    .mlt-steps { flex-direction: column; gap: 10px; }
    .mlt-step { padding-top: 0; border-top: none; align-items: center; }
}

/* Uwagi nad przyciskiem formularza (kroki po kliknięciu / inne zgłoszenie) */
.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: #4b5563; line-height: 1.5; background: #f8f7ff; border: 1px solid #ede9fe; border-radius: 10px; padding: 11px 14px; margin-bottom: 12px; }
.form-note i { color: var(--purple-main); flex-shrink: 0; margin-top: 2px; }
.form-note--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.form-note--warning i { color: #d97706; }
.form-note a { color: inherit; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   WERYFIKACJA KONTA PRZEZ BANK -- element verification/bank_panel.php
   (krok w zgłoszeniu + sekcja w profilu)
   ═══════════════════════════════════════════════════════════════ */
.bank-panel-lead { font-size: 0.85rem; color: #4b5563; line-height: 1.6; margin: 0 0 14px; }
.bank-panel-note { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.bank-panel-hint { display: flex; gap: 6px; align-items: center; font-size: 0.74rem; color: var(--muted); margin: 8px 0 0; }
.bank-start-form .btn-submit { width: 100%; }
/* W profilu (szeroki panel) przycisk na szerokość treści, nie całej karty. */
.bank-panel--profile .bank-start-form .btn-submit,
.bank-panel--profile .btn-submit { width: auto; display: inline-flex; padding: 11px 22px; }
.bank-start-form .bank-change-btn { width: auto; display: inline-flex; gap: 8px; padding: 10px 18px; }
.bank-account-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.bank-account-iban { font-family: monospace; font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 4px 0; overflow-wrap: anywhere; }
.bank-choice-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bank-choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; }
.bank-choice:has(input:checked) { border-color: var(--purple-main); background: #faf9ff; }
.bank-choice input { margin-top: 3px; accent-color: var(--purple-main); flex-shrink: 0; }
.bank-choice > span { display: flex; flex-direction: column; min-width: 0; }
.bank-choice-iban { font-family: monospace; font-size: 0.88rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.bank-choice-meta { font-size: 0.76rem; color: var(--muted); }
.profile-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   KROK "PLAN" W ZGŁOSZENIU -- element submission/step_plan.php
   ═══════════════════════════════════════════════════════════════ */
.plan-period-toggle { display: inline-flex; background: #f3f4f6; border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 14px; }
.plan-period-toggle a { padding: 7px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: #4b5563; text-decoration: none; white-space: nowrap; }
.plan-period-toggle a span { font-size: 0.68rem; font-weight: 700; color: #059669; margin-left: 4px; }
.plan-period-toggle a.is-active { background: #fff; color: var(--purple-main); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.plan-option { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.plan-option-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-option-name { font-size: 1rem; font-weight: 800; color: var(--text); }
.plan-option-badge { font-size: 0.68rem; font-weight: 700; color: #6c3fff; background: #ede9fe; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.plan-option-price { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.plan-option-price span { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.plan-option-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.plan-option-features .is-yes { color: var(--text); }
.plan-option-features .is-yes i { color: #10b981; }
.plan-option-features .is-no { color: #9ca3af; }
.plan-option-btn { margin-top: auto; }
.plan-upgrade-list { display: flex; flex-direction: column; gap: 10px; }
.plan-upgrade-list .btn-submit { width: 100%; }
.plan-abandon-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 0.78rem; color: var(--muted); }
.mlt-checkout { display: flex; flex-direction: column; gap: 14px; }
.mlt-checkout-methods { margin-top: 4px; }

/* Baner niedokończonego zgłoszenia na dashboardzie */
.dash-draft-banner { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 14px; padding: 16px 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-draft-banner-icon { width: 38px; height: 38px; background: #fef3c7; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #d97706; font-size: 1.1rem; }
.dash-draft-banner-title { font-weight: 700; font-size: 0.92rem; color: #78350f; margin-bottom: 2px; }
.dash-draft-banner-text { font-size: 0.8rem; color: #92400e; line-height: 1.4; }
.dash-draft-banner-btn { background: #6c3fff; color: #fff; border-radius: 9px; padding: 9px 18px; font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dash-draft-banner-btn:hover { background: #5a32d4; color: #fff; }
