@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

/* PEG Care Concierge — separated standalone stylesheet */
#splash{pointer-events:none!important;}


/* ═══════════════════════════════════════
   PROACTIVE BUBBLE
═══════════════════════════════════════ */
#peg-bubble {
  position: fixed;
  bottom: 98px;
  right: 28px;
  background: #0e0e0e;
  border: 1px solid rgba(201,168,76,.2);
  padding: 12px 32px 12px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  z-index: 999997;
  max-width: 210px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
#peg-bubble.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
#peg-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 18px;
  border: 5px solid transparent;
  border-top-color: #0e0e0e;
  border-bottom: none;
}
#peg-bubble-gold { color: #c9a84c; font-weight: 400; }
#peg-bubble-x {
  position: absolute;
  top: 6px; right: 10px;
  background: none; border: none;
  color: rgba(255,255,255,.2);
  font-size: 14px; cursor: pointer;
  line-height: 1; padding: 0;
  font-family: 'Jost', sans-serif;
  transition: color .2s;
}
#peg-bubble-x:hover { color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════
   LAUNCHER
═══════════════════════════════════════ */
#peg-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
}

#peg-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0e0e0e;
  border: 1px solid rgba(201,168,76,.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, border-color .3s;
  padding: 0;
  overflow: hidden;
}
#peg-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 36px rgba(0,0,0,.4);
  border-color: rgba(201,168,76,.6);
}
#peg-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}
#peg-btn-icon { transition: transform .3s ease; }
#peg-btn.open #peg-btn-icon { transform: rotate(45deg); }

/* ═══════════════════════════════════════
   CHAT WINDOW
═══════════════════════════════════════ */
#peg-win {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  background: #0e0e0e;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .28s ease, transform .32s cubic-bezier(.34,1.4,.64,1);
  max-height: 580px;
}
#peg-win.open {
  opacity: 1 !important;
  pointer-events: all !important;
  transform: translateY(0) scale(1) !important;
}
#peg-win::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
#peg-win.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
#peg-hdr {
  flex-shrink: 0;
  padding: 18px 20px 16px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(201,168,76,.1);
}
#peg-hdr::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.35), transparent);
}
#peg-hdr-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
#peg-hdr-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.3);
  flex-shrink: 0;
}
#peg-hdr-logo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#peg-hdr-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(201,168,76,.45);
  margin-bottom: 3px;
}
#peg-hdr-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 300;
  color: #fff;
  letter-spacing: .03em;
  line-height: 1.1;
}
#peg-hdr-title em {
  font-style: italic;
  color: #c9a84c;
}
#peg-hdr-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}
#peg-hdr-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 8px rgba(62,207,142,.5);
}
#peg-hdr-status-txt {
  font-size: 9px;
  font-weight: 300;
  color: rgba(255,255,255,.28);
  letter-spacing: .14em;
  text-transform: uppercase;
}
#peg-hdr-divider {
  width: 24px; height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,.5), transparent);
  margin-top: 12px;
}

/* ═══════════════════════════════════════
   MESSAGES
═══════════════════════════════════════ */
#peg-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  min-height: 0;
}
#peg-msgs::-webkit-scrollbar { width: 1px; }
#peg-msgs::-webkit-scrollbar-thumb { background: rgba(201,168,76,.15); }

.pm-bot { align-self: flex-start; max-width: 92%; animation: rise .3s cubic-bezier(.22,1,.36,1); }
.pm-bot-inner {
  border-left: 1px solid rgba(201,168,76,.35);
  padding: 12px 16px;
  background: rgba(255,255,255,.025);
}
.pm-bot-label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(201,168,76,.4);
  margin-bottom: 8px;
}
.pm-bot-text {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
  font-weight: 300;
}
.pm-bot-text strong { color: #fff; font-weight: 400; }
.pm-bot-text a {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid rgba(201,168,76,.35);
  color: #c9a84c;
  padding: 9px 22px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  transition: all .2s;
}
.pm-bot-text a:hover { background: rgba(201,168,76,.08); border-color: rgba(201,168,76,.6); }

.pm-usr { align-self: flex-end; max-width: 75%; animation: rise .3s cubic-bezier(.22,1,.36,1); }
.pm-usr-inner {
  padding: 10px 14px;
  border: 1px solid rgba(201,168,76,.12);
  background: rgba(201,168,76,.04);
}
.pm-usr-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  font-weight: 300;
  text-align: right;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Typing */
.pm-typ { align-self: flex-start; }
.pm-typ-inner {
  border-left: 1px solid rgba(201,168,76,.18);
  padding: 12px 16px;
  background: rgba(255,255,255,.018);
  display: flex; align-items: center; gap: 5px;
}
.pm-typ span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(201,168,76,.5);
  animation: pulse 1.4s infinite;
}
.pm-typ span:nth-child(2) { animation-delay: .22s; }
.pm-typ span:nth-child(3) { animation-delay: .44s; }
@keyframes pulse {
  0%,60%,100% { opacity: .2; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.4); }
}

