:root {
  --bg: #071423;
  --panel: rgba(255, 255, 255, 0.96);
  --line: rgba(137, 173, 211, 0.24);
  --text: #0e2238;
  --muted: #5f7690;
  --brand: #1494e9;
  --brand-dark: #0e3d74;
  --brand-deep: #07182a;
  --accent: #ffbf3f;
  --ok: #1fc58f;
  --warn: #ff9a3d;
  --panel-shadow: 0 30px 70px rgba(4, 18, 38, 0.18);
  --panel-shadow-hover: 0 32px 80px rgba(4, 18, 38, 0.24);
}

body {
  background:
    radial-gradient(circle at top left, rgba(34, 157, 255, 0.12), transparent 33%),
    radial-gradient(circle at bottom right, rgba(3, 125, 194, 0.1), transparent 30%),
    linear-gradient(180deg, #edf4fb 0%, #e5eef7 100%);
}

.btn {
  border-radius: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #1494e9 0%, #0b73db 100%);
  box-shadow: 0 16px 34px rgba(20, 148, 233, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0d3f75;
  border: 1px solid rgba(13, 63, 117, 0.12);
}

.auth-body {
  background:
    linear-gradient(124deg, rgba(4, 18, 40, 0.96), rgba(5, 26, 55, 0.9));
}

.auth-body::before {
  background:
    linear-gradient(120deg, rgba(5, 16, 35, 0.5), rgba(5, 16, 35, 0.24)),
    url('../img/banner.png') center center / cover no-repeat;
  opacity: 1;
}

.auth-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at right 24%, rgba(94, 185, 255, 0.24), transparent 18%),
    radial-gradient(circle at left bottom, rgba(255, 191, 63, 0.18), transparent 20%);
  pointer-events: none;
}

.auth-layout.auth-layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 420px);
  align-items: stretch;
  gap: 22px;
  width: min(1240px, 95%);
  padding: 28px 0;
}

.auth-showcase,
.auth-card-ops {
  position: relative;
  z-index: 1;
}

.auth-showcase {
  min-height: 720px;
  border-radius: 30px;
  border: 1px solid rgba(126, 177, 223, 0.2);
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(4, 15, 32, 0.9), rgba(7, 29, 57, 0.48)),
    url('../img/banner.png') center right / cover no-repeat;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.24);
}

.auth-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 46%),
    linear-gradient(180deg, rgba(6, 18, 38, 0.04), rgba(6, 18, 38, 0.24));
}

.auth-showcase-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  min-height: 100%;
  padding: 52px;
  color: #fff;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d8ecff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-eyebrow-dark {
  background: rgba(20, 148, 233, 0.1);
  color: #0c74c7;
  border-color: rgba(20, 148, 233, 0.18);
}

