:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #627080;
  --line: #d9e1e8;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --brand: #0f766e;
  --brand-dark: #0b5d57;
  --accent: #b45309;
  --danger: #b42318;
  --shadow: 0 12px 35px rgba(23, 33, 43, 0.1);
  --app-font: "Heineken Sans", "HeinekenSans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Heineken Sans";
  src: local("Heineken Sans"),
    local("HeinekenSans"),
    url("/fonts/HeinekenSans.woff2") format("woff2"),
    url("/fonts/HeinekenSans.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* Ethio Media Monitor inspired admin workspace */
.admin-app {
  grid-template-columns: 244px minmax(0, 1fr);
  background: #f4f6fb;
}

.sidebar {
  gap: 0;
  padding: 28px 14px 16px;
  background: #12314b;
  color: #c9d6e3;
  border-right: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 26px;
  color: #ffffff;
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.sidebar-brand span {
  display: block;
  margin-top: 2px;
  color: #8fa6ba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  margin: 0;
  border: 2px solid #6aa4ff;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.nav-group {
  margin: 14px 10px 8px;
  color: #7f96aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.side-icon {
  position: relative;
  min-height: 42px;
  margin: 0 0 6px;
  border-radius: 3px;
  color: #d0d9e4;
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
}

.side-icon span {
  width: 18px;
  height: 18px;
  border-radius: 0;
  color: #b8c8d8;
  background: transparent;
  font-size: 13px;
}

.side-icon.active,
.side-icon:hover {
  background: #1e5278;
  color: #ffffff;
  box-shadow: none;
}

.side-icon.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2d7cff;
}

.side-icon.active span,
.side-icon:hover span {
  color: #ffffff;
  background: transparent;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(201, 214, 227, 0.18);
  padding: 16px 6px 0;
}

.sidebar-user > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #2c7ec7;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
}

.sidebar-user strong {
  color: #ffffff;
  font-size: 12px;
}

.sidebar-user small {
  color: #8fa6ba;
  font-size: 11px;
}

.admin-topbar {
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
  min-height: 64px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #dde3ec;
  box-shadow: none;
}

.workspace-selector,
.client-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.client-selector {
  border-left: 1px solid #dde3ec;
  padding-left: 24px;
}

.workspace-selector small,
.client-selector small {
  display: block;
  margin-bottom: 3px;
  color: #8a94a3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-selector strong,
.client-selector strong {
  color: #1f3047;
  font-size: 12px;
}

.brand-shield {
  border-radius: 2px;
  background: #edf4ff;
  color: #00895f;
}

.admin-links {
  gap: 14px;
}

.admin-links .small {
  color: #5d6b7c;
  font-size: 12px;
  font-weight: 700;
}

.admin-links a {
  color: #334155;
  font-size: 12px;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: #00895f;
}

.admin-main {
  width: min(1440px, calc(100% - 40px));
  margin: 32px auto 64px;
}

.overview-dashboard {
  margin-top: 0;
  max-width: 1120px;
  margin-inline: auto;
}

.dashboard-welcome {
  min-height: auto;
  margin-bottom: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  color: #1f3047;
}

.dashboard-welcome .step-count,
.dashboard-welcome h2,
.dashboard-welcome p {
  color: #1f3047;
}

.dashboard-welcome .step-count {
  margin-bottom: 14px;
  color: #6f7c8d;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-welcome h2 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.dashboard-welcome p {
  max-width: 620px;
  color: #64748b;
  font-size: 14px;
}

.welcome-actions {
  align-self: end;
  margin-bottom: 2px;
}

.primary-link,
.secondary-link {
  min-height: 42px;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
}

.primary-link {
  background: #00895f;
  box-shadow: none;
}

.secondary-link {
  border: 1px solid #cfd7e3;
  background: #ffffff;
  color: #334155;
}

.workspace-notice {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 14px;
  border: 1px solid #e4c35c;
  border-left: 3px solid #d99a00;
  background: #fffaf0;
  padding: 11px 14px;
  color: #6f5213;
  font-size: 12px;
}

.workspace-notice strong {
  color: #7b5600;
}

.overview-filterbar {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid #dfe4ec;
  background: #ffffff;
  padding: 10px;
}

.overview-filterbar select,
.overview-filterbar input {
  height: 34px;
  border-radius: 2px;
  color: #334155;
  font-size: 12px;
  padding: 0 10px;
}

.overview-filterbar .filter-clear {
  height: 34px;
  border-radius: 2px;
  background: transparent;
  color: #1d65bf;
  padding: 0 10px;
  font-size: 12px;
}

.overview-filterbar > span {
  color: #8a94a3;
  font-size: 11px;
}

.overview-results {
  margin: -4px 0 14px;
  border: 1px solid #dfe4ec;
  background: #ffffff;
  padding: 12px;
}

.overview-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #5d6b7a;
  font-size: 12px;
}

