/* GlowNow upgrades #71-#75: protected participant state, client reliability, smart intake, visual brief and rewards. */

.booking-intake-result[hidden],
.account-client-trust-panel[hidden],
.client-referral-applied[hidden],
.admin-client-referral-panel[hidden] {
  display: none !important;
}

.booking-upgrade-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  border: 1px solid rgba(189, 71, 127, 0.28);
  border-radius: 5px;
  color: #a8386d;
  font-size: 11px;
  font-weight: 560;
}

.booking-intake-assistant {
  display: grid;
  gap: 11px;
  margin: 18px 0;
  border: 1px solid rgba(189, 71, 127, 0.24);
  border-left: 3px solid #d6558e;
  border-radius: 7px;
  background: #fff9fc;
  padding: 15px;
  box-shadow: 0 9px 24px rgba(92, 31, 61, 0.06);
}

.booking-intake-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.booking-intake-head h3,
.client-referral-centre h3 {
  margin: 0;
  color: #351c29;
  font-size: 17px;
  font-weight: 560;
}

.booking-intake-head p,
.client-referral-centre p {
  margin: 3px 0 0;
  color: #7c6572;
  font-size: 13px;
  line-height: 1.45;
}

.booking-intake-assistant textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #e3cdd8;
  border-radius: 6px;
  background: #fff;
  color: #2e1924;
  padding: 11px 12px;
  font: inherit;
  line-height: 1.45;
}

.booking-intake-assistant textarea:focus {
  border-color: #ca4c84;
  outline: 3px solid rgba(213, 85, 142, 0.12);
}

.booking-intake-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.booking-intake-actions button {
  flex: 0 0 auto;
  min-height: 38px;
}

.booking-intake-actions > span {
  color: #8b7480;
  font-size: 11px;
  text-align: right;
}

.booking-intake-result {
  display: grid;
  gap: 11px;
  border-top: 1px solid #efdde6;
  padding-top: 12px;
}

.booking-intake-result > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.booking-intake-result .intake-suggestion {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid #ead2df;
  border-radius: 999px;
  background: #fff;
  color: #5d3e4e;
  padding: 6px 9px;
  font-size: 12px;
}

.booking-intake-result .intake-suggestion svg {
  width: 14px;
  height: 14px;
  color: #c2457e;
}

.booking-intake-result .intake-result-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.booking-intake-result .intake-result-actions button {
  min-height: 38px;
}

.inspiration-style-brief {
  margin: 12px 0 0;
  border: 0;
  padding: 0;
}

.inspiration-style-brief legend {
  margin-bottom: 8px;
  color: #5a3949;
  font-size: 12px;
  font-weight: 560;
}

.inspiration-style-brief > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inspiration-style-brief label {
  position: relative;
  cursor: pointer;
}

.inspiration-style-brief input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inspiration-style-brief span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid #e4ccd8;
  border-radius: 999px;
  background: #fff;
  color: #694a59;
  padding: 5px 10px;
  font-size: 12px;
}

.inspiration-style-brief input:checked + span {
  border-color: #c8447d;
  background: #fde5f0;
  color: #8d2857;
  box-shadow: inset 0 0 0 1px rgba(200, 68, 125, 0.08);
}

.booking-inspiration-upload {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
}

.booking-inspiration-upload > svg {
  width: 19px;
  height: 19px;
  color: #b53e74;
}

.booking-inspiration-upload > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #4f3040;
  font-size: 13px;
  line-height: 1.35;
}

.booking-inspiration-upload > span small {
  display: block;
  color: #866e7a;
  font-size: 11px;
  font-weight: 400;
}

.booking-inspiration-upload input[type="file"] {
  grid-column: 1 / -1;
  min-height: 42px;
  overflow: hidden;
  padding: 5px;
  color: #765c69;
  font-size: 11px;
}

.booking-inspiration-upload input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 8px;
  border: 1px solid #dfb8ca;
  border-radius: 5px;
  background: #fff6fa;
  color: #84345b;
  padding: 5px 9px;
  font: inherit;
  cursor: pointer;
}

.account-chat-panel .account-panel-head > div small {
  display: block;
  max-width: 520px;
  margin-top: 5px;
  color: #856c79;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.account-chat-panel .account-panel-head > span {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #e3ccd7;
  border-radius: 999px;
  background: #fff7fb;
  padding: 5px 9px;
  color: #755b68;
  line-height: 1;
  white-space: nowrap;
}

.account-chat-panel .account-panel-head > span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.account-chat-panel .account-panel-head > span[data-state="connected"],
.account-chat-panel .account-panel-head > span[data-state="reviewing"] {
  border-color: rgba(33, 166, 115, 0.28);
  background: #edf9f4;
  color: #167653;
}

.account-chat-form textarea:disabled,
.client-chat-form textarea:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: #f7eef3;
  color: #8b7480;
}