.auth-showcase h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.auth-showcase p {
  margin: 0;
  max-width: 580px;
  color: rgba(226, 239, 252, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.auth-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5fbff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: .86rem;
  font-weight: 700;
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.auth-highlight-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(8, 24, 48, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.auth-highlight-card strong {
  font-size: 1rem;
}

.auth-highlight-card span {
  color: rgba(224, 237, 252, 0.78);
  line-height: 1.6;
  font-size: .94rem;
}

.auth-card.auth-card-ops {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 420px);
  border-radius: 30px;
  padding: 34px 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
  border: 1px solid rgba(184, 210, 233, 0.58);
  box-shadow: 0 30px 70px rgba(2, 16, 35, 0.32);
}

.auth-brand-ops {
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.auth-logo-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fcff, #e3f1fd);
  border: 1px solid rgba(148, 187, 223, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.auth-logo-mark img {
  max-width: 58px;
}

.auth-brand-copy {
  display: grid;
  gap: 4px;
}

.auth-brand-copy strong {
  color: #0b1f35;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.auth-brand-copy span,
.auth-heading p {
  color: #5f7690;
}

.auth-heading h2 {
  margin: 12px 0 8px;
  font-size: 2rem;
  color: #10263e;
}

.auth-heading p {
  margin: 0 0 8px;
  line-height: 1.65;
}

.auth-form-grid {
  margin-top: 10px;
}

.auth-form-grid input {
  min-height: 56px;
  border-radius: 16px;
  border-color: rgba(128, 164, 198, 0.3);
  background: rgba(248, 251, 255, 0.96);
}

.auth-form-grid input:focus {
  border-color: rgba(20, 148, 233, 0.42);
  box-shadow: 0 0 0 4px rgba(20, 148, 233, 0.12);
}

.auth-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #58718e;
  font-size: .92rem;
}

.auth-note-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #23c78b, #0baf79);
  box-shadow: 0 0 0 6px rgba(35, 199, 139, 0.12);
}

.app-body {
  background:
    radial-gradient(circle at top left, rgba(20, 148, 233, 0.16), transparent 22%),
    linear-gradient(180deg, #eef5fb 0%, #e7eff7 100%);
}

.sidebar {
  width: 272px;
  min-width: 272px;
  max-width: 272px;
  padding: 20px 16px;
  background:
    linear-gradient(180deg, rgba(5, 18, 35, 0.98), rgba(8, 30, 54, 0.97)),
    url('../img/banner.png') center center / cover no-repeat;
  box-shadow: 24px 0 60px rgba(3, 15, 30, 0.26);
}

.sidebar::before {
  background:
    linear-gradient(180deg, rgba(6, 18, 36, 0.78), rgba(6, 18, 36, 0.94)),
    radial-gradient(circle at top left, rgba(60, 174, 255, 0.2), transparent 30%);
}

.sidebar::after {
  display: none;
}

.sidebar-brand {
  align-items: flex-start;
  text-align: left;
  gap: 14px;
  margin-bottom: 22px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid rgba(197, 228, 255, 0.14);
}

.sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(227, 241, 253, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.sidebar-logo {
  width: 62px;
}

.sidebar-brand-copy {
  display: grid;
  gap: 6px;
}

.sidebar-brand-copy strong {
  color: #fff;
  font-size: 2rem;
  letter-spacing: -.03em;
  white-space: normal;
}

.sidebar-brand-copy span {
  color: rgba(212, 233, 252, 0.78);
  font-size: .92rem;
  line-height: 1.5;
}

.sidebar-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(31, 197, 143, 0.12);
  border: 1px solid rgba(31, 197, 143, 0.26);
  color: #b7ffd8;
  font-size: .82rem;
  font-weight: 800;
}

.sidebar-menu {
  gap: 8px;
}

.sidebar-menu a {
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  color: #ebf5ff;
  font-size: .95rem;
  font-weight: 700;
}

.sidebar-menu a.active {
  background: linear-gradient(135deg, rgba(20, 148, 233, 0.9), rgba(15, 101, 218, 0.96));
  box-shadow: 0 16px 34px rgba(20, 148, 233, 0.24);
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.sidebar-install-btn,
.sidebar-logout {
  width: 100%;
  margin: 0;
}

.sidebar-logout {
  background: rgba(255, 255, 255, 0.94);
}

.main-content {
  width: calc(100% - 272px);
  margin-left: 272px;
  padding: 28px 18px 40px;
}

.dashboard-ops {
  display: grid;
  gap: 22px;
}

.ops-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, .85fr);
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(4, 17, 34, 0.94), rgba(5, 25, 52, 0.84)),
    url('../img/banner.png') center center / cover no-repeat;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.ops-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 35%),
    radial-gradient(circle at right top, rgba(255, 191, 63, 0.18), transparent 18%);
  pointer-events: none;
}

.ops-hero-copy,
.ops-hero-panel {
  position: relative;
  z-index: 1;
}

.ops-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #dff2ff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ops-hero h1 {
  margin: 16px 0 12px;
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.2rem, 3vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.ops-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(222, 237, 252, 0.88);
  line-height: 1.75;
  font-size: 1rem;
}