.overview-results-head strong {
  color: #1f3047;
}

.overview-results-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.overview-results-list a {
  display: grid;
  gap: 3px;
  border: 1px solid #e7edf3;
  background: #f8fbfb;
  color: #17212b;
  padding: 10px;
  text-decoration: none;
}

.overview-results-list a:hover {
  border-color: #9fc9c2;
  background: #eef8f6;
}

.overview-results-list span {
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-results-list small {
  color: #6f7c8d;
}

.stat-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.metric {
  min-height: 140px;
  border: 1px solid #dfe4ec;
  border-radius: 0;
  padding: 18px 16px;
  box-shadow: none;
}

.metric span {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0;
}

.metric strong {
  margin: 14px 0 10px;
  color: #1f3047;
  font-size: 30px;
  font-weight: 800;
}

.metric small {
  color: #6f7c8d;
  font-size: 11px;
}

.analytics-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}

.analytics-card {
  min-height: 230px;
  border: 1px solid #dfe4ec;
  border-radius: 0;
  padding: 20px;
  box-shadow: none;
}

.analytics-card.large {
  min-height: 280px;
}

.analytics-card:nth-child(3) {
  grid-column: 1;
}

.analytics-card:nth-child(4),
.analytics-card:nth-child(5) {
  grid-column: 2;
}

.analytics-heading h3 {
  color: #1f3047;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
}

.mini-pill,
.segmented-pill {
  border-radius: 3px;
  font-size: 12px;
}

.activity-chart {
  min-height: 182px;
}

.chart-bars {
  height: 138px;
}

.content-card,
.report-panel {
  border: 1px solid #dfe4ec;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}

.dashboard-main,
.dashboard-side {
  gap: 14px;
}

#reports .content-card h2,
#reports .content-card h3 {
  color: #1f3047;
  font-weight: 500;
}

#reports .pill {
  border-radius: 2px;
  background: #fff8d9;
  color: #6f5213;
}

