:root {
  --bg:#151515;
  --panel:#2b2b2b;
  --panel2:#333;
  --line:#555;
  --text:#f2f2f2;
  --muted:#aaa;
  --orange:#ff8f3f;
  --green:#25b84b;
  --teal:#04615E;
}

* { box-sizing:border-box; }

body {
  margin:0;
  font-family:Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar {
  height:44px;
  background:#252525;
  border-bottom:1px solid #3d3d3d;
  display:flex;
  align-items:center;
  padding:0 14px;
  gap:24px;
}

.logo {
  font-weight:900;
  color:white;
  letter-spacing:.5px;
}

.logo span { color:var(--orange); }

.nav {
  display:flex;
  gap:22px;
  font-size:12px;
  text-transform:uppercase;
}

.nav a {
  color:white;
  text-decoration:none;
  opacity:.85;
}

.nav a.active {
  color:var(--orange);
  border-bottom:2px solid var(--orange);
  padding-bottom:13px;
}

.user {
  margin-left:auto;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#777;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}

.page {
  padding:18px;
}

.page-title {
  color:var(--orange);
  font-size:18px;
  font-weight:bold;
  margin:8px 0 18px;
}

.toolbar {
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}

.search {
  background:#222;
  border:1px solid #aaa;
  border-radius:16px;
  color:white;
  padding:7px 12px;
  min-width:260px;
}

.btn {
  border:0;
  background:#555;
  color:white;
  padding:8px 13px;
  border-radius:4px;
  text-decoration:none;
  font-size:12px;
  cursor:pointer;
  display:inline-block;
}

.btn.orange { background:var(--orange); color:white; }
.btn.green { background:var(--green); color:white; }
.btn.dark { background:#222; border:1px solid #666; }

.table {
  width:100%;
  border-collapse:collapse;
  background:#292929;
  font-size:12px;
}

.table th {
  color:var(--orange);
  background:#242424;
  border:1px solid var(--line);
  padding:9px;
  text-transform:uppercase;
}

.table td {
  border:1px solid var(--line);
  padding:8px;
  color:#e8e8e8;
}

.badge {
  display:inline-block;
  border-radius:14px;
  padding:4px 9px;
  font-size:11px;
  font-weight:bold;
}

.badge.green { background:#2e8b3c; }
.badge.orange { background:var(--orange); color:white; }
.badge.gray { background:#666; }

.card {
  background:var(--panel);
  border:1px solid #444;
  border-radius:4px;
  padding:16px;
  margin-bottom:14px;
}

.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;
}

.card-title {
  color:var(--orange);
  margin:0 0 10px;
  font-weight:bold;
}

.muted { color:var(--muted); }

/* Login polish */
.login-body {
  margin: 0;
  min-height: 100vh;
  background: #111;
}

.login-hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 0, 0.35), transparent 35%),
    linear-gradient(120deg, rgba(0,0,0,0.88), rgba(0,0,0,0.42));
}

.login-card {
  position: relative;
  z-index: 2;
  width: 420px;
  max-width: calc(100vw - 40px);
  background: rgba(18, 22, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  color: white;
  backdrop-filter: blur(10px);
}

.login-brand {
  margin-bottom: 26px;
}

.login-brand .logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}

.login-brand .logo span {
  color: #ff8a00;
}

.login-brand p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.65);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.login-subtitle {
  margin: 0 0 24px;
  color: rgba(255,255,255,0.72);
}

.login-card label {
  display: block;
  margin: 16px 0 6px;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

.login-card .search {
  width: 100%;
  box-sizing: border-box;
}

.login-btn {
  margin-top: 22px;
  width: 100%;
  padding: 13px 16px;
  font-size: 16px;
}

.login-message {
  min-height: 22px;
  margin-top: 16px;
  color: rgba(255,255,255,0.82);
}

.city-label {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Site-wide nav consistency */
.topbar .nav a[href="#"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn.danger {
  background: #9e2a2b;
  color: white;
}

/* Modal polish */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: 440px;
  max-width: calc(100vw - 40px);
  background: #202020;
  border: 1px solid #555;
  border-radius: 12px;
  padding: 26px;
  color: white;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}

.modal-card h2 {
  margin-top: 0;
  color: #ff8a00;
}

.modal-card p {
  color: #ddd;
  line-height: 1.45;
}

.modal-actions {
  margin-top: 22px;
  text-align: right;
}
/* SERS corporate branding */

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-lockup img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 210px;
  object-fit: contain;
}

.brand-product {
  color: #f4f4f4;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-product span {
  color: #f7931d;
}

.viewer-brand-mark {
  position: fixed;
  right: 18px;
  top: 16px;
  z-index: 1200;
  width: 54px;
  height: 54px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(15, 18, 24, 0.72);
  box-sizing: border-box;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.viewer-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 820px) {
  .brand-lockup img {
    height: 31px;
    max-width: 165px;
  }

  .brand-product {
    display: none;
  }
}

/* SERS platform version badge */
.platform-version {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 7px;
  border: 1px solid #555;
  border-radius: 999px;
  background: #333;
  color: #c8c8c8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.04em;
  vertical-align: middle;
  white-space: nowrap;
}

/* Platform Header v2 */
.platform-topbar {
  height: 56px;
  padding: 0 18px;
  gap: 30px;
}

.platform-topbar .brand-lockup {
  gap: 15px;
  min-width: 285px;
}

.platform-topbar .brand-lockup img {
  height: 48px;
  width: auto;
  max-width: 235px;
}

.platform-topbar .brand-product {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.25px;
}

.platform-topbar .brand-product > span:first-child {
  font-weight: 800;
}

.platform-topbar .brand-product .platform-version {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  color: #dddddd;
  background: #353535;
  border: 1px solid #666666;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  vertical-align: 2px;
}

.platform-topbar .nav {
  height: 100%;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.platform-topbar .nav a {
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25px;
}

.platform-topbar .nav a.active {
  padding-bottom: 0;
  color: var(--orange);
  border-bottom: 3px solid var(--orange);
}

.platform-topbar .user {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
}

.platform-topbar #sersLogoutBtn {
  margin-left: 4px !important;
  padding: 8px 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .platform-topbar {
    gap: 16px;
  }

  .platform-topbar .brand-lockup {
    min-width: auto;
  }

  .platform-topbar .brand-lockup img {
    height: 42px;
  }

  .platform-topbar .brand-product {
    font-size: 15px;
  }

  .platform-topbar .nav {
    gap: 16px;
  }

  .platform-topbar .nav a {
    font-size: 12px;
  }
}
