@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap"); #nc-widget-btn {
position: fixed;
bottom: 24px;
right: 24px;
width: 56px;
height: 56px;
border-radius: 50%;
background: linear-gradient(135deg, #D7B46A, #b8923e);
color: #0B1020;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8px 28px rgba(215,180,106,.35);
z-index: 99998;
transition: transform .2s, box-shadow .2s;
}
#nc-widget-btn:hover {
transform: scale(1.08);
box-shadow: 0 12px 36px rgba(215,180,106,.45);
}
#nc-widget-btn svg { width: 24px; height: 24px; } #nc-widget-badge {
position: absolute;
top: -3px; right: -3px;
background: #EF4444;
color: #fff;
font-size: 11px;
font-weight: 800;
min-width: 18px;
height: 18px;
border-radius: 100px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 4px;
display: none;
} #nc-widget-window {
position: fixed;
bottom: 90px;
right: 24px;
width: 360px;
height: 520px;
background: #0F1623;
border: 1px solid rgba(255,255,255,.08);
border-radius: 20px;
box-shadow: 0 24px 80px rgba(0,0,0,.7);
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 99997;
font-family: 'DM Sans', sans-serif;
opacity: 0;
transform: translateY(20px) scale(.95);
pointer-events: none;
transition: opacity .25s ease, transform .25s ease;
}
#nc-widget-window.open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: all;
}
@media (max-width: 420px) {
#nc-widget-window {
width: calc(100vw - 24px);
right: 12px;
bottom: 80px;
height: 70vh;
}
} .nc-w-header {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
background: #131C2E;
border-bottom: 1px solid rgba(255,255,255,.06);
flex-shrink: 0;
}
.nc-w-avatar {
width: 38px; height: 38px; border-radius: 50%;
background: linear-gradient(135deg,rgba(215,180,106,.3),rgba(215,180,106,.1));
border: 1px solid rgba(215,180,106,.35);
color: #D7B46A;
display: flex; align-items: center; justify-content: center;
font-size: 16px; flex-shrink: 0;
}
.nc-w-info { flex: 1; }
.nc-w-name { font-size: 14px; font-weight: 600; color: #E8E2D8; }
.nc-w-status {
font-size: 11px;
display: flex; align-items: center; gap: 5px;
margin-top: 2px;
}
.nc-w-status-dot {
width: 7px; height: 7px; border-radius: 50%;
}
.nc-w-status-dot.online  { background: #46E6A6; box-shadow: 0 0 5px #46E6A6; animation: nc-w-pulse 2s infinite; }
.nc-w-status-dot.offline { background: #6B7280; }
@keyframes nc-w-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.nc-w-status-text { color: #7A849A; }
.nc-w-close {
background: none; border: none;
color: #7A849A; cursor: pointer;
padding: 4px; border-radius: 6px;
display: flex; align-items: center; justify-content: center;
transition: color .15s, background .15s;
}
.nc-w-close:hover { color: #E8E2D8; background: rgba(255,255,255,.06); }
.nc-w-close svg { width: 16px; height: 16px; } .nc-w-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
}
.nc-w-messages::-webkit-scrollbar { width: 3px; }
.nc-w-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }
.nc-wm {
display: flex;
align-items: flex-end;
gap: 7px;
animation: nc-wm-in .2s ease;
}
@keyframes nc-wm-in { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
.nc-wm--agent { flex-direction: row; }
.nc-wm--visitor { flex-direction: row-reverse; }
.nc-wm-av {
width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
background: rgba(215,180,106,.12);
border: 1px solid rgba(215,180,106,.2);
color: #D7B46A; font-size: 10px; font-weight: 700;
display: flex; align-items: center; justify-content: center;
}
.nc-wm-bubble {
max-width: 80%;
padding: 9px 13px;
border-radius: 16px;
word-break: break-word;
position: relative;
}
.nc-wm--agent .nc-wm-bubble {
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.07);
border-radius: 4px 16px 16px 16px;
}
.nc-wm--visitor .nc-wm-bubble {
background: rgba(215,180,106,.12);
border: 1px solid rgba(215,180,106,.2);
border-radius: 16px 4px 16px 16px;
}
.nc-wm-bubble p {
margin: 0; font-size: 13px; color: #E8E2D8; line-height: 1.5;
}
.nc-wm-bubble .nc-wm-time {
display: block; font-size: 10px; color: #4A5568;
margin-top: 3px; text-align: right;
}
.nc-wm-img {
max-width: 180px; max-height: 180px;
border-radius: 8px; display: block; cursor: pointer;
margin-bottom: 5px;
} .nc-w-form {
padding: 14px 16px;
border-top: 1px solid rgba(255,255,255,.06);
background: #0F1623;
flex-shrink: 0;
}
.nc-w-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.nc-w-form-input {
background: rgba(255,255,255,.05);
border: 1px solid rgba(255,255,255,.1);
border-radius: 8px; padding: 8px 12px;
color: #E8E2D8; font-family: 'DM Sans',sans-serif; font-size: 13px;
outline: none; width: 100%; box-sizing: border-box;
transition: border-color .2s;
}
.nc-w-form-input:focus { border-color: rgba(215,180,106,.4); }
.nc-w-form-input::placeholder { color: #4A5568; } .nc-w-input-area {
padding: 10px 12px 12px;
background: #131C2E;
border-top: 1px solid rgba(255,255,255,.06);
flex-shrink: 0;
}
.nc-w-img-preview {
position: relative; display: inline-block; margin-bottom: 7px;
}
.nc-w-img-preview img { max-height: 60px; border-radius: 6px; display: block; }
.nc-w-img-preview button {
position: absolute; top: -5px; right: -5px;
width: 17px; height: 17px; border-radius: 50%;
background: #EF4444; color: #fff; border: none; font-size: 9px;
cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nc-w-input-row { display: flex; align-items: flex-end; gap: 7px; }
.nc-w-upload {
display: flex; align-items: center; justify-content: center;
width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
cursor: pointer; transition: background .15s;
}
.nc-w-upload:hover { background: rgba(255,255,255,.1); }
.nc-w-upload svg { width: 15px; height: 15px; color: #7A849A; }
.nc-w-textarea {
flex: 1; background: rgba(255,255,255,.05);
border: 1px solid rgba(255,255,255,.1);
border-radius: 10px; padding: 8px 12px;
color: #E8E2D8; font-family: 'DM Sans',sans-serif; font-size: 13px;
resize: none; outline: none; max-height: 100px; overflow-y: auto;
transition: border-color .2s;
line-height: 1.4;
}
.nc-w-textarea:focus { border-color: rgba(215,180,106,.4); }
.nc-w-textarea::placeholder { color: #4A5568; }
.nc-w-send {
width: 34px; height: 34px; border-radius: 100px; flex-shrink: 0;
background: linear-gradient(135deg,#D7B46A,#b8923e);
color: #0B1020; border: none; cursor: pointer;
display: flex; align-items: center; justify-content: center;
transition: opacity .15s, transform .15s;
}
.nc-w-send:hover { opacity: .9; transform: scale(1.05); }
.nc-w-send:disabled { opacity: .5; cursor: default; transform: none; }
.nc-w-send svg { width: 14px; height: 14px; } .nc-w-offline-notice {
padding: 10px 14px;
background: rgba(215,180,106,.06);
border-top: 1px solid rgba(215,180,106,.12);
border-bottom: 1px solid rgba(215,180,106,.12);
font-size: 12px;
color: rgba(215,180,106,.8);
line-height: 1.5;
text-align: center;
flex-shrink: 0;
} .nc-typing {
display: flex; align-items: center; gap: 5px;
padding: 8px 12px;
font-size: 12px; color: #7A849A;
}
.nc-typing-dots span {
display: inline-block; width: 5px; height: 5px;
background: #7A849A; border-radius: 50%;
animation: nc-bounce .9s infinite;
}
.nc-typing-dots span:nth-child(2) { animation-delay: .15s; }
.nc-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes nc-bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }