/* popup.css — один экран настроек в стиле Tribuna (темный градиент + аккуратная карточка) */
:root{
  --t-bg:#0B0F1A;
  --t-card:#0F172A;
  --t-card2:#0B1226;
  --t-text:#EDEFF7;
  --t-muted:rgba(237,239,247,.72);
  --t-border:rgba(255,255,255,.12);
  --t-shadow:0 24px 70px rgba(0,0,0,.55);
  --t-gradA:#7C3AED;
  --t-gradB:#00D2FF;
  --t-danger:#EF4444;
}

/* Оверлей */
#push-popup-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background: rgba(2,6,23,.66);
  z-index:999999;
}

.push-hidden{display:none !important;}

.push-popup{
  width: min(560px, 100%);
  border-radius:18px;
  border:1px solid var(--t-border);
  background: radial-gradient(900px 380px at 20% 0%, rgba(124,58,237,.22), transparent 55%),
              radial-gradient(760px 340px at 90% 40%, rgba(0,210,255,.18), transparent 55%),
              linear-gradient(180deg, var(--t-card), var(--t-card2));
  box-shadow: var(--t-shadow);
  color:var(--t-text);
  padding:18px 18px 16px;
  position:relative;
}

/* Крестик */
.push-close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--t-text);
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.push-close:hover{background: rgba(255,255,255,.10);}
.push-close:active{transform:translateY(1px);}

/* Header */
.push-head{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding-right:42px; /* чтобы текст не залезал под крестик */
  margin-bottom:14px;
}
.push-icon{
  width:40px;
  height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  flex:0 0 auto;
}
.push-title{
  margin:0;
  font-size:20px;
  letter-spacing:-.01em;
}
.push-subtitle{
  margin:6px 0 0;
  color:var(--t-muted);
  line-height:1.45;
  font-size:13.5px;
}

.push-form{margin-top:6px;}
.push-field{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:12px 12px;
  margin:10px 0;
}
.push-label{
  font-weight:700;
  font-size:13px;
  margin-bottom:8px;
}
.push-muted{
  color:var(--t-muted);
  font-size:12.5px;
  line-height:1.4;
}

/* Select */
.push-select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(2,6,23,.55);
  color:var(--t-text);
  outline:none;
  font-size:14px;
}
.push-select:focus{border-color: rgba(0,210,255,.55);}

/* Checkbox */
.push-check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(2,6,23,.35);
  margin-top:8px;
  cursor:pointer;
  user-select:none;
}
.push-check input{width:18px;height:18px;}
.push-check:hover{background: rgba(2,6,23,.45);}

/* DND */
.push-dnd-row{
  display:flex;
  gap:12px;
  align-items:center;
}
.push-dnd-text{flex:1}

.push-switch{
  width:44px;
  height:26px;
  position:relative;
  display:inline-block;
}
.push-switch input{display:none;}
.push-switch-ui{
  position:absolute;
  inset:0;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.16);
  transition: .18s ease;
}
.push-switch-ui::after{
  content:'';
  position:absolute;
  width:20px;
  height:20px;
  left:3px;
  top:50%;
  transform: translateY(-50%);
  border-radius:999px;
  background:#fff;
  transition: .18s ease;
}
.push-switch input:checked + .push-switch-ui{
  background: linear-gradient(90deg, var(--t-gradA), var(--t-gradB));
  border-color: rgba(255,255,255,.22);
}
.push-switch input:checked + .push-switch-ui::after{
  left:21px;
}

.push-times{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.push-time{flex:1}
.push-time-label{
  display:block;
  font-size:12.5px;
  color:var(--t-muted);
  margin-bottom:6px;
}
.push-time-input{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(2,6,23,.55);
  color:var(--t-text);
}

/* Primary button */
.push-primary{
  width:100%;
  margin-top:10px;
  padding:14px 16px;
  border:none;
  border-radius:14px;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  color:#081018;
  background: linear-gradient(90deg, var(--t-gradA), var(--t-gradB));
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.push-primary:active{transform:translateY(1px);}
.push-primary:disabled{
  cursor:not-allowed;
  filter:saturate(.4) brightness(.9);
  opacity:.55;
  box-shadow:none;
}

.push-footnote{
  margin-top:10px;
  color:var(--t-muted);
  font-size:12.5px;
  line-height:1.4;
  text-align:center;
}

/* Мобилка: попап шире, кнопки крупнее */
@media (max-width: 420px){
  #push-popup-overlay{padding:12px;}
  .push-popup{border-radius:16px; padding:16px 14px 14px;}
  .push-title{font-size:18px;}
}