.ops-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ops-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.ops-mini-stats article,
.ops-hero-panel {
  border: 1px solid rgba(219, 238, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ops-mini-stats article {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.ops-mini-stats strong {
  display: block;
  color: #fff;
  font-size: 1.7rem;
}

.ops-mini-stats span {
  color: rgba(221, 237, 252, 0.78);
  font-size: .92rem;
}

.ops-hero-panel {
  align-self: stretch;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.ops-hero-panel-header {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.ops-hero-panel-header span {
  color: rgba(221, 237, 252, 0.76);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.ops-hero-panel-header strong {
  color: #fff;
  font-size: 1.3rem;
}

.ops-hero-progress {
  display: grid;
  gap: 20px;
}

.ops-progress-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 196px;
  height: 196px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ops-progress-ring-core {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: rgba(7, 24, 42, 0.94);
  color: #fff;
}

.ops-progress-ring-core strong {
  font-size: 2.1rem;
  line-height: 1;
}

.ops-progress-ring-core span {
  color: rgba(221, 237, 252, 0.74);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.ops-status-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ops-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #eff7ff;
}

.summary-cards-ops {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-cards-ops .summary-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(173, 198, 223, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 254, 0.96));
}

.summary-label {
  color: #59728e;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.summary-cards-ops .summary-card strong {
  margin-top: 18px;
  font-size: 2.9rem;
  line-height: 1;
}

.summary-cards-ops .summary-card p {
  margin: 18px 0 0;
  color: #5f7690;
  line-height: 1.65;
}

.card-open strong { color: #1094ea; }
.card-progress strong { color: #e59217; }
.card-done strong { color: #12b981; }
.card-team strong { color: #315bff; }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel-span-2 {
  grid-column: span 2;
}

.panel {
  border-radius: 26px;
  border: 1px solid rgba(173, 198, 223, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
  box-shadow: var(--panel-shadow);
}

.panel-ice {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
}

.panel-dark {
  background:
    linear-gradient(180deg, rgba(7, 24, 42, 0.98), rgba(8, 33, 60, 0.96));
  border-color: rgba(89, 148, 204, 0.22);
}

.panel-kicker {
  display: inline-block;
  color: #5d7893;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.panel-dark .panel-kicker,
.panel-dark .panel-header h2,
.panel-dark .dispatch-metric,
.panel-dark .dispatch-stack strong,
.panel-dark .dispatch-stack small {
  color: #fff;
}

.panel-dark .dispatch-metric span,
.panel-dark .dispatch-stack small {
  color: rgba(219, 238, 255, 0.76);
}

.panel-header h2 {
  margin-top: 8px;
}

.panel-link {
  color: #0e78d4;
  font-weight: 800;
  text-decoration: none;
}

.bar-chart-ops {
  align-items: end;
  min-height: 270px;
}

.bar-chart-ops .bar-group {
  gap: 10px;
}

.bar-chart-ops .bar-group small {
  color: #627b95;
  font-size: .84rem;
  font-weight: 800;
}

.bar-chart-ops .bar-group i {
  width: 36px;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, #4cc4ff 0%, #148fe8 100%);
  box-shadow: 0 16px 32px rgba(20, 148, 233, 0.18);
}

.dispatch-metric {
  display: grid;
  gap: 10px;
}

.dispatch-metric strong {
  font-size: 4rem;
  line-height: 1;
}

.dispatch-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.dispatch-stack div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.dispatch-stack small,
.dispatch-stack strong {
  display: block;
}

.dispatch-stack small {
  margin-bottom: 8px;
}

.dispatch-list {
  display: grid;
  gap: 12px;
}

.dispatch-list.compact {
  gap: 10px;
}

.dispatch-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(239, 246, 255, 0.8);
  border: 1px solid rgba(174, 200, 226, 0.28);
}

.dispatch-list-item strong,
.dispatch-list-item span,
.dispatch-list-item b {
  display: block;
}

.dispatch-list-item strong {
  color: #10263e;
}

.dispatch-list-item span {
  margin-top: 5px;
  color: #617994;
  font-size: .92rem;
}

.dispatch-list-item b {
  min-width: 42px;
  text-align: center;
  color: #0c78d2;
  font-size: 1.2rem;
}

.empty-state-inline {
  padding: 18px;
  border-radius: 18px;
  background: rgba(239, 246, 255, 0.8);
  color: #617994;
}

.table-wrap-ops {
  border-radius: 20px;
  border: 1px solid rgba(176, 200, 224, 0.34);
}

.table-wrap-ops th {
  color: #5c7591;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.table-wrap-ops td {
  color: #12304e;
}

@media (max-width: 1200px) {
  .auth-layout.auth-layout-split,
  .ops-hero,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .summary-cards-ops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-highlights,
  .ops-mini-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    width: min(300px, 86vw);
    min-width: min(300px, 86vw);
    max-width: min(300px, 86vw);
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .auth-showcase {
    min-height: 520px;
  }

  .auth-showcase-inner,
  .ops-hero {
    padding: 22px;
  }

  .summary-cards-ops,
  .dispatch-stack {
    grid-template-columns: 1fr;
  }

  .panel-span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .auth-card.auth-card-ops {
    padding: 24px 20px;
  }

  .ops-progress-ring {
    width: 170px;
    height: 170px;
  }

  .ops-progress-ring-core {
    width: 112px;
    height: 112px;
  }
}
