/* Betül Beyza v16 — one product language across public pages and dashboards.
   Layered AFTER the existing styles. No clinical permissions or behavior lives here. */
:root {
  --bb-burgundy:#64253f;
  --bb-burgundy-hover:#4c1831;
  --bb-rose:#b74779;
  --bb-rose-light:#fff4f8;
  --bb-edge:#ead5df;
  --bb-ink:#30212b;
  --bb-shadow:0 12px 36px rgba(89,36,64,.075);
}
html {scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
:where(button,a,input,textarea,select):focus-visible {
  outline:2.5px solid var(--bb-burgundy)!important;
  outline-offset:3px;
}
/* Restrained stronger calls to action: pale blush cards + plum action contrast. */
.cp-main .cp-btn.primary,
.adm-main .btn.primary,
.adm-shell .btn.primary,
.sc-root .sc-button.sc-primary,
body :is(.btn,.button,.primary-button).primary,
body .v9-submit,
body .auth-submit {
  background:var(--bb-burgundy)!important;
  border-color:var(--bb-burgundy)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(100,37,63,.14);
  transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.cp-main .cp-btn.primary:hover,
.adm-main .btn.primary:hover,
.adm-shell .btn.primary:hover,
.sc-root .sc-button.sc-primary:hover,
body .v9-submit:hover,
body .auth-submit:hover {
  background:var(--bb-burgundy-hover)!important;
  border-color:var(--bb-burgundy-hover)!important;
  box-shadow:0 12px 24px rgba(100,37,63,.20);
  transform:translateY(-1px);
}
:where(.cp-main,.adm-main,.sc-root) :is(button,a):disabled {
  cursor:not-allowed;
  opacity:.57;
  transform:none!important;
}
.cp-main .cp-nav button.active,.adm-side [data-nav].active,
.sc-root .sc-tab.active,.sc-root [aria-current="page"] {
  color:var(--bb-burgundy);
}
/* The visitor, consultant and community are ONE brand, not three visual templates. */
.cp-card,.adm-main .panel,.sc-root .sc-post,.sc-root .sc-composer,
.sc-root .sc-side-card {
  border-color:var(--bb-edge);
  box-shadow:var(--bb-shadow);
}
.cp-empty, .adm-main .empty-state, .sc-root .sc-empty {
  min-height:unset!important;
  padding:clamp(15px,2.1vw,23px)!important;
}
.cp-next {min-height:unset!important}
.cp-chat, .adm-main .chat-conversation {overflow:hidden}
.cp-chat .cp-card-head, .adm-main .chat-conversation .panel-head {
  padding-bottom:12px;
  border-bottom:1px solid var(--bb-edge);
}
.cp-chat-log,.adm-main .chat-log {
  display:flex;flex-direction:column;gap:12px;
  overflow:auto;overscroll-behavior:contain;
  min-height:270px;max-height:min(55dvh,560px);
  background:linear-gradient(180deg,#fffbfd 0%,#fff2f7 100%);
  border:1px solid #f1dee6;
  border-radius:16px;padding:16px;
  scroll-behavior:smooth;
}
.cp-bubble,.adm-main .chat-message {
  position:relative;line-height:1.55;
  max-width:min(83%,550px);
  padding:13px 15px;
  border:1px solid #efd9e3;
  border-radius:16px 16px 16px 5px;
  background:#fff;
  box-shadow:0 2px 9px #652b4508;
}
.cp-bubble.mine,.adm-main .chat-message.mine {
  align-self:flex-end;
  border-radius:16px 16px 5px 16px;
  color:#fff;
  border-color:var(--bb-burgundy);
  background:var(--bb-burgundy);
}
.cp-bubble.mine :is(small,button),.adm-main .chat-message.mine :is(small,button){color:#fff!important}
.cp-bubble p,.adm-main .chat-message p {margin:0;overflow-wrap:anywhere}
.cp-chat-form textarea,.adm-main .chat-composer textarea {
  border-radius:13px;
  min-height:68px;
  background:#fff;
}
.bb-chat-note {display:inline-flex;align-items:center;gap:8px;color:#806575;font-size:12px;line-height:1.5}
.bb-chat-dot{width:8px;height:8px;border-radius:50%;background:#55ae83;flex:none}
/* Shared notification: immediate feedback, clear action and comfortable reading time. */
.bb-feedback {
  position:fixed;inset:auto max(14px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) auto;
  display:flex;align-items:flex-start;gap:12px;
  width:min(440px,calc(100vw - 28px));
  padding:14px 12px 14px 15px;
  background:var(--bb-burgundy);border:1px solid #84516a;
  border-radius:16px;box-shadow:0 18px 42px #29142146;
  color:#fff;z-index:100000;
  font:500 13px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif;
  animation:bb-toast-in .22s ease-out both;
}
.bb-feedback--error {background:#842f47;border-color:#b76a7c}
.bb-feedback--warning{background:#754a29;border-color:#a47546}
.bb-feedback-icon {flex:none;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#ffffff26;color:#fff;font-weight:800}
.bb-feedback-message{flex:1;min-width:0;margin:1px 0 0;overflow-wrap:anywhere}
.bb-feedback-dismiss,.bb-feedback-action {
  flex:none;border:0;border-radius:9px;background:transparent;color:#fff;
  cursor:pointer;min-width:34px;min-height:34px;font:inherit;
}
.bb-feedback-dismiss{font-size:22px;line-height:1}
.bb-feedback-action{padding:0 8px;background:#ffffff24;font-weight:700}
.bb-feedback :is(button):hover {background:#ffffff35}
@keyframes bb-toast-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){
 .bb-feedback{left:14px;right:14px;bottom:calc(16px + env(safe-area-inset-bottom));width:auto}
 .cp-chat-log,.adm-main .chat-log{padding:12px;max-height:48dvh}
 .cp-bubble,.adm-main .chat-message{max-width:90%}
 .cp-grid-summary .cp-card{min-height:unset}
}
@media(prefers-reduced-motion:reduce){
 .bb-feedback{animation:none}
 :where(.cp-main,.adm-main,.sc-root) :is(button,a){transition:none!important;transform:none!important}
}

/* Accessible native account menus: no fake profile or disconnected navigation. */
.bb-account-menu{position:relative;min-width:0;cursor:default}
.bb-account-menu>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;border-radius:14px;padding:6px 8px;transition:background .18s ease}
.bb-account-menu>summary::-webkit-details-marker{display:none}
.bb-account-menu>summary:hover,.bb-account-menu[open]>summary{background:#f8e6ee}
.bb-account-menu .bb-account-chevron{color:#935472;margin-left:auto;font-weight:800;font-size:15px}
.bb-account-popover{position:absolute;right:0;top:calc(100% + 8px);width:min(270px,calc(100vw - 36px));z-index:100;display:flex;flex-direction:column;gap:3px;padding:9px;background:#fffdfd;border:1px solid var(--bb-edge);border-radius:16px;box-shadow:0 17px 40px #5f274529}
.bb-account-greeting{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7b5268;padding:10px 11px}
.bb-account-popover>button{width:100%;display:block;border:0;border-radius:10px;padding:11px 12px;min-height:40px;text-align:left;font:600 13px system-ui,-apple-system,'Segoe UI',sans-serif;background:transparent;color:#50283e;cursor:pointer}
.bb-account-popover>button:hover,.bb-account-popover>button:focus-visible{background:#f9eaf0}
.bb-account-popover>button:last-child{border-top:1px solid #f2dce4;border-radius:0;color:#943e5c;margin-top:4px}
.bb-admin-account>summary{padding:5px;min-height:42px}
@media(max-width:600px){.bb-account-menu.cp-top-person{display:none}}
.cp-bubble.mine :is(p,strong,small,span),
.adm-main .chat-message.mine :is(p,strong,small,span){color:#fff!important}
/* Public-site product discovery: visitor understands the two experiences before signing up. */
body .hero .actions .button:not(.secondary),body a.button.nav-cta,body .final-cta .button:not(.secondary) {
 background:var(--bb-burgundy);border-color:var(--bb-burgundy);color:white;
 box-shadow:0 9px 24px #64253f20;
}
body .hero .actions .button:not(.secondary):hover,body a.button.nav-cta:hover,body .final-cta .button:not(.secondary):hover {
 background:var(--bb-burgundy-hover);border-color:var(--bb-burgundy-hover);
}
.bb-product-entry{padding:clamp(28px,4vw,62px) 0;background:linear-gradient(180deg,#fff8fa 0%,#fff1f6 100%)}
.bb-product-entry-inner{max-width:1200px;margin:0 auto;padding:0 clamp(16px,3vw,32px)}
.bb-product-heading{max-width:760px;margin-bottom:24px}
.bb-product-heading .bb-kicker{font:800 11px/1.4 system-ui;letter-spacing:.14em;text-transform:uppercase;color:var(--bb-rose)}
.bb-product-heading h2{font:500 clamp(32px,4.5vw,58px)/1.05 'Instrument Serif',Georgia,serif;color:#32202c;margin:8px 0 12px}
.bb-product-heading p{max-width:690px;margin:0;color:#735766;line-height:1.7;font-size:clamp(13px,1.1vw,16px)}
.bb-product-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.bb-entry-card{border-radius:22px;padding:clamp(22px,3vw,38px);min-height:280px;display:flex;flex-direction:column;align-items:start;border:1px solid #e9d0dd;background:#fff;box-shadow:0 14px 40px #8a31500f}
.bb-entry-card.bb-entry-clinic{background:linear-gradient(150deg,#7b3554 0%,#4f2038 100%);color:#fff;border-color:#7b3554}
.bb-entry-icon{border-radius:13px;background:#f8e5ee;color:#743550;width:47px;height:47px;display:grid;place-items:center;font-size:24px}
.bb-entry-clinic .bb-entry-icon{background:#ffffff21;color:white}
.bb-entry-card h3{font:600 clamp(25px,3vw,34px)/1.08 'Instrument Serif',Georgia,serif;margin:16px 0 10px}
.bb-entry-card p{line-height:1.7;font-size:14px;margin:0 0 24px;max-width:450px;color:#725866}
.bb-entry-clinic p{color:#f8dbe7}
.bb-entry-card .bb-entry-cta{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;padding:12px 17px;border-radius:10px;min-height:44px;background:var(--bb-burgundy);color:#fff;font:700 13px system-ui}
.bb-entry-clinic .bb-entry-cta{background:#fff;color:#5a2340}
.bb-entry-card .bb-entry-cta:hover{transform:translateY(-1px);filter:brightness(1.08)}
.bb-entry-small{font:700 10px system-ui;letter-spacing:.12em;text-transform:uppercase;color:#ac4775;margin-top:16px}
.bb-entry-clinic .bb-entry-small{color:#f7becf}
@media(max-width:680px){.bb-product-cards{grid-template-columns:1fr}.bb-entry-card{min-height:unset}}

/* First usable action on each dashboard, without inventing patient activity. */
.bb-today-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px clamp(18px,2.4vw,31px);margin:0 0 16px;border-radius:20px;background:linear-gradient(125deg,#fffdfd 0%,#fae8ef 100%);border:1px solid #ecd3dd;box-shadow:0 12px 32px #78375112}
.bb-today-copy{flex:1;min-width:0}
.bb-today-copy h2{font:500 clamp(27px,3vw,38px)/1.08 'Instrument Serif',Georgia,serif;color:var(--bb-burgundy);margin:5px 0 8px}
.bb-today-copy p{font-size:12px;line-height:1.6;color:#725668;max-width:510px;margin:0}
.bb-today-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;max-width:540px}
.bb-today-actions .cp-btn{white-space:normal;font-size:12px}
.bb-admin-action{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 19px;padding:18px 23px;background:#fff8fb;border:1px solid #e6c7d6;border-left:5px solid var(--bb-burgundy);border-radius:14px}
.bb-admin-action strong{display:block;color:#5c2740;font-size:16px;margin:6px 0}
.bb-admin-action p{font-size:12px;line-height:1.55;color:#765a6a;margin:0}
.bb-admin-action .btn{white-space:nowrap}
@media(max-width:1000px){.bb-today-strip,.bb-admin-action{flex-direction:column;align-items:stretch}.bb-today-actions{justify-content:flex-start;max-width:none}}
.bb-entry-clinic h3,.bb-entry-clinic .bb-entry-icon{color:#fff}
