/* ============================================================
   Wolf Broadcast — Cyan Neon UI
   Visual layer only. Loaded after main.css.
   ============================================================ */

:root {
  --bg-base: #020711;
  --bg-surface: rgba(7, 15, 28, 0.92);
  --bg-elevated: rgba(10, 22, 39, 0.96);
  --bg-input: rgba(2, 8, 19, 0.96);

  --border-subtle: rgba(89, 137, 174, 0.20);
  --border-strong: rgba(0, 217, 255, 0.58);

  --text-primary: #f3f7fb;
  --text-secondary: #9aa7ba;
  --text-muted: #657287;

  --accent-cyan: #00d9ff;
  --accent-cyan-dim: #009fbe;
  --accent-green: #24dc76;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-glow-cyan:
    0 0 15px rgba(0, 217, 255, 0.24),
    0 0 36px rgba(0, 217, 255, 0.09);
}

html {
  background: #020711;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(0, 217, 255, 0.11),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 82%,
      rgba(0, 119, 255, 0.09),
      transparent 38%
    ),
    linear-gradient(
      150deg,
      #020711 0%,
      #030b18 52%,
      #020610 100%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(
      rgba(0, 217, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 217, 255, 0.07) 1px,
      transparent 1px
    );
  background-size: 48px 48px;
}

.app {
  position: relative;
  z-index: 1;
  grid-template-columns: 286px minmax(0, 1fr);
}

/* Sidebar */

.sidebar {
  padding: 28px 20px;
  overflow-y: auto;
  background:
    radial-gradient(
      circle at 24% 12%,
      rgba(0, 217, 255, 0.13),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      rgba(7, 16, 31, 0.98),
      rgba(2, 8, 19, 0.98)
    );
  border-right: 1px solid rgba(0, 217, 255, 0.22);
  box-shadow:
    18px 0 55px rgba(0, 0, 0, 0.32),
    inset -1px 0 rgba(0, 217, 255, 0.06);
}

.sidebar > div:first-child::before {
  content: "";
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2300d9ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 50l6-19-6-10 15-3L34 7l4 12 14 7-8 7 5 11-15-5-10 13-1-13z'/%3E%3Cpath d='M25 26l9 3 9-3M29 35h4M18 31l8-5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter:
    drop-shadow(0 0 5px rgba(0, 217, 255, 0.95))
    drop-shadow(0 0 15px rgba(0, 217, 255, 0.38));
}

.brand {
  max-width: 175px;
  margin-bottom: 8px;
  gap: 10px;
  font-size: 23px;
  line-height: 1.04;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 217, 255, 0.12);
}

.brand-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: var(--accent-cyan);
  box-shadow:
    0 0 9px var(--accent-cyan),
    0 0 20px rgba(0, 217, 255, 0.6);
}

.brand-sub {
  margin-bottom: 30px;
  color: #566379;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav {
  gap: 7px;
}

.nav a {
  position: relative;
  width: 100%;
  min-height: 45px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #8592a6;
  font-size: 14px;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.nav a:hover {
  color: #ecfaff;
  border-color: rgba(0, 217, 255, 0.25);
  background: rgba(0, 217, 255, 0.06);
  text-decoration: none;
  transform: translateX(2px);
}

.nav a.active {
  color: var(--accent-cyan);
  border-color: rgba(0, 217, 255, 0.66);
  background:
    linear-gradient(
      90deg,
      rgba(0, 217, 255, 0.15),
      rgba(0, 217, 255, 0.025)
    );
  box-shadow:
    inset 3px 0 0 var(--accent-cyan),
    0 0 17px rgba(0, 217, 255, 0.18),
    0 0 35px rgba(0, 217, 255, 0.06);
}

.nav a.active::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 217, 255, 0.14);
}

.sidebar-footer .user {
  margin-bottom: 10px;
  color: #8190a5;
  font-size: 12px;
  word-break: break-word;
}

.logout-btn {
  color: #718096;
  font-family: inherit;
}

.logout-btn:hover {
  color: var(--accent-cyan);
}

/* Main area */

.main {
  width: 100%;
  max-width: none;
  padding:
    40px
    clamp(24px, 4vw, 64px)
    56px;
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.12);
}

.page-header h1 {
  font-size: clamp(24px, 2vw, 31px);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.07);
}

