/* Opulent Life Chat Widget — chat.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Notification ── */
#olc-notif {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 999999;
    background: #1a1a18;
    color: #f0ead8;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
    border-radius: 12px 12px 0 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28);
    border: 1px solid rgba(138,115,85,0.3);
    white-space: nowrap;
    cursor: pointer;
    display: none;
    animation: olc-fadeup 0.45s cubic-bezier(.22,1,.36,1) forwards;
}
#olc-notif::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 12px;
    border: 7px solid transparent;
    border-top-color: #1a1a18;
    border-bottom: 0;
}
@keyframes olc-fadeup {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Bubble ── */
#olc-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background: #1a1a18;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 28px rgba(0,0,0,0.38), 0 0 0 1px rgba(138,115,85,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999998;
}
#olc-bubble:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(138,115,85,0.55);
}
#olc-bubble svg { position: absolute; transition: opacity 0.25s, transform 0.3s; }
#olc-bubble .olc-icon-chat  { opacity: 1; transform: rotate(0deg); }
#olc-bubble .olc-icon-close { opacity: 0; transform: rotate(-90deg); }
#olc-bubble.olc-open .olc-icon-chat  { opacity: 0; transform: rotate(90deg); }
#olc-bubble.olc-open .olc-icon-close { opacity: 1; transform: rotate(0deg); }
#olc-bubble::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(138,115,85,0.45);
    animation: olc-ring 2.8s ease-in-out infinite;
    pointer-events: none;
}
#olc-bubble.olc-open::before { display: none; }
@keyframes olc-ring {
    0%,100% { transform:scale(1); opacity:0.6; }
    50%      { transform:scale(1.15); opacity:0; }
}

/* ── Panel ── */
#olc-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 375px;
    max-height: 570px;
    background: #0f0f0d;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 28px 72px rgba(0,0,0,0.6), 0 0 0 1px rgba(138,115,85,0.2);
    z-index: 999997;
    transform: scale(0.88) translateY(24px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(.22,1,.36,1), opacity 0.3s ease;
}
#olc-panel.olc-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Header */
.olc-header {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, #1a1a18 0%, #111110 100%);
    border-bottom: 1px solid rgba(138,115,85,0.2);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}
.olc-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #8a7355 0%, #5c4d38 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem; color: #f0ead8; font-weight: 600;
    flex-shrink: 0;
}
.olc-header-text { flex: 1; }
.olc-header-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; font-weight: 600;
    color: #f0ead8; letter-spacing: 0.03em;
}
.olc-header-sub {
    font-size: 0.7rem; color: #8a7355;
    letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px;
}
.olc-header-status {
    font-size: 0.68rem; color: #666;
    display: flex; align-items: center; gap: 0.3rem; margin-top: 3px;
}
.olc-dot {
    width: 6px; height: 6px;
    background: #4ade80; border-radius: 50%;
    animation: olc-blink 2.2s ease-in-out infinite;
}
@keyframes olc-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Messages */
.olc-messages {
    flex: 1; overflow-y: auto;
    padding: 1.1rem;
    display: flex; flex-direction: column; gap: 0.8rem;
    scroll-behavior: smooth;
}
.olc-messages::-webkit-scrollbar { width: 3px; }
.olc-messages::-webkit-scrollbar-thumb { background: #2a2a28; border-radius: 4px; }

.olc-msg {
    display: flex; flex-direction: column;
    max-width: 84%;
    animation: olc-pop 0.28s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes olc-pop {
    from { opacity:0; transform:translateY(7px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
.olc-msg.olc-user { align-self: flex-end; align-items: flex-end; }
.olc-msg.olc-bot  { align-self: flex-start; align-items: flex-start; }

.olc-bub {
    padding: 0.7rem 1rem; border-radius: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem; line-height: 1.6;
    word-break: break-word;
}
.olc-msg.olc-user .olc-bub {
    background: #8a7355; color: #f9f4ea;
    border-bottom-right-radius: 4px;
}
.olc-msg.olc-bot .olc-bub {
    background: #1c1c1a; color: #ddd8cc;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(138,115,85,0.15);
}
.olc-time {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.63rem; color: #444;
    margin-top: 3px; padding: 0 3px;
}

/* Typing */
.olc-typing .olc-bub {
    background: #1c1c1a;
    border: 1px solid rgba(138,115,85,0.15);
    padding: 0.8rem 1rem;
}
.olc-dots { display: flex; gap: 4px; align-items: center; }
.olc-dots span {
    width: 6px; height: 6px;
    background: #8a7355; border-radius: 50%;
    opacity: 0.5;
    animation: olc-dotb 1.2s ease-in-out infinite;
}
.olc-dots span:nth-child(2) { animation-delay: 0.2s; }
.olc-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes olc-dotb {
    0%,60%,100% { transform:translateY(0); opacity:0.4; }
    30% { transform:translateY(-5px); opacity:1; }
}

/* Quick replies */
.olc-qr-row {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    padding: 0 1.1rem 0.8rem;
    flex-shrink: 0;
}
.olc-qr {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.73rem; padding: 0.32rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(138,115,85,0.35);
    color: #8a7355; border-radius: 999px;
    cursor: pointer; letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.olc-qr:hover { background: #8a7355; color: #f9f4ea; border-color: #8a7355; }

/* Input */
.olc-input-row {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(138,115,85,0.15);
    background: #111110;
    display: flex; align-items: flex-end; gap: 0.6rem;
    flex-shrink: 0;
}
#olc-input {
    flex: 1;
    background: #1c1c1a;
    border: 1px solid rgba(138,115,85,0.2);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    color: #ddd8cc;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    resize: none; outline: none;
    max-height: 100px;
    transition: border-color 0.2s;
    line-height: 1.4;
}
#olc-input::placeholder { color: #3a3a38; }
#olc-input:focus { border-color: rgba(138,115,85,0.5); }

#olc-send {
    width: 36px; height: 36px;
    background: #8a7355; border: none;
    border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}
#olc-send:hover { background: #9e8665; transform: scale(1.05); }
#olc-send:disabled { background: #2a2a28; cursor: not-allowed; transform: none; }

.olc-foot {
    text-align: center; padding: 0.45rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.62rem; color: #2e2e2c;
    letter-spacing: 0.04em; text-transform: uppercase;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 420px) {
    #olc-panel { width: calc(100vw - 20px); right: 10px; bottom: 86px; }
    #olc-bubble { right: 14px; bottom: 16px; }
    #olc-notif  { right: 14px; bottom: 84px; }
}