/* ═══════════════════════════════════════
   BOTTOM PANEL
═══════════════════════════════════════ */
#peg-btm {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(201,168,76,.08);
}

/* Name input */
.peg-name-area {
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.peg-name-inp {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 10px 2px;
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  outline: none;
  font-family: 'Jost', sans-serif;
  letter-spacing: .03em;
  transition: border-color .25s;
}
.peg-name-inp:focus { border-bottom-color: rgba(201,168,76,.6); }
.peg-name-inp::placeholder { color: rgba(255,255,255,.18); font-weight: 200; }
.peg-name-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,.25);
  color: rgba(201,168,76,.75);
  padding: 10px 20px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: all .2s;
}
.peg-name-btn:hover { background: rgba(201,168,76,.07); border-color: rgba(201,168,76,.55); color: #c9a84c; }

/* Goal grid */
.peg-goals {
  padding: 14px 20px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.peg-goal {
  padding: 13px 14px;
  border: 1px solid rgba(201,168,76,.1);
  background: rgba(255,255,255,.018);
  cursor: pointer;
  transition: all .2s;
}
.peg-goal:hover { border-color: rgba(201,168,76,.35); background: rgba(201,168,76,.05); }
.peg-goal-name {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.72);
  letter-spacing: .03em;
  display: block;
  margin-bottom: 3px;
}
.peg-goal-price {
  font-size: 10px;
  font-weight: 300;
  color: rgba(201,168,76,.4);
  letter-spacing: .07em;
}

/* Questions */
.peg-qs {
  padding: 6px 16px 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 100px;
  overflow-y: auto;
}
.peg-qs::-webkit-scrollbar { width: 1px; }
.peg-qs::-webkit-scrollbar-thumb { background: rgba(201,168,76,.15); }

.peg-q {
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.04);
  background: transparent;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  font-weight: 300;
  font-family: 'Jost', sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .16s;
}
.peg-q:hover { border-color: rgba(201,168,76,.22); color: rgba(255,255,255,.82); background: rgba(201,168,76,.03); }
.peg-q-arr { font-size: 14px; color: rgba(201,168,76,.2); transition: all .16s; }
.peg-q:hover .peg-q-arr { color: rgba(201,168,76,.6); transform: translateX(2px); }