.page-subtitle {
  max-width: 760px;
  color: #8d99ac;
  font-size: 14px;
  line-height: 1.65;
}

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

/* Cards and data */

.card,
.kpi,
.empty,
.table-wrap {
  background:
    linear-gradient(
      145deg,
      rgba(10, 21, 38, 0.92),
      rgba(3, 10, 22, 0.95)
    );
  border: 1px solid rgba(75, 123, 159, 0.23);
  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 255, 0.02),
    0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.card {
  padding: 24px;
  border-radius: 18px;
}

.card:hover,
.kpi:hover {
  border-color: rgba(0, 217, 255, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 255, 0.04),
    0 0 24px rgba(0, 217, 255, 0.08),
    0 18px 54px rgba(0, 0, 0, 0.28);
}

.card h2 {
  font-size: 19px;
}

.card-title {
  color: var(--accent-cyan);
}

.kpi-grid {
  gap: 16px;
}

.kpi {
  min-height: 122px;
  padding: 21px;
  border-radius: 17px;
}

.kpi-label {
  margin-bottom: 14px;
  color: #748196;
}

.kpi-value {
  font-size: 30px;
}

.empty {
  min-height: 156px;
  display: grid;
  place-items: center;
  border-style: solid;
  border-color: rgba(75, 123, 159, 0.19);
  border-radius: 18px;
}

.table-wrap {
  border-radius: 17px;
}

table.data {
  background: transparent;
}

table.data th {
  background: rgba(0, 217, 255, 0.05);
  color: #7d8ba0;
}

table.data th,
table.data td {
  border-bottom-color: rgba(75, 123, 159, 0.15);
}

table.data tbody tr:hover {
  background: rgba(0, 217, 255, 0.04);
}

/* Buttons and forms */

.btn {
  min-height: 43px;
  padding: 10px 18px;
  border-radius: 11px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #00141b;
  border-color: #24ebff;
  background:
    linear-gradient(
      135deg,
      #2cecff,
      #00bde8
    );
  box-shadow:
    0 0 14px rgba(0, 217, 255, 0.45),
    0 0 31px rgba(0, 217, 255, 0.13);
}

.btn-primary:hover {
  color: #00141b;
  background:
    linear-gradient(
      135deg,
      #72f4ff,
      #11d5ff
    );
  box-shadow:
    0 0 21px rgba(0, 217, 255, 0.61),
    0 0 44px rgba(0, 217, 255, 0.18);
}

.btn-ghost {
  color: #9aa7b8;
  border-color: rgba(91, 132, 164, 0.28);
  background: rgba(2, 8, 18, 0.5);
}

.btn-ghost:hover {
  color: var(--accent-cyan);
  border-color: rgba(0, 217, 255, 0.45);
  background: rgba(0, 217, 255, 0.07);
}

.form-control {
  min-height: 49px;
  padding: 12px 14px;
  border-color: rgba(79, 121, 155, 0.29);
  border-radius: 11px;
  background:
    linear-gradient(
      180deg,
      rgba(2, 9, 21, 0.99),
      rgba(4, 12, 26, 0.99)
    );
}

.form-control:hover {
  border-color: rgba(0, 217, 255, 0.32);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 0 3px rgba(0, 217, 255, 0.11),
    0 0 20px rgba(0, 217, 255, 0.14);
}

input[type="file"].form-control {
  padding: 7px;
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 13px;
  border: 1px solid rgba(0, 217, 255, 0.48);
  border-radius: 8px;
  color: var(--accent-cyan);
  background: rgba(0, 217, 255, 0.06);
  font-family: inherit;
  cursor: pointer;
}

.form-group label {
  color: #9ba8ba;
}

.form-help,
.muted {
  color: #69768b;
}

/* Login */

.login-page {
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(0, 217, 255, 0.12),
      transparent 34%
    ),
    linear-gradient(
      150deg,
      #020711,
      #03101b 55%,
      #020610
    );
}

.login-card {
  border-color: rgba(0, 217, 255, 0.34);
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 34, 0.97),
      rgba(2, 8, 19, 0.99)
    );
  box-shadow:
    0 0 28px rgba(0, 217, 255, 0.13),
    0 32px 82px rgba(0, 0, 0, 0.42);
}

/* Mobile layout */

