/* ZIK Marketing UI — base styles ported from the design reference (webapp/design-reference/).
   The design's component styling is inline in the render templates (app.js) for 1:1 fidelity;
   this file holds only the base + shell + login pieces. Tokens: canvas #f6f6f9 · ink #171622 ·
   muted #8a8896 · faint #a3a1ad · line #ececf1 · accent #6d4aff · teal #12b8a6. */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:'Manrope',system-ui,sans-serif;color:#171622;background:#f6f6f9;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
i[data-lucide]{width:18px;height:18px;stroke-width:2}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-thumb{background:#dcdae4;border-radius:9px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:#c7c4d2;background-clip:padding-box}
@keyframes riseIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.hidden{display:none!important}
.loading{color:#a3a1ad;padding:60px;text-align:center;font-size:13px}

/* brand mark (the three bars) */
.brand-mark{width:30px;height:30px;border-radius:9px;background:linear-gradient(150deg,#171340,#3a2a8c);display:flex;align-items:center;justify-content:center;flex:none}
.brand-mark span{width:3px;height:13px;border-radius:3px;display:inline-block;margin:0 1px}
.brand-mark .b1{background:#6d4aff}.brand-mark .b2{background:#12b8a6}.brand-mark .b3{background:#fff}

/* sidebar nav */
.nav-item{display:flex;align-items:center;gap:13px;padding:10px 12px;border-radius:10px;color:#4a4956;font-size:14.5px;font-weight:600;cursor:pointer}
.nav-item i[data-lucide]{width:18px;height:18px}
.nav-item:hover:not(.soon){background:#f7f6fa}
.nav-item.active{background:#f1ecfe;color:#6d4aff;font-weight:700}
.nav-item.soon{color:#b6b4c2;cursor:default}
.soon-tag{margin-left:auto;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#a3a1ad;background:#f0eff5;border-radius:6px;padding:2px 6px}
.nav-badge{margin-left:auto;font-size:12px;font-weight:800;color:#fff;background:#6d4aff;border-radius:999px;padding:1px 7px}

/* login */
.overlay{position:fixed;inset:0;background:#f6f6f9;display:flex;align-items:center;justify-content:center;z-index:50}
.login-card{background:#fff;border:1px solid #ececf1;border-radius:18px;padding:34px;width:340px;display:flex;flex-direction:column;gap:12px;box-shadow:0 20px 60px rgba(23,19,64,.10)}
.brand-row{display:flex;align-items:center;gap:10px}
.brand-name{font-weight:800;font-size:16px;letter-spacing:.03em;color:#171422;line-height:1.1}
.brand-sub{font-size:9.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6d4aff}
.login-card h2{margin:6px 0 2px;font-size:18px;font-weight:800;color:#171622}
.inp{border:1px solid #e2e0ea;border-radius:10px;padding:11px 13px;font:inherit;font-size:13.5px}
.inp:focus{outline:2px solid #d9cdff;border-color:#6d4aff}
.btn-primary{background:#6d4aff;color:#fff;border:none;border-radius:9px;padding:10px 16px;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(109,74,255,.28)}
.err{color:#b4453c;font-size:12.5px;min-height:16px}

/* chat pending indicator */
.dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* Claude-style thinking indicator */
.think-avatar { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(109,74,255,.35); } 50% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(109,74,255,0); } }
.shimmer {
  background: linear-gradient(90deg, #9a97a8 25%, #171422 50%, #9a97a8 75%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.think-phase { transition: opacity .35s ease; }

/* recents: reveal the per-chat trash on hover */
.chat-row .chat-del { opacity: .4; transition: opacity .15s ease; }
.chat-row:hover .chat-del { opacity: 1; }

/* dark mode v1 — inversion filter over the light design (the app is inline-styled;
   a token refactor is the v2 path). Media (photos) re-inverted to stay natural. */
html.dark { background: #17161d; }
html.dark body { filter: invert(0.925) hue-rotate(180deg); background: #17161d; }
html.dark img, html.dark video, html.dark iframe { filter: invert(1.08) hue-rotate(180deg); }