/* Free type */
.peg-type-area {
  padding: 10px 20px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,.04);
}
.peg-type-inp {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: 9px 2px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  outline: none;
  font-family: 'Jost', sans-serif;
  letter-spacing: .02em;
  resize: none;
  max-height: 80px;
  line-height: 1.5;
  transition: border-color .2s;
}
.peg-type-inp:focus { border-bottom-color: rgba(201,168,76,.45); }
.peg-type-inp::placeholder { color: rgba(255,255,255,.15); font-size: 11px; font-weight: 200; letter-spacing: .04em; }
.peg-send-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,.2);
  color: rgba(201,168,76,.5);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all .2s;
}
.peg-send-btn:hover { border-color: rgba(201,168,76,.5); background: rgba(201,168,76,.07); color: #c9a84c; }
.peg-send-btn:disabled { opacity: .2; cursor: not-allowed; }

/* Email */
.peg-email-area { padding: 14px 20px 16px; }
.peg-email-label {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.22);
  margin-bottom: 10px;
}
.peg-email-row { display: flex; gap: 8px; }
.peg-email-inp {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 10px 2px;
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  outline: none;
  font-family: 'Jost', sans-serif;
  transition: border-color .2s;
}
.peg-email-inp:focus { border-bottom-color: rgba(201,168,76,.55); }
.peg-email-inp::placeholder { color: rgba(255,255,255,.18); }
.peg-email-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,.25);
  color: rgba(201,168,76,.7);
  padding: 10px 18px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: all .2s;
}
.peg-email-btn:hover { border-color: rgba(201,168,76,.55); background: rgba(201,168,76,.07); color: #c9a84c; }
.peg-email-skip {
  font-size: 9px;
  color: rgba(255,255,255,.16);
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s;
}
.peg-email-skip:hover { color: rgba(255,255,255,.38); }

/* Contact */
.peg-contact-area { padding: 12px 20px 14px; }
.peg-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,.38);
}
.peg-contact-row:last-of-type { border-bottom: none; }
.peg-contact-row a {
  color: rgba(255,255,255,.58);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s;
}
.peg-contact-row a:hover { color: #c9a84c; }
.peg-contact-icon { color: rgba(201,168,76,.35); font-size: 12px; width: 14px; }
.peg-back-btn {
  margin-top: 8px; width: 100%;
  padding: 9px; background: transparent;
  border: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.25);
  font-size: 9px; font-weight: 300;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; font-family: 'Jost', sans-serif;
  transition: all .18s;
}
.peg-back-btn:hover { border-color: rgba(201,168,76,.22); color: rgba(201,168,76,.55); }

/* Footer */
#peg-foot {
  padding: 7px 20px;
  border-top: 1px solid rgba(255,255,255,.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
#peg-foot-txt {
  font-size: 8px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.12);
}
#peg-foot a { color: rgba(201,168,76,.25); text-decoration: none; }