@media (max-width: 1120px) {
  .admin-main {
    width: min(100%, calc(100% - 36px));
  }

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

  .analytics-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .analytics-card:nth-child(3),
  .analytics-card:nth-child(4),
  .analytics-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-user {
    margin-top: 12px;
  }

  .admin-topbar,
  .overview-filterbar,
  .stat-board {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f3f6f5;
  font-family: var(--app-font);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
}

button.is-busy {
  pointer-events: none;
  opacity: 0.82;
}

button.is-busy::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.55em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -0.12em;
  animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

button:hover {
  background: var(--brand-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

button.secondary {
  background: #e6edf1;
  color: var(--ink);
}

button.secondary:hover {
  background: #d9e3e9;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 11px;
  text-decoration: none;
  background: white;
  font-size: 13px;
}

.main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 34px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.two {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.metric {
  padding: 17px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e7f6f2;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.status.off {
  background: #fff2df;
  color: var(--accent);
}

.status.setup {
  background: #fff0b8;
  color: #9a5b00;
}

.status.danger {
  background: #ffe4e4;
  color: #b42318;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.portal-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  background: #102520;
}

.portal-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 100vh;
  padding: 30px;
  color: white;
  background:
    linear-gradient(180deg, rgba(9, 37, 31, 0.82), rgba(9, 37, 31, 0.96)),
    url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.portal-aside p {
  color: rgba(255, 255, 255, 0.82);
}

.portal-content {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 30px;
  background: #f7fafb;
}

.portal-card {
  width: min(720px, 100%);
  border-radius: 8px;
  background: white;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.media {
  position: relative;
  background: #0f1720;
  aspect-ratio: 16 / 9;
}

.media video,
.media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.progress {
  height: 8px;
  background: #dfe7ec;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--brand);
  transition: width 0.2s ease;
}

.portal-body {
  padding: 22px;
}

.survey {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.notice {
  border: 1px solid #b9e3dc;
  border-radius: 8px;
  background: #effaf7;
  color: var(--brand-dark);
  padding: 12px;
}

.error {
  border-color: #ffd0cc;
  background: #fff4f2;
  color: var(--danger);
}

.warning {
  border-color: #f7d9a6;
  background: #fff8e8;
  color: #8a4b06;
}

.danger-text {
  color: var(--danger);
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.guest-body {
  overflow: hidden;
  background: #061b17;
}

.guest-flow {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  background: #061b17;
}

.guest-step {
  display: none;
  width: 100%;
  height: 100%;
}

.guest-step.active {
  display: grid;
  place-items: center;
}

.guest-panel {
  display: grid;
  gap: 14px;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.compact-panel {
  text-align: center;
}

.guest-panel h1 {
  margin: 0 0 8px;
  color: #152a25;
  font-size: 30px;
  line-height: 1.08;
}

.step-count {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.video-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  background: black;
}

.video-stage video,
.video-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: black;
}

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: white;
  text-align: center;
  background: #061b17;
}

.video-error[hidden] {
  display: none;
}

.video-error strong {
  font-size: 22px;
}

.video-footer {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) auto;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
}

.video-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.video-meta strong {
  overflow: hidden;
  color: #17212b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-progress {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
}

.upload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px dashed #9fc9c2;
  border-radius: 8px;
  background: #f2fbf9;
  padding: 14px;
}

.upload-box p {
  margin: 4px 0 0;
}

#selectedMediaStatus {
  color: #0f766e;
  font-weight: 700;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  background:
    linear-gradient(115deg, rgba(217, 232, 236, 0.78), rgba(244, 248, 247, 0.96)),
    #eef4f3;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  height: 100vh;
  padding: 16px 14px;
  background: rgba(239, 247, 246, 0.88);
  color: #43524e;
  border-right: 1px solid rgba(196, 210, 213, 0.72);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
}

.sidebar-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #008a78;
  color: white;
  font-weight: 800;
  font-size: 13px;
  margin: 0 0 22px;
}

.side-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 8px;
  color: #53635f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  padding: 0 12px;
}

.side-icon span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #73827e;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.side-icon strong {
  font: inherit;
}

.side-icon.active,
.side-icon:hover {
  background: white;
  color: #243934;
  box-shadow: 0 10px 26px rgba(58, 81, 76, 0.08);
}

.side-icon.active span,
.side-icon:hover span {
  color: white;
  background: #008a78;
}

.admin-shell {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 220px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e7ecea;
  box-shadow: 0 3px 18px rgba(28, 44, 40, 0.04);
  backdrop-filter: blur(10px);
}

.brand-lockup,
.admin-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup {
  color: #233630;
  font-size: 18px;
}

.brand-shield {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #008a78;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.searchbar {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  max-width: 560px;
  border: 1px solid #e2e8e5;
  border-radius: 8px;
  background: #fbfcfc;
  overflow: hidden;
}

.searchbar select,
.searchbar input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.searchbar select {
  border-right: 1px solid #e2e8e5;
}

.admin-links {
  justify-content: end;
}

.admin-links a {
  color: #52635e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.admin-links a:hover {
  color: #008a78;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
}

.admin-main {
  width: min(1500px, calc(100% - 34px));
  margin: 22px auto 56px;
}

.project-hero {
  min-height: 186px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 38, 34, 0.76), rgba(10, 38, 34, 0.28)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
  box-shadow: 0 16px 40px rgba(30, 50, 45, 0.14);
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 186px;
  padding: 24px;
  color: white;
}

.breadcrumb {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.hero-summary h1 {
  max-width: 720px;
  margin: 10px 0 8px;
  color: white;
  font-size: 32px;
  line-height: 1.04;
}

.hero-summary p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-id {
  min-width: 180px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #233630;
  padding: 14px;
}

.hero-id span {
  display: block;
  color: #71827d;
  font-size: 12px;
}

.hero-id strong {
  display: block;
  margin-top: 4px;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
  border-bottom: 1px solid #e4ebe8;
  background: white;
}

.tabbar a {
  color: #61716c;
  padding: 16px 10px 14px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  border-bottom: 2px solid transparent;
}

.tabbar a.active,
.tabbar a:hover {
  color: #008a78;
  border-bottom-color: #1fd0ba;
  background: #f7fcfb;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 24px;
  margin-top: 24px;
}

.page-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin-bottom: 6px;
  font-size: 36px;
}

.page-heading p {
  margin-bottom: 0;
}

.page-heading button {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(0, 138, 120, 0.17);
}

.wifi-locations-page {
  display: block;
}

