

#cnw-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 250;
  font-family: "Manrope", system-ui, sans-serif;
}

/* Dock to left side when user clicks the ⇔ button */
#cnw-chat.docked-left {
  right: auto;
  left: 24px;
}
#cnw-chat.docked-left .cnw-panel {
  right: auto;
  left: 0;
  border-radius: 20px;
}
#cnw-chat.docked-left .cnw-bubble {
  right: auto;
  left: 0;
  border-radius: 16px 16px 16px 4px;
}
#cnw-chat.docked-left .cnw-bubble::after {
  right: auto;
  left: 18px;
  border-left: 10px solid rgba(61, 138, 255, 0.45);
  border-right: none;
  border-top: 10px solid transparent;
  border-bottom: none;
  bottom: auto;
  /* Caret points right when docked left */
  top: auto;
}
#cnw-chat.docked-left .cnw-toggle-wrap {
  align-items: flex-start;
}

/* Dock button style */
.cnw-dock-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}
.cnw-dock-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
@media (max-width: 800px) {
  .cnw-dock-btn { display: none; }
}

.cnw-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cnw-toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(8, 9, 18, 0.92);
  border: 1px solid rgba(61, 138, 255, 0.4);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(230, 240, 255, 0.9);
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cnw-toggle-label.hidden {
  opacity: 0;
  transform: translateY(4px) scale(0.9);
}

.cnw-toggle-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.cnw-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(61, 138, 255, 0.5);
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.55), rgba(25, 90, 220, 0.45));
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(61, 138, 255, 0.4), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cnw-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(61, 138, 255, 0.55), 0 4px 12px rgba(0,0,0,0.4);
}

.cnw-toggle-icon,
.cnw-toggle-close {
  position: absolute;
  transition: opacity 0.18s ease, transform 0.22s ease;
  line-height: 1;
}

.cnw-toggle-close {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.cnw-chat.is-open .cnw-toggle-icon  { opacity: 0; transform: rotate(90deg) scale(0.6); }
.cnw-chat.is-open .cnw-toggle-close { opacity: 1; transform: rotate(0deg) scale(1); }

.cnw-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #ff1d3f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #050508;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cnw-badge.hidden { opacity: 0; transform: scale(0); pointer-events: none; }

.cnw-panel {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  width: 360px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(61, 138, 255, 0.3);
  border-radius: 20px;
  background: rgba(8, 9, 15, 0.97);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;

  
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cnw-chat.is-open .cnw-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cnw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 13px;
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.14), rgba(5, 5, 8, 0));
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.cnw-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cnw-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.35), rgba(25, 90, 220, 0.25));
  border: 1px solid rgba(61, 138, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cnw-header-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cnw-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: rgba(168, 190, 230, 0.75);
  margin: 0;
  line-height: 1;
}

.cnw-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.cnw-close-btn,
.cnw-new-btn {
  width: 44px;  /* raised from 30px to meet 44×44px touch target minimum */
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}

.cnw-new-btn { font-size: 0.82rem; }

.cnw-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cnw-close-btn:hover,
.cnw-new-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.cnw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.cnw-messages::-webkit-scrollbar { width: 4px; }
.cnw-messages::-webkit-scrollbar-track { background: transparent; }
.cnw-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.cnw-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 100%;
  animation: msgIn 0.2s ease forwards;
}

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

.cnw-msg.bot  { align-self: flex-start; }
.cnw-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.cnw-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.35), rgba(25, 90, 220, 0.25));
  border: 1px solid rgba(61, 138, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.cnw-msg-bubble {
  max-width: 240px;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.87rem;
  line-height: 1.55;
  word-break: break-word;
}

.cnw-msg.bot  .cnw-msg-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-left-radius: 4px;
  color: rgba(230, 240, 255, 0.95);
}

.cnw-msg.user .cnw-msg-bubble {
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.5), rgba(25, 90, 220, 0.4));
  border: 1px solid rgba(61, 138, 255, 0.55);
  border-bottom-right-radius: 4px;
  color: #fff;
}

.cnw-msg-bubble a {
  color: #a8caff;
  text-underline-offset: 2px;
}

.cnw-typing .cnw-msg-bubble {
  padding: 12px 16px;
}

.cnw-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.cnw-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(168, 190, 230, 0.6);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.cnw-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.cnw-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

.cnw-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 4px 36px;
  animation: msgIn 0.25s ease forwards;
}

.cnw-quick-reply {
  border: 1px solid rgba(61, 138, 255, 0.45);
  background: rgba(61, 138, 255, 0.1);
  color: #a8caff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  font-family: inherit;
  white-space: nowrap;
}

.cnw-quick-reply:hover {
  background: rgba(61, 138, 255, 0.25);
  border-color: rgba(61, 138, 255, 0.7);
  color: #fff;
}

.cnw-quote-card {
  border: 1px solid rgba(212, 168, 67, 0.35);
  background: rgba(212, 168, 67, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 4px;
  font-size: 0.83rem;
}

.cnw-quote-card h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(212, 168, 67, 0.8);
}

.cnw-quote-card .cnw-quote-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #e8c472;
}