body{background:var(--bg,#f5f2ed)!important;}html{background:var(--bg,#f5f2ed)!important;}#peg-launcher,#peg-bubble,#peg-win{position:fixed!important;}#peg-launcher{bottom:82px!important;right:16px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;border:none!important;box-shadow:none!important;z-index:999999!important;background:none!important;}#peg-win{bottom:148px!important;right:8px!important;width:calc(100vw - 16px)!important;max-height:75vh!important;z-index:999998!important;background:#0e0e0e!important;}#peg-bubble{bottom:152px!important;right:16px!important;z-index:999997!important;}@media(min-width:769px){#peg-launcher{bottom:28px!important;right:28px!important;}#peg-win{bottom:96px!important;right:28px!important;width:360px!important;max-height:580px!important;}#peg-bubble{bottom:98px!important;right:100px!important;}}



/* ══ PEG LAUNCHER ICON — Enhanced Rounded Square ══ */
#peg-launcher{display:flex!important;flex-direction:column!important;align-items:center!important;}
#peg-notif-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:6px!important;background:linear-gradient(135deg,#e53935,#c62828);border:2px solid #f5f2ed;color:#fff;font-size:10px;font-weight:700;font-family:Jost,sans-serif;display:flex;align-items:center;justify-content:center;padding:0 4px;z-index:99999;opacity:0;transform:scale(0);transition:all .4s cubic-bezier(.34,1.56,.64,1);pointer-events:none;}
#peg-notif-badge.show{opacity:1;transform:scale(1);}
#peg-typing-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:10px 10px 10px 3px;padding:8px 13px;box-shadow:0 4px 16px rgba(0,0,0,.12);display:flex;gap:4px;align-items:center;margin-bottom:8px;opacity:0;transform:translateY(6px) scale(.94);transition:opacity .35s ease,transform .35s cubic-bezier(.22,1,.36,1);pointer-events:none;}
#peg-typing-card.show{opacity:1;transform:translateY(0) scale(1);}
#peg-typing-card .ptd{width:6px;height:6px;border-radius:50%;background:rgba(201,168,76,.65);animation:ptwave 1.3s ease-in-out infinite;}
#peg-typing-card .ptd:nth-child(2){animation-delay:.18s;}
#peg-typing-card .ptd:nth-child(3){animation-delay:.36s;}
@keyframes ptwave{0%,60%,100%{transform:translateY(0);opacity:.4;}30%{transform:translateY(-5px);opacity:1;}}
#peg-ring1,#peg-ring2{position:absolute;opacity:0;pointer-events:none;z-index:0;}
#peg-ring1{inset:-9px;border-radius:24px;border:1.5px solid rgba(201,168,76,.65);}
#peg-ring2{inset:-18px;border-radius:30px;border:1px solid rgba(201,168,76,.3);}
#peg-ring1.beat{animation:pegHeartbeat 2.2s ease-in-out infinite;}
#peg-ring2.beat{animation:pegHeartbeat 2.2s ease-in-out infinite .15s;}
@keyframes pegHeartbeat{0%{transform:scale(.88);opacity:0;}10%{transform:scale(1);opacity:.9;}20%{transform:scale(.94);opacity:.6;}30%{transform:scale(1.03);opacity:.8;}50%{transform:scale(1);opacity:.2;}100%{transform:scale(.88);opacity:0;}}
#peg-ripple{position:absolute;inset:-26px;border-radius:36px;border:1px solid rgba(201,168,76,.15);opacity:0;pointer-events:none;z-index:0;}
#peg-ripple.beat{animation:pegRipple 2.2s ease-out infinite .1s;}
@keyframes pegRipple{0%{transform:scale(.88);opacity:.5;}40%{transform:scale(1.15);opacity:.2;}70%{transform:scale(1.28);opacity:0;}100%{transform:scale(.88);opacity:0;}}
#peg-btn{width:62px!important;height:62px!important;border-radius:16px!important;background:linear-gradient(145deg,#1a1814,#0e0d0b)!important;border:1.5px solid rgba(201,168,76,.5)!important;box-shadow:0 8px 32px rgba(0,0,0,.4),0 2px 8px rgba(0,0,0,.2),inset 0 1px 0 rgba(201,168,76,.2),inset 0 0 20px rgba(201,168,76,.06)!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;position:relative!important;z-index:1!important;cursor:pointer!important;transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s ease!important;}
#peg-btn:hover{transform:scale(1.08) translateY(-2px)!important;box-shadow:0 16px 48px rgba(0,0,0,.5),0 4px 16px rgba(0,0,0,.3),inset 0 1px 0 rgba(201,168,76,.3),inset 0 0 24px rgba(201,168,76,.1)!important;}
#peg-btn:active{transform:scale(.94) translateY(1px)!important;box-shadow:0 4px 16px rgba(0,0,0,.3)!important;transition:transform .1s ease,box-shadow .1s ease!important;}
#peg-btn.shake{animation:pegShake .5s ease-in-out!important;}
@keyframes pegShake{0%,100%{transform:translateX(0);}20%{transform:translateX(-4px);}40%{transform:translateX(4px);}60%{transform:translateX(-3px);}80%{transform:translateX(3px);}}
#peg-btn img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:14px!important;display:block!important;}
#peg-online-dot{position:absolute;bottom:3px;right:3px;width:13px;height:13px;border-radius:50%;background:#4caf50;border:2px solid #1a1814;box-shadow:0 0 8px rgba(76,175,80,.7);animation:pegDotPulse 2s ease-in-out infinite;z-index:2;pointer-events:none;}
@keyframes pegDotPulse{0%,100%{box-shadow:0 0 6px rgba(76,175,80,.5);}50%{box-shadow:0 0 14px rgba(76,175,80,.9);}}
#peg-sarah-label{font-family:Jost,sans-serif;font-size:9px;font-weight:400;letter-spacing:.12em;text-transform:uppercase;color:rgba(201,168,76,.8);white-space:nowrap;margin-top:7px;opacity:0;transform:translateY(4px);transition:opacity .6s ease,transform .6s ease;}
#peg-sarah-label.show{opacity:1;transform:translateY(0);}
#peg-launcher{display:flex!important;flex-direction:column!important;align-items:center!important;}



/* ════════════════════════════════
   IVORY & NAVY — COLOR OVERRIDES ONLY
   No layout, no positioning changes
   ════════════════════════════════ */

/* Chat window background */
#peg-win { background: #f8f5f0 !important; }

/* Header — dark navy */
#peg-hdr {
  background: linear-gradient(160deg, #0d0d1a, #141428) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
#peg-hdr::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
#peg-hdr-top { position: relative; z-index: 1; }
#peg-hdr-wordmark {
  color: #ffffff !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#peg-hdr-title {
  color: rgba(201,168,76,.55) !important;
  font-style: normal !important;
}
#peg-hdr-x {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.4) !important;
}
#peg-hdr-status {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 8px !important;
  position: relative !important;
  z-index: 1 !important;
}
#peg-hdr-dot {
  background: #4caf50 !important;
  box-shadow: 0 0 8px rgba(76,175,80,.7) !important;
}

