/* fundraiser_support.css – poprawione UI bez definiowania kolorów na początku */

.fund-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 34px;
  color: var(--ink, #0f172a);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* BACK */
.fund-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  font-weight:800;

  color: var(--ink-2, #334155);
  border:1px solid var(--line, #e5e7eb);
  background:#fff;
  padding:8px 12px;
  border-radius:999px;

  transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}

.fund-back:link,
.fund-back:visited{
  color: var(--ink-2, #334155);
}

.fund-back:hover{
  border-color: rgba(255,140,0,.35);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
  filter: brightness(0.99);
}

.fund-back:active{
  transform: translateY(1px);
}

.fund-back:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(255,140,0,.14);
  border-color: rgba(255,140,0,.45);
}

/* HERO */
.fund-hero{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:14px;
}

.fund-hero-card{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap:0;

  border:1px solid var(--line, #e5e7eb);
  background: linear-gradient(180deg, #ffffff, rgba(255,140,0,.04));
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow, 0 14px 40px rgba(2, 6, 23, .10));
  overflow:hidden;
}

.fund-hero-media{
  background: rgba(15,23,42,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  border-right: 1px solid rgba(148,163,184,.25);
}

.fund-hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio: 1 / 1;
  display:block;
}

.fund-hero-body{
  padding:16px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.fund-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  color: var(--muted, #64748b);
}

.fund-h1{
  margin:0;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-0.01em;
}

.fund-subtitle{
  font-size:14.5px;
  font-weight:800;
  color: var(--ink, #0f172a);
}

.fund-desc{
  font-size:13.5px;
  line-height:1.55;
  color: var(--ink-2, #334155);
}

.fund-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:4px;
}

.fund-tag{
  font-size:12.5px;
  color: var(--ink-2, #334155);
  background: rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.32);
  border-radius:999px;
  padding:6px 10px;
}

.fund-pill{
  margin-left:auto;
  font-size:12.5px;
  font-weight:900;
  color: var(--ink, #0f172a);
  background: rgba(255,255,255,.95);
  border:1px solid rgba(148,163,184,.32);
  border-radius:999px;
  padding:6px 10px;
}

.fund-progress{
  width:100%;
  height:12px;
  border-radius:999px;
  background: rgba(15,23,42,.08);
  border:1px solid rgba(15,23,42,.10);
  overflow:hidden;
  margin-top:2px;
}

.fund-bar{
  height:100%;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(251,146,60,.95), rgba(249,115,22,.95));
  box-shadow: 0 8px 18px rgba(249,115,22,.22);
}

.fund-legal{
  font-size:12.5px;
  color: var(--muted, #64748b);
  line-height:1.5;
  margin-top:2px;
}

/* GRID + PANEL */
.fund-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
  max-width: 760px;
}

.fund-panel{
  background: var(--card, #ffffff);
  border: 1px solid rgba(148,163,184,.30);
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow, 0 14px 40px rgba(2, 6, 23, .10));
  padding:16px;
}

/* ALERT */
.fund-alert{
  border-radius:14px;
  border:1px solid rgba(148,163,184,.30);
  padding:10px 12px;
  font-weight:800;
  margin-bottom:12px;
  font-size:13px;
}

.fund-alert--warn{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.06);
  color:#7f1d1d;
}

/* FORM */
.donate-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.form-block{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.label{
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--muted, #64748b);
}

.input{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.35);
  font-size:16px;
  font-weight:800;
  color: var(--ink, #0f172a);
  background:#fff;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input:hover{
  border-color: rgba(255,140,0,.28);
}

.input:focus{
  border-color: rgba(255,140,0,.55);
  box-shadow: 0 0 0 4px rgba(255,140,0,.14);
}

.hint{
  font-size:12.5px;
  color: var(--muted, #64748b);
}

/* QUICK AMOUNTS */
.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.chip{
  border:1px solid rgba(148,163,184,.32);
  background:#fff;
  border-radius:999px;
  padding:9px 12px;
  font-weight:900;
  cursor:pointer;
  transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
}

.chip:hover{
  border-color: rgba(255,140,0,.30);
  box-shadow: 0 0 0 4px rgba(255,140,0,.10);
  filter: brightness(0.99);
}

.chip:active{
  transform:translateY(1px);
}

.chip:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(255,140,0,.14);
  border-color: rgba(255,140,0,.45);
}

/* TIP */
.block-title{
  font-size:13px;
  font-weight:900;
  color: var(--ink, #0f172a);
}

.block-sub{
  font-size:12.8px;
  color: var(--ink-2, #334155);
  line-height:1.55;
}

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

.tip-option{
  text-align:left;
  border:1px solid rgba(148,163,184,.32);
  background:#fff;
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:76px;
  transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease;
}

.tip-option:hover{
  border-color: rgba(255,140,0,.25);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
  transform: translateY(-1px);
}

.tip-option:active{
  transform: translateY(0);
}

.tip-option.is-active{
  border-color: rgba(255,140,0,.45);
  box-shadow: 0 0 0 4px rgba(255,140,0,.12);
}

.tip-option:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(255,140,0,.14);
  border-color: rgba(255,140,0,.45);
}

.tip-amount{
  font-weight:900;
  font-size:14.5px;
}

.tip-text{
  font-size:12.5px;
  color: var(--ink-2, #334155);
  line-height:1.35;
}

/* SUMMARY */
.summary{
  border:1px solid rgba(148,163,184,.32);
  background: rgba(15,23,42,.02);
  border-radius:16px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  color: var(--ink-2, #334155);
  font-size:13.5px;
}

.summary-row strong{
  color: var(--ink, #0f172a);
  font-weight:900;
}

.summary-row--total{
  padding-top:8px;
  border-top:1px dashed rgba(15,23,42,.18);
  font-size:14px;
}

/* MESSAGE */
.msg{
  border-radius:14px;
  padding:10px 12px;
  border:1px solid rgba(148,163,184,.32);
  background:#fff;
  color: var(--ink-2, #334155);
  font-weight:800;
  min-height:42px;
  display:flex;
  align-items:center;
  font-size:13px;
}

.msg.is-ok{ border-color:rgba(22,163,74,.25); background:rgba(22,163,74,.06); color:#14532d; }
.msg.is-warn{ border-color:rgba(239,68,68,.25); background:rgba(239,68,68,.06); color:#7f1d1d; }
.msg.is-info{ border-color:rgba(59,130,246,.25); background:rgba(59,130,246,.06); color:#1e3a8a; }

/* ACTIONS + BUTTONS */
.actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  text-decoration:none;
  border-radius:12px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  cursor:pointer;
  padding:10px 14px;
  font-size:14px;
  transition: transform .06s ease, box-shadow .15s ease, filter .15s ease, border-color .15s ease;
}

/* linki w formie .btn – bez niebieskiego/fioletowego */
.btn:link,
.btn:visited{
  color: inherit;
}

.btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(255,140,0,.14);
}

.btn-primary{
  background: var(--brand, #FF8C00);
  color:#fff;
  border-color: rgba(255,154,31,.95);
}

.btn-primary:link,
.btn-primary:visited{
  color:#fff;
}

.btn-primary:hover{
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(249,115,22,.20);
}

.btn-primary:active{
  transform: translateY(1px);
}

.btn-primary:disabled{
  opacity:.55;
  filter:grayscale(60%);
  cursor:not-allowed;
  box-shadow:none;
}

.btn-secondary{
  background:#fff;
  color: var(--ink, #0f172a);
  border-color: rgba(148,163,184,.32);
}

.btn-secondary:hover{
  border-color: rgba(255,140,0,.22);
  box-shadow: 0 8px 18px rgba(2, 6, 23, .08);
  filter: brightness(0.99);
}

.btn-secondary:active{
  transform: translateY(1px);
}

.footnote{
  font-size:12.5px;
  color: var(--muted, #64748b);
  line-height:1.5;
}

/* RWD */
@media (max-width: 860px){
  .fund-shell{
    padding: 16px 12px 30px;
  }
  .fund-grid{
    max-width: 100%;
  }
}

@media (max-width: 760px){
  .fund-hero-card{
    grid-template-columns: 1fr;
  }
  .fund-hero-media{
    border-right:none;
    border-bottom: 1px solid rgba(148,163,184,.25);
  }
  .fund-hero-img{
    aspect-ratio: 16 / 10;
  }
  .fund-pill{
    margin-left:0;
  }
  .tip-grid{
    grid-template-columns: 1fr;
  }
}