.wifi-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.wifi-stat-card {
  min-height: 104px;
  border: 1px solid rgba(225, 233, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(26, 46, 42, 0.055);
}

.wifi-stat-card span {
  display: block;
  color: #717b89;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.wifi-stat-card strong {
  display: block;
  margin-top: 12px;
  color: #17212b;
  font-size: 34px;
  line-height: 1;
}

.wifi-search-card,
.wifi-table-card,
.router-editor {
  margin-top: 18px;
}

.wifi-search-card {
  padding: 18px;
}

.wifi-search-card label {
  max-width: 460px;
  color: #3f4b56;
  font-size: 14px;
  font-weight: 800;
}

.wifi-search-card input {
  min-height: 50px;
  font-size: 15px;
}

.wifi-location-table {
  min-width: 1180px;
}

.wifi-location-table th {
  color: #78828f;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.wifi-location-table td {
  height: 70px;
  vertical-align: middle;
}

.campaign-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 240px;
}

.campaign-chip,
.muted-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.campaign-chip {
  background: #e7f7f2;
  color: #007a68;
}

.muted-chip {
  background: #f2f5f4;
  color: #78828f;
}

.row-actions {
  white-space: nowrap;
}

.icon-action {
  min-width: 58px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: #77838e;
  font-size: 14px;
}

.table-footer strong {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #d8e1e6;
  border-radius: 7px;
  background: white;
  padding: 0 16px;
  color: #39444f;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.section-head,
.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.card-heading h3 {
  margin-bottom: 5px;
  color: #243934;
}

.section-head p,
.card-heading p {
  margin-bottom: 0;
  font-size: 14px;
}

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

.overview-dashboard {
  margin-top: 18px;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 178px;
  margin-bottom: 16px;
  border: 1px solid rgba(221, 230, 228, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 31, 27, 0.82), rgba(5, 31, 27, 0.52), rgba(5, 31, 27, 0.18)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
  padding: 26px;
  box-shadow: 0 16px 40px rgba(30, 50, 45, 0.14);
  color: #ffffff;
}

.dashboard-welcome .step-count,
.dashboard-welcome h2,
.dashboard-welcome p {
  color: #ffffff;
}

.dashboard-welcome h2 {
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1.05;
}

.dashboard-welcome p {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: end;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.primary-link {
  color: white;
  background: #008a78;
  box-shadow: 0 10px 24px rgba(0, 138, 120, 0.18);
}

.secondary-link {
  color: #203631;
  background: #edf4f2;
}

.stat-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.metric {
  min-height: 112px;
  border: 1px solid rgba(225, 233, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(26, 46, 42, 0.055);
}

.metric span,
.metric small {
  display: block;
  color: #6b7d78;
  font-size: 13px;
}

.metric span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #717b89;
  font-weight: 800;
  text-transform: uppercase;
}

.metric span i,
.info-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: white;
  background: #708090;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.metric strong {
  display: block;
  margin: 8px 0 6px;
  color: #17212b;
  font-size: 36px;
  line-height: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.analytics-card {
  min-width: 0;
  min-height: 250px;
  border: 1px solid rgba(225, 233, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(26, 46, 42, 0.055);
}

.analytics-card.large {
  min-height: 360px;
}

.analytics-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-heading h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1c2732;
  font-size: 16px;
  text-transform: uppercase;
}

.mini-pill,
.segmented-pill {
  border: 1px solid #d5dde2;
  border-radius: 8px;
  color: #4e5b68;
  background: white;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.segmented-pill {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: #f4f7fa;
}

.segmented-pill b,
.segmented-pill span {
  border-radius: 7px;
  padding: 6px 9px;
}

.segmented-pill b {
  color: #1565d8;
  background: white;
  box-shadow: 0 6px 14px rgba(31, 49, 61, 0.08);
}

.activity-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 232px;
  border-bottom: 2px solid #dbe6eb;
  padding: 14px 6px 0;
}

.chart-day {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.chart-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 176px;
}

.chart-bars span {
  width: 10px;
  min-height: 4px;
  border-radius: 999px 999px 2px 2px;
}

.chart-day small {
  color: #87929d;
  font-size: 12px;
  font-weight: 800;
}

.login-bar,
.legend-login {
  background: #7bb8ed;
}

.online-bar,
.legend-online,
.upload-bar,
.legend-upload {
  background: #4b4b55;
}

.new-bar,
.legend-new {
  background: #86e976;
}

.download-bar,
.legend-download {
  background: #83bcef;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
  color: #454950;
  font-size: 12px;
  font-weight: 800;
}

.chart-legend i {
  display: inline-block;
  width: 18px;
  height: 14px;
  margin-right: 7px;
  border-radius: 2px;
  vertical-align: -2px;
}

.heatmap {
  display: grid;
  gap: 7px;
  overflow-x: auto;
}

.heatmap-hours,
.heatmap-row {
  display: grid;
  grid-template-columns: 34px repeat(24, 22px);
  align-items: center;
  gap: 6px;
}

.heatmap-hours {
  color: #8b96a3;
  font-size: 12px;
  font-weight: 800;
}

.heatmap-hours::before {
  content: "";
}

.heatmap-row strong {
  color: #7c8792;
  font-size: 12px;
  font-weight: 800;
}

.heat-cell {
  width: 22px;
  height: 22px;
  border: 1px solid #dbe7ef;
  border-radius: 6px;
  background: #edf6ff;
}

.heat-cell.level-1 {
  background: #ccecdf;
}

.heat-cell.level-2 {
  background: #8fddba;
}

.heat-cell.level-3 {
  background: #35bd8f;
}

.heat-cell.level-4 {
  background: #008a78;
}

.top-locations,
.campaign-pulse,
.pulse-list {
  display: grid;
  gap: 12px;
}

.location-rank {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.location-rank > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: white;
  background: #008a78;
  font-size: 12px;
  font-weight: 800;
}

.location-rank strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.location-rank b {
  color: #17212b;
  font-size: 16px;
}

.rank-bar,
.pulse-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f1;
}

.rank-bar i,
.pulse-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #008a78);
}