/* Sarah name/role in header */
#peg-hdr-status span {
  color: rgba(255,255,255,.35) !important;
}

/* Messages area */
#peg-msgs { background: #f8f5f0 !important; }

/* Bot message bubbles — white cards */
.pm-bot-inner {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.07) !important;
  border-left: 2px solid rgba(201,168,76,.55) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
.pm-bot-label {
  color: rgba(0,0,0,.3) !important;
}
.pm-bot-text {
  color: #2a2620 !important;
  font-size: 14px !important;
}

/* User message bubbles — dark navy */
.pm-usr-inner {
  background: linear-gradient(135deg, #0d0d1a, #181830) !important;
  box-shadow: 0 4px 16px rgba(13,13,26,.2) !important;
}
.pm-usr-text {
  color: rgba(255,255,255,.9) !important;
  font-size: 14px !important;
}

/* Typing indicator */
.pm-typ-inner {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.07) !important;
  border-left: 2px solid rgba(201,168,76,.4) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
.pm-typ-inner span {
  background: rgba(201,168,76,.6) !important;
}

/* Bottom area */
#peg-btm { background: rgba(244,240,234,.98) !important; }
#peg-prog-pins {
  background: rgba(244,240,234,.98) !important;
  border-top: 1px solid rgba(0,0,0,.05) !important;
}

/* Suggestion buttons */
.peg-q {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  color: rgba(0,0,0,.6) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
  font-size: 13px !important;
}
.peg-q:hover {
  border-color: rgba(201,168,76,.35) !important;
  color: rgba(0,0,0,.85) !important;
  box-shadow: 0 2px 12px rgba(201,168,76,.1) !important;
}
.peg-q-arr { color: rgba(201,168,76,.55) !important; }

/* Input field */
.peg-type-inp {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.09) !important;
  color: #2a2620 !important;
  font-size: 13.5px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
}
.peg-type-inp::placeholder { color: rgba(0,0,0,.25) !important; }
.peg-type-inp:focus {
  border-color: rgba(201,168,76,.4) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.1) !important;
}

/* Send button */
.peg-send-btn {
  background: linear-gradient(135deg, #0d0d1a, #181830) !important;
  box-shadow: 0 2px 8px rgba(13,13,26,.25) !important;
}
.peg-send-btn svg { stroke: rgba(201,168,76,.9) !important; }

/* Warning/countdown bar */
#peg-warn-bar {
  background: rgba(244,240,234,.97) !important;
  border-top: 1px solid rgba(201,168,76,.15) !important;
}
#peg-countdown {
  background: rgba(244,240,234,.97) !important;
  border-top: 1px solid rgba(201,168,76,.15) !important;
}

/* Intake links */
#peg-msgs a {
  background: linear-gradient(135deg, #0d0d1a, #181830) !important;
  color: rgba(255,255,255,.85) !important;
}

/* Contact options */
.peg-email-inp { color: #2a2620 !important; }
.peg-email-btn {
  background: linear-gradient(135deg, #0d0d1a, #181830) !important;
  color: rgba(255,255,255,.85) !important;
}
.peg-contact-row { color: rgba(0,0,0,.6) !important; }
.peg-contact-row a { color: rgba(0,0,0,.65) !important; }
.peg-back-btn {
  background: rgba(0,0,0,.05) !important;
  border-color: rgba(0,0,0,.08) !important;
  color: rgba(0,0,0,.5) !important;
}



/* Program pins — smaller and subtle */
#peg-prog-pins {
  padding: 5px 16px 9px !important;
}
#peg-prog-pins > div:first-child {
  font-size: 8px !important;
  letter-spacing: .12em !important;
  color: rgba(0,0,0,.25) !important;
  margin-bottom: 4px !important;
}
#peg-prog-pins .peg-q,
#peg-prog-pins button {
  padding: 5px 10px !important;
  font-size: 11px !important;
  color: rgba(0,0,0,.45) !important;
  border-color: rgba(0,0,0,.1) !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.7) !important;
  box-shadow: none !important;
  margin-bottom: 3px !important;
}
#peg-prog-pins .peg-q:hover,
#peg-prog-pins button:hover {
  color: rgba(0,0,0,.7) !important;
  border-color: rgba(201,168,76,.3) !important;
  background: #fff !important;
}



