/* === ОБЩИЕ НАСТРОЙКИ === */

body {
  min-height: 100vh;
  position: relative;
  color: #e5e7eb;
  background-color: #020617;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Фон со световыми пятнами */
.bg-layer {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.13), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.18), transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 1), rgba(15, 23, 42, 1));
  z-index: -1;
}

/* === ХЕДЕР === */
/* === БАЗОВАЯ GRID СЕТКА ДЛЯ МОБИЛЬНЫХ === */
.header-inner {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "left right"
    "center center";
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  position: relative; /* важно для absolute центра */
}

/* Привязка областей */
.header-left {
  grid-area: left;
}

.header-right {
  grid-area: right;
  display: flex;
  justify-content: flex-end;
}

.header-center {
  grid-area: center;
  display: flex;
  justify-content: center;
}

/* === МОБИЛЬНАЯ ВЕРСТКА (всё хорошо) === */
@media (max-width: 767.98px) {
  .header-center {
    margin-top: -20px;
    margin-bottom: 10px;
    width: 100%;
    position: static;       /* обычный поток */
    transform: none;
    justify-content: center;
  }

  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      "left right"
      "center center";
  }
}

/* === ДЕСКТОП / ПЛАНШЕТ — СТАТУС СТРОГО ПО ЦЕНТРУ ЭКРАНА === */
@media (min-width: 768px) {

  .header-inner {
    grid-template-columns: auto auto auto; /* равномерное распределение */
    grid-template-areas: "left . right";
  }

  .header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: auto;
    white-space: nowrap;
    pointer-events: none; /* не мешает кнопке справа */
  }

  .status-pill {
    pointer-events: auto; /* оставляем кликабельным */
  }
}



.header-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* Логотип */
.logo-mark {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.logo-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  display: block;
}

.logo-text-main {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 14px;
  color: #9ca3af;
}


/* Технологичная "пилюля" статуса */
.status-pill {
  position: relative;
  border-radius: 999px;
  padding: 6px 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  /* border: 1px solid rgba(148, 163, 184, 0.7); */
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 12px 28px rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

/* Лёгкий "сканирующий" блик поверх пилюли */
.status-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(148, 163, 184, 0.15) 45%,
    rgba(148, 163, 184, 0.35) 50%,
    rgba(148, 163, 184, 0.15) 55%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0.8;
  pointer-events: none;
  animation: status-scan 3.5s ease-in-out infinite;
}

/* Тонкая нижняя "подсветка" */
.status-pill::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(56, 189, 248, 0.8),
    transparent
  );
  opacity: 0.7;
  filter: blur(1px);
}

/* === ТОЧКА СТАТУСА С ПУЛЬСОМ === */

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #ffffff, currentColor 55%, transparent 70%);
}

/* ONLINE — неоновый зелёный пульс */
.status-dot.online {
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  animation: status-pulse-green 1.2s ease-in-out infinite;
}

/* OFFLINE — тревожный красный пульс */
.status-dot.offline {
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
  animation: status-pulse-red 1.2s ease-in-out infinite;
}

/* Текст статуса: техно-типографика */
.status-text {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  white-space: nowrap;
  opacity: 0.9;
}

/* На очень узких экранах позволяем перенос */
@media (max-width: 400px) {
  .status-text {
    white-space: normal;
    line-height: 1.2;
  }
}

/* === АНИМАЦИИ === */

/* Сканирующий блик по пилюле */
@keyframes status-scan {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  40% {
    transform: translateX(140%);
    opacity: 0;
  }
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

/* Пульс ONLINE */
@keyframes status-pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  }
}

/* Пульс OFFLINE */
@keyframes status-pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
  }
}






/* === КОНТЕНТ === */

.protected-content {
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.protected-content.locked {
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

/* === СЕНСОРЫ DS18B20 — КРАСИВЫЕ КАРТОЧКИ === */

.sensor-grid {
  margin-top: 0.75rem;
}

/* Базовая карточка сенсора */
.sensor-card {
  position: relative;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.25), transparent 60%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

/* Светящийся "ореол" при ховере */
.sensor-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

/* Световая линия снизу карточки */
.sensor-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(56, 189, 248, 0.85),
    transparent
  );
  opacity: 0.7;
  filter: blur(1px);
}

/* Hover-эффект */
.sensor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.96);
  border-color: rgba(248, 250, 252, 0.8);
}

.sensor-card:hover::before {
  opacity: 0.9;
}

/* Верхняя часть карточки */
.sensor-card-header {
  min-height: 32px;
}

.sensor-label-title {
  font-size: 14px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sensor-label-tag {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #cbd5f5;
}

/* Статус (онлайн/офлайн) справа в шапке */
.sensor-status-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

/* Основное значение температуры */
.sensor-main {
  margin-top: 4px;
}

.sensor-temp {
  font-size: 26px;
  font-weight: 600;
  color: #e5e7eb;
}

.sensor-temp-unit {
  font-size: 24px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.16em;
}

/* Футер карточки */
.sensor-footer {
  margin-top: 6px;
}

.sensor-meta-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.sensor-meta-value {
  font-size: 11px;
  color: #9ca3af;
}

/* Кружок статуса */
.sensor-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #6b7280;
  box-shadow: 0 0 0 0 rgba(107, 114, 128, 0.6);
}