.pulse-meter {
  height: 14px;
}

.pulse-list p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  border-bottom: 1px solid #edf2f0;
  padding-bottom: 10px;
}

.pulse-list p:last-child {
  border-bottom: 0;
}

.pulse-list strong {
  color: #17212b;
  font-size: 24px;
}

.pulse-list span {
  color: #6d7882;
  font-size: 13px;
  font-weight: 750;
}

.report-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: stretch;
  border: 1px solid #dfe8e5;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(26, 46, 42, 0.06);
}

.report-copy h3 {
  margin-bottom: 8px;
}

.report-copy p {
  margin-bottom: 0;
}

.report-chart {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 120px;
  border-radius: 8px;
  background: #f1f6f4;
  padding: 14px;
}

.report-chart span {
  width: 20px;
  border-radius: 6px 6px 2px 2px;
  background: #008a78;
}

.content-card {
  border: 1px solid #e3ebe8;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(26, 46, 42, 0.06);
}

.campaign-card {
  border-top: 4px solid #008a78;
}

.compact {
  gap: 11px;
}

.campaign-item {
  border-top: 1px solid #e5ece9;
  padding: 14px 0;
}

.campaign-item:first-child {
  border-top: 0;
}

.campaign-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.campaign-item p {
  margin-bottom: 8px;
}

.content-card table {
  min-width: 680px;
}

.content-card th {
  background: #f7faf9;
}

.content-card td,
.content-card th {
  border-bottom-color: #edf2f0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.workspace-main,
.workspace-side {
  min-width: 0;
}

.workspace-side,
.campaign-studio-form,
.user-list,
.campaign-list,
.campaign-group {
  display: grid;
  gap: 14px;
}

.campaign-studio-form {
  margin-top: 18px;
}

.studio-section {
  border-top: 1px solid #edf2f0;
  padding-top: 16px;
}

.studio-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.studio-section h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.target-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #d8e5e1;
  border-radius: 999px;
  background: #f7fbfa;
  color: #31514b;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 650;
}

.campaign-group h4 {
  margin: 0;
  color: #687a75;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.campaign-item {
  display: grid;
  gap: 12px;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 13px;
}

.campaign-item:first-child {
  border-top: 1px solid #e5ece9;
}

.campaign-page {
  margin-top: 22px;
}

.campaign-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 24px 0 24px;
}

.campaign-toolbar input,
.campaign-toolbar select {
  min-height: 50px;
  font-size: 15px;
}

.campaign-toolbar input {
  flex: 1 1 340px;
  max-width: 520px;
}

.campaign-toolbar select {
  width: auto;
  min-width: 150px;
  border-color: #d5e0dd;
  background-color: #ffffff;
  color: #2d3f48;
  font-weight: 750;
}

.campaign-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
  gap: 24px;
  align-items: start;
}

.campaign-tile {
  overflow: hidden;
  border: 1px solid #dce7e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(26, 46, 42, 0.12);
}

.campaign-thumb {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: linear-gradient(180deg, #6f7977, #e8eeee);
}

.campaign-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 38%, rgba(0, 0, 0, 0.16));
}