/* Warn bar — ivory design fix */
#peg-warn-bar {
  background: rgba(244,240,234,.98) !important;
  border-top: 1px solid rgba(201,168,76,.2) !important;
  padding: 8px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}
#peg-warn-bar span,
#peg-warn-bar #peg-warn-txt {
  font-family: Jost, sans-serif !important;
  font-size: 11px !important;
  color: rgba(0,0,0,.5) !important;
  letter-spacing: .05em !important;
}
#peg-warn-stay {
  font-family: Jost, sans-serif !important;
  font-size: 11px !important;
  padding: 5px 12px !important;
  background: rgba(201,168,76,.12) !important;
  border: 1px solid rgba(201,168,76,.35) !important;
  color: rgba(140,100,20,.9) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  letter-spacing: .05em !important;
}



/* Countdown warn bar — visible on ivory design */
#peg-warn-bar {
  background: #1a1814 !important;
  border-top: 1px solid rgba(201,168,76,.2) !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}
#peg-warn-bar span,
#peg-warn-txt {
  font-family: Jost, sans-serif !important;
  font-size: 11px !important;
  color: rgba(255,255,255,.6) !important;
  letter-spacing: .06em !important;
}
#peg-warn-stay {
  font-family: Jost, sans-serif !important;
  font-size: 11px !important;
  padding: 5px 14px !important;
  background: rgba(201,168,76,.15) !important;
  border: 1px solid rgba(201,168,76,.4) !important;
  color: rgba(201,168,76,.9) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  letter-spacing: .06em !important;
  white-space: nowrap !important;
}
#peg-warn-stay:hover {
  background: rgba(201,168,76,.25) !important;
}



/* Footer URL + phone — ivory design fix */
#peg-foot { background: rgba(244,240,234,.98) !important; border-top: 1px solid rgba(0,0,0,.06) !important; }
#peg-foot-txt { color: rgba(0,0,0,.3) !important; }
#peg-foot a { color: rgba(0,0,0,.4) !important; text-decoration: none !important; }
#peg-foot a:hover { color: rgba(201,168,76,.8) !important; }



/* ════════════════════════════════════════
   VISUAL POLISH — CHANGES 1-7
   ════════════════════════════════════════ */

/* ── 1. SARAH label separator — gold line ── */
.pm-bot-label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(0,0,0,.35) !important;
  font-size: 9px !important;
  letter-spacing: .12em !important;
  margin-bottom: 6px !important;
}
.pm-bot-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,.2);
}

/* ── 2. Remove avatar, replace with PE logo ── */
#peg-sarah-avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 1px solid rgba(201,168,76,.35) !important;
  background: #1a1814 !important;
  flex-shrink: 0 !important;
}
#peg-sarah-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ── 3. Message bubble border radius ── */
.pm-bot-inner {
  border-radius: 8px 14px 14px 14px !important;
}
.pm-usr-inner {
  border-radius: 14px 14px 8px 14px !important;
}

/* ── 4. OR JUST PICK ONE TO START — cleaner ── */
#peg-prog-pins > div:first-child,
.prog-section-label {
  font-size: 9px !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(0,0,0,.3) !important;
  margin-bottom: 5px !important;
}

/* ── 5. Send button gold border ── */
.peg-send-btn {
  border: 1px solid rgba(201,168,76,.3) !important;
}
.peg-send-btn:hover {
  border-color: rgba(201,168,76,.5) !important;
}

/* ── 6. Quick start buttons fade in ── */
#peg-qs-wrap {
  animation: none;
}
#peg-qs-wrap.visible {
  animation: qsFadeIn .5s cubic-bezier(.22,1,.36,1) both !important;
}
@keyframes qsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 7. Typing delay visual — longer pause dots ── */
.pm-typ-inner span {
  animation-duration: 1.6s !important;
}
.pm-typ-inner span:nth-child(2) { animation-delay: .22s !important; }
.pm-typ-inner span:nth-child(3) { animation-delay: .44s !important; }

