/* Страницата на разширението за браузър (/extension/): малкият панел в началото,
   демото и браузърите. Панелът е по истинския (browser-extension/src/panel):
   сиви тонове, лилав бутон, същите надписи. Държането е в extension-demo.js. */

/* ── общо за панела ─────────────────────────────────────── */
.xd [hidden] { display: none !important; }
.xd-panel, .pv-ext { color: #1e293b; font-size: 14px; }
.xp-logo { display: block; height: 13px; width: auto; }
.xp-chip { font-size: .68rem; font-weight: 800; color: #7c3aed; background: rgba(139, 92, 246, .1); padding: .15rem .45rem; border-radius: 6px; }
.xp-av { width: 32px; height: 32px; border-radius: 50%; background: rgba(139, 92, 246, .12); color: #7c3aed; display: grid; place-items: center; font-weight: 800; font-size: .72rem; flex: none; }

.xp-steps { list-style: none; margin: 0 0 .7rem; padding: 0; counter-reset: xs; }
.xp-steps li { position: relative; display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .8rem; color: #64748b; counter-increment: xs; }
.xp-steps li i { position: relative; z-index: 1; width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #cbd5e1; background: #fff; font-style: normal; font-size: .66rem; font-weight: 800; color: #94a3b8; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.xp-steps li i::before { content: counter(xs); }
.xp-steps li:not(:last-child)::after { content: ""; position: absolute; left: 10.25px; top: calc(50% + 11px); height: calc(100% - 22px); width: 1.5px; background: #e2e8f0; transition: background .3s; }
.xp-steps li.done i { background: #18714f; border-color: #18714f; color: #fff; }
.xp-steps li.done i::before { content: "✓"; }
.xp-steps li.done::after { background: #18714f; }
.xp-steps li.done span { color: #334155; }
.xp-steps li.cur { color: #1e293b; font-weight: 800; }
.xp-steps li.cur i { background: #8b5cf6; border-color: #8b5cf6; color: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }

/* ── малкият панел в началото ───────────────────────────── */
.pv-ext { width: 100%; max-width: 390px; margin: 0 auto; padding: 1rem; border-radius: 22px; background: #f1f5f9; border: 1px solid rgba(99, 0, 255, .1); box-shadow: 0 30px 70px rgba(26, 31, 54, .12), 0 6px 18px rgba(99, 0, 255, .08); }
.pg-tilt > .pv-ext { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease; will-change: transform; }
.pv-ext-top { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; padding: .7rem .85rem; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.pv-ext-top .xp-logo { height: 14px; }
.pv-ext-item { display: flex; align-items: center; gap: .65rem; margin-bottom: .6rem; padding: .6rem .7rem; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; }
.pv-ext-item img { border-radius: 8px; flex: none; }
.pv-ext-item div { flex: 1; min-width: 0; }
.pv-ext-item small { color: #64748b; font-size: .72rem; font-weight: 700; }
.pv-ext-item b { display: block; font-size: .86rem; line-height: 1.3; }
.pv-ext-item em { font-style: normal; font-size: .86rem; font-weight: 800; white-space: nowrap; }
.pv-ext .xp-steps { margin: 0; padding: .6rem .85rem; border-radius: 12px; background: #fff; border: 1px solid rgba(139, 92, 246, .45); box-shadow: 0 0 0 3px rgba(139, 92, 246, .08); }

/* ── демото ─────────────────────────────────────────────── */
.xd { position: relative; max-width: 1100px; margin: 0 auto; }
.xd-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.6rem; }
.xd-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.05rem; border-radius: 999px; border: 1px solid rgba(99, 0, 255, .16); background: #fff; color: var(--dark); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(99, 0, 255, .06); transition: background .25s, color .25s, box-shadow .25s; }
.xd-tab i { color: #6300ff; font-size: .85rem; }
.xd-tab:hover { box-shadow: 0 6px 18px rgba(99, 0, 255, .14); }
.xd-tab.on { background: linear-gradient(135deg, #6300ff, #7b61ff); border-color: transparent; color: #fff; }
.xd-tab.on i { color: #fff; }
.xd-frame { position: relative; }
.xd-frame > .pgx-badge { top: -.95rem; right: 1.4rem; }
.xd-win { position: relative; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid rgba(99, 0, 255, .1); box-shadow: 0 30px 70px rgba(26, 31, 54, .12), 0 6px 18px rgba(99, 0, 255, .08); }
.xd-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.xd-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ef6b6b; flex: none; }
.xd-bar > i:nth-child(2) { background: #f5c04e; }
.xd-bar > i:nth-child(3) { background: #4cc38a; }
.xd-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem; margin-left: .8rem; padding: .36rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-size: .8rem; color: #475569; }
.xd-url i { font-size: .68rem; color: #94a3b8; }
.xd-url span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xd-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 610px; }
.xd-page { position: relative; overflow: hidden; background: #fff; border-right: 1px solid #e2e8f0; }
.xd-pg { height: 100%; overflow: hidden; }
.xd-panel { display: flex; flex-direction: column; min-height: 0; background: #f1f5f9; }
.xp-body { flex: 1; min-height: 0; overflow-y: auto; padding: .85rem; scrollbar-width: thin; }

/* панелът: глава */
.xp-head { padding: .75rem .9rem .7rem; background: #fff; border-bottom: 1px solid #e2e8f0; }
.xp-top { display: flex; align-items: center; gap: .5rem; }
.xp-sp { flex: 1; }
.xp-lang { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid #e2e8f0; font-size: .66rem; font-weight: 800; }
.xp-lang b { padding: .2rem .5rem; border-radius: 999px; background: #8b5cf6; color: #fff; }
.xp-lang i { padding: .2rem .5rem; font-style: normal; color: #64748b; }
.xp-round { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e2e8f0; font-size: .72rem; color: #475569; }
.xp-user { display: flex; align-items: center; gap: .6rem; margin-top: .65rem; }
.xp-user b { display: block; font-size: .85rem; }
.xp-user small { font-size: .75rem; color: #64748b; }
.xd-panel.unpaired .xp-user { display: none; }

/* панелът: списъкът */
.xp-conn { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; padding: .6rem .8rem; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; font-size: .82rem; }
.xp-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.xp-conn small { font-size: .66rem; font-weight: 700; letter-spacing: .03em; color: #64748b; }
.xp-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.xp-tabs span { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .7rem; border-radius: 10px; background: #fff; border: 1px solid #cbd5e1; font-size: .78rem; font-weight: 700; color: #334155; }
.xp-tabs span.on { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
.xp-tabs em { min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-style: normal; font-size: .62rem; }
.xp-search { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; padding: .55rem .75rem; border-radius: 10px; background: #fff; border: 1px solid #cbd5e1; font-size: .8rem; color: #94a3b8; }
.xp-item { display: flex; gap: .7rem; margin-bottom: .55rem; padding: .65rem; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; transition: border-color .3s, box-shadow .3s; }
.xp-item.flash { border-color: #18714f; box-shadow: 0 0 0 3px rgba(24, 113, 79, .12); }
.xp-item img { width: 52px; height: 52px; border-radius: 8px; flex: none; }
.xp-it { flex: 1; min-width: 0; }
.xp-it-top { display: flex; align-items: center; gap: .4rem; font-size: .72rem; }
.xp-id { font-weight: 700; color: #64748b; }
.xp-st { padding: .12rem .4rem; border-radius: 5px; font-size: .64rem; font-weight: 800; }
.xp-st.none { background: #f1f5f9; color: #475569; }
.xp-st.live { background: #e6f5ed; color: #18714f; }
.xp-pr { margin-left: auto; font-size: .82rem; white-space: nowrap; }
.xp-it-t { display: block; margin: .2rem 0 .1rem; font-size: .83rem; line-height: 1.3; }
.xp-it small { font-size: .72rem; color: #64748b; }
.xp-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; margin-top: .5rem; }

.xp-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .7rem; border-radius: 9px; border: 1px solid transparent; background: none; color: #334155; font: inherit; font-size: .76rem; font-weight: 700; line-height: 1.1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.xp-btn.pri { background: #8b5cf6; color: #fff; }
.xp-btn.pri:hover { background: #7c3aed; }
.xp-btn.ghost { color: #7c3aed; }
.xp-btn.ghost:hover { background: rgba(139, 92, 246, .08); }
.xp-btn.line { background: #fff; border-color: #cbd5e1; }
.xp-btn.line:hover { border-color: #94a3b8; }
.xp-btn.bad { color: #b42318; }
.xp-btn.sq { padding: .42rem .5rem; border-color: #e2e8f0; }
.xp-btn[disabled] { opacity: .6; cursor: default; }
.xp-btn.on, .xp-bell.on { color: #7c3aed; border-color: #8b5cf6; background: rgba(139, 92, 246, .08); }

/* панелът: картите */
.xp-card { padding: .9rem; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; }
.xp-card.xp-on { border-color: rgba(139, 92, 246, .55); box-shadow: 0 0 0 3px rgba(139, 92, 246, .08); }
.xp-ch { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .75rem; }
.xp-ch > div { flex: 1; min-width: 0; }
.xp-ch b { display: block; font-size: .88rem; color: #1e293b; }
.xp-ch small { display: block; margin-top: .1rem; font-size: .74rem; line-height: 1.4; color: #64748b; }
.xp-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(139, 92, 246, .1); color: #7c3aed; font-size: .85rem; }
.xp-ic.ok { background: #e6f5ed; color: #18714f; }
.xp-info, .xp-ok { display: flex; gap: .55rem; margin-bottom: .7rem; padding: .6rem .7rem; border-radius: 10px; font-size: .78rem; line-height: 1.45; }
.xp-info { background: rgba(139, 92, 246, .1); color: #7c3aed; }
.xp-ok { background: #e6f5ed; color: #18714f; font-weight: 700; }
.xp-info i, .xp-ok i { margin-top: .15rem; }
.xp-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.xp-card .xp-row { margin-top: .75rem; }
.xp-bell { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #64748b; cursor: pointer; }
.xp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.xp-kpis > div { padding: .55rem .65rem; border-radius: 10px; border: 1px solid #e2e8f0; }
.xp-kpis small { display: flex; align-items: center; gap: .3rem; font-size: .7rem; color: #64748b; }
.xp-kpis b { display: block; margin: .15rem 0; font-size: 1.05rem; }
.xp-kpis em { font-style: normal; font-size: .7rem; font-weight: 700; }
.xp-kpis .dn { color: #18714f; }
.xp-kpis .vs { color: #9a5b00; }
.xp-pro { padding: .08rem .32rem; border-radius: 5px; background: linear-gradient(135deg, #6300ff, #1acc8d); color: #fff; font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.xp-crm { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; padding: .5rem .65rem; border-radius: 10px; border: 1px solid #e2e8f0; font-size: .74rem; color: #475569; }
.xp-tag { padding: .12rem .4rem; border-radius: 6px; background: rgba(139, 92, 246, .12); color: #7c3aed; font-style: normal; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.xp-tag.ok { background: #e6f5ed; color: #18714f; }
.xp-tag.warn { background: #fdf3e1; color: #9a5b00; }
.xp-sub { display: flex; align-items: center; justify-content: space-between; margin: .5rem 0 .15rem; font-size: .76rem; }
.xp-sub b { display: flex; align-items: center; gap: .35rem; }
.xp-sub em { padding: .05rem .4rem; border-radius: 6px; background: #f1f5f9; color: #475569; font-style: normal; font-size: .68rem; font-weight: 800; }
.xp-line { display: flex; align-items: center; gap: .5rem; padding: .38rem 0; border-bottom: 1px dashed #e2e8f0; font-size: .74rem; }
.xp-line span { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.xp-line > i { font-size: .66rem; color: #94a3b8; }
.xp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .6rem; margin-bottom: .7rem; }
.xp-fact { display: flex; align-items: center; gap: .45rem; font-size: .78rem; cursor: pointer; }
.xp-fact input { width: 15px; height: 15px; margin: 0; accent-color: #8b5cf6; }
.xp-sel small { display: block; margin-bottom: .25rem; font-size: .72rem; color: #64748b; }
.xp-sel span { display: flex; align-items: center; justify-content: space-between; padding: .48rem .7rem; border-radius: 9px; border: 1px solid #cbd5e1; font-size: .78rem; }
.xp-sel i { font-size: .6rem; color: #94a3b8; }
.xp-text { display: none; max-height: 200px; overflow: auto; margin-top: .7rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid #cbd5e1; font-size: .78rem; line-height: 1.5; white-space: pre-line; }
.xp-text.show { display: block; }
.xp-text.busy { display: flex; align-items: center; gap: .5rem; color: #7c3aed; font-weight: 700; }
.xp-spin { width: 14px; height: 14px; flex: none; display: inline-block; border-radius: 50%; border: 2px solid rgba(139, 92, 246, .25); border-top-color: #8b5cf6; animation: xpSpin .8s linear infinite; }
@keyframes xpSpin { to { transform: rotate(360deg); } }
.xp-code, .xa-code { margin: .2rem 0 .7rem; padding: .8rem 0; border-radius: 10px; border: 1.5px dashed rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .06); color: #7c3aed; text-align: center; font: 800 1.4rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.xp-wait { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; font-size: .76rem; color: #475569; }
.xp-pair-ok .xp-ch { margin: 0; }
.xp-foot { margin: .8rem 0 0; text-align: center; font-size: .7rem; color: #94a3b8; }

/* страницата вляво: формата за нова обява */
.xf { height: 100%; overflow: hidden; padding: 1.1rem 1.3rem; font-size: .8rem; color: #334155; }
.xf-h { margin-bottom: .8rem; padding-bottom: .55rem; border-bottom: 2px solid #e2e8f0; font-size: .95rem; font-weight: 800; color: #1e293b; }
.xf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem .7rem; }
.xf-f { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.xf-f.w2 { grid-column: span 2; }
.xf-f.full { margin-top: .7rem; }
.xf-f > span, .xf-l { font-size: .66rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #64748b; }
.xf-in { display: block; min-height: 32px; overflow: hidden; padding: .42rem .55rem; border-radius: 7px; border: 1px solid #cbd5e1; background: #fff; color: #1e293b; font-style: normal; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; transition: border-color .25s, box-shadow .25s, background .25s; }
.xf-in.xf-ta { min-height: 58px; white-space: normal; font-weight: 600; line-height: 1.4; }
.xf-in.fill { border-color: #8b5cf6; background: #faf8ff; box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.xf-feats { margin-top: .75rem; }
.xf-feats > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem .6rem; margin-top: .35rem; }
.xf-cb { display: flex; align-items: center; gap: .4rem; font-size: .76rem; }
.xf-cb i { width: 14px; height: 14px; flex: none; display: grid; place-items: center; border-radius: 4px; border: 1.5px solid #cbd5e1; transition: background .25s, border-color .25s; }
.xf-cb.on i { background: #8b5cf6; border-color: #8b5cf6; }
.xf-cb.on i::after { content: ""; width: 6px; height: 3px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }
.xf-bottom { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: .7rem; margin-top: .7rem; }
.xf-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; margin-top: .3rem; }
.xf-slots i { aspect-ratio: 1; border-radius: 6px; border: 1.5px dashed #cbd5e1; background-position: center; background-size: cover; transition: border-color .3s, transform .3s; }
.xf-slots i.on { border: 0; background-image: var(--ph); transform: scale(1.04); }
.xf-save { margin-top: .9rem; padding: .62rem 1rem; border: 0; border-radius: 8px; background: #475569; color: #fff; font: inherit; font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; cursor: default; }
.xf-save.go { background: #8b5cf6; cursor: pointer; }

/* страницата вляво: чужда обява в imot.bg */
.xl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.2rem; padding: 1.3rem; }
.xl-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #e0f2fe; }
.xl-ph img { width: 100%; height: 100%; object-fit: cover; }
.xl-ph span { position: absolute; right: .5rem; bottom: .5rem; padding: .15rem .45rem; border-radius: 6px; background: rgba(15, 23, 42, .6); color: #fff; font-size: .68rem; }
.xl-t { display: block; font-size: 1rem; line-height: 1.35; color: #1e293b; }
.xl-p { margin: .5rem 0; font-size: 1.5rem; font-weight: 800; color: #1e293b; }
.xl-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.xl-meta span { padding: .2rem .5rem; border-radius: 6px; background: #f1f5f9; font-size: .72rem; font-weight: 700; color: #475569; }
.xl-by { display: flex; align-items: center; gap: .4rem; margin-top: .8rem; font-size: .75rem; font-weight: 800; color: #475569; }
.xl-lines { display: grid; gap: .45rem; margin-top: 1rem; }
.xl-lines i { height: 8px; border-radius: 4px; background: #eef2f6; }
.xl-lines i:nth-child(2) { width: 92%; }
.xl-lines i:nth-child(3) { width: 85%; }
.xl-lines i:nth-child(4) { width: 60%; }
.xl-th { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .4rem; }
.xl-th i { aspect-ratio: 4 / 3; border-radius: 8px; background: #e0f2fe center / cover; }
.xl-desc { grid-column: 1 / -1; padding-top: .9rem; border-top: 1px solid #e2e8f0; }
.xl-desc b { font-size: .85rem; color: #1e293b; }
.xl-desc .xl-lines { margin-top: .6rem; }
.xl-desc .xl-lines i:nth-child(5) { width: 40%; }

/* страницата вляво: новият пост във Facebook */
.xc { height: 100%; display: grid; place-items: center; padding: 1rem; background: #e9ebef; }
.xc-box { width: min(100%, 440px); padding: .9rem 1rem 1rem; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.xc-h { position: relative; display: flex; justify-content: center; margin-bottom: .7rem; padding-bottom: .6rem; border-bottom: 1px solid #e5e7eb; font-size: .95rem; }
.xc-h i { position: absolute; right: 0; top: -.2rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e4e6eb; font-size: .8rem; color: #475569; }
.xc-user { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.xc-user b { display: block; font-size: .82rem; }
.xc-user small { padding: .1rem .4rem; border-radius: 6px; background: #e4e6eb; font-size: .68rem; color: #334155; }
.xc-text { min-height: 60px; max-height: 170px; overflow: auto; font-size: .82rem; line-height: 1.5; white-space: pre-line; color: #1c1e21; }
.xc-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 56px 56px; gap: 3px; margin: .6rem 0; overflow: hidden; border-radius: 8px; }
.xc-photos i { background: #dbeafe center / cover; }
.xc-photos i:first-child { grid-row: span 2; }
.xc-post { width: 100%; padding: .62rem; border: 0; border-radius: 8px; background: #2563eb; color: #fff; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }

/* страницата вляво: одобрението в панела на OptiEstate */
.xa { height: 100%; display: grid; grid-template-columns: 150px 1fr; }
.xa-side { display: flex; flex-direction: column; gap: .6rem; padding: 1rem .8rem; background: #f8fafc; border-right: 1px solid #e2e8f0; }
.xa-side img { margin-bottom: .6rem; }
.xa-side i { height: 10px; border-radius: 5px; background: #e2e8f0; }
.xa-side i:nth-child(odd) { width: 75%; }
.xa-main { display: grid; place-items: center; padding: 1rem; background: #f1f5f9; }
.xa-dlg { width: min(100%, 360px); padding: 1.2rem; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .12); text-align: center; }
.xa-ic { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto .6rem; border-radius: 12px; background: rgba(139, 92, 246, .1); color: #7c3aed; }
.xa-dlg > b { font-size: .95rem; color: #1e293b; }
.xa-dlg p { margin: .4rem 0 .7rem; font-size: .76rem; line-height: 1.5; color: #64748b; }
.xa-as { display: grid; gap: .1rem; margin-bottom: .8rem; font-size: .74rem; color: #475569; }
.xa-as small { color: #64748b; }
.xa-btns { display: flex; justify-content: center; gap: .5rem; }
.xa-allow { padding: .55rem 1.1rem; border: 0; border-radius: 9px; background: #8b5cf6; color: #fff; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.xa-deny { padding: .55rem 1rem; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #334155; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.xa-allow[disabled] { opacity: .6; cursor: default; }

/* пулсът „натиснете тук“, съобщението и подсказката */
.xd .beacon { animation: xdBeacon 1.6s ease-out infinite; }
@keyframes xdBeacon { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55); } 100% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); } }
.xd-toast { position: absolute; left: 50%; bottom: 1rem; z-index: 5; max-width: 90%; display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: 12px; background: #1e293b; color: #fff; font-size: .8rem; font-weight: 700; box-shadow: 0 12px 32px rgba(15, 23, 42, .25); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .3s, transform .3s; }
.xd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.xd-toast i { color: #4ade80; }
.xd-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 1.1rem 0 0; text-align: center; font-size: .95rem; color: var(--text-muted); }
.xd-hint i { color: #6300ff; }
.xd-hint span { font-weight: 700; color: var(--dark); }
.xd-hint small { flex-basis: 100%; font-size: .76rem; color: #94a3b8; }

/* ── трите неща от един панел ───────────────────────────── */
.x3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.x3 { position: relative; padding: 1.7rem 1.5rem 1.5rem; border-radius: 20px; background: #fff; border: 1px solid rgba(99, 0, 255, .1); box-shadow: 0 14px 34px rgba(26, 31, 54, .06); }
.x3-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, var(--main-color-solid), var(--accent-color)); color: #fff; font-size: 1.2rem; }
.x3-tag { position: absolute; top: 1.9rem; right: 1.4rem; padding: .25rem .65rem; border-radius: 999px; background: #F3EEFF; color: #6300ff; font-style: normal; font-size: .74rem; font-weight: 800; }
.x3 h3 { margin: 1.1rem 0 .5rem; font-size: 1.2rem; color: var(--dark); }
.x3 p { margin: 0; font-size: .97rem; line-height: 1.65; color: var(--text-muted); }

/* ── браузърите ─────────────────────────────────────────── */
.xb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.xb { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.8rem 1.25rem 1.5rem; border-radius: 20px; background: #fff; border: 1px solid rgba(99, 0, 255, .1); box-shadow: 0 14px 34px rgba(26, 31, 54, .06); text-align: center; }
.xb.on { border-color: rgba(99, 0, 255, .3); box-shadow: 0 18px 40px rgba(99, 0, 255, .12); }
.xb-ic { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: .5rem; border-radius: 18px; background: #F3EEFF; color: #6300ff; font-size: 1.9rem; }
.xb:not(.on) .xb-ic { background: #f1f5f9; color: #64748b; }
.xb b { font-size: 1.1rem; color: var(--dark); }
.xb small { font-size: .9rem; color: var(--text-muted); }
.xb .btn { margin-top: .9rem; }
.xb-soon { margin-top: .9rem; padding: .45rem 1rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .82rem; font-weight: 800; }
.xb-note { max-width: 760px; margin: 2rem auto 0; text-align: center; font-size: .82rem; line-height: 1.6; color: var(--text-muted); }

/* ── по-тесни екрани ────────────────────────────────────── */
@media (max-width: 900px) {
    .xd-body { grid-template-columns: 1fr; height: auto; }
    .xd-panel { order: -1; border-bottom: 1px solid #e2e8f0; }
    .xp-body { overflow: visible; }
    .xd-page { border-right: 0; }
    .xd-pg { height: auto; }
    .xc, .xa-main { min-height: 400px; }
    .xa { grid-template-columns: 1fr; }
    .xa-side { display: none; }
    .xb-grid { grid-template-columns: 1fr; max-width: 420px; }
    .x3-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 600px) {
    .xd-tab { padding: .55rem .8rem; font-size: .82rem; }
    .xd-url { margin-left: .4rem; font-size: .74rem; }
    .xf { padding: 1rem; }
    .xf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xf-feats > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xf-bottom { grid-template-columns: 1fr; }
    .xl { grid-template-columns: 1fr; padding: 1rem; }
    .xd-frame > .pgx-badge { right: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .xd .beacon, .xp-spin { animation: none; }
    .xd-toast, .xf-in, .xp-steps li i { transition: none; }
}