.campaign-thumb img,
.campaign-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.campaign-thumb h3 {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.campaign-status {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  background: rgba(18, 37, 32, 0.66);
  backdrop-filter: blur(8px);
}

.campaign-status.is-active {
  background: rgba(0, 122, 104, 0.9);
}

.campaign-status.is-paused {
  background: rgba(98, 112, 128, 0.86);
}

.campaign-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5e6b75;
  font-weight: 850;
}

.campaign-tile-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.campaign-tile-body p {
  margin: 0;
  color: #394b56;
  font-size: 14px;
}

.campaign-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #71808c;
  font-size: 12px;
  font-weight: 800;
}

.campaign-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.campaign-tags span {
  border-radius: 999px;
  background: #f2f7f5;
  color: #31514b;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
}

.empty-campaigns {
  max-width: 460px;
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(11, 31, 26, 0.46);
  padding: 28px;
}

.campaign-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.campaign-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.campaign-actions button,
.user-row button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
}

.danger-button {
  background: #fff4f2;
  color: var(--danger);
}

.danger-button:hover {
  background: #ffe5e0;
}

.danger-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.register-grid {
  margin: 16px 0 20px;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e5ece9;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}

.user-row p {
  margin-bottom: 0;
}

.user-row .row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-page .table-wrap {
  max-height: 560px;
  overflow: auto;
}

.password-reset-form {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.unframed {
  margin-top: 14px;
  box-shadow: none;
}

[hidden] {
  display: none !important;
}

.login-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 22%, rgba(0, 158, 96, 0.24), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(61, 220, 151, 0.2), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(23, 183, 185, 0.16), transparent 38%),
    linear-gradient(130deg, #f7fbf7 0%, #eaf4ef 42%, #f8fbfa 100%);
  background-size: 140% 140%, 150% 150%, 170% 170%, 100% 100%;
  animation: heinekenDrift 18s ease-in-out infinite alternate;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(115deg, rgba(0, 116, 95, 0.035) 0 1px, transparent 1px 28px);
}

.login-header {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 16px rgba(8, 37, 31, 0.08);
  backdrop-filter: blur(18px);
}

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 118px 0 34px;
}

.login-panel {
  display: grid;
  gap: 20px;
  width: min(100%, 520px);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  padding: 42px 48px 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 88px rgba(18, 37, 32, 0.16);
}

.login-intro {
  text-align: center;
}

.login-intro .step-count {
  margin-bottom: 8px;
}

.login-panel h1 {
  font-size: 28px;
  line-height: 1.16;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: stretch;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: white;
}

.login-field:focus-within {
  border-color: rgba(0, 137, 95, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 137, 95, 0.1);
}

.login-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: #93a0ad;
  font-size: 13px;
  font-weight: 800;
  background: #f8fafb;
}

.login-field input {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  outline: 0;
}

.login-field input::placeholder {
  color: #a5afbb;
}

.forgot-link {
  justify-self: end;
  color: #7b8794;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.login-form button,
.google-button,
.login-signup a {
  width: 100%;
  min-height: 58px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 800;
}

.login-form button {
  margin-top: 12px;
  background: linear-gradient(135deg, #009b64, #006f4e);
  box-shadow: 0 10px 22px rgba(0, 123, 81, 0.22);
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #a8b2bd;
  font-size: 13px;
  font-weight: 800;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d5dce3;
  color: #3c4651;
  background: white;
  cursor: not-allowed;
  opacity: 0.75;
}

.google-button span {
  color: #00895f;
}

.login-signup {
  display: grid;
  gap: 14px;
  margin: 14px -48px 0;
  padding: 26px 48px 28px;
  border-top: 1px solid var(--line);
  background: #f8faf9;
  text-align: center;
}

.login-signup p {
  color: #7c8793;
  font-weight: 700;
}

.login-signup a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #10b981, #00895f);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 137, 95, 0.18);
}

.login-panel #loginMessage {
  min-height: 0;
  text-align: center;
}

.login-message {
  margin-top: 16px;
  border-radius: 6px;
  padding: 0;
  color: #667789;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.login-message:not(:empty) {
  padding: 11px 14px;
}

.login-message.is-info {
  border: 1px solid #cfe7df;
  background: #eefaf5;
  color: #006f4e;
}

.login-message.is-error {
  border: 1px solid #f7c8c3;
  background: #fff1ef;
  color: #b42318;
}

@keyframes heinekenDrift {
  0% {
    background-position: 0% 20%, 100% 10%, 50% 100%, center;
  }

  100% {
    background-position: 100% 46%, 20% 34%, 76% 42%, center;
  }
}

