/* ELEGANT CHATBOT STYLES - LIGHT WEDDING THEME + iOS APP-LIKE EXPERIENCE
   Version: 4.6
   Modern, spacious, native iOS feel with bottom sheet on mobile
*/

:root {
    --rose-gold: var(--chatbot-gold);
    --soft-pink: #FFF6D9;
    --pink: var(--chatbot-gold);
    --deep-rose: var(--chatbot-gold-dark);
    --lavender: #F3EAD0;
    --soft-purple: var(--chatbot-gold-mid);
    --cream: #FFFCF3;
    --white: #FFFFFF;
    --text-dark: #111111;
    --text-light: #2F2F2F;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.18), 0 10px 28px var(--chatbot-gold-shadow);

    /* Gold theme */
    --chatbot-gold: #D4AF37;
    --chatbot-gold-dark: #B8860B;
    --chatbot-gold-light: #FBE7A1;
    --chatbot-gold-mid: #E8C660;
    --chatbot-gold-shadow: rgba(184, 134, 11, 0.30);
}

/* When the chatbot modal is open, prevent the page behind it from scrolling */
html.chatbot-open,
body.chatbot-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* FLOATING CHATBOT BUTTON */
.chatbot-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 75px;
    height: 75px;
    background: linear-gradient(145deg, var(--chatbot-gold-light) 0%, var(--chatbot-gold-mid) 22%, var(--chatbot-gold) 48%, var(--chatbot-gold-dark) 78%, var(--chatbot-gold-light) 100%);
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -10px 14px rgba(0, 0, 0, 0.14);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    isolation: isolate;
}

.chatbot-float-button::before {
    content: "";
    position: absolute;
    inset: -35%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
    transform: rotate(25deg);
    opacity: 0.75;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.chatbot-float-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    pointer-events: none;
    z-index: 0;
}

.chatbot-float-button .icon,
.chatbot-float-button .text {
    position: relative;
    z-index: 1;
}

.chatbot-float-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 10px 28px var(--chatbot-gold-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -12px 18px rgba(0, 0, 0, 0.12);
}

.chatbot-float-button:hover::before {
    opacity: 1;
}

.chatbot-float-button .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

.chatbot-float-button .icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.chatbot-float-button .text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* MODAL OVERLAY */
.chatbot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.chatbot-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* MAIN CONTAINER - Default (Desktop) */
.chatbot-container {
    background: var(--white);
    border-radius: 28px;
    width: 90%;
    max-width: 620px;
    height: min(85vh, 780px);
    max-height: 920px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(232, 180, 184, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

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

/* MOBILE: iOS Bottom Sheet Style */
@media (max-width: 768px) {
    .chatbot-modal {
        align-items: flex-end !important;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(12px) !important;
        padding: 0 !important;
    }

    .chatbot-container {
        width: 100% !important;
        max-width: 100% !important;
        height: calc(var(--vh, 100vh) * 0.92) !important;
        max-height: calc(var(--vh, 100vh) * 0.92) !important;
        border-radius: 28px 28px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.18) !important;
        animation: sheetSlideUp 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
        font-size: 18px !important;
        line-height: 1.65 !important;
    }

    .chatbot-container::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: rgba(0,0,0,0.25);
        border-radius: 3px;
        z-index: 10;
    }

    @keyframes sheetSlideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

/* CLOSE & BACK BUTTONS */
.chatbot-close, .chatbot-back {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rose-gold);
    color: var(--text-dark);
    cursor: pointer;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.28s ease;
}

.chatbot-close {
    top: 20px;
    right: 20px;
}

.chatbot-back {
    top: 20px;
    left: 20px;
    display: none;
}

.chatbot-modal.show-back .chatbot-back {
    display: flex;
}

.chatbot-close:hover, .chatbot-back:hover {
    background: var(--soft-pink);
    transform: scale(1.05);
}

/* HEADER */
.chat-header {
    padding: 28px 24px 20px;
    text-align: center;
}

.chat-header h1 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-dark);
}

.chat-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