/* ONLINE — зелёный пульс и подсветка */
.sensor-online .sensor-status-dot {
  background-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  animation: sensorPulseGreen 1.3s ease-in-out infinite;
}

.sensor-online .sensor-status-text {
  color: #bbf7d0;
}

.sensor-online .sensor-label-tag {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* OFFLINE — красный пульс и подсветка */
.sensor-offline .sensor-status-dot {
  background-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
  animation: sensorPulseRed 1.3s ease-in-out infinite;
}

.sensor-offline .sensor-status-text {
  color: #fecaca;
}

.sensor-offline .sensor-label-tag {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Анимации пульса */
@keyframes sensorPulseGreen {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  }
}

@keyframes sensorPulseRed {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
  }
}

/* Адаптив под мобильные */
@media (max-width: 575.98px) {
  .sensor-card {
    border-radius: 16px;
    padding: 12px 12px 10px;
  }

  .sensor-temp {
    font-size: 22px;
  }

  .sensor-label-title {
    font-size: 14px;
    color: #fff;
  }

  .sensor-status-text {
    font-size: 10px;
  }
}
/* === СЕНСОРЫ DS18B20 — ТЕХНОЛОГИЧНЫЕ КАРТОЧКИ === */

.sensor-grid {
  margin-top: 1.25rem;
}

/* Базовая карточка */
.sensor-card {
  position: relative;
  border-radius: 20px;
  padding: 16px 18px 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.3), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 18px 45px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out;
  animation: sensorCardFloat 10s ease-in-out infinite alternate;
}

/* Мягкий glow ореол */
.sensor-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.4), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

/* Нижняя световая линия */
.sensor-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(56, 189, 248, 0.9),
    transparent
  );
  opacity: 0.75;
  filter: blur(1px);
}

/* Hover-эффект */
.sensor-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.98),
    0 0 22px rgba(56, 189, 248, 0.35);
  border-color: rgba(248, 250, 252, 0.9);
}

.sensor-card:hover::before {
  opacity: 1;
}

/* Плавание карточек (легкое дыхание UI) */
@keyframes sensorCardFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Иконка датчика */
/* .sensor-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(248, 250, 252, 0.2), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.4),
    0 8px 20px rgba(15, 23, 42, 0.9);
}

.sensor-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: #e5e7eb;
} */

/* Обёртка PID-иконки */
.sensor-icon-wrap {
  width: 90px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Сам SVG */
.sensor-icon {
  width: 90px;
  height: 60px;
}

/* Корпус PID-контроллера */
.pid-body {
  fill: #141820;
  stroke: #2c3948;
  stroke-width: 1.2;
}

/* Экран PID (цвет меняется по зонам через классы) */
.pid-screen {
  fill: #111a22;
  stroke: #202e3c;
  stroke-width: 1;
}

/* При OFFLINE экран «глушим» */
.sensor-card.sensor-offline .pid-screen {
  fill: #13161b;
  stroke: #242931;
  opacity: 0.5;
}

/* Риски шкалы */
.pid-scale line {
  stroke: #9aaabd;
  stroke-width: 1.2;
  stroke-linecap: round;
}

/* Числовые значения шкалы */
.pid-scale-value {
  fill: #c3d0dd;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 7px;
  text-anchor: middle;
}

/* Фон столбика PV */
.pid-bar-bg {
  fill: #0a1016;
}

/* Активный столбик PV (цвет меняет JS) */
.pid-bar-fill {
  fill: #34c759;
}

/* Подписи PV / °C */
.pid-label,
.pid-unit {
  fill: #c7d4e0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 600;
}

/* Цветовые режимы экрана (зоны) */
.pid-screen.pid-zone-cold {
  fill: #061725;
  stroke: #12324c;
}

.pid-screen.pid-zone-normal {
  fill: #071e16;
  stroke: #14442d;
}

.pid-screen.pid-zone-warn {
  fill: #241e05;
  stroke: #5a4711;
}

.pid-screen.pid-zone-alarm {
  fill: #2a0909;
  stroke: #5b1717;
}

/* OFFLINE: столбик тусклый */
.sensor-card.sensor-offline .pid-bar-fill {
  fill: #4b5563;
  opacity: 0.5;
}

/* На очень маленьких экранах — чуть меньше */
@media (max-width: 575.98px) {
  .sensor-icon-wrap {
    width: 80px;
    height: 54px;
  }

  .sensor-icon {
    width: 80px;
    height: 54px;
  }
}


/* Заголовок карточки */
.sensor-label-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
}

/* .sensor-label-tag {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #cbd5f5;
} */

/* Статус (онлайн/офлайн) */
.sensor-status-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}


/* Основная температура */
.sensor-main {
  margin-top: 4px;
}

.sensor-temp {
  font-size: 30px;
  font-weight: 600;
  color: #e5e7eb;
}