@media (max-width: 1120px) {
  .admin-topbar {
    grid-template-columns: 210px minmax(220px, 1fr);
  }

  .admin-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

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

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

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

  .campaign-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .metrics,
  .two,
  .portal-page {
    grid-template-columns: 1fr;
  }

  .portal-aside {
    min-height: auto;
  }

  .portal-content {
    min-height: auto;
  }

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

  .topbar,
  .page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    justify-content: center;
    height: auto;
  }

  .admin-topbar {
    position: static;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .searchbar,
  .admin-links {
    width: 100%;
    max-width: none;
  }

  .admin-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-summary,
  .section-head,
  .card-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .dashboard-grid,
  .dashboard-side,
  .workspace-grid,
  .metric-row,
  .report-panel {
    grid-template-columns: 1fr;
  }

  .login-shell {
    width: min(100%, calc(100% - 28px));
    padding-top: 110px;
  }

  .login-header {
    height: 76px;
    padding: 0 18px;
  }

  .login-panel {
    padding: 30px 22px 0;
  }

  .login-signup {
    margin-inline: -22px;
    padding-inline: 22px;
  }

  .guest-panel {
    width: calc(100vw - 22px);
    padding: 18px;
  }

  .guest-panel h1 {
    font-size: 26px;
  }

  .video-footer {
    grid-template-columns: 1fr;
  }

  .video-footer button {
    width: 100%;
  }

  .choice-grid,
  .upload-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Final enterprise dashboard overrides */
.admin-app {
  grid-template-columns: 244px minmax(0, 1fr);
  background: #f4f6fb;
}

.sidebar {
  gap: 0;
  padding: 28px 14px 16px;
  background: #12314b;
  color: #c9d6e3;
  border-right: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 26px;
  color: #fff;
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
}

.sidebar-brand span,
.nav-group,
.sidebar-user small {
  color: #8fa6ba;
}

.sidebar-brand span,
.nav-group {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  margin: 0;
  border: 2px solid #45d18b;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.nav-group {
  margin: 14px 10px 8px;
}

.side-icon {
  position: relative;
  min-height: 42px;
  margin-bottom: 6px;
  border-radius: 3px;
  color: #d0d9e4;
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
}

.side-icon span,
.side-icon.active span,
.side-icon:hover span {
  width: 18px;
  height: 18px;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: 13px;
}

.side-icon.active,
.side-icon:hover {
  background: #1e5278;
  color: #fff;
  box-shadow: none;
}

.side-icon.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #2d7cff;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(201, 214, 227, 0.18);
  padding: 16px 6px 0;
}

.sidebar-user > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #00895f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-user strong,
.sidebar-user small {
  display: block;
}

.sidebar-user strong {
  color: #fff;
  font-size: 12px;
}

.sidebar-user small {
  font-size: 11px;
}

.admin-topbar {
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) auto;
  min-height: 64px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #dde3ec;
  box-shadow: none;
}

.workspace-selector,
.client-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-selector {
  border-left: 1px solid #dde3ec;
  padding-left: 24px;
}

.workspace-selector small,
.client-selector small {
  display: block;
  margin-bottom: 3px;
  color: #8a94a3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workspace-selector strong,
.client-selector strong,
.admin-links .small {
  color: #1f3047;
  font-size: 12px;
}

.brand-shield {
  border-radius: 2px;
  background: #edf4ff;
  color: #00895f;
}

.admin-main {
  width: min(892px, calc(100% - 64px));
  margin: 32px auto 64px;
}

.dashboard-welcome {
  min-height: auto;
  margin-bottom: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  color: #1f3047;
}

.dashboard-welcome .step-count,
.dashboard-welcome h2,
.dashboard-welcome p {
  color: #1f3047;
}

.dashboard-welcome .step-count {
  margin-bottom: 14px;
  color: #6f7c8d;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-welcome h2 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.dashboard-welcome p {
  max-width: 620px;
  color: #64748b;
  font-size: 14px;
}

.primary-link,
.secondary-link {
  min-height: 42px;
  border-radius: 4px;
  font-size: 13px;
}

.primary-link {
  background: #00895f;
  box-shadow: none;
}

.secondary-link {
  border: 1px solid #cfd7e3;
  background: #fff;
  color: #334155;
}

.workspace-notice {
  display: flex;
  gap: 22px;
  margin-bottom: 14px;
  border: 1px solid #e4c35c;
  border-left: 3px solid #d99a00;
  background: #fffaf0;
  padding: 11px 14px;
  color: #6f5213;
  font-size: 12px;
}

.overview-filterbar {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid #dfe4ec;
  background: #fff;
  padding: 10px;
}

.overview-filterbar select,
.overview-filterbar input {
  height: 34px;
  border-radius: 2px;
  font-size: 12px;
  padding: 0 10px;
}

.overview-filterbar .filter-clear {
  height: 34px;
  border-radius: 2px;
  background: transparent;
  color: #1d65bf;
  padding: 0 10px;
  font-size: 12px;
}

.overview-filterbar > span {
  color: #8a94a3;
  font-size: 11px;
}

.stat-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.analytics-card,
.content-card,
.report-panel {
  border: 1px solid #dfe4ec;
  border-radius: 0;
  box-shadow: none;
}

.metric {
  min-height: 140px;
  padding: 18px 16px;
}

.metric span {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0;
}

.metric strong {
  margin: 14px 0 10px;
  color: #1f3047;
  font-size: 30px;
}

.analytics-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}