/* ── OPEN/CLOSE animation — softer fade + slide ── */
#peg-win {
  transition: opacity .35s cubic-bezier(.22,1,.36,1),
              transform .35s cubic-bezier(.22,1,.36,1) !important;
}
#peg-win.open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}




/* Mobile — full screen overlay so page doesn't show through */
@media(max-width:768px){
  #peg-win{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100vw!important;
    max-width:100vw!important;
    height:100vh!important;
    max-height:100vh!important;
    border-radius:0!important;
    z-index:999998!important;
  }
  #peg-msgs{
    flex:1!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  /* Close button more prominent on mobile */
  #peg-hdr-x{
    width:34px!important;
    height:34px!important;
    font-size:18px!important;
  }
  /* Launcher icon slightly smaller on mobile */
  #peg-btn{
    width:56px!important;
    height:56px!important;
    border-radius:14px!important;
  }
  #peg-btn img{border-radius:12px!important;}
}



/* ── MOBILE KEYBOARD FIX ── */
@media(max-width:768px){
  /* Use dynamic viewport height so keyboard doesn't push content off */
  #peg-win{
    height:100dvh!important;
    height:-webkit-fill-available!important;
    max-height:100dvh!important;
  }
  /* Messages area shrinks when keyboard opens */
  #peg-msgs{
    flex:1 1 0%!important;
    min-height:0!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  /* Bottom area stays anchored — never gets pushed off */
  #peg-btm{
    flex-shrink:0!important;
    position:relative!important;
  }
  #peg-prog-pins{
    flex-shrink:0!important;
  }
  /* Input row stays visible */
  .peg-type-area{
    padding-bottom:max(12px, env(safe-area-inset-bottom))!important;
  }
  /* Send button always visible */
  .peg-send-btn{
    flex-shrink:0!important;
  }
}



/* ── MOBILE INPUT ROW FIX — send button always visible ── */
@media(max-width:768px){
  .peg-type-area{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    padding:10px 12px 12px!important;
    gap:8px!important;
    width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .peg-type-inp{
    flex:1 1 auto!important;
    min-width:0!important; /* Prevents input from overflowing */
    max-width:calc(100% - 56px)!important;
    font-size:16px!important; /* Prevents iOS zoom on focus */
  }
  .peg-send-btn{
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    flex-shrink:0!important;
  }
}



/* ── MOBILE CLOSE BUTTON — always visible ── */
@media(max-width:768px){
  #peg-hdr-x{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border-radius:8px!important;
    background:rgba(255,255,255,.12)!important;
    border:1px solid rgba(255,255,255,.15)!important;
    color:#fff!important;
    font-size:20px!important;
    cursor:pointer!important;
    align-items:center!important;
    justify-content:center!important;
    flex-shrink:0!important;
    z-index:999999!important;
  }
  /* Make header row space out properly on mobile */
  #peg-hdr-top{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
  }
  /* Add a prominent close bar at very top on mobile */
  #peg-mobile-close-bar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding:10px 16px 6px!important;
    background:linear-gradient(160deg,#0d0d1a,#141428)!important;
  }
  #peg-mobile-close-bar span{
    font-family:Jost,sans-serif!important;
    font-size:11px!important;
    letter-spacing:.12em!important;
    text-transform:uppercase!important;
    color:rgba(255,255,255,.35)!important;
  }
  #peg-mobile-close-btn{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    padding:7px 14px!important;
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:20px!important;
    color:rgba(255,255,255,.6)!important;
    font-size:12px!important;
    font-family:Jost,sans-serif!important;
    cursor:pointer!important;
    letter-spacing:.04em!important;
  }
}
@media(min-width:769px){
  #peg-mobile-close-bar{display:none!important;}
}



@media(max-width:768px){
  #peg-btm{
    display:block!important;
    visibility:visible!important;
    min-height:60px!important;
    flex-shrink:0!important;
  }
  .peg-type-area{
    display:flex!important;
    visibility:visible!important;
  }
  .peg-type-inp{
    display:block!important;
    visibility:visible!important;
    min-height:44px!important;
  }
}
