/* Страница проверки push-уведомлений */
body {
  background: linear-gradient(160deg, #143929 0%, #1B4332 100%);
  color: #fff;
  min-height: 100dvh;
  padding: 24px 16px 120px;
}
.pt-wrap { max-width: 540px; margin: 0 auto; }

.pt-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.pt-back {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.1); color: #fff;
  display: grid; place-items: center; font-size: 20px;
  border: none; cursor: pointer;
}
.pt-title {
  font-size: 22px; font-weight: 800; line-height: 1.2;
}
.pt-sub { font-size: 13px; opacity: 0.75; }

/* Статус разрешения */
.pt-status {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.pt-status.granted { border-color: rgba(82,183,136,0.4); background: rgba(82,183,136,0.08); }
.pt-status.denied { border-color: rgba(193,18,31,0.4); background: rgba(193,18,31,0.08); }
.pt-status-icon { font-size: 28px; }
.pt-status-body { flex: 1; }
.pt-status-title { font-weight: 700; font-size: 14px; }
.pt-status-text { font-size: 12px; opacity: 0.75; line-height: 1.4; }

/* Кнопки */
.pt-btn {
  width: 100%; padding: 16px 18px;
  border-radius: 14px;
  background: var(--c-accent); color: #1A1D24;
  font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; transition: 0.15s;
  box-shadow: 0 6px 20px rgba(249, 168, 37, 0.3);
  margin-bottom: 12px;
}
.pt-btn:hover { background: #FFD89A; }
.pt-btn:disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); cursor: not-allowed; box-shadow: none; }
.pt-btn.secondary { background: rgba(255,255,255,0.1); color: #fff; box-shadow: none; }
.pt-btn.secondary:hover { background: rgba(255,255,255,0.15); }

.pt-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: rgba(255,255,255,0.55); margin: 22px 4px 10px;
  font-weight: 700;
}

/* Сетка вариантов серий */
.pt-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pt-option {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: left; cursor: pointer; transition: 0.15s;
  display: flex; flex-direction: column; gap: 6px;
  color: #fff;
}
.pt-option:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.pt-option:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.pt-option-icon { font-size: 26px; }
.pt-option-title { font-weight: 700; font-size: 14px; }
.pt-option-sub { font-size: 11px; opacity: 0.65; }
.pt-option.wide { grid-column: 1 / -1; }

/* История */
.pt-log {
  margin-top: 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  padding: 14px;
  max-height: 280px; overflow-y: auto;
}
.pt-log-empty {
  color: rgba(255,255,255,0.4); text-align: center; padding: 20px; font-size: 13px;
}
.pt-log-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pt-log-item:last-child { border-bottom: none; }
.pt-log-icon {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.08);
  display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.pt-log-body { flex: 1; min-width: 0; }
.pt-log-title { font-weight: 600; font-size: 13px; }
.pt-log-text { font-size: 12px; opacity: 0.7; line-height: 1.4; }
.pt-log-time { font-size: 10px; opacity: 0.5; margin-top: 2px; font-variant-numeric: tabular-nums; }

.pt-hint {
  background: rgba(249, 168, 37, 0.08);
  border: 1px solid rgba(249, 168, 37, 0.25);
  border-radius: 12px; padding: 12px 14px; margin: 14px 0;
  font-size: 13px; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.pt-hint b { color: #FFD89A; }
.pt-hint-icon { font-size: 18px; flex-shrink: 0; }

.pt-foot {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.pt-foot a { color: rgba(255,255,255,0.8); }

/* Карточка инструкций (iOS-инсталл, denied-help, закрепить на главном экране) */
.pt-install-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 18px;
  margin-bottom: 14px;
}
.pt-install-card.highlight {
  background: linear-gradient(135deg, rgba(249,168,37,0.12) 0%, rgba(251,109,47,0.10) 100%);
  border: 1px solid rgba(249,168,37,0.35);
  box-shadow: 0 6px 20px rgba(249,168,37,0.15);
}
.pt-install-card.highlight .pt-install-title { color: #FFD89A; }
.pt-install-title {
  font-size: 16px; font-weight: 800; margin-bottom: 6px;
  color: #fff;
}
.pt-install-sub {
  font-size: 13px; opacity: 0.75; line-height: 1.5; margin-bottom: 16px;
}
.pt-install-steps { display: flex; flex-direction: column; gap: 10px; }
.pt-install-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 12px;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
}
.pt-install-step-n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-accent); color: #1A1D24;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.pt-install-step-body {
  flex: 1; min-width: 0; font-size: 13px; line-height: 1.45;
  padding-top: 3px;
}
.pt-install-step-icon { margin-right: 6px; }
.pt-install-note {
  font-size: 12px; opacity: 0.55; margin-top: 12px; text-align: center; font-style: italic;
}

.pt-warn {
  margin-top: 14px;
  background: rgba(193, 18, 31, 0.15);
  border: 1px solid rgba(193, 18, 31, 0.3);
  border-radius: 10px; padding: 10px 14px;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.4;
}

.pt-spinner {

  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
  border-radius: 50%; animation: pt-spin 0.8s linear infinite;
  margin-right: 8px; vertical-align: middle;
}
@keyframes pt-spin { to { transform: rotate(360deg); } }

/* === Прогресс отправки серии === */
.pt-running {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: 540px; margin: 0 auto;
  background: linear-gradient(135deg, #F9A825 0%, #FB6D2F 100%);
  color: #1A1D24;
  border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(249, 168, 37, 0.4);
  z-index: 8500;
  animation: pt-slide-up 0.3s cubic-bezier(.16,1,.3,1);
  display: flex; align-items: center; gap: 14px;
}
@keyframes pt-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.pt-running-spin {
  width: 24px; height: 24px;
  border: 3px solid rgba(26, 29, 36, 0.2); border-top-color: #1A1D24;
  border-radius: 50%; animation: pt-spin 0.8s linear infinite;
  flex-shrink: 0;
}
.pt-running-body { flex: 1; min-width: 0; }
.pt-running-title { font-weight: 800; font-size: 14px; }
.pt-running-progress { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.pt-running-bar { flex: 1; height: 6px; background: rgba(26,29,36,0.15); border-radius: 3px; overflow: hidden; }
.pt-running-bar > div { height: 100%; background: #1A1D24; transition: width 0.3s; border-radius: 3px; }
.pt-running-count { font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