.analytics-card {
  min-height: 230px;
  padding: 20px;
}

.analytics-card.large {
  min-height: 280px;
}

.analytics-card:nth-child(3) {
  grid-column: 1;
}

.analytics-card:nth-child(4),
.analytics-card:nth-child(5) {
  grid-column: 2;
}

.analytics-heading h3,
#reports .content-card h2,
#reports .content-card h3 {
  color: #1f3047;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
}

.activity-chart {
  min-height: 182px;
}

.chart-bars {
  height: 138px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
}

@media (max-width: 1120px) {
  .admin-main {
    width: min(100%, calc(100% - 36px));
  }

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

  .analytics-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .analytics-card:nth-child(3),
  .analytics-card:nth-child(4),
  .analytics-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .admin-app,
  .admin-topbar,
  .overview-filterbar,
  .stat-board {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }
}

/* Heineken Connect brand pass */
button,
input,
select,
textarea {
  font-family: var(--app-font);
}

.sidebar-brand {
  padding: 0 10px 32px;
}

.sidebar-brand img {
  display: block;
  width: 218px;
  max-width: 100%;
  height: auto;
}

.nav-svg {
  display: grid;
  place-items: center;
}

.nav-svg svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-icon {
  gap: 14px;
}

.side-icon .nav-svg,
.side-icon.active .nav-svg,
.side-icon:hover .nav-svg {
  width: 24px;
  height: 24px;
  color: currentColor;
  background: transparent;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.login-logo img {
  display: block;
  width: 238px;
  height: auto;
}

.sidebar {
  background: #12314b;
}

.side-icon.active,
.side-icon:hover {
  background: #1e5278;
}

.side-icon.active::before {
  background: #2d7cff;
}

.nav-group,
.sidebar-brand span,
.sidebar-user small {
  color: #8fb4d6;
}

.sidebar-user > span {
  background: #2c7ec7;
}

.guest-users-page {
  display: grid;
  gap: 18px;
}

.guest-user-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.guest-user-card .card-heading {
  align-items: center;
}

.guest-user-table {
  min-width: 920px;
}

.guest-user-table td:first-child strong {
  color: #1f3047;
}

.guest-user-table td {
  color: #334155;
}

.survey-builder-page {
  display: grid;
  gap: 18px;
}

.survey-builder-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.survey-list {
  display: grid;
  gap: 10px;
}

.survey-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  background: #ffffff;
  color: #1f3047;
  padding: 14px;
  text-align: left;
}

.survey-list-item:hover,
.survey-list-item.active {
  border-color: #8fb4d6;
  background: #edf6ff;
}

.survey-list-item span {
  color: #64748b;
  font-size: 12px;
}

.survey-form {
  display: grid;
  gap: 18px;
}

.survey-question-toolbar,
.survey-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.survey-question-toolbar h3 {
  margin-bottom: 0;
}

.survey-questions {
  display: grid;
  gap: 14px;
}

.survey-question {
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  background: #fbfcfe;
  padding: 16px;
}

.survey-question-head {
  margin-bottom: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border: 1px solid #d9e1e8;
  border-radius: 7px;
  background: #ffffff;
  padding: 0 12px;
}

.toggle-row input {
  width: auto;
}

.empty-builder {
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  padding: 22px;
}

.survey-choice-field {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.survey-choice-field legend {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.survey-choice {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 10px 11px;
}

.survey-choice input {
  width: auto;
}

@media (max-width: 1120px) {
  .survey-builder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .guest-user-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
