:root { --primary: #ffca05; --primary-hover: #ffdb4d; --primary-text: #171307; --primary-soft: #29230f; --primary-border: #66530a; --primary-glow: #ffca0533; color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #090b10; color: #eef1f8; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; min-height: 0; background: radial-gradient(circle at 65% -20%, var(--primary-soft) 0, transparent 35%), #090b10; }
button, textarea { font: inherit; }
button { cursor: pointer; }
.shell { display: grid; grid-template-columns: 260px 1fr; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; }
aside { min-height: 0; padding: 28px 20px; overflow: hidden; border-right: 1px solid #222832; background: rgba(12, 15, 21, .82); display: flex; flex-direction: column; }
.close-sidebar, .mobile-menu { display: none; }
.brand { display: flex; align-items: center; gap: 4px; min-height: 56px; }
.brand #brand-copy { min-width: 0; height: 56px; display: flex; flex-direction: column; justify-content: center; }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.2; }
.brand small { color: #77808f; font-size: 12px; line-height: 1.2; margin-top: 4px; white-space: nowrap; }
.logo, .orb { display: grid; place-items: center; color: var(--primary-text); font-weight: 900; background: linear-gradient(135deg, var(--primary-hover), var(--primary)); box-shadow: 0 0 26px var(--primary-glow); }
.logo img, .orb img, .avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.logo.has-image, .orb.has-image, .avatar.has-image { background: transparent; box-shadow: none; }
.logo.has-image { width: 134px; height: 56px; flex: 0 0 134px; }
.orb.has-image { width: 210px; }
.brand.logo-only .logo.has-image { width: 176px; height: 48px; }
.logo { width: 38px; height: 38px; border-radius: 11px; }
.new-chat { margin-top: 34px; padding: 12px 16px; border: 1px solid #2d3642; border-radius: 11px; color: #dbe3ec; background: #171c24; text-align: left; }
.new-chat:hover, .suggestions button:hover { border-color: var(--primary-border); background: var(--primary-soft); color: #fff; }
.history-panel { min-height: 0; margin-top: 24px; overflow: hidden; }
.history-panel h2 { margin: 0 10px 9px; color: #68717e; font-size: 11px; font-weight: 600; }
.history-list { max-height: calc(100vh - 290px); overflow-y: auto; scrollbar-width: thin; }
.history-empty { margin: 12px 10px; color: #505966; font-size: 12px; }
.history-item { width: 100%; padding: 10px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; color: #87909e; background: transparent; text-align: left; }
.history-item:hover { color: #e7ebf1; background: #151a21; }
.history-item.active { color: #fff; border-color: var(--primary-border); background: var(--primary-soft); }
.history-item span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.history-item time { flex: none; color: #59626f; font-size: 10px; }
.privacy { margin-top: auto; font-size: 12px; color: #68717e; padding: 10px; }
main { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
header { height: 82px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #20252e; background: #0c0f15aa; backdrop-filter: blur(12px); }
header[hidden] { display: none !important; }
.header-title { display: flex; align-items: center; gap: 12px; }
h1 { margin: 0; font-size: 17px; }
header p { margin: 4px 0 0; color: #77808f; font-size: 12px; }
.status { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #303742; border-radius: 999px; font-size: 12px; color: #a9b2bf; }
.status i { width: 7px; height: 7px; background: #e7b34e; border-radius: 50%; }
.status.online i { background: #5ee2a0; box-shadow: 0 0 8px #5ee2a0; }
.status.offline i { background: #ef6571; }
.header-actions, .auth-user { display: flex; align-items: center; gap: 10px; }
.auth-user { color: #a9b2bf; font-size: 12px; }
.auth-user a, .auth-user button { padding: 6px 9px; border: 1px solid #303742; border-radius: 8px; color: #cbd2dc; background: #151a22; text-decoration: none; }
.sidebar-auth { margin-top: auto; padding: 12px 10px 8px; align-items: stretch; flex-direction: column; gap: 8px; border-top: 1px solid #222832; }
.sidebar-auth > span { overflow: hidden; color: #d7dde6; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-auth > div { display: flex; gap: 7px; }
.sidebar-auth a, .sidebar-auth button { flex: 1; text-align: center; }
.sidebar-auth + .privacy { margin-top: 0; }
.auth-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 20%, var(--primary-soft), #090b10 55%); }
.auth-overlay[hidden] { display: none; }
.auth-card { width: min(390px, 100%); padding: 32px; border: 1px solid #2b313b; border-radius: 22px; background: #11151ceF; box-shadow: 0 30px 90px #000b; }
.auth-card > img { display: block; width: 150px; height: 46px; margin: 0 auto 24px; object-fit: contain; }
.auth-card h2 { margin: 0; text-align: center; }
.auth-card > p { color: #7d8795; text-align: center; font-size: 13px; line-height: 1.5; }
.auth-card label { display: block; margin-top: 16px; color: #9ba5b3; font-size: 12px; }
.auth-card input { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #303844; border-radius: 10px; outline: 0; color: #eef1f8; background: #0b0e13; }
.auth-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.auth-submit { width: 100%; margin-top: 22px; padding: 12px; border: 0; border-radius: 11px; color: var(--primary-text); background: var(--primary); font-weight: 700; }
.auth-switch { width: 100%; margin-top: 12px; border: 0; color: #8c96a4; background: transparent; }
.guest-login { width: 100%; margin-top: 10px; padding: 11px; border: 1px solid var(--primary-border); border-radius: 11px; color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.guest-login:hover { border-color: var(--primary); }
.guest-login:disabled { opacity: .5; cursor: wait; }
.auth-card .auth-error { min-height: 20px; margin: 12px 0 -8px; color: #ff8992; }
.messages { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 42px max(24px, calc((100% - 820px) / 2)); }
.welcome { max-width: 760px; margin: 2vh auto 0; text-align: center; }
.orb { width: 74px; height: 74px; border-radius: 24px; margin: auto; font-size: 29px; }
.orb[hidden] { display: none; }
.welcome > .orb[hidden] + h2 { margin-top: 0; }
.mascot-stage { --rotate-x: 0deg; --rotate-y: 0deg; --shift-x: 0px; --shift-y: 0px; position: relative; display: block; width: 280px; height: 225px; padding: 0; margin: 0 auto 2px; border: 0; outline: none; color: inherit; background: transparent; perspective: 850px; -webkit-tap-highlight-color: transparent; }
.mascot-stage[hidden] { display: none; }
.mascot-stage:focus-visible { border-radius: 28px; box-shadow: 0 0 0 3px var(--primary-glow); }
.mascot-float { position: absolute; inset: 4px 26px 8px; display: block; animation: mascot-float 4.2s ease-in-out infinite; }
.mascot-card { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transform: rotateX(var(--rotate-x)) rotateY(var(--rotate-y)) translate3d(var(--shift-x), var(--shift-y), 0); transition: transform .16s ease-out; }
.mascot-webgl { position: absolute; z-index: 5; inset: -22px -44px; width: calc(100% + 88px); height: calc(100% + 44px); cursor: grab; touch-action: none; opacity: 0; transition: opacity .35s ease; }
.mascot-webgl.is-dragging { cursor: grabbing; }
.mascot-stage.is-3d-ready .mascot-webgl { opacity: 1; }
.mascot-stage.is-3d-ready .mascot-card > img { opacity: 0; }
.mascot-card img { position: absolute; z-index: 3; inset: -16px -34px; width: calc(100% + 68px); height: calc(100% + 32px); object-fit: contain; filter: drop-shadow(0 16px 16px #0008) drop-shadow(0 0 20px var(--primary-glow)); transform: translateZ(42px); user-select: none; }
.mascot-aura { position: absolute; z-index: 0; inset: 28px 22px 16px; border-radius: 50%; background: radial-gradient(circle, var(--primary-glow), transparent 68%); filter: blur(10px); transform: translateZ(-35px) scale(.94); }
.mascot-shadow { position: absolute; z-index: 1; left: 22%; right: 12%; bottom: 4px; height: 25px; border-radius: 50%; background: #0009; filter: blur(12px); transform: translateZ(-45px) rotateX(68deg); }
.mascot-bubble { position: absolute; z-index: 4; width: 13px; height: 13px; border: 1px solid #fff9; border-radius: 50%; background: linear-gradient(135deg, #ffffffa6, #ffdc3d33); box-shadow: inset 2px 2px 4px #fff9, 0 0 9px var(--primary-glow); transform: translateZ(65px); animation: mascot-bubble 3.4s ease-in-out infinite; }
.bubble-one { left: 5px; top: 70px; }
.bubble-two { right: 0; top: 45px; width: 9px; height: 9px; animation-delay: -1.1s; }
.bubble-three { right: 15px; bottom: 45px; width: 17px; height: 17px; animation-delay: -2.2s; }
.mascot-speech { position: absolute; z-index: 8; top: 12px; right: -96px; max-width: 168px; padding: 9px 12px; border: 1px solid var(--primary-border); border-radius: 14px 14px 14px 4px; color: #f6f1dd; background: #17150fed; box-shadow: 0 8px 24px #0007; font-size: 12px; line-height: 1.45; text-align: left; opacity: 0; transform: translate3d(-8px, 7px, 80px) scale(.92); transition: opacity .2s, transform .2s; pointer-events: none; }
.mascot-stage:hover .mascot-speech, .mascot-stage:focus-visible .mascot-speech, .mascot-stage.is-speaking .mascot-speech { opacity: 1; transform: translate3d(0, 0, 80px) scale(1); }
.mascot-stage.is-playing .mascot-float { animation: mascot-pop .72s cubic-bezier(.2, .8, .25, 1); }
@keyframes mascot-float { 0%, 100% { transform: translateY(4px) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes mascot-bubble { 0%, 100% { transform: translate3d(0, 4px, 65px) scale(.85); opacity: .35; } 50% { transform: translate3d(2px, -10px, 65px) scale(1.08); opacity: .9; } }
@keyframes mascot-pop { 0% { transform: translateY(2px) scale(1); } 35% { transform: translateY(-22px) scale(1.05) rotate(2deg); } 62% { transform: translateY(3px) scale(.97) rotate(-1deg); } 100% { transform: translateY(0) scale(1); } }
.welcome h2 { font-size: clamp(25px, 4vw, 36px); margin: 25px 0 10px; letter-spacing: -.7px; }
.welcome > p { color: #8d96a5; line-height: 1.7; }
.suggestions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.suggestions button { min-height: 92px; padding: 14px; color: #bdc5d0; border: 1px solid #272e38; border-radius: 14px; background: #11151c; line-height: 1.5; transition: .2s; }
.message { display: flex; gap: 13px; margin: 0 auto 26px; max-width: 820px; }
.message.user { flex-direction: row-reverse; }
.avatar { position: relative; flex: 0 0 33px; width: 33px; height: 33px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: #222934; color: #aab4c2; font-size: 12px; font-weight: 700; overflow: visible; }
.assistant .avatar { background: var(--primary); color: var(--primary-text); }
.ai-avatar-3d { --avatar-rx: 0deg; --avatar-ry: 0deg; flex-basis: 46px; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(145deg, #2b250f, #121318); box-shadow: inset 0 0 0 1px var(--primary-border), 0 8px 22px #0008; perspective: 260px; animation: avatar-arrive .55s cubic-bezier(.2, .8, .2, 1) both; }
.avatar-scene { position: absolute; inset: 2px; display: block; border-radius: 13px; overflow: hidden; transform-style: preserve-3d; transform: rotateX(var(--avatar-rx)) rotateY(var(--avatar-ry)); transition: transform .16s ease-out; }
.avatar-scene img { position: absolute; z-index: 2; width: 74px; height: 74px; left: 50%; top: 52%; object-fit: contain; transform: translate3d(-50%, -46%, 28px); filter: drop-shadow(0 5px 5px #0009); animation: avatar-float 2.8s ease-in-out infinite; }
.avatar-ring { position: absolute; z-index: 1; inset: 5px; border-radius: 50%; background: radial-gradient(circle, var(--primary-glow), transparent 68%); box-shadow: inset 0 0 0 1px #ffca0540; transform: translateZ(-18px); animation: avatar-pulse 2.2s ease-in-out infinite; }
.avatar-tag { position: absolute; z-index: 10; left: 0; bottom: 54px; min-width: 118px; padding: 7px 10px; border: 1px solid var(--primary-border); border-radius: 10px 10px 10px 3px; color: #f7f2de; background: #17150ff2; box-shadow: 0 8px 24px #0009; text-align: left; line-height: 1.2; opacity: 0; transform: translateY(8px) rotateX(-14deg) scale(.92); transform-origin: left bottom; transition: opacity .2s, transform .2s; pointer-events: none; }
.avatar-tag strong, .avatar-tag small { display: block; white-space: nowrap; }
.avatar-tag strong { color: var(--primary); font-size: 12px; }
.avatar-tag small { margin-top: 3px; color: #9299a5; font-size: 10px; font-weight: 500; }
.ai-avatar-3d:hover, .ai-avatar-3d:focus-visible, .ai-avatar-3d.is-active { z-index: 12; box-shadow: inset 0 0 0 1px var(--primary), 0 9px 28px var(--primary-glow); }
.ai-avatar-3d:hover .avatar-tag, .ai-avatar-3d:focus-visible .avatar-tag, .ai-avatar-3d.is-active .avatar-tag { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
.ai-avatar-3d:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@keyframes avatar-arrive { from { opacity: 0; transform: translateY(9px) rotateY(-28deg) scale(.82); } to { opacity: 1; transform: none; } }
@keyframes avatar-float { 0%, 100% { margin-top: 1px; } 50% { margin-top: -3px; } }
@keyframes avatar-pulse { 0%, 100% { opacity: .45; transform: translateZ(-18px) scale(.9); } 50% { opacity: 1; transform: translateZ(-18px) scale(1.08); } }
.bubble { max-width: 80%; padding: 11px 15px; border: 1px solid #252c36; border-radius: 6px 16px 16px; background: #12171e; color: #dce3ed; line-height: 1.7; overflow-wrap: anywhere; }
.user .bubble { border-radius: 16px 6px 16px 16px; background: var(--primary-soft); border-color: var(--primary-border); }
pre { overflow-x: auto; padding: 14px; border-radius: 9px; background: #080a0e; }
code { font-family: "SFMono-Regular", Consolas, monospace; color: var(--primary-hover); }
.error { color: #ff8992; }
.product-cards { width: min(590px, 72vw); margin-top: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card { min-width: 0; min-height: 108px; padding: 9px; display: flex; gap: 10px; border: 1px solid #30343b; border-radius: 13px; color: inherit; background: #0d1117; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-2px); border-color: var(--primary-border); box-shadow: 0 10px 28px #0008, 0 0 0 1px var(--primary-glow); }
.product-card > img, .product-image-fallback { flex: 0 0 86px; width: 86px; height: 86px; border-radius: 9px; object-fit: cover; background: var(--primary); color: var(--primary-text); display: grid; place-items: center; font-size: 28px; font-weight: 900; }
.product-card-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; text-align: left; }
.product-card-copy b { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #edf0f5; font-size: 13px; line-height: 1.45; }
.product-card-copy > small { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #747e8c; font-size: 10px; }
.product-card-copy > span { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 6px; }
.product-card-copy strong { color: var(--primary); font-size: 15px; }
.product-card-copy strong small { margin-left: 2px; font-size: 9px; }
.product-card-copy .price-pending { font-size: 11px; }
.product-card-copy em { color: #aeb6c1; font-size: 10px; font-style: normal; }
.composer { width: min(820px, calc(100% - 48px)); margin: 0 auto 24px; position: relative; }
.composer textarea { width: 100%; max-height: 180px; resize: none; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 17px 58px 17px 18px; color: #eef1f8; background: #151a22; border: 1px solid #303844; border-radius: 17px; outline: none; line-height: 1.5; box-shadow: 0 12px 50px #0007; }
.composer textarea::-webkit-scrollbar { display: none; width: 0; height: 0; }
.composer textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow), 0 12px 50px #0007; }
.composer > button { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border: 0; border-radius: 11px; background: var(--primary); color: var(--primary-text); font-size: 24px; font-weight: 700; transition: .2s; }
.composer > button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.composer > button:disabled { opacity: .4; cursor: wait; }
.composer > p { margin: 8px 0 0; color: #535c69; font-size: 11px; text-align: center; }
@media (max-width: 720px) { .shell { grid-template-columns: 1fr; } aside { position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(300px, 86vw); display: flex; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 50px #000b; } body.mobile-menu-open aside { transform: translateX(0); } .close-sidebar { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #aab2be; background: #181d25; font-size: 22px; } .mobile-menu { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid #303742; border-radius: 9px; color: #dbe3ec; background: #171c24; font-size: 17px; } .floating-menu { position: absolute; z-index: 20; top: 12px; left: 12px; } .messages { padding: 58px 16px 18px; } .welcome { margin-top: 0; } .mascot-stage { width: 220px; height: 175px; } .mascot-speech { right: -48px; max-width: 142px; } .suggestions { grid-template-columns: 1fr; } .composer { width: calc(100% - 28px); margin-bottom: 12px; } .bubble { max-width: calc(100% - 46px); } .product-cards { width: calc(100vw - 86px); grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mascot-float, .mascot-bubble, .avatar-scene img, .avatar-ring, .ai-avatar-3d { animation: none; } .mascot-card, .mascot-speech, .avatar-scene, .avatar-tag, .composer > button { transition: none; } }
