:root {
  --ink: #282230;
  --muted: #817789;
  --purple: #8452c5;
  --paper: #f7f4f9;
  --line: #e9e2ed;
  --green: #4c8d6b;
  --sans: "Manrope Variable", system-ui, sans-serif;
  --serif: "Lora Variable", Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
button,
input,
select,
textarea {
  font: inherit;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, #a877dd35, transparent 33%),
    radial-gradient(circle at 80% 80%, #e8c4bd38, transparent 35%), #17131d;
}
.login-card {
  width: min(100%, 390px);
  padding: 40px 32px;
  border-radius: 29px;
  background: #fbf9fcef;
  box-shadow: 0 35px 80px #0006;
}
.logo {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #9565d6, #6d3ead);
  color: #fff;
  font-size: 30px;
  margin-bottom: 30px;
}
.login-card > small,
.workspace header small,
.panel-head small,
.lead-toolbar small {
  letter-spacing: 1.8px;
  color: #9d7ab2;
  font-size: 9px;
  font-weight: 800;
}
.login-card h1 {
  font: 500 42px var(--serif);
  margin: 11px 0 4px;
}
.login-card p {
  color: var(--muted);
  margin: 0 0 31px;
}
.login-card label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #74677d;
}
.login-card input {
  padding: 14px;
  border: 1px solid #ded4e4;
  border-radius: 13px;
  outline: none;
  background: #fff;
}
.login-card input:focus {
  border-color: #a679cc;
  box-shadow: 0 0 0 4px #a679cc18;
}
.login-card button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: #7e4cba;
  color: #fff;
  font-weight: 750;
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  cursor: pointer;
}
.login-card button span {
  font-size: 20px;
}
#login-status {
  min-height: 19px;
  color: #a04453;
  font-size: 11px;
  text-align: center;
  margin-top: 13px;
}
.admin-shell {
  min-height: 100vh;
}
.admin-shell[hidden] {
  display: none;
}
.admin-shell aside {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: #201a26;
  color: #d9cedf;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 8px 12px env(safe-area-inset-bottom);
  box-shadow: 0 -9px 30px #30223e18;
}
.brand,
.admin-label {
  display: none;
}
.admin-shell nav {
  display: flex;
  flex: 1;
  height: 100%;
}
.admin-shell nav button,
.logout {
  border: 0;
  background: transparent;
  color: #9b8da5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.admin-shell nav button {
  flex: 1;
  flex-direction: column;
  font-size: 16px;
}
.admin-shell nav button span,
.logout span {
  font-size: 9px;
}
.admin-shell nav button i {
  position: absolute;
  margin: 0 0 25px 30px;
  background: #9d6bc9;
  color: #fff;
  border-radius: 9px;
  min-width: 17px;
  padding: 2px;
  font-size: 8px;
  font-style: normal;
}
.admin-shell nav button.active {
  color: #d7b8ee;
}
.logout {
  width: 50px;
  flex-direction: column;
}
.workspace {
  padding: 25px 18px 95px;
}
.workspace header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.workspace header h1 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 7px 0;
}
.live {
  font-size: 10px;
  color: #65746c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
}
.live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65aa7e;
  margin-right: 5px;
  box-shadow: 0 0 0 4px #65aa7e18;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat-card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 32px #4b355607;
}
.stat-card {
  min-height: 132px;
  position: relative;
}
.stat-card > i {
  font-style: normal;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eee3f8;
  color: #7546a4;
}
.stat-card:nth-child(2) > i {
  background: #e1f0e8;
  color: #4c8065;
}
.stat-card:nth-child(3) > i {
  background: #f7e8d5;
  color: #956f39;
}
.stat-card:nth-child(4) > i {
  background: #e4e9f7;
  color: #586f9a;
}
.stat-card small {
  color: #8d8195;
  font-size: 9px;
  letter-spacing: 0.6px;
  display: block;
  margin: 4px 0 18px;
}
.stat-card strong {
  font: 550 31px var(--serif);
}
.stat-card p {
  font-size: 9px;
  color: #9e92a5;
  margin: 6px 0 0;
}
.dashboard-grid {
  display: grid;
  gap: 11px;
  margin-top: 11px;
}
.panel {
  min-height: 240px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.panel-head h2,
.lead-toolbar h2 {
  font-size: 18px;
  margin: 6px 0;
}
.panel-head > span {
  color: #9a73b2;
  background: #f1e8f7;
  border-radius: 10px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
}
.bars {
  height: 155px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 24px;
}
.bar {
  flex: 1;
  text-align: center;
  display: grid;
  grid-template-rows: 1fr 17px;
  align-items: end;
  height: 100%;
  color: #9a8ba3;
  font-size: 8px;
}
.bar i {
  display: block;
  background: linear-gradient(#a978d3, #7544ad);
  border-radius: 7px 7px 3px 3px;
  min-height: 4px;
  position: relative;
}
.bar i::before {
  content: attr(data-value);
  position: absolute;
  top: -17px;
  left: 0;
  right: 0;
  font-style: normal;
  color: #6f6078;
}
.storage-number {
  font: 500 39px var(--serif);
  margin: 35px 0 18px;
}
.storage-track {
  height: 9px;
  border-radius: 10px;
  background: #eee7f1;
  overflow: hidden;
}
.storage-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8352bc, #71ab89);
  border-radius: 10px;
}
.storage p {
  font-size: 10px;
  color: #918498;
  line-height: 1.55;
}
.upcoming > div:last-child,
.activity > div:last-child {
  margin-top: 15px;
}
.upcoming-item,
.activity-item {
  padding: 12px 0;
  border-top: 1px solid #eee8f1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.upcoming-item:first-child,
.activity-item:first-child {
  border: 0;
}
.upcoming-item strong,
.activity-item strong {
  font-size: 11px;
  display: block;
}
.upcoming-item small,
.activity-item small {
  font-size: 9px;
  color: #93869b;
}
.upcoming-item > span {
  font: 500 13px var(--serif);
  color: #8157a0;
  white-space: nowrap;
}
.activity-item > i {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  background: #f1e8f6;
  color: #8a60a4;
  display: grid;
  place-items: center;
  font-style: normal;
  flex: 0 0 auto;
}
.activity-item > div {
  flex: 1;
}
.lead-toolbar {
  display: grid;
  gap: 17px;
}
.lead-toolbar input {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 13px;
  outline: none;
}
.lead-filters {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 18px 0;
}
.lead-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #786c80;
  padding: 8px 13px;
  font-size: 10px;
  white-space: nowrap;
}
.lead-filters button.active {
  background: #33283d;
  color: #fff;
  border-color: #33283d;
}
.lead-list {
  display: grid;
  gap: 11px;
}
.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 18px;
}
.lead-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.lead-avatar {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: #eee3f8;
  color: #7a4baa;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.lead-card-head > div {
  flex: 1;
}
.lead-card h3 {
  font-size: 14px;
  margin: 0;
}
.lead-card time {
  font-size: 9px;
  color: #9c90a3;
}
.lead-status {
  font-size: 9px;
  border-radius: 8px;
  padding: 5px 7px;
  background: #eee7f2;
  color: #725d80;
}
.lead-status.new {
  background: #f6e5d3;
  color: #91693a;
}
.lead-status.contacted {
  background: #dfefe6;
  color: #47765e;
}
.lead-details {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}
.lead-contact {
  display: flex;
  gap: 7px;
  align-items: center;
}
.lead-contact a {
  font-size: 11px;
  color: #654575;
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy {
  border: 0;
  background: #f2ebf6;
  color: #795493;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 9px;
  cursor: pointer;
}
.lead-message {
  background: #faf7fb;
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  color: #75687c;
  line-height: 1.55;
  white-space: pre-wrap;
}
.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0;
}
.lead-meta span {
  font-size: 9px;
  border: 1px solid #ebe3ef;
  border-radius: 8px;
  padding: 5px 7px;
  color: #897a91;
}
.lead-actions {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.lead-actions select,
.lead-actions textarea {
  border: 1px solid #e4dbe8;
  border-radius: 11px;
  padding: 10px;
  background: #fff;
  font-size: 11px;
}
.lead-actions textarea {
  resize: vertical;
}
.lead-actions button {
  border: 0;
  border-radius: 11px;
  background: #8150bb;
  color: #fff;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
}
.empty {
  text-align: center;
  color: #94879b;
  padding: 50px 15px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 85px;
  background: #2d2533;
  color: #fff;
  padding: 11px 15px;
  border-radius: 12px;
  font-size: 11px;
  box-shadow: 0 12px 35px #0003;
  z-index: 20;
}
@media (min-width: 780px) {
  .admin-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
  }
  .admin-shell aside {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 18px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
  }
  .brand span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #8a59c5;
    display: grid;
    place-items: center;
    font-size: 22px;
  }
  .admin-label {
    display: block;
    font-size: 8px;
    letter-spacing: 1.6px;
    color: #74687a;
    margin: 40px 10px 12px;
  }
  .admin-shell nav {
    display: block;
    height: auto;
  }
  .admin-shell nav button,
  .logout {
    width: 100%;
    height: 44px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 12px;
    border-radius: 12px;
    margin: 3px 0;
    font-size: 16px;
  }
  .admin-shell nav button span,
  .logout span {
    font-size: 11px;
  }
  .admin-shell nav button.active {
    background: #3b2e45;
  }
  .admin-shell nav button i {
    right: 29px;
    margin: 0;
  }
  .logout {
    margin-top: auto;
  }
  .workspace {
    padding: 43px 4vw 60px;
  }
  .workspace header h1 {
    font-size: 34px;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    padding: 24px;
  }
  .activity {
    grid-row: span 2;
  }
  .lead-toolbar {
    grid-template-columns: 1fr minmax(260px, 420px);
    align-items: end;
  }
  .lead-card {
    padding: 22px;
  }
  .lead-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lead-actions {
    grid-template-columns: 160px 1fr 100px;
    align-items: start;
  }
  .toast {
    bottom: 25px;
  }
}
@media (min-width: 1200px) {
  .admin-shell {
    grid-template-columns: 245px 1fr;
  }
  .workspace {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .dashboard-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .stats-grid {
    gap: 14px;
  }
  .stat-card {
    padding: 22px;
  }
  .lead-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lead-actions {
    grid-template-columns: 130px 1fr;
  }
  .lead-actions button {
    grid-column: 1/-1;
  }
}