.account-chat-form button:disabled,
.client-chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.account-client-trust-panel {
  border-top: 3px solid #d3a34b;
}

.client-reliability-score {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(198, 148, 57, 0.36);
  border-radius: 50%;
  background: #fff9ec;
  color: #7e5b19;
}

.client-reliability-score strong {
  font-size: 18px;
  font-weight: 580;
  line-height: 1;
}

.client-reliability-score span {
  margin-top: -4px;
  font-size: 9px;
}

.account-client-trust-panel > p {
  margin: 10px 0;
  color: #4e3542;
  line-height: 1.45;
}

.account-client-trust-panel > small {
  display: block;
  margin-top: 10px;
  color: #8a7380;
  line-height: 1.45;
}

.client-reliability-signals {
  display: grid;
  gap: 6px;
}

.client-reliability-signals span {
  display: flex;
  gap: 7px;
  align-items: center;
  border-top: 1px solid #f0dfe7;
  padding-top: 7px;
  color: #664b59;
  font-size: 12px;
}

.client-reliability-signals svg {
  width: 14px;
  height: 14px;
  color: #b6842e;
}

.client-referral-applied {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  border: 1px solid #e1c275;
  border-radius: 6px;
  background: #fff9ea;
  color: #78551a;
  padding: 8px 10px;
  font-size: 12px;
}

.client-referral-applied svg {
  width: 16px;
}

.client-referral-centre {
  display: grid;
  gap: 12px;
}

.client-referral-centre .client-hub-intro {
  align-items: center;
}

.client-referral-centre .client-hub-intro > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
}

.client-referral-centre .client-hub-intro h3,
.client-referral-centre .client-hub-intro p {
  grid-column: 2;
}

.client-referral-centre .client-hub-intro > strong {
  color: #925f18;
  font-size: 16px;
  font-weight: 560;
}

.client-referral-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: end;
}

.client-referral-share label {
  display: grid;
  gap: 5px;
  color: #806875;
  font-size: 11px;
}

.client-referral-share input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #e1ccd7;
  border-radius: 6px;
  background: #fff;
  color: #523644;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}

.client-referral-share button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #d7b869;
  border-radius: 6px;
  background: #fffaf0;
  color: #76511c;
  padding: 7px 11px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.client-referral-share button svg {
  width: 15px;
}

.client-referral-summary,
.admin-referral-metrics {
  display: grid;
  gap: 7px;
}

.client-referral-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.client-referral-summary span,
.admin-referral-metrics article {
  display: grid;
  gap: 2px;
  border: 1px solid #ead8e1;
  border-radius: 6px;
  background: #fff;
  padding: 9px 10px;
  color: #826b77;
  font-size: 11px;
}

.client-referral-summary strong,
.admin-referral-metrics strong {
  color: #432b37;
  font-size: 16px;
  font-weight: 560;
}

.provider-client-reliability,
.provider-style-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.provider-client-reliability span,
.provider-style-brief span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid rgba(198, 151, 64, 0.3);
  border-radius: 999px;
  background: #fff9ec;
  color: #795819;
  padding: 4px 8px;
  font-size: 11px;
}

.admin-client-referral-panel {
  border-top: 3px solid #c88d2f;
}

.client-hub-tabs,
.service-finder-grid {
  scrollbar-color: #c64d82 rgba(198, 77, 130, 0.1);
  scrollbar-width: thin;
}

.client-hub-tabs::-webkit-scrollbar,
.service-finder-grid::-webkit-scrollbar {
  width: 6px;
  height: 5px;
}

.client-hub-tabs::-webkit-scrollbar-track,
.service-finder-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(198, 77, 130, 0.1);
}

.client-hub-tabs::-webkit-scrollbar-thumb,
.service-finder-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c64d82;
}

.admin-referral-list {
  display: grid;
  margin-top: 12px;
  border: 1px solid #ead8e1;
  border-radius: 7px;
  overflow: hidden;
}

.admin-referral-list article {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  background: #fff;
}

.admin-referral-list article + article {
  border-top: 1px solid #eedfe6;
}

.admin-referral-list strong,
.admin-referral-list span,
.admin-referral-list small {
  display: block;
}

.admin-referral-list strong {
  color: #3f2834;
  font-weight: 560;
}

.admin-referral-list small {
  margin-top: 2px;
  color: #836d78;
  font-size: 11px;
}

.admin-referral-state {
  border: 1px solid #e0c377;
  border-radius: 999px;
  background: #fff9e9;
  color: #77531b;
  padding: 5px 8px;
  font-size: 11px;
  text-transform: capitalize;
}

