:root {
  --bg: #060a12;
  --bg-2: #09111f;
  --panel: rgba(11, 18, 33, 0.92);
  --panel-soft: rgba(12, 20, 36, 0.86);
  --line: #1a2a47;
  --line-soft: rgba(255,255,255,0.06);
  --text: #eef3ff;
  --muted: #96a4c5;
  --accent: #c11f2c;
  --accent-2: #74111a;
  --ok: #1f8f4c;
  --warn: #c47d00;
  --bad: #bf2d2d;
}
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(193,31,44,0.08), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.96);
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
}
.brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.brand-logo {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.nav a {
  padding: 12px 12px;
  border-radius: 12px;
  color: #c8d3ef;
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s ease;
}
.nav a:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.content {
  padding: 18px 22px 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-user {
  color: #dfe7fb;
  font-size: 14px;
  font-weight: 700;
}
.datetime {
  text-align: right;
  line-height: 1.05;
}
.dt-date {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}
.dt-time {
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.hero {
  background: linear-gradient(135deg, rgba(116,17,26,0.78), rgba(193,31,44,0.34));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 28px 28px;
  margin-bottom: 16px;
}
.hero-compact {
  padding: 18px 26px;
  min-height: 112px;
  display: flex;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #ffe3e6;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero h2 {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.12;
}
.hero p {
  margin: 0;
  color: #d8dff2;
  font-size: 14px;
  line-height: 1.5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.stats-compact {
  gap: 12px;
  margin-bottom: 14px;
}
.stat-card,
.module-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.compact-card {
  min-height: 84px;
  padding: 14px 18px;
}
.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.stat-card strong {
  font-size: 17px;
  font-weight: 800;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.module-card {
  padding: 20px;
}
.module-card:hover {
  transform: translateY(-1px);
  transition: 0.18s ease;
  border-color: rgba(193,31,44,0.38);
}
.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.module-top h3 {
  margin: 0;
  font-size: 18px;
}
.module-status {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 143, 76, 0.16);
  color: #9ff0be;
  font-size: 11px;
  font-weight: 700;
}
.module-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  font-size: 14px;
}
.module-link {
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
}
.panel {
  padding: 18px;
  margin-top: 14px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar-tight {
  margin-bottom: 16px;
}
.toolbar-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.input,
.search,
.select,
.textarea {
  width: 100%;
  background: rgba(8, 15, 29, 0.94);
  color: var(--text);
  border: 1px solid #213454;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
}
.search {
  min-width: 280px;
  max-width: 430px;
}
.select {
  min-width: 180px;
  max-width: 240px;
}
.textarea {
  min-height: 110px;
  resize: vertical;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
}
.btn-small {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
}
.btn-smallish {
  padding: 10px 14px;
  font-size: 13px;
}
.btn-primary {
  background: linear-gradient(135deg, #ff3342, #c61d2b);
}
.btn-secondary {
  background: #1b2740;
}
.btn-warning {
  background: var(--warn);
}
.btn-danger {
  background: var(--bad);
}
.table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.data-table td {
  font-size: 14px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.pill-ok {
  background: rgba(31, 143, 76, 0.18);
  color: #9ff0be;
}
.pill-bad {
  background: rgba(191, 45, 45, 0.18);
  color: #ffb2b2;
}
.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.row-actions form {
  margin: 0;
}
.form-panel {
  padding: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.field-full {
  grid-column: 1 / -1;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.logo-preview-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  border: 1px solid #203150;
  border-radius: 18px;
  background: rgba(8, 15, 29, 0.94);
}
.logo-preview {
  max-width: 320px;
  max-height: 120px;
  display: block;
  object-fit: contain;
}
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-video-body {
  position: relative;
  overflow: hidden;
  background: #05070c;
}
.login-video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  transform: scale(1.03);
}
.login-video-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,0.28) 0%, rgba(5,7,12,0.40) 100%);
  backdrop-filter: blur(1px);
  z-index: 1;
}
.login-wrap {
  width: 100%;
  max-width: 460px;
  padding: 24px;
}
.login-wrap-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: rgba(18, 23, 34, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.glass-card {
  width: 100%;
  max-width: 430px;
  background: rgba(10, 14, 22, 0.76);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}
.login-logo-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}
.login-main-logo {
  width: 160px;
  max-width: 70%;
  height: auto;
  display: block;
}
.login-brand {
  margin-bottom: 18px;
}
.login-brand-center {
  justify-content: center;
  text-align: center;
  margin-bottom: 18px;
}
.login-brand-center h1 {
  font-size: 28px;
  margin: 0;
}
.login-brand-center p {
  font-size: 13px;
  margin: 4px 0 0;
}
.login-form {
  display: grid;
  gap: 16px;
}
.login-form .input {
  background: rgba(15, 21, 32, 0.86);
}
.login-form label {
  color: #d7deef;
}
.login-error {
  background: rgba(191, 45, 45, 0.20);
  color: #ffb2b2;
  border: 1px solid rgba(191, 45, 45, 0.38);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}
.login-btn {
  width: 100%;
}
@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 220px 1fr;
  }
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .content {
    padding: 16px;
  }
  .module-grid,
  .stats,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .dt-time {
    font-size: 24px;
  }
  .hero h2 {
    font-size: 24px;
  }
}