@media (max-width: 900px) {
  .app {
    display: block;
  }

  .sidebar {
    position: relative;
    top: auto;
    width: auto;
    height: auto;
    min-height: 405px;
    margin: 12px;
    padding: 20px 16px;
    display: grid;
    grid-template-columns:
      minmax(120px, 42%)
      minmax(0, 58%);
    grid-template-areas:
      "brand nav"
      "footer nav";
    align-items: stretch;
    gap: 16px;
    overflow: visible;
    border: 1px solid rgba(0, 217, 255, 0.27);
    border-radius: 24px;
    box-shadow:
      0 0 22px rgba(0, 217, 255, 0.10),
      0 26px 62px rgba(0, 0, 0, 0.34);
  }

  .sidebar > div:first-child {
    grid-area: brand;
    align-self: start;
    padding-top: 3px;
  }

  .sidebar > div:first-child::before {
    width: 58px;
    height: 58px;
  }

  .brand {
    max-width: 120px;
    font-size: 22px;
    line-height: 1.02;
  }

  .brand-sub {
    display: none;
  }

  .nav {
    grid-area: nav;
    margin: 0;
    padding-left: 11px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 5px;
    border-left: 1px solid rgba(0, 217, 255, 0.14);
  }

  .nav a {
    min-height: 43px;
    padding: 9px 10px;
    font-size: 13px;
  }

  .nav a.active {
    box-shadow:
      inset 3px 0 0 var(--accent-cyan),
      0 0 17px rgba(0, 217, 255, 0.16);
  }

  .sidebar-footer {
    grid-area: footer;
    align-self: end;
    padding: 15px 0 0;
    border-top: 1px solid rgba(0, 217, 255, 0.13);
    border-left: none;
  }

  .main {
    padding: 18px 16px 44px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .page-header {
    margin-bottom: 23px;
  }

  .page-header h1 {
    font-size: 23px;
  }

  .card {
    padding: 20px;
  }

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

  .kpi {
    min-height: 112px;
    padding: 17px;
  }
}

@media (max-width: 430px) {
  .sidebar {
    min-height: 390px;
    margin: 8px;
    padding: 15px 10px;
    grid-template-columns:
      minmax(108px, 41%)
      minmax(0, 59%);
    gap: 9px;
    border-radius: 19px;
  }

  .sidebar > div:first-child::before {
    width: 49px;
    height: 49px;
  }

  .brand {
    max-width: 105px;
    font-size: 18px;
  }

  .nav {
    padding-left: 7px;
  }

  .nav a {
    min-height: 40px;
    padding: 8px 7px;
    gap: 8px;
    font-size: 12px;
    border-radius: 11px;
  }

  .main {
    padding: 16px 12px 38px;
  }

  .card {
    padding: 18px;
  }

  .kpi-grid {
    gap: 10px;
  }

  .kpi {
    min-height: 103px;
    padding: 15px;
  }

  .kpi-value {
    font-size: 24px;
  }
}

/* WOLF_UI_CLEANUP_V1_START */

/* Settings layout */
.settings-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.workspace-card {
  position: relative;
  overflow: hidden;
}

.workspace-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      rgba(0, 217, 255, 0.13),
      transparent 68%
    );
}

.workspace-intro {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: #8290a4;
  line-height: 1.7;
}

.security-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  color: #8c99ab;
  line-height: 1.55;
  border-bottom:
    1px solid rgba(75, 123, 159, 0.14);
}

.security-list li:last-child {
  border-bottom: none;
}

.security-list li::before {
  content: "✓";
  position: absolute;
  left: 1px;
  top: 12px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-shadow:
    0 0 9px rgba(0, 217, 255, 0.75);
}

/* Keep the account email clean */
.sidebar-footer .user {
  max-width: 100%;
  line-height: 1.45;
}

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

  .sidebar-footer .user {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .sidebar-footer .user {
    max-width: 104px;
    font-size: 9.5px;
  }
}

/* WOLF_UI_CLEANUP_V1_END */

/* WOLF_COMPACT_HEADER_V1_START */

/* Remove the previous generated logo */
.sidebar > div:first-child::before {
  display: none !important;
}

/* New brand lockup */

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  fill: rgba(0, 217, 255, 0.035);
  stroke: var(--accent-cyan);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(
      0 0 5px rgba(0, 217, 255, 0.9)
    )
    drop-shadow(
      0 0 13px rgba(0, 217, 255, 0.32)
    );
}

