/* YROG site chat */
.yc { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 150; font-family: "DM Sans", system-ui, sans-serif; }
.yc-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #0A0E1A; background: linear-gradient(140deg, #F0D58F, #D4AF64 55%, #B98E3E); box-shadow: 0 14px 34px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.15) inset; transition: transform .25s; position: relative; }
.yc-fab:hover { transform: translateY(-2px) scale(1.04); }
.yc-fab svg { width: 26px; height: 26px; fill: currentColor; }
.yc-fab::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(212,175,100,0.5); animation: yc-pulse 2.4s infinite; }
.yc.open .yc-fab::after { display: none; }
@keyframes yc-pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.yc-fab-x { display: none; font-size: 2rem; line-height: 1; }
.yc.open .yc-fab-i { display: none; } .yc.open .yc-fab-x { display: block; }
.yc-panel { position: absolute; right: 0; bottom: 74px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #0D1220; color: #F4F4F5; border: 1px solid rgba(212,175,100,0.25); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.75); animation: yc-in .25s cubic-bezier(.2,.7,.2,1); }
.yc-panel[hidden] { display: none; }
@keyframes yc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.yc-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: linear-gradient(135deg, rgba(212,175,100,0.16), rgba(192,132,252,0.10)); border-bottom: 1px solid rgba(255,255,255,0.07); }
.yc-logo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #0A0E1A; color: #D4AF64; font-family: Georgia, serif; font-weight: 700; border: 1px solid rgba(212,175,100,0.4); }
.yc-head div { flex: 1; display: grid; min-width: 0; }
.yc-head b { font-family: Georgia, serif; font-size: 1.05rem; }
.yc-head small { color: #A1A1AA; font-size: .78rem; }
.yc-ai { font-size: .68rem; font-weight: 800; color: #34D399; border: 1px solid rgba(52,211,153,0.4); padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; }
.yc-close { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.06); color: #E4E4E7; font-size: 1.3rem; cursor: pointer; }
.yc-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.yc-msg { max-width: 86%; padding: .65rem .85rem; border-radius: 16px; font-size: .93rem; line-height: 1.45; animation: yc-in .25s both; }
.yc-msg.bot { align-self: flex-start; background: #161C2C; border: 1px solid rgba(255,255,255,0.06); border-bottom-left-radius: 6px; }
.yc-msg.me { align-self: flex-end; background: #D4AF64; color: #0A0E1A; font-weight: 600; border-bottom-right-radius: 6px; }
.yc-msg a { color: #E9C97C; text-decoration: underline; }
.yc-typing { display: inline-flex; gap: 4px; } .yc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #71717A; animation: yc-dot 1s infinite; }
.yc-typing i:nth-child(2) { animation-delay: .15s; } .yc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes yc-dot { 50% { opacity: .3; transform: translateY(-3px); } }
.yc-chips { display: flex; gap: .4rem; overflow-x: auto; padding: 0 1rem .6rem; scrollbar-width: none; }
.yc-chips::-webkit-scrollbar { display: none; }
.yc-chips button { flex: none; border: 1px solid rgba(212,175,100,0.4); background: rgba(212,175,100,0.06); color: #F4E6C4; border-radius: 999px; padding: .45rem .8rem; font: inherit; font-size: .82rem; cursor: pointer; }
.yc-chips button:hover { background: rgba(212,175,100,0.16); }
.yc-form { display: flex; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid rgba(255,255,255,0.07); }
.yc-form input { flex: 1; min-width: 0; padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: #111827; color: #F9FAFB; font: inherit; }
.yc-form input:focus { outline: none; border-color: #D4AF64; box-shadow: 0 0 0 3px rgba(212,175,100,0.2); }
.yc-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #D4AF64; color: #0A0E1A; cursor: pointer; font-size: 1rem; }
.yc-note { margin: 0; padding: 0 1rem .7rem; font-size: .7rem; color: #71717A; }
@media (max-width: 480px) { .yc-panel { position: fixed; inset: auto 8px 84px 8px; width: auto; height: min(70vh, 560px); } }
@media (prefers-reduced-motion: reduce) { .yc-fab::after, .yc-panel, .yc-msg { animation: none; } }
