:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: #0e1d30;
  --line: #233650;
  --ink: #f7f9fc;
  --muted: #9aaec6;
  --accent: #8b5cf6;
  --mint: #36d5b2;
  --orange: #ff9a5c;
  --red: #ff7474;
  font:
    16px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(7, 17, 31, 0.9), rgba(9, 24, 39, 0.96)),
    radial-gradient(
      circle at 85% -10%,
      rgba(98, 70, 190, 0.32),
      transparent 32rem
    );
  background-size: cover, cover;
  background-attachment: fixed;
  color: var(--ink);
  overflow-x: hidden;
}
.ambient-gallery {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient-gallery::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(4, 11, 20, 0.18),
    rgba(4, 11, 20, 0.3) 52%,
    rgba(4, 11, 20, 0.62)
  );
}
.ambient-slide {
  position: absolute;
  inset: -3%;
  opacity: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.9) contrast(1.04);
  animation: ambient-fade 24s infinite ease-in-out;
  will-change: transform, opacity;
}
.ambient-one {
  background-image: url("/barber-bg-1.webp");
}
.ambient-two {
  background-image: url("/barber-bg-2.webp");
  animation-delay: 8s;
}
.ambient-three {
  background-image: url("/barber-bg-3.webp");
  animation-delay: 16s;
}
.beauty-mode {
  --panel: #20142c;
  --line: #4a2b58;
  --muted: #cbb8d2;
  background-image:
    linear-gradient(155deg, rgba(24, 8, 31, 0.9), rgba(10, 10, 28, 0.96)),
    radial-gradient(
      circle at 85% -10%,
      color-mix(in srgb, var(--accent) 44%, transparent),
      transparent 32rem
    );
}
.beauty-mode .ambient-slide {
  filter: saturate(0.72) contrast(1.06) hue-rotate(315deg);
}
@keyframes ambient-fade {
  0% {
    opacity: 0;
    transform: scale(1.04) translate3d(-0.5%, 0, 0);
  }
  7%,
  29% {
    opacity: 0.88;
  }
  36%,
  100% {
    opacity: 0;
    transform: scale(1.1) translate3d(0.8%, -0.6%, 0);
  }
}
header,
main,
footer,
.install-sheet {
  position: relative;
  z-index: 1;
}
button,
input,
select,
textarea {
  font: inherit;
}
header {
  width: min(100% - 32px, 980px);
  margin: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: linear-gradient(145deg, #7250ff, #a579ff);
  font-weight: 900;
  font-size: 23px;
  overflow: hidden;
}
.mark img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  background: #fff;
}
.brand span:last-child {
  display: grid;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
main {
  width: min(100% - 30px, 780px);
  margin: 20px auto 70px;
}
.login-story {
  display: none;
}
main:has(#login:not(.hidden)) {
  width: min(100% - 40px, 1100px);
  min-height: calc(100vh - 180px);
  grid-template-columns: minmax(300px, 1fr) minmax(390px, 470px);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
}
main:has(#login:not(.hidden)),
main:has(#login:not(.hidden)) .login-story {
  display: grid;
}
.login-story {
  align-content: center;
  text-shadow: 0 3px 25px #000;
}
.login-story .story-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #6ae5c84c;
  border-radius: 999px;
  background: #09251fba;
  color: #9debd9;
  font-size: 12px;
  font-weight: 900;
  text-shadow: none;
}
.story-pill i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 4px #35d5b220;
}
.login-story h1 {
  max-width: 650px;
  margin: 8px 0 18px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.login-story > p:not(.eyebrow) {
  max-width: 590px;
  color: #c9d6e5;
  font-size: 17px;
}
.login-story > div {
  display: grid;
  gap: 9px;
  margin-top: 28px;
  color: #d7e4f1;
  font-size: 13px;
  font-weight: 700;
}
main:has(#login:not(.hidden)) .login-card {
  width: 100%;
  margin: 0;
  border-color: #ffffff2b;
  background: linear-gradient(
    165deg,
    rgba(18, 36, 59, 0.96),
    rgba(7, 20, 34, 0.96)
  );
  backdrop-filter: blur(20px);
}
.login-card {
  width: min(100%, 480px);
  margin: 8vh auto 0;
  background: linear-gradient(180deg, #102139, #0c1a2c);
  border: 1px solid var(--line);
  padding: clamp(24px, 6vw, 40px);
  border-radius: 28px;
  box-shadow: 0 35px 90px #0009;
}
.icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: #281d57;
  color: #ae96ff;
  font-size: 27px;
}
.eyebrow {
  margin: 18px 0 7px;
  color: #a990ff;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 11px;
}
.login-card h1,
.welcome h1 {
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
}
.muted {
  color: var(--muted);
}
form {
  display: grid;
  gap: 15px;
  margin-top: 26px;
}
label {
  font-size: 13px;
  font-weight: 800;
  display: grid;
  gap: 7px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}
.field > span small {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 500;
}
.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.service-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #2b415c;
  border-radius: 14px;
  background: #071522;
  cursor: pointer;
}
.service-option:has(input:checked) {
  border-color: var(--mint);
  background: #0c2a2a;
  box-shadow: inset 0 0 0 1px var(--mint);
}
.service-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--mint);
}
.service-option span,
.service-option b,
.service-option small {
  display: block;
}
.service-option small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}
.service-option i {
  visibility: hidden;
  color: var(--mint);
  font-style: normal;
  font-weight: 900;
}
.service-option:has(input:checked) i {
  visibility: visible;
}
.service-total {
  color: #80e7cf;
  font-size: 12px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #2b415c;
  background: #071522;
  color: #fff;
  padding: 13px 15px;
  outline: none;
}
select {
  appearance: none;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #8b5cf62c;
}
.primary,
.ghost {
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.primary {
  background: linear-gradient(135deg, #7653ff, #9e72ff);
  box-shadow: 0 15px 36px #7653ff35;
}
.ghost {
  background: #13253a;
  border: 1px solid #29405a;
}
.error {
  padding: 11px 13px;
  border-radius: 12px;
  background: #411d29;
  color: #ffb9b9;
  font-size: 13px;
}
.hidden {
  display: none !important;
}
.install-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 18px;
}
.install-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: #02060db8;
  backdrop-filter: blur(8px);
}
.install-card {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border: 1px solid #334861;
  border-radius: 25px;
  background: linear-gradient(180deg, #13263c, #0b192a);
  box-shadow: 0 28px 80px #000b;
}
.install-card h2 {
  margin: 6px 36px 8px 0;
  font-size: 25px;
  line-height: 1.12;
}
.install-card > p:not(.eyebrow) {
  color: var(--muted);
}
.install-close {
  position: absolute;
  right: 17px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.install-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: #2d215c;
  color: #b8a7ff;
  font-size: 28px;
  font-weight: 900;
}
.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
}
.welcome-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.compact {
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}
.welcome .eyebrow {
  margin-top: 0;
}
.welcome p:last-child {
  margin: 7px 0 0;
}
.workspace-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 12px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #081726d9;
}
.workspace-tabs button {
  flex: 1;
  min-height: 43px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}
.workspace-tabs button.active {
  background: linear-gradient(135deg, #6546db, #8b5cf6);
  color: #fff;
}
.workspace-tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  place-items: center;
  border-radius: 99px;
  background: #ffffff24;
  font-size: 11px;
}
.date-row {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px;
}
.date-row button {
  border: 0;
  border-radius: 12px;
  background: #172a41;
  color: #fff;
  font-size: 27px;
}
.date-row input {
  text-align: center;
  border: 0;
  background: transparent;
}
.professional-filter {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 17px;
  background: linear-gradient(135deg, #14233a, #0e1d30);
}
.professional-filter label {
  color: #c9d6e5;
  white-space: nowrap;
}
.professional-filter select {
  min-height: 44px;
  padding: 9px 42px 9px 13px;
  background-color: #091725;
  background-image:
    linear-gradient(45deg, transparent 50%, #9aaec6 50%),
    linear-gradient(135deg, #9aaec6 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 13px 0;
}
.metrics > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px;
}
.metrics small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}
.next-booking {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--mint) 42%, var(--line));
  border-radius: 18px;
  background: linear-gradient(135deg, #103029, #102139);
}
.next-time {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 14px;
  background: #071b19;
  color: var(--mint);
  font-size: 18px;
  font-weight: 900;
}
.next-booking div {
  display: grid;
}
.next-booking small {
  color: #76d9c1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.next-booking p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.next-badge {
  padding: 6px 10px;
  border-radius: 99px;
  background: #174139;
  color: #91ead5;
  font-size: 10px;
  font-weight: 900;
}
.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 5px;
}
.filters button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #0d1d30;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.filters button.active {
  border-color: color-mix(in srgb, var(--accent) 65%, white);
  background: color-mix(in srgb, var(--accent) 28%, #0d1d30);
  color: #fff;
}
.sync {
  text-align: right;
  color: #7bdcc4;
  font-size: 11px;
  margin: 10px 2px;
}
.agenda {
  display: grid;
  gap: 11px;
}
.booking {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  background: linear-gradient(180deg, #102139, #0d1b2d);
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 16px;
  box-shadow: 0 14px 35px #0003;
}
.time {
  display: grid;
  place-items: center;
  align-self: start;
  background: #091524;
  border-radius: 14px;
  min-height: 58px;
  font-size: 19px;
  font-weight: 900;
  color: var(--mint);
}
.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}
.booking h2 {
  font-size: 18px;
  margin: 0;
}
.booking p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14px;
}
.booking-professional {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #28204d;
  color: #c7b9ff;
  font-size: 11px;
  font-weight: 900;
}
.contact-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.contact-actions a {
  padding: 7px 10px;
  border: 1px solid #2d4961;
  border-radius: 10px;
  background: #10283c;
  color: #9fead8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}
.no-phone {
  display: inline-block;
  margin-top: 6px;
  color: #70849b;
  font-size: 11px;
}
.notes {
  margin-top: 9px !important;
  padding: 9px 10px;
  border-radius: 10px;
  background: #091725;
}
.badge {
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  background: #17314b;
  color: #bdd0e8;
}
.badge.confirmed,
.badge.completed {
  background: #123a31;
  color: #8cebd4;
}
.badge.in_service {
  background: #44331e;
  color: #ffc381;
}
.badge.cancelled,
.badge.no_show {
  background: #432129;
  color: #ffb2b2;
}
.payment {
  display: inline-flex;
  margin-top: 7px;
  color: #8de6d0;
  font-size: 12px;
  font-weight: 800;
}
.payment.pending {
  color: #ffca87;
}
.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 13px;
}
.actions button {
  border: 1px solid #304760;
  border-radius: 11px;
  background: #14283e;
  color: #fff;
  min-height: 42px;
  font-weight: 800;
  font-size: 12px;
}
.actions .main {
  background: #6848e8;
  border-color: #7959f4;
}
.actions .danger {
  color: #ffaaa5;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  border: 1px dashed #2b405a;
  border-radius: 20px;
  color: var(--muted);
}
.booking-card {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}
.booking-card form {
  margin-top: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.booking-card .primary {
  width: 100%;
  margin-top: 16px;
}
.orders-panel {
  margin-top: 8px;
}
.orders-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #0d1e32ed;
}
.orders-heading .eyebrow {
  margin: 0 0 5px;
}
.orders-heading h2 {
  margin: 0;
  font-size: 25px;
}
.orders-heading p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.product-orders {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.product-order {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0d1e32f5;
  box-shadow: 0 16px 38px #0004;
}
.product-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.product-order-head small {
  color: #ae96ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.product-order-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
}
.product-order-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.order-status {
  padding: 6px 9px;
  border-radius: 99px;
  background: #44331e;
  color: #ffc381;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.order-status.paid,
.order-status.fulfilled {
  background: #123a31;
  color: #8cebd4;
}
.order-status.cancelled {
  background: #432129;
  color: #ffb2b2;
}
.product-order ul {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid #273a52;
  border-bottom: 1px solid #273a52;
  list-style: none;
}
.product-order li,
.product-order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.product-order li {
  color: #cbd7e5;
  font-size: 13px;
}
.product-order-total {
  align-items: baseline;
}
.product-order-total span {
  color: var(--muted);
  font-size: 12px;
}
.product-order-total strong {
  color: var(--mint);
  font-size: 22px;
}
.order-contact,
.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}
.order-contact a,
.order-actions button {
  display: inline-grid;
  min-height: 40px;
  padding: 0 13px;
  place-items: center;
  border: 1px solid #304760;
  border-radius: 11px;
  background: #14283e;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}
.order-actions .main {
  flex: 1;
  border-color: #7959f4;
  background: #6848e8;
}
.order-actions .danger {
  color: #ffaaa5;
}
footer {
  text-align: center;
  color: #71859d;
  font-size: 12px;
  padding: 25px;
}
@media (max-width: 800px) {
  main:has(#login:not(.hidden)) {
    width: min(100% - 28px, 520px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 4px;
  }
  .login-story {
    justify-items: center;
    text-align: center;
  }
  .login-story h1 {
    margin: 7px 0 9px;
    font-size: clamp(34px, 11vw, 52px);
  }
  .login-story > p:not(.eyebrow) {
    margin: 0;
    font-size: 14px;
  }
  .login-story > div {
    display: none;
  }
  main:has(#login:not(.hidden)) .login-card {
    margin-top: 0;
  }
  .ambient-gallery::after {
    background: linear-gradient(
      180deg,
      rgba(4, 11, 20, 0.42),
      rgba(4, 11, 20, 0.8)
    );
  }
}
@media (max-width: 560px) {
  .login-card {
    margin-top: 3vh;
  }
  .welcome {
    align-items: center;
  }
  .welcome-actions {
    display: grid;
  }
  .compact,
  .welcome .ghost {
    min-height: 44px;
  }
  .welcome h1 {
    font-size: 34px;
  }
  .metrics > div {
    padding: 12px;
  }
  .metrics strong {
    font-size: 18px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .professional-filter {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .orders-heading {
    display: grid;
    align-items: start;
    padding: 16px;
  }
  .orders-heading .ghost {
    width: 100%;
  }
  .product-order-head {
    display: grid;
  }
  .order-status {
    width: max-content;
  }
  .order-actions {
    display: grid;
  }
  .booking {
    grid-template-columns: 59px 1fr;
    padding: 13px;
    gap: 11px;
  }
  .time {
    font-size: 16px;
    min-height: 51px;
  }
  .actions {
    grid-template-columns: 1fr;
  }
  .booking-head {
    display: grid;
  }
  .badge {
    width: max-content;
  }
  .next-booking {
    grid-template-columns: 64px 1fr;
  }
  .next-badge {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .service-options {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-slide {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .ambient-one {
    opacity: 0.9;
  }
}

/* Studio Profissional — aplicativo exclusivo para o salão de beleza. */
:root {
  color-scheme: light;
  --bg: #fff8fb;
  --panel: #ffffff;
  --line: #eed9e4;
  --ink: #382032;
  --muted: #816b7a;
  --accent: #d9468f;
  --mint: #239d83;
  --orange: #c7762c;
  --red: #cf4961;
}

body,
body.beauty-mode {
  background:
    radial-gradient(circle at 8% 10%, #ffdce9 0, transparent 28rem),
    radial-gradient(circle at 94% 18%, #eee0ff 0, transparent 32rem),
    linear-gradient(180deg, #fffafd 0%, #fff5f9 52%, #faf7ff 100%);
  color: var(--ink);
}

.ambient-slide {
  display: none;
}

.ambient-gallery::before,
.ambient-gallery::after {
  position: absolute;
  content: "";
  opacity: 0.4;
  border-radius: 48% 52% 44% 56%;
}

.ambient-gallery::before {
  width: 380px;
  height: 380px;
  left: -190px;
  bottom: 8%;
  background: linear-gradient(145deg, #ffc8dc, #e8d8ff);
  transform: rotate(22deg);
}

.ambient-gallery::after {
  inset: 10% -170px auto auto;
  width: 340px;
  height: 340px;
  background: linear-gradient(145deg, #f6cada, #e7d9ff);
  transform: rotate(-18deg);
}

header {
  width: 100%;
  padding: 14px max(18px, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid #ecdce5cc;
  background: #fffafde8;
  box-shadow: 0 8px 28px #7e345110;
  backdrop-filter: blur(20px);
}

.mark {
  border-radius: 15px;
  background: linear-gradient(145deg, #b82e72, #ef72a8);
  box-shadow: 0 10px 24px #d9468f35;
}

.brand small,
footer {
  color: #947b8e;
}

main {
  width: min(100% - 30px, 900px);
}

main:has(#login:not(.hidden)) {
  width: min(100% - 38px, 1120px);
  min-height: calc(100vh - 132px);
  grid-template-columns: minmax(360px, 1.1fr) minmax(380px, 0.9fr);
  gap: clamp(24px, 4vw, 54px);
}

.login-story {
  position: relative;
  padding: clamp(42px, 6vw, 72px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 91% 10%, #ffffff2c 0 5rem, transparent 5.1rem),
    radial-gradient(circle at 5% 93%, #ffffff1d 0 7rem, transparent 7.1rem),
    linear-gradient(145deg, #4e173e 0%, #9d306f 60%, #e670a1 100%);
  box-shadow: 0 30px 80px #862e5333;
  color: #fff;
  text-shadow: none;
}

.login-story h1 {
  font-size: clamp(48px, 5.2vw, 72px);
}

.login-story .eyebrow,
.login-story > p:not(.eyebrow),
.login-story > div {
  color: #ffedf5;
}

.login-story .story-pill {
  border-color: #ffffff32;
  background: #ffffff19;
  color: #fff;
}

main:has(#login:not(.hidden)) .login-card,
.login-card,
.booking,
.metrics > div,
.date-row,
.next-booking,
.orders-heading,
.product-order,
.booking-card,
.install-card,
.empty {
  border-color: var(--line);
  background: #fffffff2;
  box-shadow: 0 24px 65px #74304d16;
  color: var(--ink);
}

main:has(#login:not(.hidden)) .login-card {
  border-color: var(--line);
  background: #fffffff5;
  backdrop-filter: blur(20px);
}

.icon,
.install-icon,
.time {
  background: linear-gradient(145deg, #ffe0ec, #f2dcff);
  color: #b83273;
}

.eyebrow,
.product-order-head small {
  color: #b73573;
}

.muted,
.booking p,
.next-booking p,
.product-order-head p,
.orders-heading p:last-child {
  color: var(--muted);
}

input,
select,
textarea,
.professional-filter select {
  border-color: #e6d3de;
  background-color: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #d9468f;
  box-shadow: 0 0 0 4px #d9468f1f;
}

.primary,
.workspace-tabs button.active,
.actions .main,
.order-actions .main {
  border-color: #c13779;
  background: linear-gradient(135deg, #b93275, #e85c9a);
  box-shadow: 0 12px 30px #d9468f2d;
  color: #fff;
}

.ghost,
.compact,
.actions button,
.order-contact a,
.order-actions button {
  border-color: #e6d3de;
  background: #fff;
  color: #563448;
}

.workspace-tabs {
  border-color: #e7d5df;
  background: #fffafde8;
  box-shadow: 0 12px 30px #74304d12;
}

.workspace-tabs button {
  color: #8c7282;
}

.date-row button {
  background: #fff0f6;
  color: #ad326f;
}

.professional-filter {
  border-color: #ead4df;
  background: linear-gradient(135deg, #fff, #fff5fa);
}

.professional-filter label {
  color: #604353;
}

.metrics > div {
  position: relative;
  overflow: hidden;
}

.metrics > div::after {
  position: absolute;
  inset: auto -18px -22px auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f9ddea;
  content: "";
}

.metrics strong {
  color: #8f2a60;
}

.next-booking {
  border-color: #bfe6dd;
  background: linear-gradient(135deg, #f2fcf8, #fff);
}

.next-time {
  background: #dff6ef;
  color: #187e69;
}

.next-booking small,
.sync,
.payment,
.product-order-total strong {
  color: #1c8a73;
}

.next-badge,
.badge.confirmed,
.badge.completed,
.order-status.paid,
.order-status.fulfilled {
  background: #e0f6ef;
  color: #167962;
}

.filters button {
  border-color: #e7d5df;
  background: #fff;
  color: #8b7483;
}

.filters button.active {
  border-color: #df68a0;
  background: #fff0f6;
  color: #a92e69;
}

.booking {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px #74304d20;
}

.booking-professional {
  background: #f5e9ff;
  color: #8345a3;
}

.contact-actions a {
  border-color: #bfe6dd;
  background: #effbf7;
  color: #187e69;
}

.notes {
  background: #fff7fa;
}

.badge {
  background: #f1eafa;
  color: #755985;
}

.badge.in_service,
.order-status {
  background: #fff0dc;
  color: #a75c17;
}

.badge.cancelled,
.badge.no_show,
.order-status.cancelled,
.error {
  background: #fff0f2;
  color: #b63850;
}

.product-order ul {
  border-color: #efdee7;
}

.product-order li {
  color: #604b58;
}

.install-scrim {
  background: #3e1a2a66;
}

.install-close {
  color: #6e425b;
}

@media (max-width: 800px) {
  main:has(#login:not(.hidden)) {
    width: min(100% - 24px, 560px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
  }

  .login-story {
    padding: 34px 26px;
    border-radius: 28px;
    justify-items: center;
    text-align: center;
  }

  .login-story h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .login-story > p:not(.eyebrow) {
    margin: 0;
    font-size: 14px;
  }

  .login-story > div {
    display: none;
  }

  main:has(#login:not(.hidden)) .login-card {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  header {
    padding: 11px 14px;
  }

  main {
    width: min(100% - 22px, 900px);
    margin-top: 10px;
  }

  .login-card {
    border-radius: 24px;
  }

  .welcome {
    padding-top: 10px;
  }
}
