/* Email Marketing page */

.computer-stage {
  display: flex;
  justify-content: center;
}

.laptop {
  width: min(980px, 100%);
  position: relative;
  padding-bottom: 28px;
}

.laptop-screen {
  width: 88%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #0b0d10;
  border: 10px solid #1b1d20;
  border-bottom-width: 16px;
  border-radius: 24px 24px 14px 14px;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.2);
}

.laptop-screen::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 10;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #30343a;
}

.crm-topbar {
  height: 50px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f7f9;
  border-bottom: 1px solid #e1e4e8;
  color: #111;
}

.crm-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.crm-user {
  color: #747b83;
  font-size: 11px;
}

.crm-body {
  min-height: 470px;
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #fff;
}

.crm-nav {
  padding: 22px 14px;
  background: #13171c;
  color: #fff;
}

.crm-nav-item {
  margin-bottom: 5px;
  padding: 11px 13px;
  border-radius: 9px;
  color: #aeb4bb;
  font-size: 12px;
}

.crm-nav-item.active {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.crm-main {
  padding: 28px;
}

.crm-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.crm-heading-row small {
  color: #7f868e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.crm-heading-row h3 {
  margin: 7px 0 0;
  font-size: 25px;
}

.crm-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e7ebff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.crm-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.crm-metrics div {
  padding: 17px;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  background: #f5f6f8;
}

.crm-metrics small {
  display: block;
  color: #7c838a;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.crm-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.crm-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
}

.crm-card {
  min-height: 230px;
  padding: 18px;
  border: 1px solid #e3e5e7;
  border-radius: 16px;
  background: #fff;
}

.crm-card-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
}

.campaign-row {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eceef0;
}

.campaign-row:first-of-type {
  border-top: 0;
}

.thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.thumb.blue { background: var(--blue); }
.thumb.cream { background: #e9e5db; }
.thumb.dark { background: var(--dark); }

.campaign-row b {
  display: block;
  font-size: 12px;
}

.campaign-row span {
  display: block;
  margin-top: 3px;
  color: #8a9097;
  font-size: 10px;
}

.campaign-row em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.mini-chart {
  height: 150px;
  padding: 14px 8px 6px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid #eceef0;
}

.mini-chart i {
  display: block;
  flex: 1;
  border-radius: 7px 7px 2px 2px;
  background: var(--blue);
}

.crm-mini-note {
  margin-top: 14px;
  color: #7f868e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.laptop-base {
  width: 98%;
  height: 24px;
  margin: -2px auto 0;
  position: relative;
  border-radius: 0 0 46px 46px;
  background: linear-gradient(180deg, #cfd2d6 0%, #b7bbc1 55%, #a5aab0 100%);
  box-shadow: 0 11px 16px rgba(0, 0, 0, 0.15);
}

.laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 22%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #9ea3a9;
}

.laptop-base::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -8px;
  left: 7%;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(6px);
}

.email-stat {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.email-stat small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.email-stat strong {
  display: block;
  margin-top: 9px;
  font-size: 21px;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .crm-body,
  .crm-grid {
    grid-template-columns: 1fr;
  }

  .crm-nav {
    display: none;
  }

  .crm-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .laptop-screen {
    width: 94%;
  }
}

@media (max-width: 575.98px) {
  .laptop {
    padding-bottom: 18px;
  }

  .laptop-screen {
    width: 100%;
    border-width: 7px;
    border-bottom-width: 11px;
    border-radius: 18px 18px 10px 10px;
  }

  .laptop-base {
    width: 100%;
    height: 18px;
    border-radius: 0 0 30px 30px;
  }

  .crm-main {
    padding: 16px;
  }

  .crm-heading-row {
    flex-direction: column;
  }
}
