@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', sans-serif;
  color: #49333f;
  background: #fff7fa;
  font-synthesis: none;
  --brown: #ad3568;
  --orange: #b33b71;
  --line: #f1dce5;
  --muted: #816675;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #d877a2;
  outline-offset: 3px;
}

h1, h2, h3, .brand { font-family: Manrope, sans-serif; }
h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1.3px;
  margin: 7px 0 9px;
}
h2 { font-size: 19px; margin: 0 0 18px; }
h3 { font-size: 15px; }
p { line-height: 1.6; }

.muted { color: var(--muted); font-size: 14px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.logo {
  width: 41px;
  height: 41px;
  background: #ffe0ec;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--brown);
  font-size: 25px;
}
.brand small {
  display: block;
  font: 10px 'DM Sans';
  letter-spacing: 1.5px;
  margin-top: 3px;
  color: #ffe1ed;
}

.layout {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--brown);
  color: #fff;
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand { font-size: 19px; gap: 9px; }
.sidebar .brand small { font-size: 8px; letter-spacing: .65px; }
.sidebar .logo { width: 34px; height: 34px; flex-shrink: 0; }
.sidebar nav { margin-top: 49px; display: grid; gap: 7px; }

.navbtn {
  display: flex;
  gap: 13px;
  align-items: center;
  background: transparent;
  color: #ffe6ef;
  text-align: left;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
}
.navbtn:hover, .navbtn.active { background: #912650; color: #fff; }
.navbtn.active { box-shadow: inset 3px 0 #ffd0e2; }
.navicon { width: 20px; text-align: center; font-size: 18px; }

.sidefoot {
  margin-top: auto;
  border-top: 1px solid #cc6b96;
  padding-top: 20px;
  font-size: 13px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #ffe0ec;
  color: #8c2754;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.identity { display: flex; gap: 10px; align-items: center; }
.identity strong {
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidefoot small { color: #ffe1ed; }
.logout { background: transparent; color: #fff0f6; padding: 14px 0 0; }

.main { padding: 35px 46px; max-width: 1600px; width: 100%; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pill {
  background: #e9eee4;
  color: #4c6748;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 35px 0 27px;
}
.pagehead p { margin: 0; }

.primary, .secondary, .danger {
  padding: 12px 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
}
.primary { background: var(--brown); color: #fff; }
.primary:hover { background: #912650; }
.secondary { background: #fce8f0; color: #8a3057; }
.danger { background: #f7e3de; color: #9d392d; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 13px;
}
.stat:first-child { background: #fce0ec; border-color: #fce0ec; }
.stat label { font-size: 12px; color: #88556f; }
.stat strong {
  display: block;
  font: 800 27px Manrope;
  margin-top: 13px;
  letter-spacing: -1px;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 9px;
}

.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 22px;
  min-width: 0;
}
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cardhead h2 { margin: 0; }
.tablewrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8b6879;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid #f7eaf0;
  white-space: nowrap;
}
tr:last-child td { border: 0; }

.badge {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #eef1e7;
  color: #50603c;
}
.badge.pending { background: #fff0d8; color: #a0752d; }
.badge.blocked { background: #f7e3de; color: #9d392d; }
.empty { text-align: center; padding: 40px 15px; color: var(--muted); }
.empty b { display: block; color: #77415a; margin-bottom: 7px; }

.barrow { margin: 18px 0; }
.barrow header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 9px;
}
.track {
  height: 7px;
  background: #fce8f0;
  border-radius: 5px;
  overflow: hidden;
}
.bar { height: 100%; background: #d76698; border-radius: 5px; }
.note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0 0;
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field { display: grid; gap: 7px; font-size: 12px; color: #7b5267; }
.field.full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  border: 1px solid #e9cbd9;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: #49333f;
  outline: none;
  min-height: 44px;
}
input:focus, select:focus, textarea:focus {
  border-color: #bd4b7d;
  box-shadow: 0 0 0 3px #bd4b7d14;
}
textarea { resize: vertical; min-height: 80px; }
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}
.formcard { max-width: 760px; }
.total { font: 700 24px Manrope; }
.smallbtn { padding: 7px 10px; font-size: 11px; border-radius: 7px; }

.product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.product h3 { margin: 0 0 6px; }
.product:last-child { border: 0; }
.product-price { font: 800 23px Manrope; }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.loginart {
  background: var(--brown);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 65px;
  overflow: hidden;
  position: relative;
}
.loginart h1 {
  font-size: clamp(35px, 4.3vw, 65px);
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: 520px;
}
.loginart p { color: #ffe5ef; max-width: 370px; }
.loginart > small { line-height: 1.6; color: #ffe5ef; }
.pudding {
  width: 240px;
  height: 140px;
  margin: 55px auto 35px;
  border-radius: 45% 45% 35% 35%;
  background: linear-gradient(
    #9b491e 0 15%,
    #e8ac65 16%,
    #f7d99a 65%,
    #dfaa62
  );
  box-shadow: 0 22px 0 5px #f0e6d8, 0 24px 0 14px #c785a3;
  transform: rotate(-8deg);
}
.loginform { padding: 50px; display: grid; place-items: center; }
.authbox { width: 100%; max-width: 380px; }
.authbox h1 { font-size: 30px; }
.authbox form { display: grid; gap: 17px; margin-top: 28px; }
.authbox .primary { padding: 15px; }
.authswitch {
  background: transparent;
  color: #a33764;
  padding: 15px 0;
  font-size: 13px;
}
.error {
  color: #a03c2f;
  background: #fae9e3;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
}
.loading { padding: 80px; text-align: center; }
.waiting { max-width: 550px; margin: 70px auto; text-align: center; }
.footer {
  font-size: 11px;
  color: #896576;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 420px;
  background: #ad3568;
  color: #fff;
  border-radius: 10px;
  padding: 15px 22px;
  font-size: 13px;
  box-shadow: 0 10px 40px #0002;
  z-index: 50;
  display: none;
}
#toast.show { display: block; }
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar .field { min-width: 140px; }
.errorbar {
  background: #fae9e3;
  color: #983f30;
  padding: 15px;
  border-radius: 9px;
  margin-bottom: 20px;
}
.mobilebrand { display: none; }

@media (max-width: 1100px) {
  .main { padding: 25px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 210px 1fr; }
  .sidebar { padding: 25px 17px; }
}

@media (max-width: 700px) {
  .layout { display: block; }
  .sidebar { position: relative; height: auto; padding: 18px; }
  .sidebar .brand { font-size: 20px; }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 6px;
    padding-bottom: 3px;
  }
  .navbtn { white-space: nowrap; padding: 10px; font-size: 12px; }
  .navicon { display: none; }
  .sidefoot {
    border: 0;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    margin: 0;
  }
  .sidefoot .identity { display: none; }
  .logout { padding: 8px; font-size: 12px; }
  .main { padding: 18px; }
  .topbar { padding-bottom: 17px; }
  .topbar span:first-child { max-width: 65%; }
  .pagehead { margin: 26px 0 20px; align-items: start; }
  .pagehead h1 { font-size: 27px; }
  .pagehead .primary { padding: 12px; white-space: nowrap; }
  .stats { gap: 10px; }
  .stat { padding: 17px; }
  .stat strong { font-size: 22px; }
  .card { padding: 18px; }
  .formgrid { grid-template-columns: 1fr; }
  .login { display: block; }
  .loginart { padding: 27px; min-height: 230px; }
  .loginart h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-top: 25px;
  }
  .loginart p, .pudding { display: none; }
  .loginart > small {
    display: block;
    margin-top: 22px;
    font-size: 11px;
  }
  .loginform { padding: 35px 24px; }
  .loginart .brand small { display: none; }
  #toast { left: 15px; right: 15px; bottom: 15px; }
}