.cnw-quote-card .cnw-quote-note {
  color: rgba(192, 210, 240, 0.7);
  font-size: 0.78rem;
  margin-top: 4px;
}

.cnw-auth-prompt {
  border: 1px solid rgba(61, 138, 255, 0.3);
  background: rgba(61, 138, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 4px;
  font-size: 0.83rem;
}

.cnw-auth-prompt p {
  margin: 0 0 10px;
  color: rgba(168, 190, 230, 0.9);
}

.cnw-auth-prompt-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cnw-auth-btn {
  flex: 1;
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.cnw-auth-btn.primary {
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.5), rgba(25, 90, 220, 0.4));
  border: 1px solid rgba(61, 138, 255, 0.65);
  color: #fff;
}

.cnw-auth-btn.primary:hover {
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.7), rgba(25, 90, 220, 0.55));
}

.cnw-auth-btn.ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(168, 190, 230, 0.9);
}

.cnw-auth-btn.ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.cnw-date-picker {
  padding: 2px 0 4px 36px;
  animation: msgIn 0.25s ease forwards;
}

.cnw-date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cnw-date-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(192, 210, 240, 0.85);
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  font-family: inherit;
}

.cnw-date-btn:hover {
  background: rgba(61, 138, 255, 0.18);
  border-color: rgba(61, 138, 255, 0.5);
  color: #fff;
}

.cnw-date-btn.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.cnw-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 10px 12px 12px;
  flex-shrink: 0;
  background: rgba(5, 5, 8, 0.6);
}

.cnw-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cnw-input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: rgba(240, 245, 255, 0.95);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}

.cnw-input:focus {
  border-color: rgba(61, 138, 255, 0.55);
  background: rgba(61, 138, 255, 0.06);
}

.cnw-input::placeholder { color: rgba(168, 190, 230, 0.35); }

.cnw-send {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(61, 138, 255, 0.5);
  background: linear-gradient(135deg, rgba(61, 138, 255, 0.5), rgba(25, 90, 220, 0.4));
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
}

.cnw-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(61, 138, 255, 0.35);
}

.cnw-footer-note {
  font-size: 0.7rem;
  color: rgba(168, 190, 230, 0.65);
  text-align: center;
  margin-top: 7px;
  letter-spacing: 0.02em;
}

.cnw-footer-note a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
  /* Expand tap target to 44px without changing visual layout */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  margin: 0 -4px;
}

.cnw-footer-note a:hover { color: #93c5fd; }

.cnw-bubble {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  background: rgba(8, 9, 18, 0.97);
  border: 1px solid rgba(61, 138, 255, 0.45);
  border-radius: 16px 16px 4px 16px;
  padding: 13px 36px 13px 15px;
  max-width: 220px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(20px);

  
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cnw-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cnw-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-top: 10px solid rgba(61, 138, 255, 0.45);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.cnw-bubble-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.07);
  color: rgba(168, 190, 230, 0.5);
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
}