/* MESSAGES AREA */
.chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 24px 24px;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.message-content {
    line-height: 1.65;
    font-size: 1.05rem;
}

/* =========================================================
   AVAILABILITY RESULT (Grand, celebratory success message)
   ========================================================= */
.availability-result-banner{
    margin: 10px 0 6px;
    padding: 18px 18px;
    border-radius: 22px;
    text-align: center;
    border: 1px solid rgba(184, 134, 11, 0.32);
    background: linear-gradient(180deg,
        rgba(251, 231, 161, 0.92) 0%,
        rgba(232, 198, 96, 0.62) 42%,
        rgba(255, 255, 255, 0.92) 100%);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    animation: celebratePop 260ms ease-out both;
}

.availability-result-banner::before{
    content:"";
    position:absolute;
    inset:-40% -20%;
    background: radial-gradient(circle at 30% 25%,
        rgba(255,255,255,0.70),
        rgba(255,255,255,0.0) 60%);
    transform: rotate(18deg);
    opacity: 0.9;
    pointer-events:none;
}

.availability-result-title{
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.15;
    color: var(--text-dark);
}

.availability-result-body{
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--text-dark);
}

.availability-result-banner.partial{
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(251, 231, 161, 0.55) 100%);
}

.availability-result-banner.unavailable{
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(0, 0, 0, 0.04) 100%);
    border-color: rgba(0,0,0,0.18);
}