.sensor-temp-unit {
  font-size: 24px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.16em;
}

/* Чип справа (зона) */
.sensor-pill-meta {
  display: flex;
  align-items: center;
}

.sensor-pill-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 2px 10px;
  border-radius: 4px;
  /* border: 1px solid rgba(148, 163, 184, 0.6); */
  color: #cbd5f5;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 70%);
}

/* Футер */
.sensor-footer {
  margin-top: 6px;
}

.sensor-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.sensor-meta-value {
  font-size: 11px;
  color: #9ca3af;
}

/* Маленький чип справа "TEMP STREAM" */
.sensor-meta-chip {
  padding: 2px 8px;
  border-radius: 999px;
  /* border: 1px solid rgba(56, 189, 248, 0.6);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35); */
}

.sensor-meta-chip-text {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bfdbfe;
}

/* Пульс статуса */
@keyframes sensorPulseGreen {
  0% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
  }
}

@keyframes sensorPulseRed {
  0% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.9);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.9);
  }
}

/* Адаптив под мобильные */
@media (max-width: 575.98px) {
  .sensor-card {
    border-radius: 18px;
    padding: 14px 14px 12px;
  }

  .sensor-temp {
    font-size: 24px;
  }

  .sensor-label-title {
    font-size: 14px;
  }

  .sensor-status-text {
    font-size: 10px;
  }
}
/* ============================================================
   Технологичная пилюля СТАТУСА в датчиках — стиль как в хедере!
   ============================================================ */

.sensor-status-pill {
  position: relative;
  border-radius: 999px;
  padding: 6px 14px;
  /* background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1)); */
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 1),
    0 12px 28px rgba(15, 23, 42, 0.95);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

/* 🟦 Сканирующий блик — как в хедере */
.sensor-status-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(148, 163, 184, 0.15) 45%,
    rgba(148, 163, 184, 0.35) 50%,
    rgba(148, 163, 184, 0.15) 55%,
    transparent 100%
  ); */
  transform: translateX(-120%);
  opacity: 0.8;
  pointer-events: none;
  animation: status-scan 3.5s ease-in-out infinite;
}

/* 🔵 Тонкая нижняя подсветка */
.sensor-status-pill::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(56, 189, 248, 0.8),
    transparent
  );
  opacity: 0.7;
  filter: blur(1px);
}

/* === ТОЧКА статуса — копия header.status-dot === */

.sensor-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #ffffff, currentColor 55%, transparent 70%);
}

/* ONLINE — неоновый зелёный, как в хедере */
.sensor-online .sensor-status-dot {
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  animation: status-pulse-green 1.2s ease-in-out infinite;
}

/* OFFLINE — красный пульс */
.sensor-offline .sensor-status-dot {
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.9);
  animation: status-pulse-red 1.2s ease-in-out infinite;
}

/* === Текст статуса (такой же стиль) === */

.sensor-status-text {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  white-space: nowrap;
  opacity: 0.9;
}










/* Карточка */
.content-card {
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.95));
  border-radius: 24px;
  padding: 28px 26px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

@media (min-width: 768px) {
  .content-card {
    padding: 34px 32px;
  }
}

.content-title {
  font-size: 24px;
  font-weight: 700;
}

.content-subtitle {
  font-size: 14px;
  color: #cbd5f5;
}

.content-footnote {
  font-size: 12px;
  color: #9ca3af;
}

/* === ИНФО-ТАЙЛЫ === */

.info-tile {
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.7);
}

.info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.info-value {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* === МОДАЛКА АВТОРИЗАЦИИ === */

.auth-modal-content {
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.98));
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.modal-header .modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 13px;
  color: #cbd5f5;
  margin-top: 4px;
}

.auth-input {
  background-color: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  font-size: 16px;
}

.auth-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
  background-color: rgba(15, 23, 42, 0.95);
}

.btn-auth {
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-auth:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.9);
}

.btn-auth:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

.auth-error {
  font-size: 13px;
  border-radius: 10px;
  padding: 8px 10px;
}

.highlight {
  color: #38bdf8;
}

.footer-note,
.footer-version {
  font-size: 11px;
  color: #9ca3af;
}

/* === АДАПТИВ === */

@media (max-width: 575.98px) {
  .header-bar {
    min-height: 60px;
  }

  .content-title {
    font-size: 20px;
  }

  .content-card {
    border-radius: 20px;
  }
}
/* Центрируем статус */
.header-center {
  text-align: center;
}

/* Чтобы статус не прыгал */
.status-pill {
  /* border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.3); */
  background: rgba(15,23,42,0.6);
  white-space: nowrap;
}

/* На мобильных — компактные размеры */
@media (max-width: 575.98px) {
  .logo-img {
    width: 90px !important;
    height: 90px !important;
  }

  .logo-text-main {
    font-size: 24px !important;
  }

  .logo-text-sub {
    font-size: 9px !important;
  }

  .status-text {
    font-size: 16px !important;
  }

  .logout-btn {
    font-size: 16px !important;
    padding: 4px 10px !important;
  }
}