.cnw-bubble-dismiss:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.cnw-bubble-name {
  margin: 0 0 3px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.cnw-bubble-sub {
  margin: 0;
  font-size: 0.76rem; /* raised from 0.74rem (11.84px) to meet 12px minimum */
  color: rgba(168, 190, 230, 0.7);
  line-height: 1.45;
}

@media (max-width: 800px) {
  #cnw-chat {
    bottom: 110px;
    right: 16px;
    left: auto;
  }

  .cnw-bubble {
    max-width: min(240px, calc(100vw - 90px));
  }

  /* Bottom-sheet panel */
  .cnw-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -8px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(61,138,255,0.18) inset;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }

  /* Drag handle */
  .cnw-panel::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    margin: 14px auto 0;
    flex-shrink: 0;
  }

  .cnw-chat.is-open .cnw-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Backdrop */
  .cnw-chat.is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: -1;
    pointer-events: auto;
  }

  /* Header */
  .cnw-header {
    padding: 16px 16px 14px;
  }

  /* Messages */
  .cnw-messages {
    padding: 14px 12px;
    gap: 12px;
  }

  /* Message bubbles — relative width on mobile */
  .cnw-msg-bubble {
    max-width: min(280px, 76%);
    font-size: 0.88rem;
  }

  /* Quick replies — bigger tap targets */
  .cnw-quick-reply {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  /* Footer — safe area for notched phones */
  .cnw-footer {
    padding: 10px 14px max(14px, env(safe-area-inset-bottom, 14px));
  }

  /* Input — font-size 16px prevents iOS auto-zoom */
  .cnw-input {
    font-size: 1rem;
    padding: 11px 14px;
    border-radius: 12px;
  }

  /* Send button — larger touch target */
  .cnw-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  /* Date/time picker — 2 columns on mobile for bigger buttons */
  .cnw-date-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cnw-date-btn {
    padding: 11px 8px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  /* Indent offset — remove avatar indent on small screens */
  .cnw-quick-replies {
    padding-left: 0;
    padding-top: 4px;
  }

  .cnw-date-picker {
    padding-left: 0;
  }
}

/* ── Issue 1: Hide "Ask Chatty" label on small phones — icon alone is self-explanatory ── */
@media (max-width: 480px) {
  .cnw-toggle-label {
    display: none;
  }
}

@media (max-width: 430px) {
  .cnw-panel { max-height: 94vh; }

  .cnw-header-title { font-size: 0.88rem; }
  .cnw-header-status { font-size: 0.68rem; }
  .cnw-avatar { width: 32px; height: 32px; font-size: 0.95rem; }

  .cnw-msg-avatar { width: 24px; height: 24px; font-size: 0.72rem; }

  .cnw-messages { padding: 12px 10px; }
  .cnw-footer { padding: 8px 12px max(12px, env(safe-area-inset-bottom, 12px)); }
}

.auth-wrap {
  width: min(440px, 92vw);
  margin: 0 auto;
  padding: 0 0 56px;
  display: grid;
  gap: 16px;
}

.auth-card {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  background: rgba(10, 12, 22, 0.92);
  box-shadow: 0 24px 80px rgba(0,0,0,0.65);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #ff1d3f, #3d8aff);
}

.auth-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 6px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.auth-logo .red  { color: #ff1d3f; }
.auth-logo .blue { color: #5fa3ff; }

.auth-tagline {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(168, 190, 230, 0.6);
  margin: 0 0 28px;
  letter-spacing: 0.03em;
}

.auth-tabs {
  display: flex;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  color: rgba(168, 190, 230, 0.6);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.auth-tab.active {
  background: rgba(61, 138, 255, 0.18);
  color: #fff;
  border-bottom: 2px solid rgba(61, 138, 255, 0.7);
}

.auth-tab:hover:not(.active) {
  background: rgba(255,255,255,0.04);
  color: rgba(240, 245, 255, 0.85);
}

.auth-form { display: grid; gap: 14px; }
.auth-form[hidden] { display: none; }

.auth-form-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  color: #fff;
}

.auth-form-sub {
  font-size: 0.86rem;
  color: rgba(168, 190, 230, 0.65);
  margin: 0 0 8px;
}

.auth-btn-row {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.auth-status {
  font-size: 0.87rem;
  padding: 10px 13px;
  border-radius: 8px;
  margin-top: 4px;
}

.auth-status.error {
  background: rgba(255, 29, 63, 0.1);
  border: 1px solid rgba(255, 29, 63, 0.35);
  color: #ffa8b8;
}

.auth-status.success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.auth-status[hidden] { display: none; }

.auth-divider {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(168, 190, 230, 0.35);
  position: relative;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-link-row {
  text-align: center;
  font-size: 0.84rem;
  color: rgba(168, 190, 230, 0.55);
  margin-top: 2px;
}

.auth-link-row a,
.auth-link-row button.auth-link {
  color: #a8caff;
  text-decoration: none;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  padding: 0;
}

.auth-link-row a:hover,
.auth-link-row button.auth-link:hover { text-decoration: underline; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: rgba(240, 245, 255, 0.85);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  text-decoration: none;
}

.btn-google:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}

.btn-google-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E") center/cover no-repeat;
}

.auth-account-info {
  display: grid;
  gap: 10px;
}

.auth-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  font-size: 0.9rem;
}

.auth-account-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.auth-account-val {
  color: rgba(230, 240, 255, 0.9);
  font-weight: 600;
}

.auth-appointments-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.auth-appt-card {
  border: 1px solid rgba(61, 138, 255, 0.22);
  background: rgba(61, 138, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.87rem;
}

.auth-appt-service {
  font-weight: 800;
  color: #a8caff;
  margin-bottom: 4px;
}

.auth-appt-detail {
  color: rgba(168, 190, 230, 0.7);
  font-size: 0.82rem;
}

.auth-appt-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.auth-appt-status.pending {
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: #e8c472;
}

.auth-appt-status.confirmed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.auth-empty {
  text-align: center;
  padding: 20px;
  color: rgba(168, 190, 230, 0.4);
  font-size: 0.87rem;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* ── Service option widgets ── */
.cnw-opts-wrap {
  padding: 10px 0 4px;
}
.cnw-opts-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(168,190,230,0.5);
  margin: 0 0 6px;
}
.cnw-opts-hint {
  font-size: 0.75rem;
  color: rgba(168,190,230,0.4);
  margin: 0 0 8px;
  font-style: italic;
}
.cnw-opts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cnw-opt-toggle {
  background: rgba(61,138,255,0.08);
  border: 1px solid rgba(61,138,255,0.25);
  border-radius: 8px;
  color: rgba(168,202,255,0.8);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.cnw-opt-toggle:hover {
  background: rgba(61,138,255,0.16);
  border-color: rgba(61,138,255,0.45);
  color: #a8caff;
}
.cnw-opt-toggle.selected {
  background: rgba(61,138,255,0.28);
  border-color: rgba(61,138,255,0.7);
  color: #c8deff;
}
.cnw-opt-continue {
  background: linear-gradient(135deg, #1e3a6e, #1a3060);
  border: 1px solid rgba(61,138,255,0.4);
  border-radius: 8px;
  color: #a8caff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.cnw-opt-continue:hover {
  background: linear-gradient(135deg, #243f7a, #1f3570);
}
