:root{
  --bg:#05070b;
  --bg-elevated:#0b0f14;
  --panel:#0f1720;
  --stroke:#1f2937;
  --text:#e7eef7;
  --muted:#93a4b8;
  --ok:#16a34a;
  --ok-weak:#062612;
  --err:#ef4444;
  --warn:#f59e0b;
  --brand:#f97316;
  --brand-strong:#ea580c;
  --accent:#22c55e;
}

/* Сброс / базовые */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  background:radial-gradient(circle at 0 0,#111827 0,#020617 52%,#000 100%);
  color:var(--text);
}

/* ----- HEADER ----- */

.app-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 32px;
  background:linear-gradient(90deg,#020617 0%,#020617 40%,#020617 100%);
  border-bottom:1px solid rgba(15,23,42,.9);
  box-shadow:0 10px 30px rgba(0,0,0,.7);
  position:sticky;
  top:0;
  z-index:20;
}

.app-header-left{
  display:flex;
  align-items:center;
  gap:32px;
}

.app-logo{
  display:flex;
  align-items:center;
  gap:8px;
}

.app-logo-icon{
  width:40px;          /* можно 36–48, подбери размер */
  height:40px;
  display:block;
  object-fit:cover;
  border-radius:10px;
}

.app-logo-text{
  font-weight:700;
  font-size:16px;
}


.app-logo-text{
  font-weight:700;
  font-size:20px;
  letter-spacing:.04em;
  color:#f9fafb;
  text-shadow:0 0 12px rgba(249,115,22,.5);
}

.app-nav{
  display:flex;
  align-items:center;
  gap:10px;
}

.app-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  color:#cbd5f5;
  background:rgba(15,23,42,.8);
  border:1px solid rgba(31,41,55,.8);
  transition:all .18s ease-out;
}
.app-nav a:hover{
  color:#e5f2ff;
  border-color:rgba(248,113,113,.8);
  box-shadow:0 0 16px rgba(148,163,184,.6);
}

/* Правая часть хедера */

.app-header-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.btn-ghost{
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.7);
  background:transparent;
  color:#e5e7eb;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:all .16s ease-out;
}
.btn-ghost:hover{
  border-color:#f97316;
  color:#fff7ed;
  box-shadow:0 0 14px rgba(249,115,22,.7);
}

/* ----- MAIN LAYOUT ----- */

.app-main{
  max-width:1080px;
  margin:32px auto 40px;
  padding:0 20px 40px;
}

/* ----- SERVICE BADGE (подключено к провайдеру) ----- */

.badge-ok{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#bbf7d0;
  background:rgba(21,128,61,.16);
  border:1px solid rgba(34,197,94,.5);
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  box-shadow:0 0 12px rgba(34,197,94,.4);
}
.badge-ok-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 8px rgba(34,197,94,.9);
}

/* ----- КАРТА ПРОМО ----- */

.promo-page{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.promo-card{
  background:
    radial-gradient(circle at top left,rgba(249,115,22,.18) 0,transparent 55%),
    radial-gradient(circle at bottom right,rgba(56,189,248,.18) 0,transparent 60%),
    linear-gradient(145deg,#020617,#020617 55%,#020617 100%);
  border-radius:20px;
  padding:22px 24px 24px;
  border:1px solid rgba(15,23,42,.95);
  box-shadow:
    0 26px 60px rgba(0,0,0,.85),
    0 0 0 1px rgba(148,163,184,.11) inset;
}

.promo-header{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

/* Иконка слева от "Крылья XL" */
.promo-icon{
  width:64px;
  height:64px;
  border-radius:18px;
  background:
    radial-gradient(circle at 30% 15%,#fff3 0,#0000 55%),
    linear-gradient(135deg,#f97316,#ea580c);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 0 26px rgba(249,115,22,.9),
    0 0 60px rgba(234,88,12,.7);
}
.promo-icon-img{
  width: 70%;     /* ← увеличивай до нужного размера */
  height: 70%;
  object-fit: contain;
}

}

/* Текст заголовка + подзаголовков */
.promo-title-main{
  font-size:28px;
  font-weight:700;
  letter-spacing:.03em;
  margin:0;
  color:#f9fafb;
  text-shadow:
    0 0 10px rgba(249,115,22,.9),
    0 0 24px rgba(248,250,252,.8);
}

.promo-subline{
  font-size:14px;
  color:var(--muted);
  margin:2px 0 0;
}

/* Прогресс по кодам */

.progress-wrap{
  margin:8px 0 14px;
}

.progress-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
}

.progress-label{
  font-size:13px;
  color:var(--muted);
}

.progress-value{
  font-size:13px;
  color:#e5e7eb;
}

.progress{
  height:8px;
  border-radius:999px;
  background:#020617;
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(15,23,42,.9) inset;
}
.progress>span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--accent),#3dd68c);
  width:45%;
  box-shadow:0 0 20px rgba(34,197,94,.8);
}

/* Сообщения об ошибке / успехе */

.ok{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  margin-bottom:8px;
  padding:10px 14px;
  border-radius:12px;
  background:#166534;                  /* яркая зелёная полоса */
  border:1px solid #22c55e;
  color:#ecfdf5;
  font-size:14px;
}

.error{
  margin-top:10px;
  margin-bottom:8px;
  padding:10px 12px;
  border-radius:12px;
  background:#3b1216;
  border:1px solid #7f1d1d;
  color:#fecaca;
  font-size:14px;
}

/* ----- ФОРМА ----- */

.form-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr);
  gap:18px 22px;
  margin-top:10px;
}

@media (max-width:800px){
  .form-grid{
    grid-template-columns:1fr;
  }
}

.form-field label{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-bottom:6px;
}