@keyframes celebratePop {
    from { transform: scale(0.985); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .availability-result-title{ font-size: 1.7rem; }
    .availability-result-body{ font-size: 1.25rem; }
}



/* QUICK ACTIONS */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.quick-action-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.28s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    background: var(--chatbot-gold-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.quick-action-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* FORMS (Availability, Pricing, Contact) */
.availability-checker,
.pricing-checker,
.contact-checker,
.faq-checker {
    padding: 28px 24px;
}

.service-checkbox {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.service-checkbox label {
    font-size: 1.1rem;
    font-weight: 500;
}

.date-dropdown select {
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* BUTTONS */
.checker-btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.28s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.checker-btn.primary {
    background: linear-gradient(135deg, var(--chatbot-gold-mid), var(--chatbot-gold));
    color: #000;
}

.checker-btn.secondary {
    background: #f0f0f0;
    color: var(--text-dark);
}

.checker-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* INPUT AREA */
/* Hide the free-text input on the home screen and service flows (we show it only for FAQs) */
.chat-input-container { display: none; }
.chatbot-modal.faq-mode .chat-input-container { display: block; }

.chat-input-container {
    padding: 16px 24px 24px;
    background: inherit;
}

.input-wrapper {
    display: flex;
    background: #f8f8f8;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.08);
}

.chat-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: none;
    background: transparent;
}

.send-btn {
    width: 52px;
    background: var(--chatbot-gold);
    color: #000;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 480px) {
    .chat-header {
        padding: 32px 20px 20px;
    }
    .chat-messages {
        padding: 0 20px 20px;
    }
    .quick-actions {
        padding: 0 16px;
    }
    .quick-action-card {
        padding: 18px;
    }
}

/* ================================================
   APP-LIKE NAVIGATION TRANSITIONS (v3)
   Smooth hide/show for quick actions and forms
   ================================================ */

/* Quick actions container – fade + collapse when hiding */
.quick-actions {
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
  overflow: hidden;
  will-change: opacity, transform, max-height;
}

.quick-actions.hidden {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  max-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Fully removed from layout AFTER animation */
.quick-actions.is-gone {
  display: none !important;
}

/* Forms (checkers) – slide in */
.availability-checker,
.pricing-checker,
.contact-checker,
.faq-checker {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
  display: none;
}

.availability-checker.show,
.pricing-checker.show,
.contact-checker.show,
.faq-checker.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Back button – fade in when available */
.chatbot-back {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.chatbot-modal.show-back .chatbot-back {
  opacity: 1;
  pointer-events: auto;
}

/* ================================================
   UI OPTIMIZATION PATCH (v4.6.1)
   - Removes cramped feel, adds service grid + date row
   - Adds subtle light-gold background gradient
   ================================================ */

/* Light gold background with subtle gradient for modernity */
.chatbot-container{
    background: linear-gradient(180deg, var(--chatbot-gold-light) 0%, var(--cream) 100%);
    max-width: 700px;
}

/* Breathing room: consistent inner horizontal padding */
.chat-header{ padding-left: 28px; padding-right: 28px; }
.chat-messages{ padding: 0 32px 32px; gap: 24px; }
.quick-actions{ padding-left: 28px; padding-right: 28px; }
.availability-checker,
.pricing-checker,
.contact-checker{ padding-left: 28px; padding-right: 28px; }

/* Section spacing */
.services-section,
.date-section{ margin: 24px 0; }

/* Service checkboxes: responsive grid */
.service-checkboxes.service-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Service checkbox card */
.service-checkbox{
    margin: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Date selectors: horizontal row (wrap on small screens) */
.date-flex{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.date-dropdown{
    flex: 1;
    min-width: 120px;
}

.date-dropdown label{
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.date-dropdown select{
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #fff;
}

/* Checker buttons centered */
.checker-buttons{
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

/* Mobile tuning */

/* ================================================
   HEADER vs BODY – clearer separation
   Gives the header its own "bar" look so it feels distinct
   ================================================ */
.chat-header{
    background: rgba(255, 255, 255, 0.90);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    position: relative;
}

.chat-header::after{
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -2px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,0,0,0), var(--chatbot-gold-mid), rgba(0,0,0,0));
    opacity: 0.65;
}

/* Keep scroll area feeling like the "body" */
.chat-messages{
    background: transparent;
}

@media (max-width: 768px){
    .chat-messages{ padding: 0 20px 20px; }
    .chat-header{ padding-left: 20px; padding-right: 20px; }
    .quick-actions{ padding-left: 16px; padding-right: 16px; }

    .service-checkboxes.service-grid{
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .date-flex{
        flex-direction: column;
        gap: 12px;
    }
}

/* ================================================
   CONTACT FORM STREAMLINE
   Less overwhelming: clean 2-col grid on desktop,
   grouped sections, tighter spacing.
   ================================================ */

.contact-checker{
  padding-top: 20px !important;
  padding-bottom: 22px !important;
}

/* Group the top fields into a clean grid */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Full-width fields (email / date / notes) */
.contact-span-2{
  grid-column: 1 / -1;
}

.contact-field label{
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-dark);
}

.contact-field input,
.contact-field textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 1.02rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.98);
}

.contact-field input{
  height: 46px;
}

.contact-field textarea{
  min-height: 92px;
  resize: vertical;
}

.contact-hint{
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(0,0,0,0.62);
}

/* Put the “Services you’re interested in” into a softer card */
.contact-checker .services-section{
  margin-top: 18px;
  padding: 14px 14px 10px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(6px);
}

.contact-checker .services-section h4{
  margin: 0 0 10px;
  font-size: 1.02rem;
}

/* Make service pills a bit tighter inside contact */
.contact-checker .service-checkbox{
  padding: 12px 14px;
  border-radius: 14px;
}

/* Keep the action buttons from feeling “stuck” to the bottom */
.contact-checker .checker-buttons{
  margin-top: 18px;
}

/* Mobile: stack the grid and keep things roomy */
@media (max-width: 640px){
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-span-2{
    grid-column: auto;
  }
}

/* ================================================
   SAFE EDGE PADDING – OPTIONS NOT HUGGING SIDES
   Increases the left/right inset for ALL main sections
   (header, messages, forms, quick actions, input bar)
   ================================================ */
:root{
  --chat-safe-x: 34px;
  --chat-safe-x-mobile: 22px;
}

.chat-header,
.chat-messages,
.quick-actions,
.availability-checker,
.pricing-checker,
.contact-checker,
.chat-input-container{
  padding-left: var(--chat-safe-x) !important;
  padding-right: var(--chat-safe-x) !important;
}

/* Keep the header divider aligned with the new inset */
.chat-header::after{
  left: calc(var(--chat-safe-x) - 6px) !important;
  right: calc(var(--chat-safe-x) - 6px) !important;
}

/* A touch more room inside the “Services” card so the pills don’t feel tight */
.services-section{
  padding-left: 2px;
  padding-right: 2px;
}
.contact-checker .services-section{
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 768px){
  .chat-header,
  .chat-messages,
  .quick-actions,
  .availability-checker,
  .pricing-checker,
  .contact-checker,
  .chat-input-container{
    padding-left: var(--chat-safe-x-mobile) !important;
    padding-right: var(--chat-safe-x-mobile) !important;
  }

  .chat-header::after{
    left: calc(var(--chat-safe-x-mobile) - 4px) !important;
    right: calc(var(--chat-safe-x-mobile) - 4px) !important;
  }

  .contact-checker .services-section{
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* ================================================
   POST-AVAILABILITY ACTION BUTTONS (Hold / Contact)
   Bigger, higher-contrast buttons after date check
   ================================================ */

.post-actions {
    padding: 0 20px;
}

.post-actions-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.post-actions-title {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 6px;
}

.post-actions-sub {
    font-size: 1.0rem;
    opacity: 0.85;
    margin-bottom: 14px;
}

.post-actions-buttons {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.post-action-btn {
    flex: 1 1 200px;
    padding: 16px 18px;
    font-size: 1.05rem;
    font-weight: 750;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.post-action-btn.primary {
    background: linear-gradient(135deg, var(--chatbot-gold-mid), var(--chatbot-gold));
    color: #000;
}

.post-action-btn.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 1px solid rgba(212, 175, 55, 0.55);
}

.post-action-btn:hover {
    filter: brightness(1.02);
}

.post-action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

@media (max-width: 480px) {
    .post-actions-buttons {
        flex-direction: column;
    }
    .post-action-btn {
        width: 100%;
    }
}


/* FAQ screen */
.faq-intro {
  margin: 6px 0 14px;
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.35;
}

.faq-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.faq-pill {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.faq-pill:hover {
  transform: translateY(-1px);
}

.faq-hint {
  margin: 10px 0 18px;
  color: var(--text-light);
  font-size: 0.98rem;
  opacity: 0.95;
}

/* =====================================================
   v9 PATCH: Metallic header + safe-area padding
   (Place at end of file so it overrides earlier rules.)
   ===================================================== */

.chat-header{
  /* Metallic gold gradient (matches your original mock) */
  background: linear-gradient(180deg,
    var(--chatbot-gold-light) 0%,
    rgba(232, 198, 96, 0.95) 28%,
    rgba(212, 175, 55, 0.92) 55%,
    rgba(184, 134, 11, 0.92) 100%) !important;

  /* prevent title clipping (desktop + iOS safe-area) */
  padding-top: calc(34px + env(safe-area-inset-top)) !important;
  padding-bottom: 18px !important;
  border-bottom: 1px solid rgba(0,0,0,0.12) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10) !important;
  position: relative;
  overflow: hidden;
}

/* Sheen highlight to sell the metallic look */
.chat-header::before{
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: radial-gradient(circle at 30% 25%,
    rgba(255,255,255,0.70) 0%,
    rgba(255,255,255,0.18) 35%,
    rgba(255,255,255,0.00) 60%);
  transform: rotate(18deg);
  opacity: 0.95;
  pointer-events: none;
}

/* Keep your thin gold accent line, but make it subtler */
.chat-header::after{
  left: 24px !important;
  right: 24px !important;
  bottom: 10px !important;
  height: 3px !important;
  opacity: 0.55 !important;
}

/* Make header text crisp on the gold bar */
.chat-header h1,
.chat-header p{
  position: relative;
  z-index: 1;
}

/* Ensure close/back buttons sit inside the safe-area too */
.chatbot-close,
.chatbot-back{
  top: calc(14px + env(safe-area-inset-top)) !important;
}