.brand-mark-inner {
  opacity: 0.42;
  stroke-width: 1.5;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.brand-copy span {
  color: #ffffff;
  font-weight: 700;
}

.brand-copy strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Desktop hamburger is hidden */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(0, 217, 255, 0.38);
  border-radius: 12px;
  background: rgba(0, 217, 255, 0.055);
  color: var(--accent-cyan);
  cursor: pointer;
  box-shadow:
    0 0 14px rgba(0, 217, 255, 0.09);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.sidebar.sidebar-open
.nav-toggle span:nth-child(1) {
  transform:
    translateY(7px)
    rotate(45deg);
}

.sidebar.sidebar-open
.nav-toggle span:nth-child(2) {
  opacity: 0;
}

.sidebar.sidebar-open
.nav-toggle span:nth-child(3) {
  transform:
    translateY(-7px)
    rotate(-45deg);
}

/* Desktop footer remains at bottom */

.sidebar-footer {
  margin-top: auto;
}

.sidebar-footer .user {
  color: #7c899d;
}

/* Compact mobile navigation */

@media (max-width: 900px) {

  .sidebar {
    position: relative !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 10px 12px 0 !important;
    padding: 12px !important;
    display: block !important;
    overflow: visible !important;

    border:
      1px solid rgba(0, 217, 255, 0.28);

    border-radius: 18px;

    background:
      linear-gradient(
        145deg,
        rgba(7, 17, 32, 0.98),
        rgba(2, 8, 19, 0.99)
      );

    box-shadow:
      0 0 18px rgba(0, 217, 255, 0.08),
      0 16px 40px rgba(0, 0, 0, 0.28);
  }

  .sidebar-top {
    margin: 0;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy {
    flex-direction: row;
    gap: 5px;
    font-size: 17px;
    line-height: 1;
  }

  .brand-copy strong {
    color: #ffffff;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none !important;
    margin: 12px 0 0 !important;
    padding: 12px 0 0 !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;

    border-left: none !important;
    border-top:
      1px solid rgba(0, 217, 255, 0.14);
  }

  .sidebar.sidebar-open .nav {
    display: flex !important;
  }

  .nav a {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    font-size: 13.5px;
    border-radius: 11px;
  }

  .nav a.active {
    box-shadow:
      inset 3px 0 0 var(--accent-cyan),
      0 0 15px rgba(0, 217, 255, 0.14);
  }

  .sidebar-footer {
    display: none !important;
    margin-top: 12px !important;
    padding: 12px 2px 1px !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-left: none !important;
    border-top:
      1px solid rgba(0, 217, 255, 0.14);
  }

  .sidebar.sidebar-open .sidebar-footer {
    display: flex !important;
  }

  .sidebar-footer .user {
    margin: 0;
    max-width: none;
    color: #748196;
    font-size: 11px;
  }

  .logout-btn {
    font-size: 12px;
  }

  .main {
    padding:
      24px
      14px
      42px !important;
  }

}

@media (max-width: 430px) {

  .sidebar {
    margin:
      8px
      8px
      0 !important;

    padding: 10px !important;
    border-radius: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy {
    font-size: 15.5px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .main {
    padding:
      22px
      12px
      38px !important;
  }

}

/* WOLF_COMPACT_HEADER_V1_END */

/* WOLF_MOBILE_POLISH_V1_START */

/*
 * Final mobile refinement:
 * - smaller compact header
 * - tighter page introductions
 * - shorter KPI cards
 * - less unnecessary vertical scrolling
 */

@media (max-width: 900px) {

  .sidebar {
    min-height: 0 !important;
    margin: 8px 10px 0 !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  .sidebar-top {
    width: 100%;
    min-height: 44px;
    gap: 10px;
  }

  .brand-lockup {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy {
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.025em;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 11px;
  }

  .nav-toggle span {
    width: 19px;
  }

  .nav {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }

  .nav a {
    min-height: 42px;
    padding: 9px 12px;
  }

  .main {
    padding:
      20px
      14px
      38px !important;
  }

  .page-header {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .page-header h1 {
    margin-bottom: 7px;
    font-size: 28px;
    line-height: 1.12;
  }

  .page-subtitle {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .page-header .btn {
    min-height: 41px;
    padding: 9px 17px;
  }

  .kpi-grid {
    gap: 10px;
    margin-bottom: 24px;
  }

  .kpi {
    min-height: 100px;
    padding: 16px;
    border-radius: 15px;
  }

  .kpi-label {
    margin-bottom: 10px;
    font-size: 10.5px;
  }

  .kpi-value {
    font-size: 27px;
    line-height: 1;
  }

  .card {
    border-radius: 16px;
  }

  .empty {
    min-height: 136px;
    padding: 28px 18px;
    border-radius: 16px;
  }

  h3 {
    margin-bottom: 12px;
  }
}

@media (max-width: 430px) {

  .sidebar {
    margin: 6px 8px 0 !important;
    padding: 8px 10px !important;
    border-radius: 15px !important;
  }

  .sidebar-top {
    min-height: 40px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy {
    font-size: 15px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .main {
    padding:
      18px
      12px
      34px !important;
  }

  .page-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .page-header h1 {
    font-size: 27px;
  }

  .page-subtitle {
    font-size: 13.5px;
  }

  .kpi {
    min-height: 96px;
    padding: 14px;
  }

  .kpi-value {
    font-size: 26px;
  }

  .empty {
    min-height: 128px;
  }
}

/* WOLF_MOBILE_POLISH_V1_END */

/* WOLF_COMPACT_MENU_V2_START */

@media (max-width: 900px) {

  /*
   * Compact dropdown grid.
   * This overrides the old full-height mobile navigation.
   */

  .sidebar.sidebar-open {
    padding-bottom: 10px !important;
  }

  .sidebar.sidebar-open .nav {
    display: grid !important;
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    gap: 8px !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 0 !important;

    border-top:
      1px solid rgba(0, 217, 255, 0.14) !important;

    border-left: none !important;
  }

  .sidebar.sidebar-open .nav a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 10px 12px !important;

    display: flex !important;
    align-items: center !important;

    font-size: 13px !important;
    line-height: 1.25 !important;

    border-radius: 11px !important;
  }

  /*
   * Give the long connection label a full row.
   */

  .sidebar.sidebar-open .nav a:nth-child(3) {
    grid-column: 1 / -1;
  }

  /*
   * Keep active navigation clear without creating
   * oversized spacing.
   */

  .sidebar.sidebar-open .nav a.active {
    background:
      linear-gradient(
        90deg,
        rgba(0, 217, 255, 0.14),
        rgba(0, 217, 255, 0.035)
      ) !important;

    border-color:
      rgba(0, 217, 255, 0.58) !important;

    box-shadow:
      inset 3px 0 0 var(--accent-cyan),
      0 0 14px rgba(0, 217, 255, 0.14) !important;
  }

  /*
   * Compact account/footer row.
   */

  .sidebar.sidebar-open .sidebar-footer {
    display: flex !important;
    width: 100% !important;

    margin: 10px 0 0 !important;
    padding: 10px 3px 1px !important;

    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    border-top:
      1px solid rgba(0, 217, 255, 0.12) !important;

    border-left: none !important;
  }

  .sidebar.sidebar-open .sidebar-footer .user {
    margin: 0 !important;
    max-width: 60% !important;

    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;

    font-size: 11px !important;
  }

  .sidebar.sidebar-open .logout-btn {
    padding: 5px 0 !important;
    font-size: 12px !important;
  }
}

@media (max-width: 390px) {

  .sidebar.sidebar-open .nav {
    gap: 6px !important;
  }

  .sidebar.sidebar-open .nav a {
    min-height: 41px !important;
    padding: 8px 9px !important;
    font-size: 12px !important;
  }
}

/* WOLF_COMPACT_MENU_V2_END */

/* WOLF_VERTICAL_MENU_START */

@media (max-width: 900px) {

  .sidebar.sidebar-open .nav {
    display: flex !important;
    grid-template-columns: none !important;
    grid-auto-flow: row !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .sidebar.sidebar-open .nav a {
    display: flex !important;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 14px;
  }

  .sidebar.sidebar-open .nav a.active {
    width: 100% !important;
  }

}

/* WOLF_VERTICAL_MENU_END */

/* WOLF_REAL_LOGO_START */

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 13px;
  background:
    radial-gradient(
      circle,
      rgba(0, 217, 255, 0.10),
      rgba(2, 8, 19, 0.55)
    );
  box-shadow:
    0 0 8px rgba(0, 217, 255, 0.42),
    0 0 20px rgba(0, 217, 255, 0.13);
}

@media (max-width: 900px) {
  .brand-logo {
    width: 40px;
    height: 40px;
    padding: 2px;
    border-radius: 11px;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
}

/* WOLF_REAL_LOGO_END */



/* WOLF_LOGIN_FINAL_V4_START */

.login-page-final {
  min-height: 100svh;
  align-items: flex-start;
  padding:
    clamp(42px, 7vh, 78px)
    16px
    42px;
}

.login-card-final {
  position: relative;
  width: min(100%, 520px);
  max-width: 520px;
  padding: 32px 38px 30px;
  overflow: hidden;

  border:
    1px solid rgba(0, 217, 255, 0.30);

  border-radius: 24px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(0, 217, 255, 0.07),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(8, 19, 36, 0.97),
      rgba(2, 8, 19, 0.99)
    );

  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 255, 0.025),
    0 0 36px rgba(0, 217, 255, 0.11),
    0 30px 82px rgba(0, 0, 0, 0.43);
}

.login-identity-final {
  text-align: center;
}

.login-logo-shell {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  padding: 7px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(0, 217, 255, 0.38);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(0, 217, 255, 0.09),
      rgba(2, 9, 21, 0.94)
    );

  box-shadow:
    inset 0 0 22px rgba(0, 217, 255, 0.05),
    0 0 16px rgba(0, 217, 255, 0.22),
    0 0 38px rgba(0, 217, 255, 0.10);
}

.login-wolf-engine-logo {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  border-radius: 17px;

  filter:
    drop-shadow(
      0 0 9px rgba(0, 217, 255, 0.30)
    );
}

.login-identity-final h1 {
  margin: 0;

  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 5vw, 35px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;

  text-shadow:
    0 0 18px rgba(0, 217, 255, 0.09);
}

.login-byline {
  margin: 10px 0 0;
  color: #8390a4;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.meta-verified-application {
  width: fit-content;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  margin: 23px auto 0;
  padding: 11px 16px;

  border:
    1px solid rgba(0, 217, 255, 0.30);

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(0, 217, 255, 0.09),
      rgba(3, 11, 24, 0.94)
    );

  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 255, 0.025),
    0 0 22px rgba(0, 217, 255, 0.08);
}

.meta-verified-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;

  fill: rgba(0, 217, 255, 0.08);
  stroke: var(--accent-cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  filter:
    drop-shadow(
      0 0 7px rgba(0, 217, 255, 0.50)
    );
}

.meta-verified-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.meta-verified-copy strong {
  color: #effcff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.meta-verified-copy span {
  margin-top: 3px;
  color: #78869a;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.login-divider-final {
  height: 1px;
  margin: 27px 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(0, 217, 255, 0.24),
      transparent
    );
}

.login-form-final .form-group {
  margin-bottom: 20px;
}

.login-form-final .form-group label {
  margin-bottom: 8px;
  color: #9ba8bb;
  font-size: 11.5px;
  letter-spacing: 0.075em;
}

.login-form-final .form-control {
  min-height: 56px;
  padding: 13px 15px;
  border-radius: 13px;
}

.login-submit-final {
  width: 100%;
  min-height: 54px;
  margin-top: 3px;

  justify-content: center;

  border-radius: 13px;

  font-size: 15px;
  font-weight: 700;
}

.login-security-final {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top: 26px;
  padding-top: 20px;

  border-top:
    1px solid rgba(75, 123, 159, 0.14);

  color: #768498;
  font-size: 12px;
}

.login-security-dot-final {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;

  border-radius: 50%;
  background: var(--accent-cyan);

  box-shadow:
    0 0 8px rgba(0, 217, 255, 0.92),
    0 0 16px rgba(0, 217, 255, 0.36);
}

@media (max-width: 560px) {

  .login-page-final {
    padding:
      clamp(32px, 6vh, 55px)
      13px
      30px;
  }

  .login-card-final {
    width: 100%;
    padding: 27px 23px 25px;
    border-radius: 21px;
  }

  .login-logo-shell {
    width: 92px;
    height: 92px;
    margin-bottom: 17px;
    border-radius: 21px;
  }

  .login-wolf-engine-logo {
    border-radius: 15px;
  }

  .login-identity-final h1 {
    font-size: 28px;
  }

  .meta-verified-application {
    margin-top: 20px;
    padding: 10px 13px;
  }

  .login-divider-final {
    margin: 23px 0;
  }
}

@media (max-width: 390px) {

  .login-card-final {
    padding: 24px 18px 23px;
  }

  .login-logo-shell {
    width: 84px;
    height: 84px;
  }

  .login-identity-final h1 {
    font-size: 25px;
  }

  .meta-verified-copy strong {
    font-size: 12px;
  }

  .meta-verified-copy span {
    font-size: 9.5px;
  }
}

/* WOLF_LOGIN_FINAL_V4_END */

/* WOLF_LOGIN_FINAL_FIT_V7_START */

/*
 * Final live-login refinement.
 * Targets only the classes currently used by login.html.
 */

.login-card-final {
  box-sizing: border-box;

  border:
    1px solid rgba(0, 217, 255, 0.42);

  border-radius: 25px;

  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 255, 0.025),
    0 0 22px rgba(0, 217, 255, 0.09),
    0 28px 76px rgba(0, 0, 0, 0.44);
}

@media (max-width: 560px) {

  .login-page-final {
    min-height: 100svh;
    min-height: 100dvh;

    justify-content: flex-start;
    align-items: center;

    padding:
      16px
      14px
      calc(30px + env(safe-area-inset-bottom));

    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-card-final {
    width: 100%;
    max-width: 520px;
    flex: 0 0 auto;

    margin: 0 auto;
    padding: 21px 20px 19px;

    border-radius: 23px;
  }

  .login-logo-shell {
    width: 76px;
    height: 76px;

    margin-bottom: 12px;
    padding: 6px;

    border-radius: 19px;
  }

  .login-wolf-engine-logo {
    border-radius: 13px;
  }

  .login-identity-final h1 {
    font-size: 26px;
    line-height: 1.03;
  }

  .login-byline {
    margin-top: 6px;
    font-size: 11.5px;
  }

  .meta-verified-application {
    margin-top: 15px;
    padding: 8px 11px;
    gap: 9px;

    border-radius: 12px;
  }

  .meta-verified-icon {
    width: 22px;
    height: 22px;
  }

  .meta-verified-copy strong {
    font-size: 11.5px;
  }

  .meta-verified-copy span {
    margin-top: 2px;
    font-size: 9.5px;
  }

  .login-divider-final {
    margin: 17px 0;
  }

  .login-form-final .form-group {
    margin-bottom: 14px;
  }

  .login-form-final .form-group label {
    margin-bottom: 6px;
    font-size: 10.5px;
  }

  .login-form-final .form-control {
    min-height: 49px;
    padding: 10px 13px;

    border-radius: 12px;
  }

  .login-submit-final {
    min-height: 49px;
    margin-top: 1px;

    border-radius: 12px;

    font-size: 14px;
  }

  .login-security-final {
    margin-top: 17px;
    padding-top: 14px;

    font-size: 11px;
  }
}

@media (max-width: 390px) {

  .login-page-final {
    padding:
      10px
      10px
      calc(24px + env(safe-area-inset-bottom));
  }

  .login-card-final {
    padding: 18px 16px 17px;
    border-radius: 21px;
  }

  .login-logo-shell {
    width: 70px;
    height: 70px;
  }

  .login-identity-final h1 {
    font-size: 23px;
  }

  .meta-verified-application {
    margin-top: 13px;
  }

  .login-divider-final {
    margin: 15px 0;
  }

  .login-form-final .form-control,
  .login-submit-final {
    min-height: 47px;
  }
}

/* WOLF_LOGIN_FINAL_FIT_V7_END */

/* WOLF_LOGO_FRAME_ONLY_V9_START */

/*
 * Only the Wolf Engine logo frame.
 * The frame now follows the landscape image instead of forming a square.
 */

.login-logo-shell {
  width: min(142px, 40vw) !important;
  height: auto !important;
  aspect-ratio: auto !important;

  display: block !important;
  line-height: 0 !important;

  margin:
    0
    auto
    16px
    !important;

  padding: 5px !important;

  border:
    1px solid rgba(0, 217, 255, 0.42)
    !important;

  border-radius: 15px !important;

  background:
    rgba(2, 9, 21, 0.72)
    !important;

  box-shadow:
    inset 0 0 14px rgba(0, 217, 255, 0.045),
    0 0 15px rgba(0, 217, 255, 0.20),
    0 0 32px rgba(0, 217, 255, 0.08)
    !important;
}

.login-wolf-engine-logo {
  display: block !important;

  width: 100% !important;
  height: auto !important;
  max-height: none !important;

  aspect-ratio: auto !important;
  object-fit: contain !important;

  border-radius: 10px !important;
}

@media (max-width: 560px) {
  .login-logo-shell {
    width: min(132px, 38vw) !important;
    margin-bottom: 14px !important;
    padding: 4px !important;
    border-radius: 14px !important;
  }

  .login-wolf-engine-logo {
    border-radius: 9px !important;
  }
}

/* WOLF_LOGO_FRAME_ONLY_V9_END */

/* WOLF_LOGIN_LOWER_POLISH_V10_START */

/*
 * Professional refinement below the Wolf Engine logo only.
 * Does not change the logo, logo frame or outer login-card border.
 */

.login-identity-final h1 {
  margin-top: 0 !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}

.login-byline {
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Smaller, cleaner verification badge */

.meta-verified-application {
  margin-top: 17px !important;
  padding: 9px 13px !important;
  gap: 9px !important;

  border-color:
    rgba(0, 217, 255, 0.23) !important;

  border-radius: 13px !important;

  background:
    linear-gradient(
      145deg,
      rgba(0, 217, 255, 0.055),
      rgba(3, 11, 24, 0.94)
    ) !important;

  box-shadow:
    inset 0 0 0 1px rgba(0, 217, 255, 0.018),
    0 0 16px rgba(0, 217, 255, 0.055)
    !important;
}

.meta-verified-icon {
  width: 22px !important;
  height: 22px !important;
}

.meta-verified-copy strong {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.meta-verified-copy span {
  margin-top: 2px !important;
  font-size: 9.5px !important;
}

/* Reduce unnecessary space before the form */

.login-divider-final {
  margin: 18px 0 17px !important;
}

/* Cleaner form hierarchy */

.login-form-final .form-group {
  margin-bottom: 14px !important;
}

.login-form-final .form-group label {
  margin-bottom: 7px !important;

  color: #95a3b6 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;

  letter-spacing: 0.015em !important;
  text-transform: none !important;
}

/* Shorter professional inputs */

.login-form-final .form-control {
  box-sizing: border-box !important;

  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;

  padding: 10px 14px !important;

  border:
    1px solid rgba(72, 114, 150, 0.34)
    !important;

  border-radius: 12px !important;

  background:
    linear-gradient(
      180deg,
      rgba(2, 8, 19, 0.99),
      rgba(3, 11, 24, 0.99)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.012)
    !important;
}

.login-form-final .form-control:hover {
  border-color:
    rgba(0, 217, 255, 0.32) !important;
}

.login-form-final .form-control:focus {
  outline: none !important;

  border-color:
    rgba(0, 217, 255, 0.86) !important;

  box-shadow:
    0 0 0 2px rgba(0, 217, 255, 0.075),
    0 0 14px rgba(0, 217, 255, 0.12)
    !important;
}

/* Smaller, less oversized sign-in button */

.login-submit-final {
  box-sizing: border-box !important;

  width: 100% !important;
  height: 49px !important;
  min-height: 49px !important;

  margin-top: 2px !important;
  padding: 10px 18px !important;

  border-radius: 12px !important;

  font-size: 15px !important;
  font-weight: 700 !important;
}

/* Compact security footer */

.login-security-final {
  margin-top: 17px !important;
  padding-top: 14px !important;

  gap: 8px !important;

  color: #718095 !important;
  font-size: 11px !important;
}

.login-security-dot-final {
  width: 6px !important;
  height: 6px !important;
}

/* Mobile-specific balance */

@media (max-width: 560px) {

  .login-identity-final h1 {
    font-size: 27px !important;
  }

  .login-byline {
    margin-top: 5px !important;
    font-size: 11.5px !important;
  }

  .meta-verified-application {
    margin-top: 15px !important;
    padding: 8px 11px !important;
  }

  .login-divider-final {
    margin: 16px 0 15px !important;
  }

  .login-form-final .form-group {
    margin-bottom: 13px !important;
  }

  .login-form-final .form-control {
    height: 46px !important;
    min-height: 46px !important;
  }

  .login-submit-final {
    height: 47px !important;
    min-height: 47px !important;
  }

  .login-security-final {
    margin-top: 15px !important;
    padding-top: 13px !important;
  }
}

/* WOLF_LOGIN_LOWER_POLISH_V10_END */