.input,
select,
textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #243041;
  background:#020617;
  color:var(--text);
  font-size:15px;
  outline:none;
  transition:border-color .14s ease-out,box-shadow .14s ease-out,background .14s ease-out;
}

.input:focus,
select:focus,
textarea:focus{
  border-color:#f97316;
  box-shadow:0 0 0 1px rgba(249,115,22,.5),0 0 24px rgba(249,115,22,.5);
  background:#020617;
}

.input-prefix{
  display:flex;
  gap:10px;
}

.input-prefix .prefix{
  width:86px;
  text-align:center;
}

/* ----- КНОПКА ОТПРАВКИ С GLOW ----- */

.btn{
  margin-top:16px;
  width:100%;
  padding:16px 18px;
  border-radius:999px;
  border:1px solid #7c2d12;
  background:linear-gradient(135deg,#f97316,#ea580c);
  color:#fff;
  font-weight:700;
  font-size:17px;
  cursor:pointer;
  box-shadow:
    0 0 26px rgba(248,113,22,.9),
    0 16px 40px rgba(0,0,0,.85),
    inset 0 0 10px rgba(255,255,255,.22);
  text-shadow:0 0 8px rgba(0,0,0,.6);
  letter-spacing:.02em;
  transition:transform .12s ease-out,box-shadow .12s ease-out,filter .12s ease-out,background .12s.ease-out;
}
.btn:hover{
  background:linear-gradient(135deg,#fb923c,#f97316);
  transform:translateY(-1px);
  box-shadow:
    0 0 34px rgba(249,115,22,1),
    0 22px 55px rgba(0,0,0,.95),
    inset 0 0 12px rgba(255,255,255,.3);
  filter:saturate(1.1);
}
.btn:active{
  transform:translateY(0);
  box-shadow:
    0 0 22px rgba(249,115,22,.9),
    0 10px 24px rgba(0,0,0,.9),
    inset 0 0 10px rgba(0,0,0,.55);
}
.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

/* ----- ОБЩИЕ ЭЛЕМЕНТЫ ----- */

.card{
  background:var(--panel);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:20px;
  box-shadow:0 0 0 1px rgba(255,255,255,.02) inset;
}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:12px;
}
th,td{
  border-bottom:1px solid #243041;
  padding:10px;
  text-align:left;
  font-size:14px;
}
.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}

/* ----- КНОПКИ-ССЫЛКИ ДЛЯ ШАБЛОНОВ ----- */

.btn-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.8);
  background:rgba(15,23,42,.9);
  color:#e5e7eb;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:all .16s.ease-out;
}
.btn-link:hover{
  border-color:#f97316;
  color:#fff7ed;
  box-shadow:0 0 16px rgba(249,115,22,.8);
}

.btn-link-small{
  padding:6px 10px;
  font-size:12px;
}

.btn-link-danger{
  border-color:rgba(248,113,113,.9);
  color:#fecaca;
}
.btn-link-danger:hover{
  border-color:#ef4444;
  color:#fee2e2;
  box-shadow:0 0 16px rgba(239,68,68,.8);
}

.template-actions{
  display:flex;
  gap:6px;
  align-items:center;
}
.template-actions form{
  display:inline;
}
/* ----- ИСТОРИЯ СООБЩЕНИЙ: ДАШБОРД, ФИЛЬТРЫ, СТАТУСЫ ----- */

.history-summary{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}

.history-summary-card{
  background:#020617;
  border-radius:14px;
  padding:10px 14px;
  border:1px solid #1f2937;
  min-width:140px;
}

.history-summary-label{
  font-size:12px;
  color:var(--muted);
}

.history-summary-value{
  font-size:16px;
  font-weight:600;
  margin-top:4px;
}

.history-filters{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
  margin-bottom:16px;
}

.history-filters .form-field{
  margin-bottom:0;
  min-width:160px;
}

.badge-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:500;
}

.badge-status-ok{
  background:rgba(22,163,74,.15);
  color:#bbf7d0;
  border:1px solid rgba(22,163,74,.6);
}

.badge-status-failed{
  background:rgba(239,68,68,.15);
  color:#fecaca;
  border:1px solid rgba(239,68,68,.7);
}

.badge-status-retry{
  background:rgba(245,158,11,.15);
  color:#fed7aa;
  border:1px solid rgba(245,158,11,.8);
}

.history-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
}

.history-pagination a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid #1f2937;
  background:#020617;
  color:#e5e7eb;
  text-decoration:none;
  transition:all .16s.ease-out;
  margin-left:4px;
}

.history-pagination a:hover{
  border-color:#f97316;
  box-shadow:0 0 12px rgba(249,115,22,.7);
}

.history-pagination a.disabled{
  opacity:.4;
  pointer-events:none;
  border-style:dashed;
}

/* Мягкое неоновое свечение логотипа в шапке */
/* Огненный градиент для текста GORDAN PROMOKODUS */
.app-logo-text{
  font-weight:700;
  font-size:20px;
  letter-spacing:.04em;

  /* ОГНЕННЫЙ ГРАДИЕНТ */
  background: linear-gradient(90deg,
    #ff2600 0%,
    #ff4d00 0%,
    #ff7a00 0%,
    #ffbf4b 0%,
    #ffd575 0%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 4px rgba(255, 60, 20, 0.7),
    0 0 12px rgba(255, 100, 40, 0.7),
    0 0 22px rgba(255, 140, 60, 0.7);

}

/* Конверт с эффектом алого пламени */
.app-logo-icon{
  width:40px;
  height:40px;
  display:block;
  object-fit:cover;
  border-radius:10px;

  filter:
    drop-shadow(0 0 4px rgba(255, 80, 40, 0.9))
    drop-shadow(0 0 10px rgba(255, 120, 60, 0.9));

}
