/* ══════════════════════════════════════════════════════════════
   assistant/assistant.css — MikeFX34 sign-up / log-in / VIP assistant
   Upload to: mikefx34.com/assistant/assistant.css
   Uses the homepage's own CSS variables, so partner accents and the
   site palette carry through. Loaded only when the assistant is on.
   ══════════════════════════════════════════════════════════════ */


/* ── Shared panel ── */
.as-panel { display: flex; flex-direction: column; background: linear-gradient(180deg, #0b1428 0%, #070d1b 100%); border: 1px solid var(--neon-line); color: var(--text-primary); font-family: var(--font-body); overflow: hidden; }
.as-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-card); background: rgba(43,140,255,0.06); flex-shrink: 0; }
.as-av { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; color: #fff; background: radial-gradient(circle at 30% 30%, var(--neon-soft), var(--neon-deep)); box-shadow: 0 0 0 3px rgba(43,140,255,0.18); }
.as-hd { flex: 1; min-width: 0; line-height: 1.2; }
.as-hd b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 14px; letter-spacing: .5px; }
.as-hd span { font-size: 12px; color: var(--text-secondary); }
.as-hd .as-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.as-x { background: none; border: 0; color: var(--text-muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.as-x:hover { color: var(--text-primary); }
.as-x:focus-visible, .as-q:focus-visible, .as-send:focus-visible, .as-chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.as-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 16px 0; flex-shrink: 0; }
.as-prog span { font-size: 11px; color: var(--text-muted); padding-top: 7px; border-top: 3px solid var(--border-card); transition: color .3s, border-color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-prog span.on { color: var(--neon-soft); border-top-color: var(--neon); }
.as-prog span.done { color: var(--text-secondary); border-top-color: var(--neon-deep); }

.as-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; min-height: 0; }
.as-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; animation: asIn .22s ease; }
.as-msg.bot { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border-card); border-bottom-left-radius: 4px; }
.as-msg.me { align-self: flex-end; background: var(--neon-deep); color: #fff; border-bottom-right-radius: 4px; }
.as-msg b { color: #fff; }
.as-msg a { color: var(--cyan-soft); text-decoration: underline; }
.as-msg.ok { border-color: rgba(43,255,136,0.35); background: rgba(43,255,136,0.06); }
.as-msg.warn { border-color: rgba(255,168,0,0.35); background: rgba(255,168,0,0.06); }
@keyframes asIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.as-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px; border-bottom-left-radius: 4px; }
.as-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: asDot 1s infinite; }
.as-typing i:nth-child(2) { animation-delay: .15s; } .as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes asDot { 0%,60%,100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.as-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.as-chip { flex: 1 1 120px; text-align: left; cursor: pointer; padding: 9px 11px; border-radius: 10px; background: rgba(255,210,74,0.08); border: 1px dashed var(--gold-line); color: var(--text-primary); font-family: inherit; }
.as-chip small { display: block; font-size: 11px; color: var(--text-muted); }
.as-chip strong { display: block; font-family: var(--font-mono); font-size: 16px; color: var(--gold); letter-spacing: 1.5px; }
.as-chip.copied { border-style: solid; border-color: rgba(43,255,136,0.5); }
.as-chip.copied strong { color: var(--green); }
.as-chip.copied small::after { content: " (copied)"; color: var(--green); }

.as-sum { margin-top: 8px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.as-sum dt { color: var(--text-muted); }
.as-sum dd { color: #fff; font-weight: 600; word-break: break-word; }

.as-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; flex-shrink: 0; }
.as-quick:empty { display: none; }
.as-q { font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; padding: 9px 14px; border-radius: 999px; background: transparent; color: var(--neon-soft); border: 1px solid var(--neon-line); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s; }
.as-q:hover { background: var(--neon-dim); border-color: var(--neon); }
.as-q.main { background: var(--neon); color: #fff; border-color: var(--neon); }
.as-q.main:hover { background: var(--neon-soft); }
.as-q.wa { color: #4ee08a; border-color: rgba(37,211,102,0.4); }
.as-q.wa:hover { background: rgba(37,211,102,0.1); }

.as-in { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-card); flex-shrink: 0; }
.as-in input { flex: 1; min-width: 0; background: var(--bg-primary); border: 1px solid var(--border-card); border-radius: 10px; color: var(--text-primary); font-family: var(--font-body); font-size: 16px; padding: 10px 12px; }
.as-in input:focus { outline: none; border-color: var(--neon); }
.as-in input:disabled { opacity: .5; }
.as-send { background: var(--neon); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font-family: var(--font-body); font-weight: 700; font-size: 15px; cursor: pointer; }
.as-send:disabled { opacity: .4; cursor: default; }
.as-foot { font-size: 11px; color: var(--text-muted); padding: 0 16px 10px; flex-shrink: 0; }
.as-foot button { background: none; border: 0; color: var(--neon-soft); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }

/* ── Option 2: full-screen guide ── */
.as-full-back { position: fixed; inset: 0; z-index: 9997; background: rgba(2,3,10,0.88); backdrop-filter: blur(8px); display: none; align-items: stretch; justify-content: center; padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.as-full-back.open { display: flex; }
.as-full { width: 100%; max-width: 680px; border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,0.7); animation: asIn .25s ease; }
.as-full .as-head { padding: 18px 22px; }
.as-full .as-hd b { font-size: 17px; }
.as-full .as-prog { padding: 14px 22px 0; }
.as-full .as-prog span { font-size: 13px; }
.as-full .as-log { padding: 22px; gap: 12px; }
.as-full .as-msg { font-size: 17px; }
.as-full .as-quick { padding: 0 22px 16px; gap: 10px; }
.as-full .as-q { font-size: 16px; padding: 12px 18px; }
.as-full .as-in { padding: 14px 22px; }
.as-full .as-foot { padding: 0 22px 14px; }
@media (max-width: 560px) { .as-full-back { padding: 0; } .as-full { border-radius: 0; } }

.as-form-toggle { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--text-secondary); font-family: var(--font-body); font-size: 14px; text-decoration: underline; cursor: pointer; }
.as-form-toggle:hover { color: var(--text-primary); }

.as-toast { position: fixed; left: 50%; top: calc(80px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 10000; background: #fff; color: #10151f; font-weight: 700; padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.5); font-size: 14px; display: none; max-width: calc(100vw - 32px); text-align: center; }
.as-toast.show { display: block; animation: asIn .2s ease; }

@media (prefers-reduced-motion: reduce) {
  .as-msg, .as-full, .as-toast.show { animation: none; }
  .as-typing i { animation: none; opacity: .6; }
}

/* ═══ v2 additions ═══ */
.as-msg.vip { border-color: rgba(212,175,55,0.45); background: rgba(212,175,55,0.07); }
.as-msg.vip b { color: #fdf3cf; }
.as-q.gold { background: linear-gradient(180deg,#f5e3a3,#d4af37); color: #14100a; border-color: #d4af37; }
.as-q.gold:hover { background: linear-gradient(180deg,#fdf3cf,#e2bf4a); }
.as-foot { line-height: 1.5; }

/* Option 4: quiet links under the entry cards */
.as-mini-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: -6px auto 18px; font-size: 15px; color: var(--text-secondary); }
.as-mini-row button { background: none; border: 0; color: var(--neon-soft); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 2px; }
.as-start-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--bg-card); border: 1px solid var(--neon-line); border-radius: var(--r); padding: 26px 22px; }
.as-start-card p { color: var(--text-secondary); margin: 6px 0 16px; }
.as-start-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 18px; }

/* Option 6: three doors */
.as-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 0 auto; }
.as-door { text-align: left; cursor: pointer; padding: 16px 16px 15px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-card); color: var(--text-primary); font-family: var(--font-body); transition: border-color .15s, background .15s; }
.as-door:hover { border-color: var(--neon); background: var(--bg-card-hover); }
.as-door b { display: block; font-size: 18px; margin-bottom: 2px; }
.as-door span { display: block; font-size: 14px; color: var(--text-secondary); line-height: 1.35; }
.as-door.main { background: var(--neon); border-color: var(--neon); }
.as-door.main span { color: rgba(255,255,255,0.85); }
.as-door.main:hover { background: var(--neon-soft); }
.as-door.vipd { border-color: rgba(212,175,55,0.45); }
.as-door.vipd b { color: #f5e3a3; }
.as-door.vipd:hover { border-color: #d4af37; background: rgba(212,175,55,0.08); }
.as-door:focus-visible, .as-mini-row button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 640px) { .as-doors { grid-template-columns: 1fr; } }
/* Desktop: when XM opens, the guide slides to the left half so the XM window can sit on the right */
@media (min-width: 900px) {
  .as-full-back.docked { justify-content: flex-start; background: rgba(2,3,10,0.6); }
  .as-full-back.docked .as-full { max-width: 46vw; }
}


/* Hero doors above the title */
.as-doors-top { margin: 0 auto 30px; }
.as-panel { text-align: left; }

/* Partner pages: doors pick up the partner accent */
.hero[style*="--p-accent"] .as-door.main { background: var(--p-accent, var(--neon)); border-color: var(--p-accent, var(--neon)); }
.as-doors.two { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
@media (max-width: 640px) { .as-doors.two { grid-template-columns: 1fr; } }

/* Banners docked at the bottom of the screen */
.as-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980; padding-bottom: env(safe-area-inset-bottom, 0px); background: #04070e; box-shadow: 0 -8px 24px rgba(0,0,0,0.5); }
body.as-docked-banners { padding-bottom: var(--as-dock-h, 0px); }
body.as-docked-banners .mfx-fab { bottom: calc(var(--as-dock-h, 0px) + 14px); }
@media (min-width: 561px) { .as-full-back { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); } }