body[data-theme="dark"] .booking-intake-assistant,
body[data-theme="dark"] .booking-intake-result .intake-suggestion,
body[data-theme="dark"] .inspiration-style-brief span,
body[data-theme="dark"] .client-referral-share input,
body[data-theme="dark"] .client-referral-summary span,
body[data-theme="dark"] .admin-referral-metrics article,
body[data-theme="dark"] .admin-referral-list article {
  border-color: #633649;
  background: #28151f;
  color: #f0dce6;
}

body[data-theme="dark"] .booking-intake-assistant textarea,
body[data-theme="dark"] .account-chat-form textarea:disabled,
body[data-theme="dark"] .client-chat-form textarea:disabled {
  border-color: #633649;
  background: #1d1017;
  color: #f8eaf1;
}

body[data-theme="dark"] .booking-inspiration-upload > span {
  color: #fff0f7;
}

body[data-theme="dark"] .booking-inspiration-upload {
  border-color: #633649;
  background: #21121a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .booking-inspiration-upload input[type="file"] {
  border-color: #633649;
  background: #1d1017;
  color: #d9bdca;
}

body[data-theme="dark"] .booking-inspiration-upload > span small {
  color: #cdb3c0;
}

body[data-theme="dark"] .booking-inspiration-upload input[type="file"]::file-selector-button {
  border-color: #704056;
  background: #321925;
  color: #ffd8e8;
}

body[data-theme="dark"] .account-chat-panel .account-panel-head > span {
  border-color: #623448;
  background: #28151f;
  color: #d7b8c7;
}

body[data-theme="dark"] .account-chat-panel .account-panel-head > span[data-state="connected"],
body[data-theme="dark"] .account-chat-panel .account-panel-head > span[data-state="reviewing"] {
  border-color: rgba(79, 201, 151, 0.34);
  background: #173126;
  color: #8de0bc;
}

body[data-theme="dark"] .client-hub-tabs,
body[data-theme="dark"] .service-finder-grid {
  scrollbar-color: #e55f98 #26131c;
}

body[data-theme="dark"] .client-hub-tabs::-webkit-scrollbar-track,
body[data-theme="dark"] .service-finder-grid::-webkit-scrollbar-track {
  background: #26131c;
}

body[data-theme="dark"] .client-hub-tabs::-webkit-scrollbar-thumb,
body[data-theme="dark"] .service-finder-grid::-webkit-scrollbar-thumb {
  background: #e55f98;
}

body[data-theme="dark"] .booking-intake-head h3,
body[data-theme="dark"] .client-referral-centre h3,
body[data-theme="dark"] .client-referral-summary strong,
body[data-theme="dark"] .admin-referral-metrics strong,
body[data-theme="dark"] .admin-referral-list strong,
body[data-theme="dark"] .account-client-trust-panel > p {
  color: #fff2f8;
}

body[data-theme="dark"] .booking-intake-head p,
body[data-theme="dark"] .booking-intake-actions > span,
body[data-theme="dark"] .account-chat-panel .account-panel-head > div small,
body[data-theme="dark"] .account-client-trust-panel > small,
body[data-theme="dark"] .client-referral-centre p,
body[data-theme="dark"] .admin-referral-list small {
  color: #cdb3c0;
}

body[data-theme="dark"] .booking-intake-result,
body[data-theme="dark"] .client-reliability-signals span,
body[data-theme="dark"] .admin-referral-list article + article {
  border-color: #593043;
}

body[data-theme="dark"] .inspiration-style-brief legend,
body[data-theme="dark"] .client-reliability-signals span {
  color: #ead2de;
}

body[data-theme="dark"] .inspiration-style-brief input:checked + span {
  border-color: #f06ca5;
  background: #52233a;
  color: #ffddeb;
}

body[data-theme="dark"] .client-reliability-score,
body[data-theme="dark"] .client-referral-applied,
body[data-theme="dark"] .provider-client-reliability span,
body[data-theme="dark"] .provider-style-brief span,
body[data-theme="dark"] .admin-referral-state {
  border-color: #73552f;
  background: #332818;
  color: #f2d48f;
}

body[data-theme="dark"] .client-referral-share button {
  border-color: #73552f;
  background: #2b2115;
  color: #f2d48f;
}

@media (max-width: 700px) {
  .booking-intake-assistant {
    margin: 14px 0;
    padding: 12px;
  }

  .booking-intake-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-intake-actions > span {
    text-align: left;
  }

  .booking-intake-result .intake-result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .client-referral-share {
    grid-template-columns: 1fr 1fr;
  }

  .client-referral-share label {
    grid-column: 1 / -1;
  }

  .client-referral-summary,
  .admin-referral-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-referral-list article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-referral-list article > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 430px) {
  .booking-intake-head {
    grid-template-columns: 1fr;
  }

  .booking-intake-result .intake-suggestion {
    max-width: 100%;
  }

  .inspiration-style-brief > div {
    gap: 5px;
  }

  .client-referral-centre .client-hub-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-referral-summary {
    grid-template-columns: 1fr;
  }
}
