/* ── WRAP ── */
#bvs-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: #e2e2e2; }
.bvs-screen { display: none; }
.bvs-active { display: block; }

/* ── SETUP ── */
.bvs-box { background: #161616; border: 1px solid #2a2a2a; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.bvs-box h2 { font-size: 13px; font-weight: 600; color: #aaa; margin: 0 0 14px; letter-spacing: .04em; }
.bvs-row { display: flex; gap: 8px; }
.bvs-row input { flex: 1; background: #111; border: 1px solid #333; border-radius: 6px; padding: 9px 12px; color: #e2e2e2; font-size: 13px; outline: none; }
.bvs-row input:focus { border-color: #4f7cff; }
.bvs-row button, #bvs-start-btn { background: #4f7cff; color: #fff; border: none; border-radius: 6px; padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity .15s; }
.bvs-row button:hover, #bvs-start-btn:hover { opacity: .88; }
#bvs-start-btn { width: 100%; padding: 13px; font-size: 15px; }

/* Post list */
.bvs-post-item { background: #111; border: 1px solid #2a2a2a; border-radius: 6px; padding: 10px 14px; margin-bottom: 6px; cursor: pointer; font-size: 13px; color: #ccc; transition: all .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvs-post-item:hover { border-color: #4f7cff; color: #fff; background: #1a1f33; }
.bvs-post-item.sel { border-color: #4f7cff; background: rgba(79,124,255,.12); color: #fff; }
.bvs-post-loading { font-size: 12px; color: #666; padding: 8px 0; }

/* Start box header row */
.bvs-start-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bvs-start-row p { font-size: 12px; color: #666; margin: 0; flex: 1; }

/* Running badge */
#bvs-running-badge {
    font-size: 11px; background: #0d2b1a; border: 1px solid #166534; color: #4ade80;
    padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}

/* ── SIMS CONTAINER ── */
#bvs-sims-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 4px;
}
@media (min-width: 1600px) {
    #bvs-sims-container { grid-template-columns: 1fr 1fr; }
}

/* ── SIM CARD ── */
.bvs-sim-card {
    background: #0e0e0e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 16px;
    animation: bvsFadeIn .3s ease;
}
.bvs-sim-card.bvs-card-done { border-color: #1a3a1a; }

/* ── SIM HEADER ── */
.bvs-sim-header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #222; margin-bottom: 14px; flex-wrap: wrap; }
.bvs-btn-stop { background: none; border: 1px solid #333; border-radius: 6px; padding: 6px 12px; color: #aaa; font-size: 12px; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.bvs-btn-stop:hover { border-color: #f87171; color: #f87171; }
.bvs-card-done .bvs-btn-stop { border-color: #2a2a2a; color: #555; }
.bvs-card-done .bvs-btn-stop:hover { border-color: #555; color: #aaa; }
.bvs-sim-title { flex: 1; font-size: 13px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bvs-profile-tag { font-size: 11px; background: #1a1f33; border: 1px solid #2a3a6a; color: #7aa2f7; padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.bvs-metrics { display: flex; gap: 6px; flex-shrink: 0; }
.bvs-metric { background: #161616; border: 1px solid #2a2a2a; border-radius: 6px; padding: 5px 10px; text-align: center; }
.bvs-ml { display: block; font-size: 9px; color: #555; letter-spacing: .04em; }
.bvs-mv { display: block; font-size: 15px; font-weight: 500; color: #e2e2e2; }

/* ── SIM BODY ── */
.bvs-sim-body { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }

/* Browser */
.bvs-browser-wrap { display: flex; flex-direction: column; min-width: 0; }
.bvs-chrome { background: #1f1f1f; border: 1px solid #2a2a2a; border-bottom: none; border-radius: 10px 10px 0 0; padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.bvs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.bvs-dot.r { background: #ff5f57; } .bvs-dot.y { background: #ffbd2e; } .bvs-dot.g { background: #28c840; }
.bvs-urlbar { flex: 1; background: #111; border: 1px solid #2a2a2a; border-radius: 4px; padding: 3px 10px; font-size: 10px; color: #555; margin-left: 8px; }
.bvs-viewport { position: relative; border: 1px solid #2a2a2a; border-radius: 0 0 10px 10px; overflow: hidden; background: #fff; min-height: 480px; }
.bvs-inner { height: 480px; overflow-y: scroll; padding: 24px 28px 40px; scrollbar-width: thin; scrollbar-color: #ddd #f5f5f5; }

/* Blog content styles */
.bvs-inner h1 { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 10px; line-height: 1.3; }
.bvs-inner h2 { font-size: 17px; font-weight: 600; color: #111; margin: 22px 0 8px; border-top: 1px solid #eee; padding-top: 16px; }
.bvs-inner h3 { font-size: 15px; font-weight: 600; color: #222; margin: 16px 0 6px; }
.bvs-inner p  { font-size: 14px; line-height: 1.8; color: #333; margin-bottom: 12px; }
.bvs-inner ul, .bvs-inner ol { margin: 0 0 12px 20px; color: #333; font-size: 14px; line-height: 1.75; }
.bvs-inner blockquote { border-left: 3px solid #4f7cff; padding: 10px 16px; margin: 14px 0; background: #f0f4ff; border-radius: 0 6px 6px 0; }
.bvs-inner pre { background: #1e1e2e; color: #cdd6f4; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 12px; line-height: 1.7; margin: 14px 0; }
.bvs-inner a { color: #4f7cff; text-decoration: none; }

/* Reading highlight */
.bvs-sim-section { transition: background .4s, border-left-color .4s, padding-left .3s; border-left: 3px solid transparent; border-radius: 4px; }
.bvs-sim-section.reading { background: rgba(79,124,255,.07); border-left-color: #4f7cff; padding-left: 8px; }

/* ── SIDE PANEL ── */
.bvs-side { background: #161616; border: 1px solid #2a2a2a; border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.bvs-persona-info { padding: 12px 14px; border-bottom: 1px solid #222; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bvs-pi-avatar { width: 36px; height: 36px; border-radius: 50%; background: #222; border: 1px solid #333; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #aaa; flex-shrink: 0; }
.bvs-pi-name { font-size: 13px; font-weight: 600; color: #e2e2e2; }
.bvs-pi-sub  { font-size: 10px; color: #666; margin-top: 2px; }

/* Tabs */
.bvs-tabs { display: flex; border-bottom: 1px solid #222; flex-shrink: 0; }
.bvs-tab { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 4px; font-size: 10px; font-weight: 600; color: #555; cursor: pointer; letter-spacing: .04em; transition: color .15s, border-color .15s; }
.bvs-tab:hover { color: #aaa; }
.bvs-tab.active { color: #e2e2e2; border-bottom-color: #4f7cff; }
.bvs-tab-panel { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.bvs-tab-panel.active { display: flex; }

/* Thoughts */
.bvs-thoughts { flex: 1; overflow-y: auto; padding: 0 14px; min-height: 180px; max-height: 280px; }
.bvs-thought { padding: 8px 0; border-bottom: 1px solid #1f1f1f; animation: bvsFadeIn .3s ease; font-size: 12px; color: #ccc; font-style: italic; line-height: 1.5; }
.bvs-thought.act { color: #555; font-style: normal; font-size: 11px; }
.bvs-tempty { padding: 16px 0; text-align: center; font-size: 12px; color: #444; }

/* Log */
.bvs-log { flex: 1; overflow-y: auto; max-height: 280px; }
.bvs-log-entry { display: flex; align-items: flex-start; gap: 7px; padding: 6px 14px; border-bottom: 1px solid #1c1c1c; animation: bvsFadeIn .25s ease; }
.bvs-log-entry:last-child { border-bottom: none; }
.bvs-log-time { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 10px; color: #444; min-width: 34px; padding-top: 1px; flex-shrink: 0; }
.bvs-log-badge { font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px; min-width: 54px; text-align: center; flex-shrink: 0; letter-spacing: .03em; }
.bvs-badge-chegou    { background: #222;    color: #666; }
.bvs-badge-rolou     { background: #1a1430; color: #9b72f5; }
.bvs-badge-leu       { background: #0d1f3c; color: #4f9cff; }
.bvs-badge-hover     { background: #1f1a0a; color: #f0a844; }
.bvs-badge-clicou    { background: #0d2b1a; color: #4ade80; }
.bvs-badge-distracao { background: #2b0d0d; color: #f87171; }
.bvs-badge-voltou    { background: #1a1a0a; color: #facc15; }
.bvs-badge-releu     { background: #0a1f1f; color: #34d1bf; }
.bvs-badge-saiu      { background: #1a1a1a; color: #777; }
.bvs-log-text { font-size: 11px; color: #aaa; line-height: 1.5; }
.bvs-log-text strong { color: #ccc; font-weight: 500; }
.bvs-log-text span   { color: #555; font-size: 10px; display: block; margin-top: 1px; }
.bvs-log-empty { padding: 16px 14px; text-align: center; font-size: 12px; color: #444; }

/* Status */
.bvs-status { padding: 7px 14px; font-size: 11px; color: #555; border-top: 1px solid #222; flex-shrink: 0; }

@keyframes bvsFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .bvs-sim-body { grid-template-columns: 1fr; }
    .bvs-metrics  { flex-wrap: wrap; }
}
