/* ===== EKRANY KONTA / PAYWALL ===== */
body.auth-locked #app { display: none; }

#authOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 72, 111, .35), transparent 30rem),
    var(--bg);
}
#authOverlay[hidden] { display: none; }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.auth-close:hover { color: var(--text); border-color: var(--accent); }
.auth-card h2 { margin: 0 0 4px; font-size: 22px; }
.auth-card .auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.auth-demo {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(243, 210, 27, .12);
  border: 1px solid rgba(243, 210, 27, .4);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.auth-field { margin-bottom: 12px; }
.auth-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
}
.auth-field input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.auth-error {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 92, 104, .12);
  border: 1px solid rgba(255, 92, 104, .45);
  color: var(--red);
  font-size: 13px;
}
.auth-error:empty { display: none; }

.auth-actions { display: grid; gap: 10px; margin-top: 16px; }
.auth-actions .button { width: 100%; }

.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* --- wybór planu --- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.plan-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
}
.plan-option input { position: absolute; opacity: 0; }
.plan-option .plan-price { display: block; font-size: 22px; font-weight: 700; }
.plan-option .plan-period { display: block; font-size: 12px; color: var(--muted); }
.plan-option .plan-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #08131f;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-option.selected { border-color: var(--accent); outline: 2px solid var(--accent); }

/* --- instrukcja BLIK --- */
.blik-box {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 14px;
}
.blik-box ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.blik-phone {
  display: block;
  margin: 6px 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-align: center;
}
.blik-title-code {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  text-align: center;
}

.auth-status-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.auth-ok {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(53, 198, 122, .12);
  border: 1px solid rgba(53, 198, 122, .45);
  color: var(--green);
  font-size: 13px;
  text-align: center;
}

/* --- sekcja konta w zakładce Dane --- */
.account-box {
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
}
.account-box p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.account-box strong { color: var(--text); }

.feedback-box textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  resize: vertical;
  margin-bottom: 10px;
}
.feedback-box textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
