/* ==========================================================
   EdinStack — design system (Bootstrap 5.3 + light/dark theme)
   Theme is set on <html data-bs-theme="light|dark">
   ========================================================== */

/* ---------- Tokens: light ---------- */
:root,
[data-bs-theme="light"] {
    --es-bg: #f6f6fb;
    --es-bg-soft: #eeeef7;
    --es-surface: #ffffff;
    --es-surface-2: #f9f9fd;
    --es-border: #e6e6f0;
    --es-border-strong: #d4d4e2;
    --es-text: #0f1222;
    --es-muted: #6a6f87;
    --es-subtle: #9a9eb4;
    --es-primary: #6d4dff;
    --es-primary-2: #2fb8ff;
    --es-primary-soft: rgba(109, 77, 255, .1);
    --es-accent: #c9f03c;
    --es-success: #16a34a;
    --es-warning: #d97706;
    --es-danger: #e11d48;
    --es-grad: linear-gradient(135deg, #6d4dff 0%, #2fb8ff 100%);
    --es-grad-soft: linear-gradient(135deg, rgba(109,77,255,.12), rgba(47,184,255,.12));
    --es-shadow-sm: 0 1px 2px rgba(16, 18, 40, .05);
    --es-shadow: 0 10px 30px -12px rgba(16, 18, 40, .14);
    --es-shadow-lg: 0 30px 60px -20px rgba(40, 30, 120, .25);
    --es-nav-bg: rgba(255, 255, 255, .72);
    --es-glow: rgba(109, 77, 255, .35);
    --es-grid-line: rgba(15, 18, 34, .05);

    --bs-body-bg: var(--es-bg);
    --bs-body-color: var(--es-text);
    --bs-border-color: var(--es-border);
    --bs-secondary-color: var(--es-muted);
    --bs-tertiary-bg: var(--es-surface-2);
    --bs-link-color: var(--es-primary);
    --bs-link-color-rgb: 109, 77, 255;
    --bs-link-hover-color: #5638f0;
    --bs-link-hover-color-rgb: 86, 56, 240;
    --bs-emphasis-color: var(--es-text);
}

/* ---------- Tokens: dark ---------- */
[data-bs-theme="dark"] {
    --es-bg: #090a11;
    --es-bg-soft: #0f1019;
    --es-surface: #11131d;
    --es-surface-2: #161927;
    --es-border: #222538;
    --es-border-strong: #2e3249;
    --es-text: #eceef8;
    --es-muted: #8f94ae;
    --es-subtle: #62667e;
    --es-primary: #8b72ff;
    --es-primary-2: #4cc6ff;
    --es-primary-soft: rgba(139, 114, 255, .14);
    --es-success: #22c55e;
    --es-warning: #f59e0b;
    --es-danger: #fb7185;
    --es-grad: linear-gradient(135deg, #8b72ff 0%, #4cc6ff 100%);
    --es-grad-soft: linear-gradient(135deg, rgba(139,114,255,.16), rgba(76,198,255,.1));
    --es-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --es-shadow: 0 12px 32px -14px rgba(0, 0, 0, .7);
    --es-shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .85);
    --es-nav-bg: rgba(9, 10, 17, .7);
    --es-glow: rgba(139, 114, 255, .45);
    --es-grid-line: rgba(255, 255, 255, .045);

    --bs-body-bg: var(--es-bg);
    --bs-body-color: var(--es-text);
    --bs-border-color: var(--es-border);
    --bs-secondary-color: var(--es-muted);
    --bs-tertiary-bg: var(--es-surface-2);
    --bs-link-color: var(--es-primary);
    --bs-link-color-rgb: 139, 114, 255;
    --bs-link-hover-color: #a593ff;
    --bs-link-hover-color-rgb: 165, 147, 255;
    --bs-emphasis-color: var(--es-text);
    color-scheme: dark;
}

/* ---------- Base ---------- */
:root {
    --es-radius: 18px;
    --es-radius-sm: 12px;
    --bs-body-font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;
}
html { scroll-behavior: smooth; }
body {
    background: var(--es-bg);
    color: var(--es-text);
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.025em; color: var(--es-text); }
.text-muted, .text-secondary { color: var(--es-muted) !important; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.bx { vertical-align: -0.125em; line-height: 1; }
.grad-text { background: var(--es-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: var(--es-primary); color: #fff; }
a { text-decoration: none; }
hr { border-color: var(--es-border); opacity: 1; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .55rem 1.05rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.btn-sm { padding: .38rem .75rem; border-radius: 10px; font-size: .85rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--es-grad); color: #fff; border: 0; box-shadow: 0 8px 22px -8px var(--es-glow); }
.btn-brand:hover, .btn-brand:focus { color: #fff; box-shadow: 0 12px 28px -8px var(--es-glow); transform: translateY(-1px); filter: saturate(1.1); }
/* Solid "inverse" button: dark in light theme, light in dark theme. Uses Bootstrap's button
   variables so hover/focus/active keep the same colours instead of falling back to transparent. */
.btn-dark-es {
    --bs-btn-color: var(--es-bg); --bs-btn-bg: var(--es-text); --bs-btn-border-color: var(--es-text);
    --bs-btn-hover-color: var(--es-bg); --bs-btn-hover-bg: color-mix(in srgb, var(--es-text) 84%, var(--es-bg)); --bs-btn-hover-border-color: color-mix(in srgb, var(--es-text) 84%, var(--es-bg));
    --bs-btn-active-color: var(--es-bg); --bs-btn-active-bg: color-mix(in srgb, var(--es-text) 74%, var(--es-bg)); --bs-btn-active-border-color: color-mix(in srgb, var(--es-text) 74%, var(--es-bg));
    --bs-btn-focus-shadow-rgb: 109, 77, 255;
    --bs-btn-disabled-color: var(--es-bg); --bs-btn-disabled-bg: var(--es-text); --bs-btn-disabled-border-color: var(--es-text);
}
.btn-soft { background: var(--es-surface); color: var(--es-text); border: 1px solid var(--es-border); box-shadow: var(--es-shadow-sm); }
.btn-soft:hover { border-color: var(--es-border-strong); color: var(--es-text); background: var(--es-surface-2); }
.btn-ghost { background: transparent; color: var(--es-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--es-text); background: var(--es-surface-2); }
.btn-success-es { background: var(--es-success); color: #fff; border: 0; }
.btn-success-es:hover { color: #fff; filter: brightness(1.08); }
.btn-danger-soft { background: rgba(225, 29, 72, .08); color: var(--es-danger); border: 1px solid rgba(225, 29, 72, .2); }
.btn-danger-soft:hover { background: var(--es-danger); color: #fff; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 11px; font-size: 1.15rem; }
.btn-icon.btn-sm { width: 32px; height: 32px; font-size: 1rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .88rem; color: var(--es-text); }
.form-control, .form-select {
    background-color: var(--es-surface); border: 1px solid var(--es-border-strong); color: var(--es-text);
    border-radius: 12px; padding: .65rem .9rem; transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: var(--es-subtle); }
/* Selects: leave room for the chevron (our padding above would otherwise cover it) */
.form-select { padding-right: 2.6rem; background-position: right .9rem center; background-size: 14px 10px; }
.form-select.w-auto { min-width: 9.5rem; }
.form-select-sm { padding: .4rem 2.2rem .4rem .7rem; background-position: right .65rem center; font-size: .85rem; border-radius: 10px; }
.form-control:focus, .form-select:focus { background-color: var(--es-surface); color: var(--es-text); border-color: var(--es-primary); box-shadow: 0 0 0 4px var(--es-primary-soft); }
.form-control::file-selector-button { background: var(--es-surface-2); color: var(--es-text); border-color: var(--es-border-strong); }
.form-text { color: var(--es-muted); }
.input-group-text { background: var(--es-surface-2); border-color: var(--es-border-strong); color: var(--es-muted); border-radius: 12px; }
.form-check-input { background-color: var(--es-surface); border-color: var(--es-border-strong); }
.form-check-input:checked { background-color: var(--es-primary); border-color: var(--es-primary); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--es-primary-soft); border-color: var(--es-primary); }
.input-icon { position: relative; }
.input-icon > .bx, .input-icon > .fa-brands { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--es-subtle); font-size: 1.15rem; pointer-events: none; }
.input-icon > .form-control { padding-left: 2.5rem; }

/* ---------- Surfaces ---------- */
.surface { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: var(--es-radius); box-shadow: var(--es-shadow-sm); }
.surface-pad { padding: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .28rem .65rem; border-radius: 999px; background: var(--es-surface-2); color: var(--es-muted); border: 1px solid var(--es-border); }
.chip-brand { background: var(--es-primary-soft); color: var(--es-primary); border-color: transparent; }
.tech-chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: .22rem .55rem; border-radius: 8px; background: var(--es-surface-2); color: var(--es-muted); border: 1px solid var(--es-border); margin: 0 .25rem .3rem 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--es-primary); }

/* Status pills */
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: rgba(217, 119, 6, .12); color: var(--es-warning); }
.status-approved { background: rgba(22, 163, 74, .12); color: var(--es-success); }
.status-rejected { background: rgba(225, 29, 72, .12); color: var(--es-danger); }
.status-neutral { background: var(--es-surface-2); color: var(--es-muted); }

/* ---------- Navbar ---------- */
.es-nav { background: var(--es-nav-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--es-border); }
.es-nav .navbar-brand { font-weight: 800; font-size: 1.2rem; color: var(--es-text); letter-spacing: -0.03em; display: flex; align-items: center; gap: .55rem; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--es-grad); color: #fff; font-size: 1.2rem; box-shadow: 0 6px 16px -6px var(--es-glow); }
.es-nav .nav-link { color: var(--es-muted); font-weight: 600; font-size: .93rem; padding: .5rem .85rem !important; border-radius: 10px; }
.es-nav .nav-link:hover { color: var(--es-text); background: var(--es-surface-2); }
.es-nav .nav-link.active { color: var(--es-text); background: var(--es-surface-2); }
.es-nav .navbar-toggler { border: 1px solid var(--es-border); border-radius: 10px; color: var(--es-text); font-size: 1.4rem; padding: .3rem .5rem; }
.es-nav .navbar-toggler:focus { box-shadow: none; }
.theme-toggle .bx-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .bx-sun { display: inline-block; }
[data-bs-theme="dark"] .theme-toggle .bx-moon { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--es-grad); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.dropdown-menu { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 14px; box-shadow: var(--es-shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 9px; padding: .55rem .75rem; color: var(--es-text); font-weight: 500; display: flex; align-items: center; gap: .55rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--es-surface-2); color: var(--es-text); }
.dropdown-divider { border-color: var(--es-border); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 5rem; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
    background-image: linear-gradient(var(--es-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--es-grid-line) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; z-index: -1; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; background: #6d4dff; top: -220px; left: -120px; }
.blob-2 { width: 460px; height: 460px; background: #2fb8ff; top: -160px; right: -140px; opacity: .4; }
[data-bs-theme="dark"] .blob { opacity: .35; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .45rem .35rem .4rem; border-radius: 999px; background: var(--es-surface); border: 1px solid var(--es-border); font-size: .82rem; font-weight: 600; color: var(--es-muted); box-shadow: var(--es-shadow-sm); }
.hero-badge .new { background: var(--es-grad); color: #fff; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.045em; }
.hero .lead { color: var(--es-muted); font-size: 1.15rem; max-width: 600px; margin-inline: auto; }
.hero-search { display: flex; align-items: center; gap: .5rem; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 18px; padding: .45rem .45rem .45rem 1rem; max-width: 600px; margin-inline: auto; box-shadow: var(--es-shadow-lg); }
.hero-search .bx { font-size: 1.35rem; color: var(--es-subtle); }
.hero-search input { border: 0; background: transparent; box-shadow: none !important; padding-left: .25rem; font-size: 1rem; }
.hero-search input:focus { background: transparent; }
.hero-tags a { font-size: .82rem; color: var(--es-muted); border: 1px solid var(--es-border); background: var(--es-surface); padding: .3rem .75rem; border-radius: 999px; transition: .15s; }
.hero-tags a:hover { color: var(--es-primary); border-color: var(--es-primary); }
.stat-strip { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.stat-strip strong { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-strip span { font-size: .85rem; color: var(--es-muted); }
.stat-strip .stat-star { color: #f5b301; font-size: .8em; vertical-align: .05em; }

/* Browser mockup in hero */
.mock { margin-top: 4rem; border-radius: 22px; border: 1px solid var(--es-border); background: var(--es-surface); box-shadow: var(--es-shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--es-border); background: var(--es-surface-2); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--es-border-strong); }
.mock-bar span:nth-child(1) { background: #ff5f57; } .mock-bar span:nth-child(2) { background: #febc2e; } .mock-bar span:nth-child(3) { background: #28c840; }
.mock-url { margin-left: 1rem; flex: 1; max-width: 420px; height: 26px; border-radius: 8px; background: var(--es-surface); border: 1px solid var(--es-border); font-size: .75rem; color: var(--es-subtle); display: flex; align-items: center; padding: 0 .7rem; gap: .35rem; }
.mock-body { padding: 1.25rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-head { margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: .5rem 0 0; }
.section-alt { background: var(--es-bg-soft); border-block: 1px solid var(--es-border); }

/* Category tiles */
.cat-tile { display: block; position: relative; overflow: hidden; padding: 1.6rem; border-radius: var(--es-radius); background: var(--es-surface); border: 1px solid var(--es-border); color: var(--es-text); height: 100%; transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--es-primary); box-shadow: var(--es-shadow); color: var(--es-text); }
.cat-tile .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--es-grad-soft); color: var(--es-primary); margin-bottom: 1.1rem; }
.cat-tile .arrow { position: absolute; top: 1.4rem; right: 1.4rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--es-border); color: var(--es-muted); transition: .2s; }
.cat-tile:hover .arrow { background: var(--es-primary); color: #fff; border-color: var(--es-primary); transform: rotate(-45deg); }

/* ---------- Product card ---------- */
.p-card { position: relative; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: var(--es-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--es-shadow-lg); border-color: var(--es-border-strong); }
.p-thumb { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; margin: .55rem .55rem 0; border-radius: 13px; text-decoration: none; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-card:hover .p-thumb img, .p-card:hover .p-ph { transform: scale(1.04); }
.p-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; font-size: .7rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; letter-spacing: .03em; display: inline-flex; align-items: center; gap: .25rem; backdrop-filter: blur(8px); }
.p-badge.free { background: rgba(201, 240, 60, .95); color: #1d2600; }
.p-badge.premium { background: var(--es-grad); color: #fff; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 4px 12px -4px rgba(15, 18, 34, .45); }
.p-badge.premium .bxs-star { color: #ffd84d; }
.p-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.p-type { font-size: .74rem; color: var(--es-muted); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.p-title { font-size: 1.06rem; font-weight: 700; margin: .3rem 0 .35rem; }
.p-title a { color: var(--es-text); }
.p-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-desc { font-size: .87rem; color: var(--es-muted); margin-bottom: .75rem; }
.p-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .85rem; border-top: 1px dashed var(--es-border); }
.p-tech { margin-bottom: 1rem; }
.p-price { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.p-price.free { color: var(--es-success); }
.p-meta { font-size: .8rem; color: var(--es-muted); display: inline-flex; align-items: center; gap: .25rem; }

/* Placeholder artwork (when no thumbnail) */
.p-ph { width: 100%; height: 100%; position: relative; overflow: hidden; color: #fff; transition: transform .4s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; }
.p-ph::before { content: ""; position: absolute; inset: 14% 10% auto 10%; height: 54%; border-radius: 10px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(2px);
    background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)), linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)), linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28));
    background-size: 38% 8px, 60% 6px, 48% 6px; background-position: 10% 22%, 10% 46%, 10% 62%; background-repeat: no-repeat; }
.p-ph::after { content: ""; position: absolute; width: 60%; height: 120%; right: -25%; top: -40%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%); }
.p-ph .ph-ico { position: absolute; top: 1rem; right: 1rem; font-size: 1.4rem; opacity: .9; z-index: 1; }
.p-ph .ph-title { position: relative; z-index: 1; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.ph-template { background: linear-gradient(135deg, #5b3df5 0%, #2fb8ff 100%); }
.ph-ui_kit { background: linear-gradient(135deg, #ff4d8d 0%, #ff9a3d 100%); }
.ph-web_app { background: linear-gradient(135deg, #0e9f7e 0%, #2fd3a5 55%, #b8f06a 100%); }
.p-ph.compact { padding: 0; justify-content: center; align-items: center; }
.p-ph.compact::before, .p-ph.compact::after { display: none; }
.p-ph.compact .ph-ico { position: static; font-size: 1.2rem; }

/* ---------- Page header ---------- */
.page-hero { position: relative; overflow: hidden; padding: 3.25rem 0 2.75rem; border-bottom: 1px solid var(--es-border); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--es-grad-soft); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(var(--es-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--es-grid-line) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: .35rem; }
.page-hero p { color: var(--es-muted); margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--es-subtle); --bs-breadcrumb-item-active-color: var(--es-muted); font-size: .85rem; }

/* Filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: .2rem; } /* wraps to more rows so every category stays visible on phones */
.filter-pill { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; border: 1px solid var(--es-border); border-radius: 999px; padding: .45rem .95rem; font-size: .87rem; font-weight: 600; color: var(--es-muted); background: var(--es-surface); transition: .15s; }
.filter-pill:hover { color: var(--es-text); border-color: var(--es-border-strong); }
.filter-pill.active { background: var(--es-text); color: var(--es-bg); border-color: var(--es-text); }
.filter-pill .count { font-size: .72rem; opacity: .7; }

/* ---------- Product page ---------- */
.detail-media { border-radius: 22px; overflow: hidden; border: 1px solid var(--es-border); box-shadow: var(--es-shadow); }
.detail-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.detail-media .p-ph { aspect-ratio: 16/9; padding: 2rem; }
.detail-media .p-ph .ph-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.detail-media .p-ph .ph-ico { font-size: 2rem; top: 1.5rem; right: 1.5rem; }
.buy-box { position: sticky; top: 92px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 22px; padding: 1.6rem; box-shadow: var(--es-shadow); }
.buy-box .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.meta-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--es-border); font-size: .9rem; }
.meta-row:last-child { border-bottom: 0; }
.meta-row > span:first-child { color: var(--es-muted); display: inline-flex; align-items: center; gap: .45rem; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.feature-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.feature-list .bx { color: var(--es-success); font-size: 1.15rem; margin-top: .05rem; }
.prose { white-space: pre-line; line-height: 1.75; color: var(--es-muted); }
.owned-banner { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: 12px; background: rgba(22, 163, 74, .1); color: var(--es-success); font-weight: 600; font-size: .9rem; }
.pending-banner { display: flex; gap: .6rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(217, 119, 6, .1); color: var(--es-warning); font-size: .88rem; }

/* ---------- Checkout ---------- */
.step-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.step-num { width: 32px; height: 32px; border-radius: 10px; background: var(--es-grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.pay-option { display: block; cursor: pointer; margin: 0; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card { display: flex; align-items: center; gap: .85rem; padding: 1rem; border-radius: 16px; border: 1.5px solid var(--es-border); background: var(--es-surface); transition: .18s; position: relative; height: 100%; }
.pay-card:hover { border-color: var(--es-border-strong); }
.pay-card .check { position: absolute; top: .65rem; right: .65rem; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--es-border-strong); display: grid; place-items: center; font-size: .85rem; color: transparent; transition: .18s; }
.pay-option input:checked + .pay-card { border-color: var(--es-primary); background: var(--es-primary-soft); box-shadow: 0 0 0 4px var(--es-primary-soft); }
.pay-option input:checked + .pay-card .check { background: var(--es-primary); border-color: var(--es-primary); color: #fff; }
.pay-option input:focus-visible + .pay-card { outline: 2px solid var(--es-primary); outline-offset: 2px; }
.pay-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.45rem; flex-shrink: 0; }
.pay-details { display: none; animation: fadeUp .25s ease; }
.pay-details.show { display: block; }
.acct-card { position: relative; overflow: hidden; border-radius: 20px; padding: 1.5rem; color: #fff; background: #12131f; isolation: isolate; }
.acct-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 0%, var(--acct-color, #6d4dff) 0%, transparent 55%), radial-gradient(circle at 0% 100%, rgba(47,184,255,.35), transparent 50%); opacity: .85; }
.acct-card .label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.acct-card .num { font-family: "JetBrains Mono", monospace; font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: .05em; font-weight: 700; }
.acct-card .copy-btn { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.acct-card .copy-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.acct-card .instructions { color: rgba(255,255,255,.7); font-size: .87rem; white-space: pre-line; }
.qr-wrap { background: #fff; padding: .6rem; border-radius: 14px; display: inline-block; }
.qr-wrap img { max-width: 180px; width: 100%; display: block; }
.dropzone { position: relative; border: 1.5px dashed var(--es-border-strong); border-radius: 16px; padding: 1.5rem; text-align: center; background: var(--es-surface-2); transition: .18s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--es-primary); background: var(--es-primary-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .bx { font-size: 2rem; color: var(--es-primary); }
.dropzone img { display: block; max-width: 100%; max-height: 180px; height: auto; margin: .75rem auto 0; border-radius: 10px; object-fit: contain; box-shadow: var(--es-shadow); }
.dropzone [data-file-label] { overflow-wrap: anywhere; }
.dropzone-fill { flex: 1 1 auto; display: flex !important; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.dropzone.is-invalid { border-color: var(--es-danger); }
.summary-thumb { width: 74px; height: 52px; border-radius: 11px; overflow: hidden; flex-shrink: 0; }
.summary-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Purchases ---------- */
.order-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; }
.order-row + .order-row { border-top: 1px solid var(--es-border); }
.order-thumb { width: 84px; height: 58px; border-radius: 12px; overflow: hidden; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .order-row { grid-template-columns: auto 1fr; } .order-row .order-actions { grid-column: 1 / -1; } }

/* ---------- Auth ---------- */
.auth-shell { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: #0d0e18; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.auth-side .blob { opacity: .55 !important; }
.auth-side h2 { color: #fff; font-size: 2.1rem; font-weight: 800; }
.auth-side p { color: rgba(255,255,255,.65); }
.auth-side .quote { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); border-radius: 18px; padding: 1.25rem; backdrop-filter: blur(10px); }
.auth-main { display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--es-muted); }
.empty-state .ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: var(--es-grad-soft); color: var(--es-primary); }

/* ---------- How it works ---------- */
.step-card { padding: 1.5rem; border-radius: var(--es-radius); background: var(--es-surface); border: 1px solid var(--es-border); height: 100%; position: relative; }
.step-card .n { font-family: "JetBrains Mono", monospace; font-size: .8rem; font-weight: 700; color: var(--es-subtle); position: absolute; top: 1.3rem; right: 1.4rem; }
.step-card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: var(--es-grad-soft); color: var(--es-primary); margin-bottom: 1rem; }
.pay-logos { display: flex; gap: .6rem; flex-wrap: wrap; }
.pay-logo { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 12px; background: var(--es-surface); border: 1px solid var(--es-border); font-weight: 700; font-size: .88rem; }
.pay-logo .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); background: #0d0e18; color: #fff; isolation: isolate; }
.cta .blob { opacity: .55 !important; }
.cta h2 { color: #fff; font-weight: 800; }
.cta p { color: rgba(255,255,255,.7); }

/* ---------- Footer ---------- */
.es-footer { border-top: 1px solid var(--es-border); padding: 4rem 0 1.75rem; background: var(--es-bg-soft); }
.es-footer h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--es-subtle); margin-bottom: 1rem; }
.es-footer a { color: var(--es-muted); font-size: .92rem; }
.es-footer a:hover { color: var(--es-text); }
.es-footer .credit { border-top: 1px solid var(--es-border); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: var(--es-muted); }

/* ---------- Pagination ---------- */
.pagination { --bs-pagination-bg: var(--es-surface); --bs-pagination-border-color: var(--es-border); --bs-pagination-color: var(--es-text); --bs-pagination-hover-bg: var(--es-surface-2); --bs-pagination-hover-color: var(--es-text); --bs-pagination-hover-border-color: var(--es-border-strong); --bs-pagination-active-bg: var(--es-primary); --bs-pagination-active-border-color: var(--es-primary); --bs-pagination-disabled-bg: var(--es-surface); --bs-pagination-disabled-color: var(--es-subtle); --bs-pagination-disabled-border-color: var(--es-border); --bs-pagination-focus-box-shadow: 0 0 0 4px var(--es-primary-soft); gap: .3rem; }
.pagination .page-link { border-radius: 10px !important; min-width: 38px; text-align: center; font-weight: 600; }
nav p.small.text-muted { display: none; }

/* ---------- Toasts ---------- */
.es-toast-wrap { position: fixed; top: 84px; right: 1rem; z-index: 1090; display: grid; gap: .6rem; max-width: min(380px, calc(100% - 2rem)); }
.es-toast { display: flex; gap: .7rem; align-items: flex-start; background: var(--es-surface); color: var(--es-text); border: 1px solid var(--es-border); border-radius: 14px; padding: .85rem 1rem; box-shadow: var(--es-shadow-lg); animation: slideIn .3s ease; }
.es-toast .ico { font-size: 1.35rem; flex-shrink: 0; }
.es-toast.success .ico { color: var(--es-success); }
.es-toast.error .ico { color: var(--es-danger); }
.es-toast.info .ico { color: var(--es-primary); }
.es-toast .close { margin-left: auto; background: none; border: 0; color: var(--es-subtle); font-size: 1.2rem; padding: 0; line-height: 1; }
.es-toast.hide { opacity: 0; transform: translateX(20px); transition: .3s; }
.alert-es { display: flex; gap: .6rem; align-items: flex-start; border-radius: 12px; padding: .85rem 1rem; font-size: .9rem; border: 1px solid; }
.alert-es.danger { background: rgba(225,29,72,.08); color: var(--es-danger); border-color: rgba(225,29,72,.2); }
.alert-es.info { background: var(--es-primary-soft); color: var(--es-primary); border-color: transparent; }
.alert-es.neutral { background: var(--es-surface-2); color: var(--es-text); border-color: var(--es-border); }
.alert-es.success { background: rgba(22,163,74,.09); color: var(--es-success); border-color: rgba(22,163,74,.22); }

@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   Admin
   ========================================================== */
.admin-body { background: var(--es-bg); }
.admin-sidebar { width: 264px; position: fixed; inset: 0 auto 0 0; z-index: 1045; background: var(--es-surface); border-right: 1px solid var(--es-border); display: flex; flex-direction: column; padding: 1.1rem .85rem; transition: transform .25s ease; }
.admin-sidebar .brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--es-text); padding: .3rem .55rem 1.3rem; letter-spacing: -0.03em; }
.admin-sidebar .brand small { font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; background: var(--es-primary-soft); color: var(--es-primary); letter-spacing: .04em; }
.side-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--es-subtle); padding: 1rem .8rem .45rem; }
.side-link { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 11px; color: var(--es-muted); font-weight: 600; font-size: .92rem; margin-bottom: .15rem; transition: .15s; position: relative; width: 100%; border: 0; background: none; text-align: left; }
.side-link .bx { font-size: 1.25rem; }
.side-link:hover { background: var(--es-surface-2); color: var(--es-text); }
.side-link.active { background: var(--es-primary-soft); color: var(--es-primary); }
.side-link.active::before { content: ""; position: absolute; left: -.85rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--es-primary); }
.side-link .count { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: var(--es-warning); color: #fff; }
.side-foot { margin-top: auto; padding: .9rem; border-radius: 14px; background: var(--es-grad-soft); border: 1px solid var(--es-border); }
.admin-main { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.75rem; background: var(--es-nav-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--es-border); }
.admin-topbar h1 { font-size: 1.2rem; margin: 0; font-weight: 800; }
.admin-topbar .crumb { font-size: .78rem; color: var(--es-subtle); font-weight: 600; }
.admin-content { padding: 1.75rem; flex: 1; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(5, 6, 12, .5); z-index: 1040; backdrop-filter: blur(2px); }

.stat-card { position: relative; overflow: hidden; padding: 1.25rem 1.35rem; border-radius: var(--es-radius); background: var(--es-surface); border: 1px solid var(--es-border); height: 100%; box-shadow: var(--es-shadow-sm); }
.stat-card .label { font-size: .82rem; font-weight: 600; color: var(--es-muted); }
.stat-card .value { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.035em; margin: .35rem 0 .15rem; }
.stat-card .sub { font-size: .8rem; color: var(--es-muted); }
.stat-card .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; }
.ico-violet { background: rgba(109,77,255,.12); color: var(--es-primary); }
.ico-amber { background: rgba(217,119,6,.12); color: var(--es-warning); }
.ico-blue { background: rgba(47,184,255,.14); color: #1593d6; }
.ico-green { background: rgba(22,163,74,.12); color: var(--es-success); }
[data-bs-theme="dark"] .ico-blue { color: #4cc6ff; }
.stat-card.hero-stat { background: var(--es-grad); border: 0; color: #fff; box-shadow: 0 18px 40px -18px var(--es-glow); }
.stat-card.hero-stat .label, .stat-card.hero-stat .sub { color: rgba(255,255,255,.8); }
.stat-card.hero-stat .ico { background: rgba(255,255,255,.18); color: #fff; }
.stat-card.hero-stat::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; bottom: -90px; background: rgba(255,255,255,.12); }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.35rem; border-bottom: 1px solid var(--es-border); }
.card-head h2 { font-size: 1rem; margin: 0; font-weight: 700; }
.table-es { --bs-table-bg: transparent; --bs-table-color: var(--es-text); --bs-table-hover-bg: var(--es-surface-2); --bs-table-hover-color: var(--es-text); margin: 0; }
.table-es thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--es-subtle); font-weight: 700; background: var(--es-surface-2); border-bottom: 1px solid var(--es-border); padding: .8rem 1rem; white-space: nowrap; }
.table-es td { vertical-align: middle; padding: .85rem 1rem; border-color: var(--es-border); }
.table-es tbody tr:last-child td { border-bottom: 0; }
.mini-thumb { width: 56px; height: 40px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proof-frame { border-radius: 14px; background: var(--es-surface-2); border: 1px solid var(--es-border); padding: .75rem; }
.proof-img { max-height: 560px; width: 100%; object-fit: contain; border-radius: 10px; }
.bar-chart { display: flex; align-items: flex-end; gap: .55rem; height: 170px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .4rem; }
.bar-fill { width: 100%; max-width: 38px; border-radius: 9px 9px 4px 4px; background: var(--es-border-strong); min-height: 5px; transition: height .6s ease; }
.bar-col:hover .bar-fill, .bar-col.today .bar-fill { background: var(--es-grad); }
.bar-col small { font-size: .68rem; color: var(--es-subtle); white-space: nowrap; }
.rank { width: 26px; height: 26px; border-radius: 8px; background: var(--es-surface-2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--es-muted); flex-shrink: 0; }
.progress-thin { height: 6px; background: var(--es-surface-2); border-radius: 999px; overflow: hidden; }
.progress-thin span { display: block; height: 100%; background: var(--es-grad); border-radius: inherit; }
.pm-card { position: relative; overflow: hidden; }
.pm-card .pm-top { height: 6px; }

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); box-shadow: var(--es-shadow-lg); }
    .admin-sidebar.open { transform: none; }
    .admin-sidebar.open ~ .sidebar-backdrop { display: block; }
    .admin-main { margin-left: 0; }
    .admin-topbar, .admin-content { padding-inline: 1rem; }
    .buy-box { position: static; }
    .hero { padding: 3.5rem 0 3rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.min-w-0 { min-width: 0; }

/* ---------- Confirm modal ---------- */
.modal-content { background: var(--es-surface); color: var(--es-text); border: 1px solid var(--es-border); }
.confirm-modal { border-radius: 22px; box-shadow: var(--es-shadow-lg); }
.modal-backdrop.show { opacity: .55; }
.confirm-icon { width: 64px; height: 64px; margin: .25rem auto 1.1rem; border-radius: 20px; display: grid; place-items: center; font-size: 1.9rem; position: relative; }
.confirm-icon.danger { background: rgba(225, 29, 72, .12); color: var(--es-danger); }
.confirm-icon.primary { background: var(--es-primary-soft); color: var(--es-primary); }
.confirm-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 26px; border: 1px solid currentColor; opacity: .18; }
.modal.fade .modal-dialog { transform: scale(.94); transition: transform .2s ease; }
.modal.show .modal-dialog { transform: none; }
.btn-danger-solid { background: var(--es-danger); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(225, 29, 72, .6); }
.btn-danger-solid:hover, .btn-danger-solid:focus { background: #be123c; color: #fff; }
.chip { white-space: nowrap; }

/* ---------- Payment logos ---------- */
.pay-ico-logo { background: #fff; border: 1px solid var(--es-border); padding: 0; overflow: hidden; flex-shrink: 0; }
.pay-ico-logo img { width: 78%; height: 78%; object-fit: contain; display: block; }
.pay-logo { padding: .4rem .8rem .4rem .45rem; }
.pay-logo .pay-ico { flex-shrink: 0; }

/* ---------- Social links (plain icons, no boxes) ---------- */
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.social { display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; padding: .25rem; border: 0; background: none; color: var(--es-subtle); font-size: 1.35rem; line-height: 1; transition: color .18s ease, transform .18s ease; }
.social:hover, .social:focus-visible { color: var(--es-text); background: none; transform: translateY(-2px); }
.social:focus-visible { outline: 2px solid var(--es-primary); outline-offset: 4px; border-radius: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-legal a { font-size: .85rem; }

/* ---------- Legal / content pages ---------- */
.legal-nav { position: sticky; top: 92px; display: grid; gap: .25rem; }
.legal-nav a { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-radius: 12px; color: var(--es-muted); font-weight: 600; font-size: .92rem; }
.legal-nav a:hover { background: var(--es-surface-2); color: var(--es-text); }
.legal-nav a.active { background: var(--es-primary-soft); color: var(--es-primary); }
.prose-page { line-height: 1.8; color: var(--es-muted); font-size: 1rem; }
.prose-page > *:first-child { margin-top: 0; }
.prose-page h2 { font-size: 1.25rem; color: var(--es-text); margin: 2.25rem 0 .75rem; padding-top: .25rem; }
.prose-page h3 { font-size: 1.05rem; color: var(--es-text); margin: 1.75rem 0 .6rem; }
.prose-page p { margin-bottom: 1rem; }
.prose-page strong { color: var(--es-text); }
.prose-page ul, .prose-page ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose-page li { margin-bottom: .35rem; }
.prose-page li::marker { color: var(--es-primary); }
.prose-page a { font-weight: 600; }
.prose-page code { background: var(--es-surface-2); color: var(--es-text); padding: .1rem .4rem; border-radius: 6px; font-size: .85em; }
.prose-page pre code, .post-body pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; color: inherit; } /* code blocks: one background for the whole block, not per line */
.prose-page table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: separate; border-spacing: 0; border: 1px solid var(--es-border); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.prose-page th { background: var(--es-surface-2); color: var(--es-text); font-weight: 700; text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--es-border); }
.prose-page td { padding: .7rem .9rem; border-bottom: 1px solid var(--es-border); }
.prose-page tr:last-child td { border-bottom: 0; }
.agree-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--es-muted); }
.agree-check .form-check-input { margin-top: .2rem; flex-shrink: 0; }

/* ---------- Newsletter ---------- */
.newsletter-band { position: relative; overflow: hidden; isolation: isolate; margin: -1rem 0 3.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: var(--es-surface); border: 1px solid var(--es-border); box-shadow: var(--es-shadow); }
.newsletter-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--es-grad-soft); }
.newsletter-band::after { content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; right: -80px; top: -120px; border-radius: 50%; background: var(--es-primary); filter: blur(90px); opacity: .25; }
.newsletter-field { display: flex; align-items: center; gap: .4rem; background: var(--es-surface); border: 1px solid var(--es-border-strong); border-radius: 16px; padding: .35rem .35rem .35rem .9rem; transition: border-color .15s, box-shadow .15s; }
.newsletter-field:focus-within { border-color: var(--es-primary); box-shadow: 0 0 0 4px var(--es-primary-soft); }
.newsletter-field > .bx { font-size: 1.25rem; color: var(--es-subtle); }
.newsletter-field .form-control { border: 0; box-shadow: none !important; background: transparent; padding-left: .25rem; }
.newsletter-field .btn { flex-shrink: 0; border-radius: 12px; }
@media (max-width: 575.98px) {
    .newsletter-field { flex-wrap: wrap; padding: .5rem; }
    .newsletter-field > .bx { display: none; }
    .newsletter-field .form-control { flex: 1 1 100%; }
    .newsletter-field .btn { width: 100%; }
}

/* ---------- Contact ---------- */
.topic-card { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem 1rem; }
.topic-card .topic-ico { font-size: 1.4rem; color: var(--es-primary); }
.contact-line { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; color: var(--es-text); }
.contact-line .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--es-grad-soft); color: var(--es-primary); font-size: 1.2rem; flex-shrink: 0; }
.contact .social-row, .surface .social-row { gap: 1.25rem; }
.inbox-row { display: flex; gap: .9rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--es-border); color: var(--es-text); transition: background .15s; }
.inbox-row:hover { background: var(--es-surface-2); color: var(--es-text); }
.inbox-row:last-of-type { border-bottom: 0; }
.inbox-name { font-weight: 600; }
.inbox-subject { font-weight: 500; }
.inbox-row.unread { background: var(--es-primary-soft); }
.inbox-row.unread .inbox-name, .inbox-row.unread .inbox-subject { font-weight: 800; }
.message-body { white-space: pre-line; line-height: 1.75; color: var(--es-text); }
.reply-card { border-left: 3px solid var(--es-primary); }

/* ---------- Ratings & reviews ---------- */
.stars { display: inline-flex; gap: .05em; color: #f5b100; line-height: 1; }
.p-rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; position: relative; z-index: 2; }
.review-summary { display: flex; gap: 2rem; align-items: center; padding: 1.25rem; border-radius: 16px; background: var(--es-surface-2); border: 1px solid var(--es-border); }
.review-score { min-width: 120px; }
.review-score .score { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: .35rem; }
.dist-row { display: flex; align-items: center; gap: .7rem; font-size: .82rem; }
.dist-row > span:first-child { width: 2.4rem; white-space: nowrap; font-weight: 600; }
.dist-row > span:first-child .bx { color: #f5b100; font-size: .8rem; }
.dist-row > span:last-child { width: 2rem; text-align: right; }
.review-form { padding: 1.25rem; border-radius: 16px; border: 1px solid var(--es-border); background: var(--es-surface-2); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.9rem; color: var(--es-border-strong); cursor: pointer; transition: color .12s, transform .12s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5b100; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--es-primary); outline-offset: 2px; border-radius: 6px; }
.review { padding: 1.15rem 0; border-top: 1px solid var(--es-border); }
.review.mine { background: var(--es-primary-soft); margin: 0 -1.5rem; padding-inline: 1.5rem; }
.review-body { white-space: pre-line; color: var(--es-muted); line-height: 1.7; }
.review-reply { padding: .85rem 1rem; border-radius: 12px; background: var(--es-surface-2); border-left: 3px solid var(--es-primary); }
.review-reply .brand-mark { box-shadow: none; }
@media (max-width: 575.98px) { .review-summary { flex-direction: column; gap: 1rem; align-items: stretch; } }
.admin-review { padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--es-border); }
.admin-review:last-of-type { border-bottom: 0; }
.admin-review.is-hidden { opacity: .6; }
.credit-link { font-weight: 700; color: var(--es-text) !important; }
a.credit-link { background: var(--es-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
a.credit-link:hover { text-decoration: underline; text-decoration-color: var(--es-primary); }

/* ---------- QR viewer ---------- */
.qr-zoom { position: relative; border: 0; cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; }
.qr-zoom:hover, .qr-zoom:focus-visible { transform: scale(1.03); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); outline: none; }
.qr-zoom:focus-visible { box-shadow: 0 0 0 3px var(--es-primary); }
.qr-zoom-hint { position: absolute; right: .45rem; bottom: .45rem; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(15,18,34,.8); color: #fff; font-size: 1.05rem; opacity: .85; transition: opacity .15s; }
.qr-zoom:hover .qr-zoom-hint { opacity: 1; }
.qr-large { background: #fff; border-radius: 18px; padding: 1rem; border: 1px solid var(--es-border); }
.qr-large img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto; }

/* ---------- Newly added ---------- */
.new-ribbon { display: inline-flex; align-items: center; gap: .2rem; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 999px; background: var(--es-grad); color: #fff; }
.added-on { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--es-subtle); margin-top: .6rem; padding-left: .25rem; }

/* ---------- Category cards (2 x 2) ---------- */
.cat-card { position: relative; display: flex; gap: 1.5rem; align-items: flex-start; height: 100%; padding: 2.25rem 2.5rem; border-radius: var(--es-radius); background: var(--es-surface); border: 1px solid var(--es-border); color: var(--es-text); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--es-primary); box-shadow: var(--es-shadow); color: var(--es-text); }
.cat-card-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--es-grad); color: #fff; font-size: 1.45rem; box-shadow: 0 8px 18px -8px var(--es-glow); transition: transform .2s ease; }
.cat-card:hover .cat-card-ico { transform: rotate(-6deg) scale(1.05); }
.cat-card-body { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.cat-card-title { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.cat-card-count { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--es-primary-soft); color: var(--es-primary); letter-spacing: 0; }
.cat-card-text { color: var(--es-muted); line-height: 1.65; font-size: .96rem; }
.cat-card-arrow { position: absolute; top: 2.25rem; right: 1.75rem; font-size: 1.3rem; color: var(--es-subtle); opacity: 0; transform: translateX(-6px); transition: .2s ease; }
.cat-card:hover .cat-card-arrow { opacity: 1; transform: none; color: var(--es-primary); }
@media (max-width: 575.98px) { .cat-card { padding: 1.5rem; gap: 1rem; } .cat-card-title { font-size: 1.12rem; } }

/* ---------- Live demo ---------- */
.btn-demo { background: transparent; color: var(--es-primary); border: 1.5px solid var(--es-primary); }
.btn-demo { transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.btn-demo:hover, .btn-demo:focus-visible { background: var(--es-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -8px var(--es-glow); transform: translateY(-1px); }
.btn-demo:active { transform: translateY(0); }
.demo-overlay { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: 12px; font-weight: 700; font-size: .92rem; color: #fff; background: rgba(15, 18, 34, .72); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .18s, transform .18s; }
.demo-overlay .bx { font-size: 1.25rem; }
.demo-overlay:hover { background: var(--es-primary); color: #fff; transform: translateY(-2px); }

/* ---------- User roles & permissions ---------- */
.role-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--es-grad-soft); color: var(--es-primary); font-size: 1.2rem; flex-shrink: 0; }
.perm-row { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--es-border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.perm-row:hover { border-color: var(--es-border-strong); }
.perm-row:has(input:checked) { border-color: var(--es-primary); background: var(--es-primary-soft); }
.perm-row .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.perm-row .perm-ico { font-size: 1.2rem; color: var(--es-primary); margin-top: .05rem; }

/* ---------- Activity log ---------- */
.log-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.log-violet { background: rgba(109,77,255,.12); color: var(--es-primary); }
.log-blue { background: rgba(47,184,255,.14); color: #1593d6; }
.log-green { background: rgba(22,163,74,.12); color: var(--es-success); }
.log-amber { background: rgba(217,119,6,.12); color: var(--es-warning); }
.log-danger { background: rgba(225,29,72,.12); color: var(--es-danger); }
[data-bs-theme="dark"] .log-blue { color: #4cc6ff; }

/* ---------- Item docs: tabs, folder tree, changelog ---------- */
.doc-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; padding: .5rem .75rem 0; border-bottom: 1px solid var(--es-border); scrollbar-width: none; }
.doc-tabs::-webkit-scrollbar { display: none; }
.doc-tabs .nav-link { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--es-muted); padding: .7rem .9rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-radius: 0; }
.doc-tabs .nav-link:hover { color: var(--es-text); }
.doc-tabs .nav-link.active { color: var(--es-primary); border-bottom-color: var(--es-primary); }
.doc-tabs .nav-link i { font-size: 1.1rem; }
.doc-count { font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: var(--es-primary-soft); color: var(--es-primary); }

.tree-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem .75rem .6rem 1.25rem; border-bottom: 1px dashed var(--es-border); }
.tree-bar .btn { display: inline-flex; align-items: center; gap: .3rem; }
.file-tree { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.55; padding: .75rem 0 1rem; max-height: 560px; overflow: auto; background: var(--es-bg-soft); }
.tree-row { display: flex; align-items: center; white-space: pre; padding: .08rem 1.25rem; min-width: max-content; }
.tree-row:hover { background: var(--es-primary-soft); }
.tree-row.has-children { cursor: pointer; user-select: none; }
.tree-row.has-children:focus-visible { outline: 2px solid var(--es-primary); outline-offset: -2px; }
.tree-prefix { color: var(--es-subtle); }
.tree-ico { font-size: 1.05rem; margin-right: .4rem; flex-shrink: 0; }
.tree-name { color: var(--es-text); }
.tree-row.is-folder .tree-name { font-weight: 600; }
.tree-row.collapsed .tree-name::after { content: " …"; color: var(--es-subtle); font-weight: 400; }
.tree-note { color: var(--es-subtle); margin-left: 1rem; font-style: italic; }
.tree-note::before { content: "# "; }

.changelog { list-style: none; margin: 0; padding: 0; position: relative; }
.cl-release { position: relative; padding: 0 0 1.6rem 1.75rem; }
.cl-release::before { content: ""; position: absolute; left: 6px; top: 1.1rem; bottom: 0; width: 2px; background: var(--es-border); }
.cl-release:last-child { padding-bottom: 0; }
.cl-release:last-child::before { display: none; }
.cl-release::after { content: ""; position: absolute; left: 0; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--es-surface); border: 3px solid var(--es-border-strong); }
.cl-release.is-latest::after { border-color: var(--es-primary); box-shadow: 0 0 0 4px var(--es-primary-soft); }
.cl-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .6rem; }
.cl-version { font-weight: 800; font-size: 1.05rem; font-family: "JetBrains Mono", ui-monospace, monospace; }
.cl-latest { font-size: .68rem; padding: .15rem .5rem; }
.cl-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cl-changes li { display: flex; align-items: flex-start; gap: .6rem; color: var(--es-text); font-size: 1rem; line-height: 1.65; }
.cl-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 6px; min-width: 92px; flex-shrink: 0; margin-top: .1rem; }
.cl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--es-subtle); margin: .55rem .3rem 0; flex-shrink: 0; }
.cl-added    { background: rgba(22,163,74,.12);  color: var(--es-success); }
.cl-improved { background: rgba(47,184,255,.14); color: #0284c7; }
.cl-changed  { background: var(--es-primary-soft); color: var(--es-primary); }
.cl-fixed    { background: rgba(217,119,6,.13);  color: var(--es-warning); }
.cl-removed  { background: rgba(225,29,72,.11);  color: var(--es-danger); }
.cl-security { background: rgba(100,116,139,.15); color: #475569; }
[data-bs-theme="dark"] .cl-improved { color: #4cc6ff; }
[data-bs-theme="dark"] .cl-security { color: #a3b1c6; }
@media (max-width: 575.98px) { .cl-badge { min-width: 0; } .cl-changes li { flex-wrap: wrap; gap: .3rem .5rem; } }

/* Admin: code-style textareas */
.code-input { font-size: .82rem; line-height: 1.5; tab-size: 4; white-space: pre; }
.doc-help { background: var(--es-bg-soft); border: 1px dashed var(--es-border-strong); border-radius: 12px; padding: .75rem .9rem; color: var(--es-muted); }
.doc-help pre { font-size: .78rem; color: var(--es-text); white-space: pre; overflow-x: auto; }

/* ---------- Storefront nav dropdowns ---------- */
.es-nav .dropdown-toggle::after { display: none; }
.es-nav .navbar-nav .nav-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; }
.es-nav .nav-link.dropdown-toggle::before { content: "\ea4a"; font-family: boxicons; font-size: 1.05rem; order: 2; transition: transform .2s; opacity: .7; } /* bx-chevron-down */
.es-nav .nav-link.dropdown-toggle.show::before { transform: rotate(180deg); }
.nav-menu { min-width: 300px; margin-top: .5rem !important; }
.nav-menu-item { align-items: flex-start !important; gap: .75rem !important; padding: .6rem .7rem !important; white-space: normal; }
.nav-menu-item .small { font-weight: 400; line-height: 1.35; }
.nav-menu-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.25rem; background: var(--es-primary-soft); color: var(--es-primary); transition: background .15s, color .15s; }
.nav-menu-item:hover .nav-menu-ico, .nav-menu-item.active .nav-menu-ico { background: var(--es-primary); color: #fff; }
.dropdown-item.active, .dropdown-item:active { background: var(--es-surface-2); color: var(--es-text); }
@media (min-width: 992px) {
    /* open on hover with a mouse; click/tap still works everywhere */
    .es-nav .nav-hover > .dropdown-menu { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
    .es-nav .nav-hover:hover > .dropdown-menu, .es-nav .nav-hover > .dropdown-menu.show { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
    .es-nav .nav-hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; } /* bridge the gap so the menu doesn't close */
}
@media (max-width: 991.98px) {
    .es-nav .nav-menu { box-shadow: none; border: 0; background: transparent; padding: 0 0 .25rem .5rem; min-width: 0; margin-top: 0 !important; }
}

/* ---------- FAQ ---------- */
.faq-search { max-width: 520px; }
.faq-search .form-control { background: var(--es-surface); border-radius: 14px; }
.faq-group { scroll-margin-top: 96px; }
.faq-acc { display: grid; gap: .6rem; }
.faq-item { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.faq-item:has(.collapse.show) { border-color: color-mix(in srgb, var(--es-primary) 40%, var(--es-border)); box-shadow: var(--es-shadow); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; background: none; border: 0; padding: 1rem 1.25rem; font-weight: 700; font-size: 1rem; color: var(--es-text); }
.faq-q i { font-size: 1.25rem; color: var(--es-primary); transition: transform .2s; flex-shrink: 0; }
.faq-q:not(.collapsed) i { transform: rotate(45deg); }
.faq-q:focus-visible { outline: 2px solid var(--es-primary); outline-offset: -2px; border-radius: 14px; }
.faq-a { padding: 0 1.25rem 1.1rem; font-size: .95rem; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--es-grad-soft); }
.faq-cta-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; }

/* ---------- Header search ---------- */
.nav-search { position: relative; }
.nav-search .form-control { height: 40px; padding-left: 2.3rem; padding-right: 2rem; border-radius: 12px; background: var(--es-surface-2); border-color: transparent; font-size: .9rem; }
.nav-search .form-control:focus { background: var(--es-surface); border-color: var(--es-primary); }
.nav-search .form-control::-webkit-search-cancel-button { display: none; }
.nav-search-ico { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--es-subtle); font-size: 1.1rem; pointer-events: none; }
.nav-search-key { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font: 600 .72rem/1 "JetBrains Mono", ui-monospace, monospace; color: var(--es-subtle); background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 6px; padding: .2rem .4rem; pointer-events: none; }
.nav-search:focus-within .nav-search-key { display: none !important; }
@media (min-width: 992px) {
    .nav-search { width: 150px; transition: width .25s ease; }
    .nav-search:focus-within { width: 210px; }
    .nav-search .form-control { padding-right: .75rem; }
    .es-nav .navbar-nav .nav-link { padding-left: .7rem !important; padding-right: .7rem !important; }
}
@media (min-width: 1200px) {
    .es-nav .navbar-nav .nav-link { padding-left: .85rem !important; padding-right: .85rem !important; }
    .nav-search { width: 190px; }
    .nav-search:focus-within { width: 260px; }
    .nav-search .form-control { padding-right: 2rem; }
}
.search-pop { position: absolute; top: calc(100% + .5rem); right: 0; width: max(100%, 380px); max-width: calc(100vw - 24px); max-height: min(70vh, 480px); overflow: auto; z-index: 1060; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 16px; box-shadow: var(--es-shadow-lg); padding: .4rem; }
@media (max-width: 991.98px) { .search-pop { left: 0; right: auto; width: 100%; } }
.search-head { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--es-subtle); padding: .45rem .6rem .35rem; }
.search-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: 11px; color: var(--es-text); }
.search-item:hover, .search-item.active { background: var(--es-surface-2); color: var(--es-text); }
.search-thumb { width: 52px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--es-grad-soft); color: var(--es-primary); font-size: 1.15rem; border: 1px solid var(--es-border); }
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-body { min-width: 0; flex: 1; display: grid; }
.search-title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-meta { font-size: .76rem; color: var(--es-muted); }
.search-price { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.search-price.is-free { color: var(--es-success); }
.search-all { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .3rem; padding: .6rem; border-top: 1px solid var(--es-border); border-radius: 0 0 11px 11px; font-size: .85rem; font-weight: 600; color: var(--es-primary); }
.search-all:hover, .search-all.active { background: var(--es-primary-soft); color: var(--es-primary); }
.search-empty { display: flex; align-items: center; gap: .5rem; padding: 1rem .75rem; color: var(--es-muted); font-size: .9rem; }
.search-empty i { font-size: 1.3rem; }

/* ---------- Blog ---------- */
.alert-es.warning { background: rgba(217,119,6,.1); color: var(--es-warning); border-color: rgba(217,119,6,.25); }
.avatar-sm { width: 26px; height: 26px; font-size: .72rem; }
.blog-search { min-width: 260px; max-width: 360px; }
.blog-search .form-control { background: var(--es-surface); border-radius: 12px; }

.b-card { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: var(--es-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.b-card:hover { transform: translateY(-4px); box-shadow: var(--es-shadow-lg); border-color: var(--es-border-strong); }
.b-cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--es-surface-2); }
.b-cover img, .b-cover .b-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.b-card:hover .b-cover img, .b-card:hover .b-ph { transform: scale(1.04); }
.b-ph { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .4rem; padding: 1.25rem; color: #fff;
    background: radial-gradient(120% 120% at 0% 0%, hsl(var(--h) 85% 62%) 0%, transparent 55%), linear-gradient(135deg, hsl(calc(var(--h) + 40) 70% 45%), hsl(calc(var(--h) + 90) 75% 30%)); }
.b-ph i { font-size: 1.6rem; opacity: .85; }
.b-ph span { font-weight: 800; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; text-shadow: 0 1px 12px rgba(0,0,0,.2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-mini .b-ph { padding: 0; align-items: center; justify-content: center; }
.b-mini .b-ph i { font-size: 1.1rem; }
.b-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.b-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; font-size: .78rem; color: var(--es-muted); margin-bottom: .6rem; }
.b-cat { font-weight: 700; color: var(--es-primary); background: var(--es-primary-soft); padding: .15rem .55rem; border-radius: 999px; }
.b-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--es-subtle); }
.b-title { font-size: 1.12rem; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; margin-bottom: .5rem; }
.b-title a { color: var(--es-text); }
.b-title a:hover { color: var(--es-primary); }
.b-excerpt { color: var(--es-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; }
.b-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--es-text); }
.b-more { display: inline-flex; align-items: center; gap: .2rem; color: var(--es-primary); }
@media (min-width: 992px) {
    .b-card-lg { flex-direction: row; }
    .b-card-lg .b-cover { flex: 0 0 56%; aspect-ratio: auto; min-height: 340px; }
    .b-card-lg .b-body { padding: 2.25rem; justify-content: center; }
    .b-card-lg .b-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
    .b-card-lg .b-excerpt { font-size: 1rem; }
    .b-card-lg .b-foot { margin-top: .5rem; }
    .b-card-lg .b-ph span { font-size: 1.6rem; }
}

/* Article */
.post-head { max-width: 760px; margin: 0 auto 2rem; text-align: center; }
.post-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: .9rem; }
.post-lead { font-size: 1.15rem; color: var(--es-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.25rem; font-size: .88rem; color: var(--es-muted); }
.post-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta strong { color: var(--es-text); }
.post-cover { max-width: 1040px; margin: 0 auto 2.5rem; border-radius: 22px; overflow: hidden; border: 1px solid var(--es-border); box-shadow: var(--es-shadow); }
.post-cover img { width: 100%; display: block; max-height: 560px; object-fit: cover; }
.post-layout { position: relative; max-width: 760px; margin: 0 auto; }
.post-body { font-size: 1.07rem; line-height: 1.85; color: var(--es-text); }
.post-body h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.post-body h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.post-body img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--es-border); margin: .5rem 0; }
.post-body blockquote { border-left: 4px solid var(--es-primary); background: var(--es-primary-soft); padding: .9rem 1.2rem; border-radius: 0 12px 12px 0; color: var(--es-text); margin: 1.5rem 0; }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body pre { background: #1e1e1e; color: #d4d4d4; border: 1px solid #2b2b2b; border-radius: 12px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .88rem; line-height: 1.65; tab-size: 4; }
.post-body :not(pre) > code { background: var(--es-surface-2); padding: .12rem .4rem; border-radius: 6px; font-size: .9em; }
/* Markdown tables (| A | B |) in blog posts, descriptions and installation guides */
.post-body .md-table { margin: 1rem 0 1.5rem; border: 1px solid var(--es-border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body .md-table table { width: 100%; margin: 0; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
.post-body .md-table th { background: var(--es-surface-2); color: var(--es-text); font-weight: 700; text-align: left; padding: .7rem .95rem; border-bottom: 1px solid var(--es-border); white-space: nowrap; }
.post-body .md-table td { padding: .7rem .95rem; border-bottom: 1px solid var(--es-border); vertical-align: top; min-width: 180px; }
.post-body .md-table tr:last-child td { border-bottom: 0; }
.post-body .md-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--es-surface-2) 45%, transparent); }
.post-body .md-table td:first-child { font-weight: 600; color: var(--es-text); }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body li::marker, #postPreview li::marker, .legal-body li::marker { color: inherit; font-weight: inherit; } /* blog + Terms/Privacy/License/Refund: bullets and numbers in the normal text colour */
.share-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--es-grad-soft); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-link { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; color: var(--es-text); transition: border-color .15s; }
.post-nav-link:hover { border-color: var(--es-primary); color: var(--es-text); }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } }

/* Share buttons */
.share { display: flex; flex-wrap: wrap; gap: .45rem; }
.share-btn { --brand: var(--es-primary); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-text); font-size: 1.05rem; transition: background .15s, color .15s, border-color .15s, transform .15s; cursor: pointer; }
.share-btn span { display: none; }
.share-btn:hover, .share-btn:focus-visible { background: var(--es-brand-bg, var(--brand)); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.share-copy.copied { background: var(--es-success); border-color: var(--es-success); color: #fff; }
.share-x { --es-brand-bg: #000; }
[data-bs-theme="dark"] .share-x:hover { --es-brand-bg: #fff; color: #000; border-color: #fff; }
.share.panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.share.panel .share-btn { width: auto; display: flex; justify-content: flex-start; gap: .55rem; padding: 0 .8rem; font-size: 1rem; }
.share.panel .share-btn span { display: inline; font-size: .85rem; font-weight: 600; }
.share.panel .share-btn i { color: var(--brand); width: 1.1rem; text-align: center; }
.share.panel .share-btn:hover i, .share.panel .share-copy.copied i { color: inherit; }
.share-native { width: auto; display: inline-flex; gap: .4rem; padding: 0 .9rem; background: var(--es-grad); border: 0; color: #fff; }
.share-native span { display: inline; font-weight: 700; font-size: .88rem; }
.share.panel .share-native { grid-column: 1 / -1; justify-content: center; }

/* Admin editor */
.slug-group .input-group-text { background: var(--es-surface-2); color: var(--es-muted); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 1.6; }
.editor.is-invalid { border-color: var(--es-danger); }
.editor-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .5rem .6rem; border-bottom: 1px solid var(--es-border); background: var(--es-surface-2); }
.editor-tabs { display: flex; gap: .25rem; }
.editor-tabs button, .editor-tools button { border: 0; background: none; color: var(--es-muted); border-radius: 9px; font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; }
.editor-tabs button { padding: .4rem .75rem; }
.editor-tabs button.active { background: var(--es-surface); color: var(--es-text); box-shadow: var(--es-shadow-sm); }
.editor-tools { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.editor-tools button { width: 34px; height: 34px; justify-content: center; font-size: 1.15rem; }
.editor-tools button:hover, .editor-tabs button:hover { background: var(--es-surface); color: var(--es-text); }
.editor-tools .sep { width: 1px; height: 20px; background: var(--es-border-strong); margin: 0 .25rem; }
.editor-input { display: block; width: 100%; border: 0; outline: 0; resize: vertical; min-height: 420px; padding: 1.1rem 1.25rem; background: var(--es-surface); color: var(--es-text); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88rem; line-height: 1.75; }
.editor-preview { min-height: 420px; padding: 1.25rem 1.5rem; }
.editor-preview img { max-width: 100%; border-radius: 10px; }
.editor-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; border-top: 1px solid var(--es-border); font-size: .78rem; color: var(--es-muted); }
.og-card { border: 1px solid var(--es-border); border-radius: 12px; overflow: hidden; background: var(--es-surface-2); }
.og-img { aspect-ratio: 1200 / 630; background: var(--es-grad-soft); display: grid; place-items: center; color: var(--es-subtle); font-size: 2rem; overflow: hidden; }
.og-img img { width: 100%; height: 100%; object-fit: cover; }
.og-body { padding: .65rem .8rem .8rem; }
.og-host { font-size: .7rem; color: var(--es-muted); letter-spacing: .02em; }
.og-title { font-weight: 700; font-size: .95rem; line-height: 1.3; margin: .15rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.og-desc { font-size: .8rem; color: var(--es-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Header log-in button ---------- */
.btn-login { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .3rem .95rem .3rem .3rem; border: 1px solid var(--es-border-strong); border-radius: 999px; background: var(--es-surface); color: var(--es-text); font-weight: 600; font-size: .92rem; }
.btn-login:hover, .btn-login:focus-visible, .btn-login.active { border-color: var(--es-primary); color: var(--es-primary); background: var(--es-primary-soft); }
.btn-login-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; border: 1.5px solid currentColor; color: var(--es-primary); background: var(--es-primary-soft); }
.btn-login:hover .btn-login-ico, .btn-login.active .btn-login-ico { background: var(--es-primary); border-color: var(--es-primary); color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-primary); font-size: 1.5rem; display: grid; place-items: center; box-shadow: var(--es-shadow-lg); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s, background .15s, color .15s; cursor: pointer; }
.back-to-top.show { opacity: 1; transform: none; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--es-grad); color: #fff; border-color: transparent; }
@media (max-width: 575.98px) { .back-to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; } }
@media print { .back-to-top { display: none !important; } }

/* ---------- Social login ---------- */
.btn-social { display: flex; align-items: center; justify-content: center; gap: .65rem; height: 48px; border-radius: 14px; border: 1px solid var(--es-border-strong); background: var(--es-surface); color: var(--es-text); font-weight: 600; font-size: .95rem; transition: border-color .15s, background .15s, transform .15s; }
.btn-social:hover, .btn-social:focus-visible { border-color: var(--es-text); background: var(--es-surface-2); color: var(--es-text); transform: translateY(-1px); }
.btn-social .social-ico { width: 20px; height: 20px; flex-shrink: 0; }
.btn-social-github .social-ico { color: var(--es-text); }
.btn-social.is-loading { pointer-events: none; opacity: .7; }
.social-terms { font-size: .76rem; color: var(--es-subtle); text-align: center; margin: .65rem 0 0; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: var(--es-subtle); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--es-border); }
.connected-row { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--es-border); border-radius: 12px; }
.connected-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--es-surface); border: 1px solid var(--es-border); color: var(--es-text); }
.connected-ico .brand-svg { width: 18px; height: 18px; }
.provider-box { border: 1px solid var(--es-border); border-radius: 14px; padding: 1rem 1.1rem; background: var(--es-surface-2); }

/* ---------- Bare auth pages (no header/footer) ---------- */
.auth-shell { min-height: 100vh; min-height: 100dvh; }
.auth-main { position: relative; padding-top: 5rem; }
.auth-top { position: absolute; top: 1.25rem; left: 1.25rem; right: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--es-text); }
.auth-back { align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--es-muted); }
.auth-back:hover { color: var(--es-text); }
@media (min-width: 992px) { .auth-top { justify-content: space-between; left: 2rem; right: 2rem; top: 1.5rem; } }

/* ---------- Hero tech-stack marquee ---------- */
.tech-marquee { margin: 3rem auto 0; max-width: 1100px; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tech-title { align-self: stretch; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--es-subtle); margin-bottom: .5rem; }
.tech-track { display: flex; width: max-content; animation: tech-scroll 48s linear infinite; }
.tech-track.reverse { animation-direction: reverse; animation-duration: 54s; }
.tech-marquee:hover .tech-track, .tech-marquee:focus-within .tech-track { animation-play-state: paused; }
.tech-list { display: flex; gap: .75rem; padding: 0 .375rem; margin: 0; list-style: none; }
.tech-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.1rem .55rem .65rem; border-radius: 14px; background: var(--es-surface); border: 1px solid var(--es-border); color: var(--es-text); font-weight: 600; font-size: .92rem; white-space: nowrap; box-shadow: var(--es-shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tech-pill img { width: 26px; height: 26px; object-fit: contain; transition: transform .3s ease; }
.tech-pill { cursor: default; user-select: none; } /* display only — not a link */
[data-bs-theme="dark"] .tech-pill img.logo-mono { filter: invert(1); }
@keyframes tech-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 575.98px) { .tech-pill { padding: .45rem .85rem .45rem .5rem; font-size: .84rem; } .tech-pill img { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) {
    .tech-track { animation: none; width: auto; align-self: stretch; justify-content: center; }
    .tech-list { flex-wrap: wrap; justify-content: center; row-gap: .75rem; }
    .tech-list[aria-hidden="true"] { display: none; }
    .tech-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* Admin: tech-stack picker */
.tech-picked { list-style: none; margin: 0; padding: .6rem; min-height: 58px; display: flex; flex-wrap: wrap; gap: .45rem; border: 1.5px dashed var(--es-border-strong); border-radius: 14px; background: var(--es-surface-2); }
.tech-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .3rem .3rem .55rem; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 10px; font-size: .82rem; font-weight: 600; cursor: grab; user-select: none; }
.tech-chip:active { cursor: grabbing; }
.tech-chip.dragging { opacity: .4; }
.tech-chip img { width: 18px; height: 18px; }
.tech-chip-x { border: 0; background: none; color: var(--es-subtle); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 1rem; padding: 0; }
.tech-chip-x:hover { background: rgba(225,29,72,.1); color: var(--es-danger); }
.tech-empty { color: var(--es-muted); font-size: .85rem; padding: .35rem .25rem; }
.tech-picker { max-height: 380px; overflow-y: auto; padding-right: .25rem; display: grid; gap: 1rem; }
.tech-group-title { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--es-subtle); margin-bottom: .45rem; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .45rem; }
.tech-opt { position: relative; display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--es-border); border-radius: 10px; background: var(--es-surface); color: var(--es-text); font-size: .83rem; font-weight: 600; text-align: left; transition: border-color .15s, background .15s; }
.tech-opt img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.tech-opt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-opt:hover { border-color: var(--es-border-strong); }
.tech-opt-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; color: transparent; border: 1.5px solid var(--es-border-strong); flex-shrink: 0; }
.tech-opt.on { border-color: var(--es-primary); background: var(--es-primary-soft); }
.tech-opt.on .tech-opt-check { background: var(--es-primary); border-color: var(--es-primary); color: #fff; }
[data-bs-theme="dark"] img.logo-mono { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { .tech-list li.is-repeat { display: none; } }

/* ---------- Sales ---------- */
.p-badge.sale { background: #e11d48; color: #fff; }
.p-price.sale { color: #e11d48; }
.p-was { font-size: .8rem; font-weight: 600; color: var(--es-subtle); text-decoration: line-through; margin-right: .2rem; }
.p-soon { color: var(--es-primary); }
.sale-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: .25rem .6rem; border-radius: 999px; background: #e11d48; color: #fff; white-space: nowrap; }
.sale-pill.soon { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.sale-banner { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem;
    padding: 2rem 2.25rem; border-radius: 24px; color: #fff;
    background: linear-gradient(120deg, #e11d48 0%, #be123c 35%, #6d28d9 100%); box-shadow: 0 24px 50px -24px rgba(225,29,72,.55); }
.sale-banner.upcoming { background: linear-gradient(120deg, #312e81 0%, #4c1d95 45%, #0e7490 100%); box-shadow: 0 24px 50px -24px rgba(76,29,149,.5); }
.sale-glow { position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); animation: sale-float 8s ease-in-out infinite alternate; }
@keyframes sale-float { to { transform: translate(-60px, 60px) scale(1.15); } }
.sale-banner-text { max-width: 560px; }
.sale-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 .3rem; color: #fff; }
.sale-sub { margin: 0; color: rgba(255,255,255,.85); }
.sale-banner-side { text-align: center; }
.cd-caption { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; margin-bottom: .45rem; }
.sale-ends { opacity: .8; margin-top: .45rem; }
.countdown { display: inline-flex; gap: .45rem; }
.cd-box { min-width: 64px; padding: .55rem .4rem .45rem; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); display: grid; justify-items: center; text-align: center; }
.cd-num { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-label { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }
/* small countdown (item page): clean white tiles with dark numbers */
.countdown-sm .cd-box { min-width: 48px; padding: .4rem .3rem .35rem; border-radius: 10px; background: #fff; color: #0f1222; border: 1px solid rgba(225,29,72,.16); box-shadow: 0 1px 2px rgba(15,18,34,.06), 0 4px 10px -6px rgba(225,29,72,.35); backdrop-filter: none; }
.countdown-sm .cd-num { font-size: 1.1rem; }
.countdown-sm .cd-label { font-size: .58rem; color: #8a8fa8; opacity: 1; }
[data-bs-theme="dark"] .countdown-sm .cd-box { background: var(--es-surface); color: var(--es-text); border-color: rgba(251,113,133,.22); box-shadow: 0 4px 10px -6px rgba(0,0,0,.6); }
[data-bs-theme="dark"] .countdown-sm .cd-label { color: var(--es-muted); }
.cd-inline { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .6rem .7rem; border-radius: 14px; background: rgba(225,29,72,.07); border: 1px solid rgba(225,29,72,.18); color: #e11d48; }
.sale-strip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: #fff; background: #e11d48; padding: .3rem .7rem; border-radius: 999px; }
.price.sale { color: #e11d48; }
.price-was { font-size: 1.1rem; font-weight: 600; color: var(--es-subtle); text-decoration: line-through; }
.soon-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; padding: .6rem .75rem; border-radius: 12px; background: var(--es-primary-soft); color: var(--es-primary); }
.soon-note i { font-size: 1.1rem; margin-top: .05rem; }
.sale-banner-sm { padding: 1.25rem; border-radius: 16px; display: block; }
.sale-items tr.is-on { background: rgba(225,29,72,.04); }
.sale-items tr:not(.is-on) td:not(:first-child) { opacity: .6; }
[data-bs-theme="dark"] .p-price.sale, [data-bs-theme="dark"] .price.sale, [data-bs-theme="dark"] .cd-inline { color: #fb7185; }
@media (max-width: 575.98px) {
    .sale-banner { padding: 1.5rem 1.25rem; border-radius: 20px; }
    .sale-banner-side { width: 100%; }
    .cd-box { min-width: 0; flex: 1; }
    .countdown:not(.countdown-sm) { display: flex; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sale-glow { animation: none; } }

/* ---------- Header "Sale" button (only while a sale is live) ---------- */
.nav-sale-item { display: flex; align-items: center; }
.nav-sale { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .6rem 0 .75rem; margin: 0 .25rem; border-radius: 999px;
    font-weight: 800; font-size: .88rem; letter-spacing: .01em; color: #fff !important;
    background: linear-gradient(110deg, #ff3d6e 0%, #e11d48 35%, #8b5cf6 100%); background-size: 180% 100%;
    box-shadow: 0 6px 18px -6px rgba(225,29,72,.65), inset 0 1px 0 rgba(255,255,255,.25);
    animation: nav-sale-bg 4s ease-in-out infinite alternate; transition: transform .2s ease, box-shadow .2s ease; }
.nav-sale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); animation: nav-sale-shine 3.2s ease-in-out infinite; }
.nav-sale:hover, .nav-sale:focus-visible, .nav-sale.active { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 24px -8px rgba(225,29,72,.8), inset 0 1px 0 rgba(255,255,255,.3); color: #fff; }
.nav-sale.active { outline: 2px solid rgba(225,29,72,.35); outline-offset: 2px; }
.nav-sale .bxs-zap { font-size: 1rem; animation: nav-sale-zap 1.6s ease-in-out infinite; }
.nav-sale-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fde047; box-shadow: 0 0 0 0 rgba(253,224,71,.8); animation: nav-sale-ping 1.6s ease-out infinite; }
.nav-sale-off { font-size: .68rem; font-weight: 800; padding: .12rem .4rem; border-radius: 999px; background: rgba(255,255,255,.95); color: #e11d48; }
@keyframes nav-sale-bg { to { background-position: 100% 0; } }
@keyframes nav-sale-shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes nav-sale-zap { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-12deg) scale(1.15); } }
@keyframes nav-sale-ping { 0% { box-shadow: 0 0 0 0 rgba(253,224,71,.8); } 80%, 100% { box-shadow: 0 0 0 7px rgba(253,224,71,0); } }
@media (min-width: 992px) and (max-width: 1199.98px) { .nav-sale-off { display: none; } }
@media (max-width: 991.98px) { .nav-sale-item { padding: .35rem 0; } .nav-sale { margin: 0; } }
@media (prefers-reduced-motion: reduce) { .nav-sale, .nav-sale::after, .nav-sale .bxs-zap, .nav-sale-dot { animation: none; } }

/* Sale section inside the hero, under the tech stack */
.hero-sale { margin-top: 3.5rem; }
.hero-sale .sale-block:last-child { margin-bottom: 0 !important; }

/* ---------- Key features (item page) ---------- */
.key-features { list-style: none; padding: 0; display: grid; gap: .85rem; }
.key-features li { display: flex; align-items: flex-start; gap: .75rem; color: var(--es-text); line-height: 1.6; }
.key-features li > i { font-size: 1.3rem; color: var(--es-success); flex-shrink: 0; margin-top: .05rem; }
.key-features strong { font-weight: 700; }
.kf-preview { padding: 1rem; border-radius: 12px; border: 1px dashed var(--es-border-strong); background: var(--es-surface-2); }
.kf-preview .key-features { gap: .55rem; font-size: .9rem; }

/* ---------- Screenshots gallery (item page) ---------- */
.gallery-stage { background: var(--es-surface-2); }
.gallery-main { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.gallery-zoom { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.15rem; color: #fff; background: rgba(15,18,34,.6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.gallery-main:hover .gallery-zoom, .gallery-main:focus-visible .gallery-zoom { opacity: 1; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(15,18,34,.55); color: #fff; font-size: 1.6rem; display: grid; place-items: center; backdrop-filter: blur(8px); opacity: .85; transition: opacity .2s, background .2s; }
.gallery-nav:hover { background: var(--es-primary); opacity: 1; }
.gallery-nav.prev { left: .9rem; } .gallery-nav.next { right: .9rem; }
.gallery-count { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 10px; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(15,18,34,.6); backdrop-filter: blur(8px); }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; padding: .15rem .1rem .35rem; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 auto; width: 112px; aspect-ratio: 16/10; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--es-surface-2); opacity: .65; transition: opacity .2s, border-color .2s, transform .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumb.active { opacity: 1; border-color: var(--es-primary); }
@media (max-width: 575.98px) { .gallery-thumb { width: 84px; } .gallery-nav { width: 36px; height: 36px; font-size: 1.35rem; } }
.shots-badge { font-size: .72rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; background: var(--es-primary); color: #fff; margin-left: .15rem; }

/* Full-screen viewer */
.lightbox .modal-content { background: rgba(6,7,12,.96); color: #fff; border: 0; border-radius: 0; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; }
.lightbox-count { font-weight: 700; font-size: .9rem; opacity: .8; }
.lightbox-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; display: grid; place-items: center; transition: background .2s; }
.lightbox-btn:hover { background: rgba(255,255,255,.2); }
.lightbox-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 0 4.5rem; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 1rem; } .lightbox-nav.next { right: 1rem; }
.lightbox-caption { text-align: center; padding: .75rem 1rem 1.25rem; min-height: 3rem; color: rgba(255,255,255,.85); font-weight: 500; }
@media (max-width: 575.98px) { .lightbox-stage { padding: 0 .5rem; } .lightbox-nav { top: auto; bottom: -3.4rem; transform: none; } .lightbox-nav.prev { left: 25%; } .lightbox-nav.next { right: 25%; } }

/* Admin: screenshots manager */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.shot-card { border: 1px solid var(--es-border); border-radius: 12px; padding: .5rem; background: var(--es-surface); display: grid; gap: .45rem; cursor: grab; transition: opacity .2s, border-color .2s; }
.shot-card.dragging { opacity: .4; }
.shot-card.removing { opacity: .45; border-color: var(--es-danger); }
.shot-card.removing .shot-img img { filter: grayscale(1); }
.shot-img { position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--es-surface-2); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.shot-num { position: absolute; top: .35rem; left: .35rem; min-width: 22px; height: 22px; padding: 0 .35rem; border-radius: 7px; font-size: .72rem; font-weight: 800; display: grid; place-items: center; background: rgba(15,18,34,.7); color: #fff; }
.shot-card.removing .shot-num { display: none; }
.shot-remove { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--es-muted); cursor: pointer; justify-self: start; }
.shot-remove input { accent-color: var(--es-danger); }
.shot-card.removing .shot-remove { color: var(--es-danger); }
.shot-new { display: flex; flex-wrap: wrap; gap: .5rem; }
.shot-pending { position: relative; width: 96px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; border: 2px solid var(--es-primary); }
.shot-pending img { width: 100%; height: 100%; object-fit: cover; }
.shot-pending button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(15,18,34,.75); color: #fff; display: grid; place-items: center; padding: 0; font-size: 1rem; }

/* ---------- Admin: Visitors ---------- */
.pill { display: inline-flex; align-items: center; gap: .2rem; font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: var(--es-surface-2); color: var(--es-muted); border: 1px solid var(--es-border); vertical-align: middle; }
.pill-green { background: rgba(22,163,74,.1); color: var(--es-success); border-color: rgba(22,163,74,.25); }
.pill-amber { background: rgba(217,119,6,.12); color: #b45309; border-color: rgba(217,119,6,.28); }
[data-bs-theme="dark"] .pill-amber { color: #fbbf24; }
.pill-violet { background: var(--es-primary-soft); color: var(--es-primary); border-color: transparent; }
.device-chip { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--es-surface-2); border: 1px solid var(--es-border); color: var(--es-muted); font-size: 1.05rem; flex-shrink: 0; }
.device-chip-lg { width: 52px; height: 52px; border-radius: 15px; font-size: 1.6rem; color: var(--es-primary); background: var(--es-primary-soft); border-color: transparent; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.visitors-table tr.row-link { cursor: pointer; }
.visitors-table td { vertical-align: middle; }
.visitor-filters .form-select { min-width: 140px; }
.visitor-head { display: flex; align-items: center; gap: 1rem; }
.activity-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem; border-top: 1px solid var(--es-border); }
.card-head + .d-grid > .activity-row:first-child, .card-head + .activity-row { border-top: 0; }
a.activity-row:hover { background: var(--es-surface-2); }
.activity-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--es-primary-soft); color: var(--es-primary); flex-shrink: 0; }
.detail-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.detail-list li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.detail-list li > i { font-size: 1.15rem; color: var(--es-subtle); flex-shrink: 0; }
.sessions { display: grid; }
.session { border-top: 1px solid var(--es-border); }
.session:first-child { border-top: 0; }
.session > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; padding: .8rem 1.1rem; }
.session > summary::-webkit-details-marker { display: none; }
.session > summary:hover { background: var(--es-surface-2); }
.session-date { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.session-date::before { content: "\ea4a"; font-family: boxicons; font-size: 1.1rem; color: var(--es-subtle); transform: rotate(-90deg); transition: transform .2s; }
.session[open] .session-date::before { transform: none; }
.session-steps { list-style: none; margin: 0; padding: 0 1.1rem .9rem 2.6rem; position: relative; }
.session-steps::before { content: ""; position: absolute; left: 1.55rem; top: .2rem; bottom: 1.2rem; width: 2px; background: var(--es-border); }
.session-steps li { position: relative; display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .88rem; min-width: 0; }
.session-steps li::before { content: ""; position: absolute; left: -1.25rem; width: 9px; height: 9px; border-radius: 50%; background: var(--es-surface); border: 2px solid var(--es-primary); }
.session-steps li > i { color: var(--es-subtle); }
.step-time { font-size: .76rem; color: var(--es-muted); font-variant-numeric: tabular-nums; min-width: 62px; }
.ico-amber { background: rgba(217,119,6,.13); color: var(--es-warning); }

/* ---------- Admin dashboard: sales ---------- */
.pill-live { background: rgba(225,29,72,.1); color: #e11d48; border-color: rgba(225,29,72,.25); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: .1rem; animation: nav-sale-ping 1.6s ease-out infinite; box-shadow: 0 0 0 0 currentColor; }
.dash-sale { display: block; height: 100%; border: 1px solid var(--es-border); border-radius: 16px; overflow: hidden; background: var(--es-surface); color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dash-sale:hover { transform: translateY(-3px); box-shadow: var(--es-shadow); border-color: var(--es-border-strong); color: inherit; }
.dash-sale-top { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; color: #fff; font-size: .78rem; font-weight: 700; }
.dash-sale.is-live .dash-sale-top { background: linear-gradient(110deg, #e11d48, #be123c 45%, #7c3aed); }
.dash-sale.is-upcoming .dash-sale-top { background: linear-gradient(110deg, #4338ca, #6d28d9 50%, #0e7490); }
.dash-sale-status { display: inline-flex; align-items: center; gap: .35rem; letter-spacing: .04em; text-transform: uppercase; }
.dash-sale-off { background: rgba(255,255,255,.95); color: #be123c; padding: .12rem .5rem; border-radius: 999px; font-weight: 800; }
.dash-sale.is-upcoming .dash-sale-off { color: #4338ca; }
.dash-sale-body { padding: .9rem 1rem 1rem; }
.sale-progress span { background: linear-gradient(90deg, #e11d48, #7c3aed); }
.dash-sale-thumbs { display: flex; align-items: center; }
.dash-sale-thumbs .mini-thumb { width: 42px; height: 30px; border: 2px solid var(--es-surface); margin-left: -8px; border-radius: 8px; }
.dash-sale-thumbs .mini-thumb:first-child { margin-left: 0; }
.dash-sale-more { margin-left: .35rem; font-size: .75rem; font-weight: 700; color: var(--es-muted); }
.dash-sale-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed var(--es-border); }
.dash-sale-stats div { font-size: .74rem; color: var(--es-muted); display: grid; }
.dash-sale-stats span { font-size: 1.05rem; font-weight: 800; color: var(--es-text); }

/* ---------- Admin: FAQs ---------- */
.faq-intro > summary { list-style: none; cursor: pointer; }
.faq-intro > summary::-webkit-details-marker { display: none; }
.faq-admin-list { list-style: none; margin: 0; padding: 0; min-height: 52px; }
.faq-admin-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem .75rem .6rem; border-top: 1px solid var(--es-border); background: var(--es-surface); }
.faq-admin-row:first-child { border-top: 0; }
.faq-admin-row.dragging { opacity: .45; background: var(--es-primary-soft); }
.faq-admin-row.is-hidden .faq-admin-text { opacity: .55; }
.faq-admin-text { flex: 1; min-width: 0; color: inherit; }
.faq-admin-text:hover { color: inherit; }
.faq-admin-text:hover .fw-semibold { color: var(--es-primary); }
.drag-handle { cursor: grab; color: var(--es-subtle); font-size: 1.3rem; display: grid; place-items: center; padding: .2rem; border-radius: 8px; }
.drag-handle:hover { background: var(--es-surface-2); color: var(--es-text); }
.faq-admin-row:active .drag-handle { cursor: grabbing; }

/* ---------- AI Template Finder ---------- */
.nav-new { font-size: .62rem; font-weight: 800; padding: .08rem .38rem; border-radius: 999px; background: var(--es-grad); color: #fff; vertical-align: middle; margin-left: .2rem; letter-spacing: .03em; }
.nav-menu-ai .nav-menu-ico { background: var(--es-grad); color: #fff; }
.finder-hero .finder-box { position: relative; display: flex; align-items: center; gap: .5rem; max-width: 100%; padding: .55rem; border-radius: 20px; background: var(--es-surface); border: 1px solid var(--es-border); box-shadow: var(--es-shadow-lg); }
.finder-hero .finder-box:focus-within { border-color: var(--es-primary); box-shadow: 0 0 0 4px var(--es-primary-soft), var(--es-shadow-lg); }
.finder-box-ico { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--es-primary); }
.finder-box textarea { border: 0; background: transparent; box-shadow: none !important; resize: none; padding: .7rem .5rem .7rem 2.4rem; font-size: 1.02rem; line-height: 1.5; min-height: 48px; overflow-y: auto; }
.finder-box textarea:focus { background: transparent; }
.finder-box .btn { height: 48px; padding: 0 1.4rem; border-radius: 14px; display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.finder-mode { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: var(--es-surface-2); color: var(--es-muted); border: 1px solid var(--es-border); }
.finder-mode.ai { background: var(--es-grad); color: #fff; border-color: transparent; }
.finder-example { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; background: var(--es-surface); border: 1px dashed var(--es-border-strong); color: var(--es-muted); }
.finder-example:hover { border-style: solid; border-color: var(--es-primary); color: var(--es-primary); }
.finder-step { position: absolute; top: 1rem; right: 1.2rem; font-size: 2rem; font-weight: 800; color: var(--es-border-strong); line-height: 1; }
.finder-how .surface { position: relative; }
.finder-step-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; }
.finder-filters { position: sticky; top: 90px; }
.filter-group { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--es-border); }
.filter-title { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--es-subtle); margin-bottom: .45rem; }
.filter-group .form-check { margin-bottom: .2rem; font-size: .9rem; }
.filter-scroll { max-height: 210px; overflow-y: auto; padding-right: .25rem; }
.finder-avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--es-grad); color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.understood-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--es-primary-soft); color: var(--es-primary); }
.finder-result { display: grid; grid-template-columns: 190px 1fr 150px; gap: 1.1rem; align-items: center; padding: 1rem; border-radius: 18px; background: var(--es-surface); border: 1px solid var(--es-border); transition: border-color .2s, box-shadow .2s; }
.finder-result:hover { border-color: var(--es-border-strong); box-shadow: var(--es-shadow); }
.finder-result.is-best { border-color: color-mix(in srgb, var(--es-primary) 45%, var(--es-border)); box-shadow: 0 0 0 3px var(--es-primary-soft); }
.finder-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; }
.finder-thumb img, .finder-thumb .p-ph { width: 100%; height: 100%; object-fit: cover; }
.finder-title { font-size: 1.08rem; font-weight: 800; margin: 0 0 .25rem; }
.finder-title a { color: var(--es-text); }
.finder-title a:hover { color: var(--es-primary); }
.best-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; background: var(--es-grad); color: #fff; }
.match-chip { display: inline-flex; align-items: center; gap: .15rem; font-size: .74rem; font-weight: 600; padding: .15rem .5rem; border-radius: 8px; }
.match-chip.yes { background: rgba(22,163,74,.1); color: var(--es-success); }
.match-chip.no { background: var(--es-surface-2); color: var(--es-subtle); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.2); }
.finder-side { text-align: center; display: grid; justify-items: center; gap: .2rem; }
.match-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--es-primary) calc(var(--p) * 1%), var(--es-surface-2) 0); }
.match-ring span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--es-surface); font-weight: 800; font-size: .9rem; }
.finder-price { font-weight: 800; margin: .35rem 0; }
.finder-price.free { color: var(--es-success); }
.finder-price.sale { color: #e11d48; }
@media (max-width: 767.98px) {
    .finder-result { grid-template-columns: 110px 1fr; }
    .finder-side { grid-column: 1 / -1; grid-template-columns: auto auto 1fr auto; align-items: center; justify-items: start; text-align: left; gap: .6rem; }
    .finder-side .btn { width: auto !important; }
    .match-ring { width: 48px; height: 48px; } .match-ring span { width: 38px; height: 38px; font-size: .78rem; }
    .finder-hero .finder-box { flex-direction: column; align-items: stretch; } .finder-box .btn { justify-content: center; width: 100%; }
    .finder-box textarea { min-height: 84px; } /* room for the example text on phones */
    .finder-filters { position: static; }
}
.finder-filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
@media (min-width: 992px) { .finder-filters.collapse { display: block !important; } }

/* ---------- Key features: grouped ---------- */
.kf-groups { display: grid; gap: 1.4rem; }
.kf-group-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 800; margin: 0 0 .6rem; color: var(--es-text); }
.kf-group-title::before { content: ""; width: 4px; height: 1.05em; border-radius: 4px; background: var(--es-grad); flex-shrink: 0; }
.kf-bullets { list-style: none; padding: 0; display: grid; gap: .45rem; }
.kf-bullets li { position: relative; padding-left: 1.15rem; color: var(--es-muted); line-height: 1.6; font-size: .95rem; }
.kf-bullets li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.kf-bullets strong { color: var(--es-text); font-weight: 700; }
.kf-preview .kf-bullets li { font-size: .88rem; }
.kf-preview .kf-group-title { font-size: .88rem; }
/* Tools category placeholder */
.ph-admin_template { background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #0ea5e9 100%); }
.ph-tool { background: linear-gradient(135deg, #1f2937 0%, #4b5563 50%, #f59e0b 100%); }

/* ---------- Item "About" text ---------- */
.about-text { color: var(--es-muted); line-height: 1.75; }
.about-text > *:last-child { margin-bottom: 0; }
.about-text p { margin-bottom: 1rem; }
.about-text strong { color: var(--es-text); font-weight: 700; }
.about-heading { font-size: .95rem; font-weight: 800; color: var(--es-text); margin: 1.25rem 0 .55rem; }
.about-text > .about-heading:first-child { margin-top: 0; }
.about-list { padding-left: 1.3rem; margin-bottom: 1rem; display: grid; gap: .35rem; }
.about-list li { padding-left: .2rem; }
.about-list li::marker { color: inherit; }
/* Settings: home page category picker */
.cat-pick { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--es-border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.cat-pick:hover { border-color: var(--es-border-strong); }
.cat-pick:has(input:checked) { border-color: var(--es-primary); background: var(--es-primary-soft); }
.cat-pick .form-check-input { margin: 0; flex-shrink: 0; }
.cat-pick-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--es-grad); color: #fff; font-size: 1rem; flex-shrink: 0; }
/* Item page: share in the buy box */
.buy-share { padding-top: 1rem; } /* the last detail row's line above is the divider */
.buy-share .bx-share-alt { color: var(--es-primary); }
.share.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: .4rem; }
.share.compact .share-btn { width: 100%; height: 38px; border-radius: 11px; font-size: 1rem; }
.share.compact .share-native { grid-column: 1 / -1; display: inline-flex; justify-content: center; }
.share.compact .share-native.d-none { display: none !important; }
/* Settings: share buttons matrix */
.share-matrix th, .share-matrix td { vertical-align: middle; }
.share-matrix td:not(:first-child), .share-matrix th:not(:first-child) { text-align: center; width: 110px; }
.share-matrix .net-ico { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; color: #fff; font-size: .95rem; margin-right: .55rem; }
.share-matrix .form-check-input { float: none; margin: 0; }

/* ---------- Hero: floating tech logos ---------- */
.hero-core { position: relative; }
.hero-float { position: absolute; inset: -1rem 0 0; pointer-events: none; z-index: 2; } /* tiles sit in the side gutters, above the full-width text blocks */
.float-tile { --r: -6deg; --x: 0px; --t: 0%; --dur: 6.5s; --delay: 0s;
    position: absolute; top: var(--t); width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; pointer-events: auto;
    background: color-mix(in srgb, var(--es-surface) 78%, transparent); border: 1px solid var(--es-border);
    box-shadow: 0 14px 34px -14px rgba(40, 30, 120, .35), var(--es-shadow-sm); backdrop-filter: blur(10px);
    animation: floatIn .7s cubic-bezier(.2, .8, .2, 1) both, floatBob var(--dur) ease-in-out var(--delay) infinite;
    transition: border-color .2s, box-shadow .2s; }
.float-tile img { width: 34px; height: 34px; object-fit: contain; transition: transform .3s ease; }
.float-tile:hover { border-color: var(--es-primary); box-shadow: 0 18px 40px -14px rgba(109, 77, 255, .55); }
.float-tile:hover img { transform: scale(1.15) rotate(-6deg); }
[data-bs-theme="dark"] .float-tile { background: color-mix(in srgb, var(--es-surface) 70%, transparent); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7); }
[data-bs-theme="dark"] .float-tile img.logo-mono { filter: invert(1); }
.float-label { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--es-text); color: var(--es-surface); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.float-tile:hover .float-label, .float-tile:focus-visible .float-label { opacity: 1; transform: translate(-50%, 0); }
.ft-left { left: var(--x); }
.ft-right { right: var(--x); --r: 6deg; }
/* staggered positions, top to bottom */
.float-tile.ft-1 { --t: 0%;  --x: 18px; --dur: 6.2s; --delay: -1s; }
.float-tile.ft-2 { --t: 21%; --x: 84px; --dur: 7.4s; --delay: -3s; }
.float-tile.ft-3 { --t: 42%; --x: 4px;  --dur: 6.8s; --delay: -2s; }
.float-tile.ft-4 { --t: 63%; --x: 76px; --dur: 7.8s; --delay: -4s; }
.float-tile.ft-5 { --t: 84%; --x: 20px; --dur: 7.1s; --delay: -5s; }
.ft-right.ft-1 { --delay: -2.5s; } .ft-right.ft-2 { --delay: -.5s; } .ft-right.ft-3 { --delay: -3.5s; } .ft-right.ft-4 { --delay: -1.5s; } .ft-right.ft-5 { --delay: -4.5s; }
.float-tile.ft-1 { animation-delay: .05s, var(--delay); } .float-tile.ft-2 { animation-delay: .15s, var(--delay); }
.float-tile.ft-3 { animation-delay: .25s, var(--delay); } .float-tile.ft-4 { animation-delay: .35s, var(--delay); }
.float-tile.ft-5 { animation-delay: .45s, var(--delay); }
@keyframes floatBob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -1)); } }
@keyframes floatIn { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
/* narrower desktops: keep the tiles in the side gutters */
@media (max-width: 1399.98px) {
    .float-tile { width: 58px; height: 58px; border-radius: 17px; }
    .float-tile img { width: 28px; height: 28px; }
    .float-tile.ft-1 { --x: 0px; } .float-tile.ft-2 { --x: 42px; } .float-tile.ft-3 { --x: -8px; } .float-tile.ft-4 { --x: 36px; } .float-tile.ft-5 { --x: 2px; }
}
/* Settings: floating logo slots */
.float-side-box { border: 1px dashed var(--es-border-strong); border-radius: 14px; padding: .85rem; background: var(--es-surface-2); }
.float-slot { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.float-slot:last-child { margin-bottom: 0; }
.float-slot-n { width: 20px; font-size: .75rem; font-weight: 700; color: var(--es-subtle); text-align: center; flex-shrink: 0; }
.float-slot-logo { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--es-border); background: var(--es-surface); display: grid; place-items: center; flex-shrink: 0; }
.float-slot-logo img { width: 20px; height: 20px; object-fit: contain; }
[data-bs-theme="dark"] .float-slot-logo img.logo-mono { filter: invert(1); }

/* ---------- Tech stack band (own section between categories and featured) ---------- */
.tech-band { padding: 3rem 0 2.75rem; background: var(--es-bg-soft); border-block: 1px solid var(--es-border); }
.tech-band + .section { padding-top: 4.5rem !important; } /* Featured gets full spacing after the band */
.tech-band .tech-marquee { margin: 0 auto; max-width: none; /* full container width, lined up with the cards above */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }

/* ---------- PayPal ---------- */
.paypal-card { overflow: hidden; }
.paypal-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--es-border); background: linear-gradient(90deg, rgba(0, 48, 135, .07), rgba(0, 156, 222, .05)); }
.paypal-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #003087; color: #fff; font-size: 1.6rem; flex-shrink: 0; }
.paypal-pay { border-radius: 16px; padding: 1.25rem; border: 1px solid var(--es-border); background: linear-gradient(135deg, rgba(0, 48, 135, .06), rgba(0, 156, 222, .06)); }
.paypal-pay .paypal-mark { width: 52px; height: 52px; font-size: 1.8rem; }
.paypal-perks { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .4rem; font-size: .9rem; }
.paypal-perks li { display: flex; gap: .5rem; align-items: flex-start; }
.paypal-perks i { color: var(--es-success); font-size: 1.1rem; margin-top: .1rem; }
.btn-paypal { --bs-btn-bg: #ffc439; --bs-btn-border-color: #ffc439; --bs-btn-color: #111; --bs-btn-hover-bg: #f2ba36; --bs-btn-hover-border-color: #f2ba36; --bs-btn-hover-color: #111; --bs-btn-active-bg: #e6b033; --bs-btn-active-color: #111; font-weight: 800; }
.btn-paypal .bxl-paypal { color: #003087; font-size: 1.3rem; }
.paypal-receipt { border-radius: 16px; padding: 1.5rem; text-align: center; border: 1px dashed var(--es-border-strong); background: var(--es-surface-2); }

/* ---------- Saving overlay (admin product form) ---------- */
.saving-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1rem; background: rgba(10, 10, 25, .45); backdrop-filter: blur(6px); animation: fadeUp .2s ease both; }
.saving-overlay[hidden] { display: none; }
body.is-saving { overflow: hidden; }
.saving-card { width: min(420px, 100%); text-align: center; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 22px; padding: 2rem 1.75rem 1.75rem; box-shadow: var(--es-shadow-lg); }
.saving-spinner { position: relative; width: 72px; height: 72px; margin: 0 auto 1.1rem; display: grid; place-items: center; }
.saving-spinner span { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--es-primary-soft); border-top-color: var(--es-primary); border-right-color: #2fb8ff; animation: savingSpin .9s linear infinite; }
.saving-spinner i { font-size: 1.7rem; color: var(--es-primary); animation: savingPulse 1.4s ease-in-out infinite; }
.saving-bar { height: 6px; border-radius: 999px; background: var(--es-surface-2); overflow: hidden; position: relative; }
.saving-bar span { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: inherit; background: var(--es-grad); animation: savingBar 1.3s ease-in-out infinite; }
@keyframes savingSpin { to { transform: rotate(360deg); } }
@keyframes savingPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }
@keyframes savingBar { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .saving-spinner span { animation: savingSpin 1.6s linear infinite !important; } }
/* Browser preview: "Most downloaded" tag; long address shortens with … */
.mock-url { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tag { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0; font-size: .74rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--es-grad); color: #fff; box-shadow: var(--es-shadow-sm); }
.mock-tag:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 575.98px) { .mock-url { margin-left: .5rem; } .mock-tag { font-size: .68rem; padding: .2rem .5rem; } }
/* AI finder box on phones: stacked, icon beside the first line */
@media (max-width: 767.98px) { .finder-box-ico { top: 1.05rem; transform: none; } }

/* ---------- Blog SEO: counters + Google search preview ---------- */
.seo-count { font-size: .75rem; font-weight: 700; color: var(--es-subtle); }
.seo-count.good { color: var(--es-success); }
.seo-count.over { color: #e8590c; }
.serp { border: 1px solid var(--es-border); border-radius: 12px; padding: .9rem 1rem; background: #fff; font-family: Arial, sans-serif; }
.serp-site { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; min-width: 0; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; color: #5b3df5; flex-shrink: 0; font-size: .9rem; }
.serp-site > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.serp-name { font-size: .82rem; color: #202124; }
.serp-url { font-size: .74rem; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-title { font-size: 1.1rem; line-height: 1.3; color: #1a0dab; margin-bottom: .2rem; overflow-wrap: anywhere; }
.serp-desc { font-size: .82rem; line-height: 1.5; color: #4d5156; overflow-wrap: anywhere; }
[data-bs-theme="dark"] .serp { background: #202124; border-color: #3c4043; }
[data-bs-theme="dark"] .serp-fav { background: #303134; }
[data-bs-theme="dark"] .serp-name { color: #dadce0; }
[data-bs-theme="dark"] .serp-url, [data-bs-theme="dark"] .serp-desc { color: #bdc1c6; }
[data-bs-theme="dark"] .serp-title { color: #99c3ff; }

/* Blog: justified blocks (editor "Justify" button) */
.text-justify { text-align: justify; text-justify: inter-word; }
.text-justify > :last-child { margin-bottom: 0; }
.post-body .text-justify, .editor-preview .text-justify { margin-bottom: 1rem; }

/* ---------- Blog code blocks: VS Code look (colours from highlight.js "vs2015") ---------- */
.post-body .code-block { margin: 1.5rem 0; border-radius: 12px; overflow: hidden; background: #1e1e1e; border: 1px solid #2b2b2b; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.post-body .code-block pre { margin: 0; border: 0; border-radius: 0; padding: 0; }
.post-body .code-block pre code.hljs, .post-body .code-block pre code { display: block; padding: 1rem 1.15rem; background: #1e1e1e; color: #d4d4d4; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.7; }
.post-body .code-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .6rem .45rem .9rem; background: #252526; border-bottom: 1px solid #333; }
.post-body .code-lang { display: inline-flex; align-items: center; gap: .7rem; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #9da5b4; font-family: "JetBrains Mono", ui-monospace, monospace; }
.post-body .code-dots { display: inline-flex; gap: .35rem; }
.post-body .code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.post-body .code-dots i:nth-child(2) { background: #febc2e; } .post-body .code-dots i:nth-child(3) { background: #28c840; }
.post-body .code-copy { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid #3c3c3c; background: #2d2d2d; color: #cccccc; font-size: .74rem; font-weight: 600; padding: .22rem .6rem; border-radius: 7px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.post-body .code-copy:hover { background: #37373d; color: #fff; }
.post-body .code-copy.done { background: #0e639c; border-color: #1177bb; color: #fff; }
.post-body .code-block ::selection { background: #264f78; }

/* ---------- Item page: Installation tab (Markdown, uses the blog's .post-body styles) ---------- */
.install-guide { font-size: .97rem; line-height: 1.75; }
.install-guide > :first-child { margin-top: 0; }
.install-guide h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.install-guide h3 { font-size: 1.02rem; margin: 1.3rem 0 .5rem; }
.install-guide ol, .install-guide ul { padding-left: 1.3rem; }
.install-guide li { margin-bottom: .35rem; }
.install-guide li::marker { color: inherit; font-weight: 700; }
.install-guide .code-block { margin: .75rem 0 1.1rem; }

/* ---------- Admin product form: right column stays in view while scrolling ---------- */
@media (min-width: 1200px) {
    .form-aside { position: sticky; top: 88px; align-self: flex-start; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 2px; scrollbar-width: thin; }
}

/* ---------- Item page "About" (Markdown) — and the description editor's Preview ---------- */
.about-md { font-size: .98rem; line-height: 1.75; color: var(--es-text); }
.about-md > :first-child { margin-top: 0; }
.about-md > :last-child { margin-bottom: 0; }
.about-md p { margin-bottom: 1rem; }
.about-md strong { color: var(--es-text); }
.about-md h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; color: var(--es-text); }
.about-md h3, .about-md h4 { font-size: 1rem; font-weight: 800; margin: 1.3rem 0 .5rem; color: var(--es-text); }
.about-md ul, .about-md ol { padding-left: 1.3rem; margin-bottom: 1rem; display: grid; gap: .35rem; }
.about-md li::marker { color: inherit; }
.about-md blockquote { color: var(--es-text); }
.md-editor .editor-preview { padding: 1.25rem 1.5rem; }

/* ---------- About tab: lists under a "Key features" heading use a green check-circle (see Product::descriptionHtml) ---------- */
.about-md ul.check-list { list-style: none; padding-left: 0; gap: .6rem; }
.about-md ul.check-list > li { position: relative; padding-left: 2rem; }
.about-md ul.check-list > li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; background: var(--es-success);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z'/%3E%3Cpath d='M9.999 13.587 7.7 11.292l-1.412 1.416 3.713 3.705 6.706-6.706-1.414-1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z'/%3E%3Cpath d='M9.999 13.587 7.7 11.292l-1.412 1.416 3.713 3.705 6.706-6.706-1.414-1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.about-md ul.check-list > li { color: var(--es-text); }
.about-md ul.check-list ul { margin-top: .5rem; list-style: none; padding-left: 0; } /* nested lists: smaller dot */
.about-md ul.check-list ul > li { position: relative; padding-left: 1.2rem; }
.about-md ul.check-list ul > li::before { content: ""; position: absolute; width: 6px; height: 6px; top: .65em; left: .3rem; border-radius: 50%; -webkit-mask: none; mask: none; background: currentColor; }

/* Admin → Site settings: home headline live preview */
.hero-text-preview { border: 1px dashed var(--es-border-strong); border-radius: 14px; padding: 1.1rem 1.2rem; text-align: center; background: var(--es-surface-2, transparent); }
.hero-text-preview .htp-title { font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--es-text); overflow-wrap: anywhere; }
.hero-text-preview .htp-sub { margin-top: .45rem; font-size: .88rem; color: var(--es-muted); overflow-wrap: anywhere; }

/* Checkout / admin: payment method sections (E-wallets, Bank Transfer, PayPal / Card) */
.pay-group-head { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--es-muted); margin-bottom: .75rem; }
.pay-group-head i { font-size: 1.05rem; color: var(--es-primary); }
.pay-card .min-w-0 { min-width: 0; }
.pay-card .min-w-0 .fw-bold { overflow-wrap: anywhere; padding-right: 1.4rem; }
.pay-card > span.fw-semibold { padding-right: 1.4rem; overflow-wrap: anywhere; } /* admin provider picker: keep names clear of the check circle */

/* Footer bottom bar: centred on phones; extra space so the back-to-top button doesn't cover the links */
@media (max-width: 767.98px) {
    .es-footer .credit { align-items: center; text-align: center; padding-bottom: 4.5rem; }
    .es-footer .credit .footer-legal { justify-content: center; }
}
@media (min-width: 768px) {
    .es-footer .credit { padding-right: 3.5rem; } /* keep the credit clear of the back-to-top button */
}

/* Two-factor: code input + badge */
.otp-input { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .5em; text-align: center; padding-left: .9rem; padding-right: .4rem; }
.otp-field { width: 210px; max-width: 100%; }
.otp-field .otp-input { font-size: 1.25rem; padding-top: .45rem; padding-bottom: .45rem; }
.otp-box { border: 1px dashed var(--es-border-strong); border-radius: 14px; padding: 1rem 1.1rem; background: var(--es-surface-2); }
.otp-badge { width: 52px; height: 52px; border-radius: 16px; display: inline-grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--es-grad); }

/* ---------- AI Agents (Help → AI Agents) ---------- */
.agent-pick { display: flex; align-items: center; gap: .85rem; padding: 1rem; border-radius: 16px; border: 1.5px solid var(--es-border); background: var(--es-surface); color: var(--es-text); text-decoration: none; transition: .15s; }
.agent-pick:hover { border-color: var(--es-border-strong); color: var(--es-text); }
.agent-pick.active { border-color: var(--es-primary); background: var(--es-primary-soft); box-shadow: 0 0 0 4px var(--es-primary-soft); }
.agent-ava { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: inline-grid; place-items: center; color: #fff; font-size: 1.35rem; background: var(--es-grad); }
.agent-ava.ava-support { background: linear-gradient(135deg, #0e9f7e 0%, #2fd3a5 100%); }
.agent-ava.ava-tech { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #38bdf8 100%); }
.agent-ava.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 1rem; }
.agent-chat { display: flex; flex-direction: column; overflow: hidden; height: min(72vh, 720px); min-height: 480px; }
.agent-chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--es-border); }
.agent-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--es-success, #16a34a); margin-right: .35rem; vertical-align: middle; }
.agent-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .9rem; background: var(--es-surface-2); }
.agent-msg { display: flex; gap: .6rem; align-items: flex-start; max-width: 100%; }
.agent-msg.user { justify-content: flex-end; }
.agent-bubble { padding: .7rem .95rem; border-radius: 16px; font-size: .94rem; line-height: 1.6; max-width: min(560px, 85%); overflow-wrap: anywhere; }
.agent-msg.bot .agent-bubble { background: var(--es-surface); border: 1px solid var(--es-border); border-top-left-radius: 6px; color: var(--es-text); }
.agent-msg.user .agent-bubble { background: var(--es-grad); color: #fff; border-top-right-radius: 6px; }
.agent-bubble p { margin: 0 0 .35rem; } .agent-bubble p:last-child { margin-bottom: 0; }
.agent-bubble ul, .agent-bubble ol { margin: .2rem 0 .6rem; padding-left: 1.2rem; }
.agent-bubble li { margin-bottom: .2rem; }
.agent-typing .agent-bubble { display: inline-flex; gap: .3rem; padding: .85rem 1rem; }
.agent-typing .agent-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--es-muted); animation: agentDot 1.2s infinite ease-in-out; }
.agent-typing .agent-bubble span:nth-child(2) { animation-delay: .15s; } .agent-typing .agent-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes agentDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .agent-typing .agent-bubble span { animation: none; opacity: .6; } }
.agent-products { display: grid; gap: .5rem; margin-top: .7rem; }
.agent-product { display: flex; align-items: center; gap: .75rem; padding: .55rem; border-radius: 12px; border: 1px solid var(--es-border); background: var(--es-surface-2); color: var(--es-text); text-decoration: none; transition: .15s; }
.agent-product:hover { border-color: var(--es-primary); color: var(--es-text); }
.agent-product-media { width: 84px; height: 58px; flex-shrink: 0; border-radius: 9px; overflow: hidden; display: block; }
.agent-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-product-media .p-ph { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; border-radius: 0; aspect-ratio: auto; padding: 0; }
.agent-product-body { min-width: 0; flex: 1; display: grid; gap: .1rem; }
.agent-product-title { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.agent-product-meta { font-size: .78rem; color: var(--es-muted); }
.agent-product-tech { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .1rem; }
.agent-product-tech span { font-size: .7rem; font-weight: 600; padding: .05rem .45rem; border-radius: 999px; background: var(--es-primary-soft); color: var(--es-primary); }
.agent-product-why { font-size: .78rem; color: var(--es-muted); margin-top: .15rem; }
.agent-product-go { color: var(--es-muted); font-size: 1.2rem; flex-shrink: 0; }
.agent-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.agent-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 1.1rem 0; }
.agent-suggest:empty { display: none; }
.agent-chip { border: 1px dashed var(--es-border-strong); background: var(--es-surface); color: var(--es-text); border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; text-align: left; transition: .15s; }
.agent-chip:hover { border-color: var(--es-primary); color: var(--es-primary); }
.agent-input { display: flex; gap: .5rem; align-items: flex-end; padding: .8rem 1.1rem 1rem; }
.agent-input textarea { resize: none; min-height: 46px; max-height: 140px; border-radius: 14px; }
.agent-input .btn { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; }
@media (max-width: 991.98px) {
    .agent-list { grid-template-columns: 1fr 1fr; gap: .6rem !important; }
    .agent-pick { padding: .6rem .7rem; gap: .6rem; }
    .agent-pick .small { display: none !important; }
    .agent-pick .agent-ava { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 11px; }
}
@media (max-width: 575.98px) {
    .agent-chat { height: 75vh; min-height: 440px; }
    .agent-bubble { max-width: 92%; }
    .agent-msg.bot .agent-ava { display: none; }
    .agent-product-media { width: 64px; height: 48px; }
}

.agent-code { position: relative; margin: .4rem 0 .6rem; padding: .7rem .85rem; padding-right: 2.4rem; border-radius: 10px; background: #1e1e1e; color: #d4d4d4; font-size: .8rem; line-height: 1.55; white-space: pre; overflow-x: auto; }
.agent-code code { color: inherit; background: none; padding: 0; font-size: inherit; }
.agent-copy { position: absolute; top: .4rem; right: .4rem; width: 28px; height: 28px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #d4d4d4; display: grid; place-items: center; font-size: .9rem; }
.agent-copy:hover { background: rgba(255,255,255,.14); }
.agent-note { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #0e9f7e; margin-bottom: .35rem; }

/* Admin → AI Agents */
.agent-stat-active { border-color: var(--es-primary) !important; box-shadow: 0 0 0 3px var(--es-primary-soft); }
.agent-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.agent-key.ava-product, .agent-bar-stack .ava-product { background: var(--es-grad); }
.agent-key.ava-support, .agent-bar-stack .ava-support { background: linear-gradient(135deg, #0e9f7e 0%, #2fd3a5 100%); }
.agent-key.ava-tech, .agent-bar-stack .ava-tech { background: linear-gradient(135deg, #0f766e 0%, #38bdf8 100%); }
.agent-bars { display: flex; align-items: flex-end; gap: .35rem; height: 150px; }
.agent-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; }
.agent-bar-stack { display: flex; flex-direction: column; border-radius: 6px 6px 2px 2px; overflow: hidden; min-height: 3px; background: var(--es-border); }
.agent-bar-stack span { display: block; min-height: 3px; }
.agent-bar-label { text-align: center; font-size: .68rem; color: var(--es-muted); margin-top: .3rem; }
.agent-top-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--es-border); color: var(--es-text); font-size: .88rem; text-decoration: none; }
.agent-top-row:last-child { border-bottom: 0; }
.agent-top-row:hover { color: var(--es-primary); }
.admin-transcript { max-height: none; overflow: visible; }
.agent-time { font-size: .7rem; opacity: .7; margin-top: .35rem; }
.agent-msg.is-flagged .agent-bubble { border-color: rgba(220, 38, 38, .45); }

/* Product form: size of the chosen download package */
.file-size-badge { display: inline-flex; align-items: center; gap: .3rem; margin: .35rem auto .25rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--es-surface-2); border: 1px solid var(--es-border); color: var(--es-muted); }
.file-size-badge.is-new { background: var(--es-primary-soft); border-color: transparent; color: var(--es-primary); }
.dropzone .file-size-badge i { font-size: .95rem; margin: 0; color: inherit; display: inline; }

/* Approve button: keep it green on hover/press in light and dark mode (Bootstrap would make it transparent) */
.btn-success-es {
    --bs-btn-color: #fff; --bs-btn-bg: var(--es-success); --bs-btn-border-color: var(--es-success);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #166534; --bs-btn-active-border-color: #166534;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--es-success); --bs-btn-disabled-border-color: var(--es-success);
    --bs-btn-focus-shadow-rgb: 34, 197, 94;
}
.btn-success-es:hover, .btn-success-es:focus-visible { background: #15803d; color: #fff; filter: none; }
.btn-success-es:active { background: #166534; color: #fff; }

/* Success animation (payment submitted / paid / approved) */
.celebrate { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 1rem; background: rgba(10, 10, 25, .5); backdrop-filter: blur(6px); animation: celebrateIn .25s ease both; overflow: hidden; }
.celebrate.out { animation: celebrateOut .22s ease both; }
.celebrate-card { position: relative; z-index: 1; width: min(420px, 100%); text-align: center; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 24px; padding: 2.1rem 1.75rem 1.6rem; box-shadow: var(--es-shadow-lg); animation: celebratePop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.celebrate-mark { width: 92px; height: 92px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .12); animation: celebratePulse 1.6s ease-out .6s both; }
.celebrate-mark svg { width: 74px; height: 74px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.celebrate-ring { stroke: #22c55e; stroke-width: 4; stroke-dasharray: 227; stroke-dashoffset: 227; animation: celebrateDraw .6s ease-out .1s forwards; transform: rotate(-90deg); transform-origin: center; }
.celebrate-icon { stroke: #22c55e; stroke-width: 6; stroke-dasharray: 80; stroke-dashoffset: 80; animation: celebrateDraw .45s ease-out .55s forwards; }
.celebrate-submitted { background: var(--es-primary-soft); animation-name: celebratePulseViolet; }
.celebrate-submitted .celebrate-ring { stroke: var(--es-primary); }
.celebrate-submitted .celebrate-icon { stroke: var(--es-primary); }
.celebrate-submitted svg { animation: celebrateFly .9s ease-in-out 1.1s 2 alternate; }
.celebrate-meta { display: inline-block; font-size: .85rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; background: var(--es-surface-2); border: 1px solid var(--es-border); color: var(--es-text); }
.celebrate-confetti { position: absolute; inset: 0; pointer-events: none; }
.celebrate-confetti span { position: absolute; top: -20px; border-radius: 2px; opacity: 0; animation: confettiFall linear forwards; }
@keyframes celebrateIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes celebrateOut { to { opacity: 0; } }
@keyframes celebratePop { from { opacity: 0; transform: scale(.85) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes celebrateDraw { to { stroke-dashoffset: 0; } }
@keyframes celebratePulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 100% { box-shadow: 0 0 0 26px rgba(34, 197, 94, 0); } }
@keyframes celebratePulseViolet { 0% { box-shadow: 0 0 0 0 rgba(109, 77, 255, .4); } 100% { box-shadow: 0 0 0 26px rgba(109, 77, 255, 0); } }
@keyframes celebrateFly { to { transform: scale(1.08); } }
@keyframes confettiFall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), 105vh) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) {
    .celebrate, .celebrate-card, .celebrate-mark { animation: none; }
    .celebrate-ring, .celebrate-icon { animation: none !important; stroke-dashoffset: 0; }
}

/* Receipt page (My purchases → Receipt) — the receipt is always on white "paper", also in dark mode */
.receipt-paper { max-width: 820px; background: #fff; color: #0f1222; border-radius: 18px; border: 1px solid var(--es-border); box-shadow: var(--es-shadow-lg); padding: 2.4rem 2.6rem; overflow-x: auto; }
@media (max-width: 575.98px) { .receipt-paper { padding: 1.25rem 1rem; border-radius: 14px; } }
@media print {
    body * { visibility: hidden !important; }
    .receipt-paper, .receipt-paper * { visibility: visible !important; }
    .receipt-paper { position: absolute; inset: 0 auto auto 0; width: 100%; max-width: none; border: 0; box-shadow: none; padding: 0; }
    .back-to-top { display: none !important; }
}

/* Checkout summary with several items (cart) */
.checkout-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; max-height: 330px; overflow-y: auto; overflow-x: hidden; padding-right: .15rem; }
.min-w-0 { min-width: 0; }
.checkout-title { line-height: 1.3; overflow-wrap: anywhere; }
.checkout-item + .checkout-item { padding-top: .75rem; border-top: 1px dashed var(--es-border); }

/* Cart button in the top bar */
.cart-btn { position: relative; font-size: 1.3rem; }
.cart-count { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--es-nav-bg, var(--es-bg)); }
.cart-count.bump { animation: cartBump .45s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cart-pill { background: #ef4444; font-size: .7rem; }
/* Theme switch as a menu row ("Dark mode" / "Light mode") */
.theme-row { display: flex; align-items: center; gap: .5rem; width: 100%; }
.theme-row i { width: 1.1rem; }
.cart-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--es-border); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { width: 92px; height: 62px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: block; }
.cart-thumb > * { width: 100%; height: 100%; }
@media (max-width: 575.98px) { .cart-row { gap: .7rem; padding: .85rem; } .cart-thumb { width: 64px; height: 46px; } }
.add-cart-btn .when-in { display: none; }
.add-cart-btn.in-cart { color: var(--es-success); border-color: color-mix(in srgb, var(--es-success) 45%, transparent); background: color-mix(in srgb, var(--es-success) 10%, var(--es-surface)); opacity: 1; }
.add-cart-btn.in-cart .when-out { display: none; }
.add-cart-btn.in-cart .when-in { display: inline-flex; align-items: center; gap: .4rem; }
.add-cart-btn .when-out { display: inline-flex; align-items: center; gap: .4rem; }
/* Admin order: items paid together (cart) */
.batch-box { border: 1px solid var(--es-border); background: var(--es-surface-2); border-radius: 14px; padding: .85rem 1rem; }
.batch-line { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem .5rem; margin: 0 -.5rem; border-radius: 8px; color: var(--es-text); font-size: .9rem; }
.batch-line:hover { background: var(--es-surface); color: var(--es-text); }
.batch-line.current { background: var(--es-primary-soft); font-weight: 700; }
.view-cart-link[hidden], [data-cart-count][hidden] { display: none !important; }

/* Admin orders: one row per payment (cart items grouped) */
.order-lines { display: grid; gap: .3rem; }
.order-lines > div { display: flex; gap: .4rem; align-items: baseline; }
.order-lines .bx, .line-dot { color: var(--es-primary); font-size: .45rem; flex-shrink: 0; position: relative; top: -.15em; }

/* My purchases: a cart payment is one card with a line per item */
.order-group + .order-group, .order-group + .order-row, .order-row + .order-group { border-top: 1px solid var(--es-border); }
.order-group .order-sub { padding-bottom: .55rem; }
.order-group .order-sub + .order-sub { border-top: 0; padding-top: .55rem; }
.order-group-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin: 0 1.25rem; padding: .8rem 0 1.1rem; border-top: 1px dashed var(--es-border); }

/* Checkout coupon */
.coupon-box { padding: .7rem 0 .8rem; border-bottom: 1px solid var(--es-border); }
.coupon-box .form-control { text-transform: uppercase; letter-spacing: .04em; }
.coupon-box .form-control::placeholder { text-transform: none; letter-spacing: 0; }
.coupon-box .form-control[readonly] { background: var(--es-primary-soft); border-color: transparent; }
.coupon-chip { border: 1px dashed var(--es-primary); background: var(--es-primary-soft); color: var(--es-primary); font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .1rem .55rem; font-family: var(--bs-font-monospace); }
.coupon-chip:hover { background: var(--es-primary); color: #fff; }
.coupon-code { font-family: var(--bs-font-monospace); font-weight: 700; letter-spacing: .04em; }

/* Admin → SEO */
.seo-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.seo-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem; align-items: start; font-size: .86rem; }
.seo-checks li > i { font-size: 1.15rem; line-height: 1.2; }
.seo-checks li.ok > i { color: var(--es-success); }
.seo-checks li.todo > i { color: #e8590c; }
.seo-checks li strong { display: block; font-weight: 600; color: var(--es-text); }
.seo-checks li.ok strong { font-weight: 500; color: var(--es-muted); }
.seo-checks li small { display: block; color: var(--es-muted); margin-top: .1rem; line-height: 1.4; }
.seo-links { display: grid; gap: .5rem; }
.seo-links a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border: 1px solid var(--es-border); border-radius: 10px; color: var(--es-text); text-decoration: none; min-width: 0; }
.seo-links a:hover { border-color: var(--es-primary); background: var(--es-primary-soft); }
.seo-links a > i:first-child { font-size: 1.25rem; color: var(--es-primary); flex-shrink: 0; }
.seo-links a > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.seo-links a > span strong { font-size: .86rem; }
.seo-links a > span span { font-size: .75rem; color: var(--es-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-links .bx-link-external { color: var(--es-subtle); flex-shrink: 0; }

/* Checkout: PayPal-style buttons (yellow PayPal + dark card button) */
.pp-buttons { display: grid; gap: .7rem; }
.pp-btn { --bs-btn-padding-y: 0; height: 52px; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; border: 0; transition: filter .15s ease, transform .1s ease; }
.pp-btn:active { transform: scale(.99); }
.pp-btn-paypal { --bs-btn-bg: #ffc439; --bs-btn-hover-bg: #f2ba36; --bs-btn-active-bg: #e6b033; background: #ffc439; }
.pp-btn-paypal:hover { background: #f2ba36; }
.pp-wordmark { font-family: Verdana, "Segoe UI", Arial, sans-serif; font-style: italic; font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1; }
.pp-pay { color: #003087; }
.pp-pal { color: #009cde; }
.pp-btn-card { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; background: #2c2e2f; color: #fff; font-weight: 700; font-size: 1.05rem; }
.pp-btn-card:hover { background: #1f2021; color: #fff; }
.pp-btn-card .bx { font-size: 1.6rem; }
.pp-divider { display: flex; align-items: center; gap: .75rem; color: var(--es-muted); font-size: .8rem; }
.pp-divider::before, .pp-divider::after { content: ""; flex: 1; height: 1px; background: var(--es-border-strong); }
.pp-secure { display: block; text-align: center; font-size: .75rem; line-height: 1.5; color: var(--es-muted); text-wrap: balance; }
.pp-secure i { display: inline-block; vertical-align: -2px; margin-right: .25rem; font-size: .9rem; color: var(--es-success); }
[data-bs-theme="dark"] .pp-btn-card { background: #ffffff; color: #111; --bs-btn-color: #111; --bs-btn-hover-color: #111; }
[data-bs-theme="dark"] .pp-btn-card:hover { background: #e9e9ea; color: #111; }

/* Premium pill on the item page — same brand look as the card badge */
.status.status-premium { background: var(--es-grad); color: #fff; box-shadow: 0 4px 12px -5px var(--es-glow); }
.status.status-premium::before { display: none; }
.status.status-premium .bxs-star { color: #ffd84d; font-size: .85em; }

/* ---------- About Us page ---------- */
.about-hero { position: relative; padding: 3.5rem 0 4.5rem; border-bottom: 1px solid var(--es-border); isolation: isolate; overflow: hidden; }
.about-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--es-grad-soft); }
.about-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .25rem 0 1rem; }
.about-lead { font-size: 1.08rem; line-height: 1.7; color: var(--es-muted); max-width: 36rem; margin: 0; }
.about-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--es-border); box-shadow: 0 24px 48px -28px rgba(15, 18, 34, .45); aspect-ratio: 4 / 3; background: var(--es-surface); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-collage { position: relative; height: 340px; }
.about-collage-item { position: absolute; width: 62%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--es-border); background: var(--es-surface); box-shadow: 0 22px 40px -24px rgba(15, 18, 34, .5); }
.about-collage-item > * { width: 100%; height: 100%; }
.about-collage-item.n1 { top: 0; left: 0; transform: rotate(-3deg); z-index: 1; }
.about-collage-item.n2 { top: 22%; right: 0; transform: rotate(2.5deg); z-index: 2; }
.about-collage-item.n3 { bottom: 0; left: 16%; transform: rotate(-1deg); z-index: 3; }
.about-stats-wrap { margin-top: -2.4rem; position: relative; z-index: 2; }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 16px; box-shadow: 0 18px 40px -30px rgba(15, 18, 34, .35); }
.about-stat { padding: 1.25rem 1.4rem; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; }
.about-stat + .about-stat { border-left: 1px solid var(--es-border); }
.about-stat i { grid-row: span 2; font-size: 1.5rem; color: var(--es-primary); background: var(--es-primary-soft); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.about-stat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--es-text); }
.about-stat span { font-size: .82rem; color: var(--es-muted); }
.about-h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.about-side { position: sticky; top: 6rem; }
.about-story { font-size: 1.05rem; color: var(--es-text); }
.about-story p:first-of-type { font-size: 1.15rem; color: var(--es-text); }
.about-value { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 14px; padding: 1.4rem; }
.about-value-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--es-primary-soft); color: var(--es-primary); font-size: 1.4rem; margin-bottom: .9rem; }
.about-value h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.about-value p { font-size: .9rem; color: var(--es-muted); margin: 0; line-height: 1.6; }
.about-member { text-align: center; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 14px; padding: 1.5rem 1.25rem; }
.about-member-photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; background: var(--es-grad); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--es-surface), 0 0 0 5px var(--es-border); }
.about-member-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-member-photo span { color: #fff; font-weight: 800; font-size: 1.6rem; }
.about-member h3 { font-size: 1rem; font-weight: 700; margin-bottom: .1rem; }
.about-member-role { font-size: .82rem; color: var(--es-primary); font-weight: 600; margin-bottom: .6rem; }
.about-member p { font-size: .86rem; color: var(--es-muted); margin-bottom: .6rem; }
.about-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2.25rem 2.5rem; border-radius: 18px; background: var(--es-grad); color: #fff; }
.about-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; margin: 0 0 .3rem; color: #fff; }
.about-cta p { margin: 0; opacity: .9; }
@media (max-width: 991.98px) {
    .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-stat:nth-child(3) { border-left: 0; }
    .about-stat:nth-child(n+3) { border-top: 1px solid var(--es-border); }
    .about-side { position: static; }
    .about-collage { height: 280px; }
}
@media (max-width: 575.98px) {
    .about-hero { padding: 2.25rem 0 3.75rem; }
    .about-stat { padding: 1rem; }
    .about-stat i { width: 38px; height: 38px; font-size: 1.2rem; }
    .about-stat strong { font-size: 1.2rem; }
    .about-collage { height: 220px; }
    .about-cta { padding: 1.75rem 1.5rem; }
}

/* Admin → About page */
.repeat-row { position: relative; padding: .85rem 2.75rem .85rem .85rem; border: 1px solid var(--es-border); border-radius: 12px; background: var(--es-surface-2); }
.repeat-remove { position: absolute; top: .5rem; right: .5rem; }
.about-admin-img { aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed var(--es-border-strong); overflow: hidden; display: grid; place-items: center; color: var(--es-muted); font-size: .8rem; background: var(--es-surface-2); }
.about-admin-img img { width: 100%; height: 100%; object-fit: cover; }
.about-admin-img span { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.about-admin-img .bx { font-size: 1.6rem; }
.about-admin-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--es-primary-soft); color: var(--es-primary); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto; }
.about-admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.section-off { opacity: .45; }
.about-collage-item > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage-slot .about-admin-img { aspect-ratio: 16 / 10; cursor: pointer; transition: border-color .15s ease; }
.collage-slot .about-admin-img:hover { border-color: var(--es-primary); color: var(--es-primary); }
.about-cta-section { padding: 3rem 0; }
@media (max-width: 575.98px) { .about-cta-section { padding: 2rem 0; } }
.hero-text-preview .htp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .65rem; }
.hero-text-preview .htp-tags span { font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; background: var(--es-surface); border: 1px solid var(--es-border); color: var(--es-muted); }

/* Checkout: card payment modal (PayPal card form) */
.card-pay-modal { border-radius: 16px; border: 1px solid var(--es-border); }
.card-pay-total { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-radius: 12px; background: var(--es-surface-2); border: 1px solid var(--es-border); margin-bottom: .85rem; }
.card-pay-total strong { font-size: 1.15rem; }
.card-pay-brands { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.cpb { font-size: .66rem; font-weight: 800; letter-spacing: .02em; padding: .25rem .5rem; border-radius: 5px; border: 1px solid var(--es-border); background: #fff; color: #1a1f71; line-height: 1.2; }
.cpb-mastercard { color: #eb001b; }
.cpb-amex { background: #2e77bb; color: #fff; border-color: #2e77bb; }
.cpb-jcb { color: #0b6b3a; }
.cpb-unionpay { color: #d10429; }
.card-pay-fields { min-height: 56px; background: #fff; border-radius: 10px; padding: .25rem; }
[data-bs-theme="dark"] .card-pay-fields { padding: .75rem; }
.card-pay-loading { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; color: #5b6075; font-size: .9rem; }
.card-pay-stage { position: relative; }
/* PayPal's frames get their own stacking layer, so nothing inside them can sit above the cover */
.card-pay-fields { position: relative; z-index: 0; isolation: isolate; }
.card-pay-opening { position: absolute; inset: 0; z-index: 10; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 8px; background: rgba(255, 255, 255, .92); color: #2c2e2f; font-weight: 600; font-size: .92rem; backdrop-filter: blur(1px); }
.card-pay-opening[hidden] { display: none; }
.card-pay-csc { display: flex; align-items: center; gap: .65rem; margin-top: .75rem; padding: .55rem .75rem; border-radius: 10px; background: var(--es-surface-2); border: 1px solid var(--es-border); font-size: .82rem; color: var(--es-muted); line-height: 1.4; }
.card-pay-csc strong { color: var(--es-text); font-weight: 600; }
.card-pay-csc .csc-card { width: 40px; height: 26px; flex-shrink: 0; color: #2c2e2f; }
[data-bs-theme="dark"] .card-pay-csc .csc-card { color: #5b6075; }

/* Card modal: order summary (left) + PayPal card form (right) */
.card-pay-dialog { max-width: 880px; }
.card-pay-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem; align-items: start; }
.card-pay-summary { background: var(--es-surface-2); border: 1px solid var(--es-border); border-radius: 14px; padding: 1rem; position: sticky; top: 0; }
.cps-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--es-muted); margin-bottom: .7rem; }
.cps-cover { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--es-border); background: var(--es-surface); }
.cps-cover > *, .cps-thumb > * { width: 100%; height: 100%; }
.cps-name { font-weight: 700; font-size: 1rem; line-height: 1.3; margin-top: .75rem; color: var(--es-text); overflow-wrap: anywhere; }
.cps-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; font-size: .78rem; color: var(--es-muted); }
.cps-list { display: grid; gap: .65rem; max-height: 260px; overflow-y: auto; }
.cps-item { display: flex; align-items: center; gap: .65rem; }
.cps-thumb { width: 64px; aspect-ratio: 16 / 10; flex-shrink: 0; border-radius: 7px; overflow: hidden; border: 1px solid var(--es-border); background: var(--es-surface); }
.cps-item-name { font-weight: 600; font-size: .84rem; line-height: 1.3; color: var(--es-text); overflow-wrap: anywhere; }
.cps-item-cat { font-size: .74rem; color: var(--es-muted); }
.cps-item-price { font-weight: 700; font-size: .84rem; white-space: nowrap; }
.cps-rows { margin-top: .85rem; border-top: 1px dashed var(--es-border-strong); padding-top: .35rem; }
.cps-rows .meta-row { padding: .4rem 0; }
.cps-total { border-bottom: 0 !important; color: var(--es-text); font-weight: 700; }
.cps-total strong { font-size: 1.2rem; }
@media (max-width: 767.98px) {
    .card-pay-grid { grid-template-columns: 1fr; gap: 1rem; }
    .card-pay-summary { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: .85rem; align-items: start; }
    .card-pay-summary > .cps-label, .card-pay-summary > .cps-list, .card-pay-summary > .cps-rows { grid-column: 1 / -1; }
    .cps-cover { grid-row: span 2; }
    .cps-name { margin-top: 0; font-size: .92rem; }
    .cps-list { max-height: 180px; }
}

/* ================= Website Builder (storefront pages) ================= */
.lock-pill-sm { display: inline-flex; align-items: center; gap: 3px; font-size: .66rem; font-weight: 800; padding: .12rem .45rem; border-radius: 999px; background: #fff4cc; color: #8a6400; vertical-align: 2px; margin-left: .2rem; }
[data-bs-theme="dark"] .lock-pill-sm { background: rgba(251, 191, 36, .16); color: #fbbf24; }

/* My websites */
.wbp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.wbp-card { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.wbp-card:hover { box-shadow: 0 18px 40px -26px rgba(15, 18, 34, .45); transform: translateY(-2px); }
.wbp-thumb { position: relative; display: block; aspect-ratio: 16 / 11; background: #f2f3f8; overflow: hidden; border-bottom: 1px solid var(--es-border); }
.wbp-browser { position: absolute; top: 0; left: 0; right: 0; height: 18px; background: #e6e8f0; display: flex; align-items: center; gap: 4px; padding: 0 8px; z-index: 2; }
.wbp-browser i { width: 6px; height: 6px; border-radius: 50%; background: #c3c6d5; }
.wbp-frame { position: absolute; top: 18px; left: 0; width: 1280px; height: 880px; border: 0; transform: scale(.205); transform-origin: 0 0; pointer-events: none; background: #fff; }
.wbp-open { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .4rem; background: rgba(15, 18, 34, .55); color: #fff; font-weight: 700; opacity: 0; transition: opacity .18s ease; }
.wbp-thumb:hover .wbp-open { opacity: 1; }
.wbp-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.wbp-name { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; color: var(--es-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbp-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .3rem; font-size: .78rem; color: var(--es-muted); }
.wbp-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.wbp-meta i { font-size: .95rem; }
.wbp-body > .btn { margin-top: auto !important; }
.wbp-body { gap: 1.1rem; }
.wbp-new { border: 2px dashed var(--es-border-strong); border-radius: 16px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 260px; color: var(--es-muted); transition: border-color .15s, color .15s, background .15s; }
.wbp-new i { font-size: 2rem; color: var(--es-primary); }
.wbp-new strong { color: var(--es-text); }
.wbp-new span { font-size: .82rem; }
.wbp-new:hover { border-color: var(--es-primary); background: var(--es-primary-soft); }
.wbp-plan-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--es-surface-2); color: var(--es-muted); }
.wbp-plan.is-premium .wbp-plan-ico { background: var(--es-grad); color: #fff; }
.wbp-plan .bxs-crown { color: inherit; }
.wbp-usage { margin-bottom: .85rem; }
.wbp-bar { height: 7px; border-radius: 999px; background: var(--es-surface-2); overflow: hidden; margin-top: .35rem; }
.wbp-bar span { display: block; height: 100%; border-radius: inherit; background: var(--es-grad); }
.wbp-checks { list-style: none; padding: 0; margin: .25rem 0 1rem; display: grid; gap: .4rem; }
.wbp-checks li { display: flex; gap: .45rem; align-items: flex-start; }
.wbp-checks li i { font-size: 1.05rem; line-height: 1.2; }
.wbp-checks li.ok i { color: var(--es-success); }
.wbp-checks li.no { color: var(--es-muted); }
.wbp-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.wbp-starter { position: relative; border: 1.5px solid var(--es-border); border-radius: 14px; padding: 1rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; transition: border-color .15s, box-shadow .15s; }
.wbp-starter input { position: absolute; opacity: 0; pointer-events: none; }
.wbp-starter-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--es-primary-soft); color: var(--es-primary); font-size: 1.3rem; margin-bottom: .2rem; }
.wbp-starter strong { color: var(--es-text); font-size: .95rem; }
.wbp-starter small { color: var(--es-muted); line-height: 1.4; }
.wbp-starter:has(input:checked) { border-color: var(--es-primary); box-shadow: 0 0 0 3px var(--es-primary-soft); }
.wbp-starter.is-locked { opacity: .6; cursor: not-allowed; }
@media (max-width: 767.98px) { .wbp-starters { grid-template-columns: 1fr; } }

/* Landing */
.wbl-hero { position: relative; padding: 4rem 0 4.5rem; border-bottom: 1px solid var(--es-border); overflow: hidden; isolation: isolate; }
.wbl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--es-grad-soft); }
.wbl-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin: .3rem 0 1rem; }
.wbl-lead { font-size: 1.08rem; line-height: 1.7; color: var(--es-muted); margin: 0; }
/* Landing hero: a small editor that plays a drag-and-drop on a loop (9s) */
.wbl-mock { --wbl-t: 9s; --wbl-gx: 163px; --wbl-gy: 82px; position: relative; border-radius: 18px; background: #11121b; padding: 0 6px 6px; overflow: hidden; font-family: inherit; box-shadow: 0 50px 90px -40px rgba(31, 22, 92, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.wbl-mock-top { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #a9acc4; font-size: .74rem; }
.wbl-mock-top > span:not(.wbl-saved) { width: 10px; height: 10px; border-radius: 50%; background: #34374f; flex-shrink: 0; }
.wbl-mock-top em { font-style: normal; margin-left: 8px; color: #f1f2f8; font-weight: 600; white-space: nowrap; }
.wbl-mock-top em small { color: #7d8099; font-weight: 500; font-size: inherit; }
.wbl-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.wbl-tools i { width: 22px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: .85rem; color: #8b8ea8; }
.wbl-tools i.is-on { background: #fff; color: #11121b; }
.wbl-tools u { width: 1px; height: 12px; background: rgba(255, 255, 255, .12); margin: 0 3px; }
.wbl-saved { display: inline-flex; align-items: center; gap: 3px; font-size: .66rem; font-weight: 600; color: #34d399; margin-left: 6px; opacity: 0; animation: wbl-saved var(--wbl-t) ease infinite; }
.wbl-mock-top b { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; background: var(--es-grad); color: #fff; padding: 5px 11px; border-radius: 8px; font-size: .7rem; box-shadow: 0 6px 14px -6px rgba(109, 77, 255, .8); }
.wbl-mock-body { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr) 136px; height: 340px; border-radius: 12px; overflow: hidden; background: #fff; }
.wbl-mock-label { display: flex; align-items: center; height: 18px; font-size: .58rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #9a9db4; margin-bottom: 8px; position: relative; }
.wbl-mock-left { padding: 12px 10px; border-right: 1px solid #eef0f5; }
.wbl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wbl-tiles span { height: 50px; display: grid; place-items: center; align-content: center; gap: 3px; font-size: .58rem; font-weight: 600; color: #4a4e66; border: 1px solid #eceef4; border-radius: 10px; background: #fff; }
.wbl-tiles span i { color: #6d4dff; font-size: 1.05rem; }
.wbl-tiles span.is-src { animation: wbl-src var(--wbl-t) ease infinite; }
.wbl-mock-stage { padding: 14px; background-color: #f2f3f8; background-image: radial-gradient(#d9dbe6 1px, transparent 1px); background-size: 12px 12px; }
.wbl-mock-canvas { height: 100%; background: #fff; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 24px -16px rgba(15, 18, 34, .35), 0 0 0 1px rgba(15, 18, 34, .04); }
.wbl-mock-nav { display: flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: .7rem; color: #1f2333; }
.wbl-mock-nav b { margin-right: auto; }
.wbl-mock-nav i { width: 20px; height: 5px; border-radius: 3px; background: #dfe1ea; }
.wbl-mock-hero { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 14px 18px; margin: 0 8px; border-radius: 9px; color: #fff;
    background: radial-gradient(120% 90% at 85% 15%, rgba(255, 196, 120, .45), transparent 55%), linear-gradient(135deg, #3b2a20, #6b4429 60%, #a8683a); }
.wbl-mock-hero strong { font-size: 1.02rem; line-height: 1.2; max-width: 190px; letter-spacing: -.01em; }
.wbl-mock-hero em { font-style: normal; font-size: .66rem; opacity: .85; }
.wbl-mock-slot { position: relative; display: inline-flex; margin-top: 16px; }
.wbl-mock-drop { position: absolute; left: -4px; top: 50%; width: 120px; height: 3px; margin-top: -1.5px; border-radius: 3px; background: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .28), 0 0 14px rgba(56, 189, 248, .9); opacity: 0; transform-origin: left; animation: wbl-drop var(--wbl-t) ease infinite; }
.wbl-mock-btn { position: relative; display: inline-block; background: #6d4dff; padding: 6px 13px; border-radius: 7px; font-size: .66rem; font-weight: 700; color: #fff; white-space: nowrap; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.6); animation: wbl-btn var(--wbl-t) cubic-bezier(.3, 1.4, .5, 1) infinite, wbl-btn-color var(--wbl-t) ease infinite; }
.wbl-mock-btn::after { content: ""; position: absolute; inset: -4px; border: 2px solid #6d4dff; border-radius: 10px; opacity: 0; animation: wbl-sel var(--wbl-t) ease infinite; }
.wbl-mock-tag { position: absolute; left: -4px; bottom: calc(100% + 5px); background: #6d4dff; color: #fff; font-size: .52rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; opacity: 0; animation: wbl-sel var(--wbl-t) ease infinite; }
.wbl-mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px 8px 8px; }
.wbl-mock-cols i { height: 40px; border-radius: 7px; background: #f3f4f9; }
.wbl-mock-right { padding: 12px 10px; border-left: 1px solid #eef0f5; }
.wbl-mock-right .wbl-mock-label { letter-spacing: 0; text-transform: none; font-size: .72rem; color: #1f2333; }
.wbl-p-page, .wbl-p-btn { position: absolute; left: 0; display: inline-flex; align-items: center; gap: 4px; }
.wbl-p-page { color: #9a9db4; animation: wbl-out var(--wbl-t) ease infinite; }
.wbl-p-btn { opacity: 0; animation: wbl-in var(--wbl-t) ease infinite; }
.wbl-p-btn i { color: #6d4dff; }
.wbl-props { display: grid; gap: 9px; opacity: .35; animation: wbl-props var(--wbl-t) ease infinite; }
.wbl-props label { display: grid; gap: 4px; font-size: .58rem; font-weight: 600; color: #8a8da5; }
.wbl-input { display: flex; align-items: center; height: 24px; padding: 0 7px; border: 1px solid #e3e5ee; border-radius: 7px; font-size: .64rem; font-weight: 500; color: #1f2333; overflow: hidden; }
.wbl-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: wbl-type var(--wbl-t) steps(9, end) infinite; }
.wbl-caret { width: 1px; height: 12px; background: #6d4dff; margin-left: 1px; opacity: 0; animation: wbl-caret var(--wbl-t) linear infinite; }
.wbl-seg { display: flex; gap: 2px; padding: 2px; border-radius: 7px; background: #f2f3f8; }
.wbl-seg u { flex: 1; text-decoration: none; text-align: center; font-size: .56rem; line-height: 18px; border-radius: 5px; color: #8a8da5; }
.wbl-seg u.on { background: #fff; color: #1f2333; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.wbl-sw { display: flex; gap: 6px; }
.wbl-sw u { width: 20px; height: 20px; border-radius: 6px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.wbl-sw .c1 { background: #6d4dff; animation: wbl-ring-1 var(--wbl-t) ease infinite; }
.wbl-sw .c2 { background: #ec4899; animation: wbl-ring-2 var(--wbl-t) ease infinite; }
.wbl-sw .c3 { background: #0ea5e9; }
.wbl-sw .c4 { background: #1f2333; }
.wbl-range { position: relative; height: 4px; margin: 6px 0; border-radius: 4px; background: #e8e9f1; }
.wbl-range u { position: absolute; left: 0; top: 0; bottom: 0; width: 45%; border-radius: inherit; background: #6d4dff; }
.wbl-range u::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
/* moving parts: the dragged copy and two cursors (one for the drag, one for the style panel) */
.wbl-ghost { position: absolute; left: 10px; top: 94px; width: 45px; height: 50px; z-index: 5; display: grid; place-items: center; align-content: center; gap: 3px; font-size: .58rem; font-weight: 600; color: #4a4e66; background: #fff; border: 1.5px solid #6d4dff; border-radius: 10px; box-shadow: 0 18px 30px -12px rgba(49, 30, 160, .55); opacity: 0; pointer-events: none; animation: wbl-ghost var(--wbl-t) cubic-bezier(.55, .05, .3, 1) infinite; }
.wbl-ghost i { color: #6d4dff; font-size: 1.05rem; }
.wbl-cursor { position: absolute; width: 20px; height: 20px; z-index: 6; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.wbl-cursor-a { left: 34px; top: 120px; animation: wbl-cur-a var(--wbl-t) cubic-bezier(.55, .05, .3, 1) infinite; }
.wbl-cursor-b { left: calc(100% - 93px); top: 164px; opacity: 0; animation: wbl-cur-b var(--wbl-t) ease infinite; }

@keyframes wbl-src { 0%, 8% { background: #fff; } 10%, 46% { background: #f4f1ff; border-color: #d6ccff; border-style: dashed; } 52%, 100% { background: #fff; } }
@keyframes wbl-ghost {
    0%, 8% { opacity: 0; transform: none; }
    11% { opacity: 1; transform: translate(0, -3px) scale(1.06) rotate(-4deg); }
    42% { opacity: 1; transform: translate(var(--wbl-gx, 150px), var(--wbl-gy, 66px)) scale(1.06) rotate(-4deg); }
    47% { opacity: 0; transform: translate(var(--wbl-gx, 150px), var(--wbl-gy, 66px)) scale(.7) rotate(0); }
    100% { opacity: 0; transform: translate(var(--wbl-gx, 150px), var(--wbl-gy, 66px)) scale(.7); }
}
@keyframes wbl-cur-a {
    0% { opacity: 0; transform: translate(-20px, 30px); }
    5% { opacity: 1; transform: none; }
    9% { transform: scale(.82); }
    11% { transform: translate(0, -3px); }
    42% { opacity: 1; transform: translate(var(--wbl-gx, 150px), var(--wbl-gy, 66px)); }
    45% { transform: translate(var(--wbl-gx, 150px), var(--wbl-gy, 66px)) scale(.82); }
    48% { opacity: 1; transform: translate(var(--wbl-gx, 150px), var(--wbl-gy, 66px)); }
    54%, 100% { opacity: 0; transform: translate(calc(var(--wbl-gx, 150px) + 30px), calc(var(--wbl-gy, 66px) + 20px)); }
}
@keyframes wbl-drop { 0%, 26% { opacity: 0; transform: scaleX(.2); } 34% { opacity: 1; transform: none; } 40% { opacity: .55; } 44% { opacity: 1; } 47%, 100% { opacity: 0; transform: none; } }
@keyframes wbl-btn { 0%, 45% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes wbl-btn-color { 0%, 66% { background-color: #6d4dff; } 69%, 100% { background-color: #ec4899; } }
@keyframes wbl-sel { 0%, 47% { opacity: 0; } 50%, 86% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes wbl-out { 0%, 46% { opacity: 1; } 49%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes wbl-in { 0%, 46% { opacity: 0; } 49%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes wbl-props { 0%, 46% { opacity: .35; } 49%, 90% { opacity: 1; } 94%, 100% { opacity: .35; } }
@keyframes wbl-type { 0%, 50% { width: 0; } 60%, 92% { width: 9ch; } 96%, 100% { width: 0; } }
@keyframes wbl-caret { 0%, 49% { opacity: 0; } 50%, 61% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes wbl-cur-b {
    0%, 55% { opacity: 0; transform: translate(10px, 40px); }
    58% { opacity: 1; transform: translate(10px, 40px); }
    64% { opacity: 1; transform: none; }
    66% { transform: scale(.82); }
    68% { opacity: 1; transform: none; }
    76%, 100% { opacity: 0; transform: translate(14px, 22px); }
}
@keyframes wbl-ring-1 { 0%, 66% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6d4dff; } 68%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; } }
@keyframes wbl-ring-2 { 0%, 66% { box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; } 68%, 92% { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ec4899; } 96%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; } }
@keyframes wbl-saved { 0%, 72% { opacity: 0; transform: translateY(3px); } 75%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* Phones: hide the style panel and toolbar so the page stays readable */
@media (max-width: 575.98px) {
    .wbl-mock { --wbl-gx: 153px; --wbl-gy: 80px; }
    .wbl-mock-body { grid-template-columns: 116px minmax(0, 1fr); }
    .wbl-mock-right, .wbl-tools, .wbl-saved, .wbl-cursor-b { display: none; }
    .wbl-mock-stage { padding: 10px; }
    .wbl-mock-hero { margin: 0 6px; padding: 12px 14px; }
    .wbl-mock-hero strong { font-size: .9rem; max-width: 150px; }
}
/* No motion wanted: show the finished result instead */
@media (prefers-reduced-motion: reduce) {
    .wbl-mock *, .wbl-mock *::after { animation: none !important; }
    .wbl-ghost, .wbl-cursor, .wbl-mock-drop, .wbl-saved, .wbl-p-page { opacity: 0 !important; }
    .wbl-mock-btn, .wbl-mock-btn::after, .wbl-mock-tag, .wbl-p-btn, .wbl-props { opacity: 1 !important; transform: none !important; }
    .wbl-type { width: 9ch; }
    .wbl-sw .c1 { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #6d4dff; }
}
.wbl-step { position: relative; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 16px; padding: 1.4rem 1.3rem; }
.wbl-step-no { position: absolute; top: 1rem; right: 1.1rem; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--es-border-strong); }
.wbl-step > i { font-size: 1.6rem; color: var(--es-primary); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--es-primary-soft); margin-bottom: .9rem; }
.wbl-step h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .35rem; }
.wbl-step p { font-size: .9rem; color: var(--es-muted); margin: 0; line-height: 1.6; }
.wbl-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--es-border); border: 1px solid var(--es-border); border-radius: 16px; overflow: hidden; }
.wbl-feature { background: var(--es-surface); padding: 1.15rem 1.2rem; display: flex; gap: .85rem; align-items: flex-start; }
.wbl-feature > i { font-size: 1.35rem; color: var(--es-primary); flex-shrink: 0; margin-top: 2px; }
.wbl-feature strong { display: block; color: var(--es-text); font-size: .95rem; margin-bottom: .15rem; }
.wbl-feature span { font-size: .85rem; color: var(--es-muted); line-height: 1.5; }
@media (max-width: 991.98px) { .wbl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wbl-feature:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .wbl-features { grid-template-columns: 1fr; } }
.wbl-plan { position: relative; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 20px; padding: 1.8rem; display: flex; flex-direction: column; }
.wbl-plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; flex: 1; font-size: .92rem; }
.wbl-plan li { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.5; }
.wbl-plan li i { color: var(--es-success); font-size: 1.15rem; line-height: 1.3; }
.wbl-plan-name { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: .3rem; }
.wbl-plan-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0 .2rem; }
.wbl-plan-price small { font-size: .95rem; font-weight: 600; color: var(--es-muted); letter-spacing: 0; }
.wbl-plan.is-premium { background: var(--es-grad); color: #fff; border: 0; box-shadow: 0 30px 60px -34px rgba(79, 70, 229, .8); }
.wbl-plan.is-premium .wbl-plan-price small, .wbl-plan.is-premium .text-muted { color: rgba(255, 255, 255, .8) !important; }
.wbl-plan.is-premium li i { color: #fff; }
.wbl-plan-tag { position: absolute; top: 1.2rem; right: 1.2rem; background: rgba(255, 255, 255, .2); padding: .25rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.wbl-faq .accordion-item { border-color: var(--es-border); background: var(--es-surface); }
.wbl-faq .accordion-button { font-weight: 600; background: var(--es-surface); color: var(--es-text); }
.wbl-faq .accordion-button:not(.collapsed) { color: var(--es-primary); box-shadow: none; }
.wbl-faq .accordion-body { color: var(--es-muted); }

/* Upgrade */
.wbu-plan .wbu-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--es-text); margin: .1rem 0; }
.wbu-summary { display: flex; align-items: center; gap: .75rem; }
.wbu-summary-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--es-grad); color: #fff; font-size: 1.3rem; }
.wbp-plan .btn { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.wbl-plan.is-monthly { border: 2px solid color-mix(in srgb, var(--es-primary) 45%, transparent); }
.wbl-plan.is-monthly .wbl-plan-name i { color: var(--es-primary); }
.wbl-plan.is-monthly .wbl-plan-tag { background: var(--es-grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(109, 77, 255, .7); }
/* Website Builder Premium — plan picture in the card modal */
.wbu-card-plan { aspect-ratio: 16 / 10; border-radius: 10px; display: grid; place-items: center; background: var(--es-grad); color: #fff; font-size: 2.6rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.wbu-card-perks { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .35rem; font-size: .82rem; color: var(--es-muted); }
.wbu-card-perks li { display: flex; gap: .35rem; align-items: flex-start; line-height: 1.4; }
.wbu-card-perks i { color: var(--es-success); font-size: 1rem; line-height: 1.2; }
@media (max-width: 767.98px) {
    .card-pay-summary > .wbu-card-perks { grid-column: 1 / -1; }
    .wbu-card-plan { grid-row: span 2; font-size: 1.8rem; }
}
/* Window dots: red, yellow, green (like a Mac window) */
.wbl-mock-top > span:nth-of-type(1), .wbp-browser i:nth-child(1) { background: #ff5f57; }
.wbl-mock-top > span:nth-of-type(2), .wbp-browser i:nth-child(2) { background: #febc2e; }
.wbl-mock-top > span:nth-of-type(3), .wbp-browser i:nth-child(3) { background: #28c840; }

/* ================= Header search: button + search window ================= */
.nav-search-btn { display: flex; align-items: center; gap: .55rem; height: 40px; width: 190px; padding: 0 .55rem 0 .8rem; border-radius: 12px; border: 1px solid transparent; background: var(--es-surface-2); color: var(--es-subtle); font-size: .9rem; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.nav-search-btn > i { font-size: 1.1rem; }
.nav-search-btn > span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search-btn kbd { font: 600 .72rem/1 "JetBrains Mono", ui-monospace, monospace; color: var(--es-subtle); background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 6px; padding: .2rem .4rem; box-shadow: none; }
.nav-search-btn:hover { border-color: var(--es-border); color: var(--es-muted); }
.nav-search-btn:focus-visible { outline: none; border-color: var(--es-primary); box-shadow: 0 0 0 3px var(--es-primary-soft); }
@media (min-width: 992px) and (max-width: 1199.98px) { .nav-search-btn { width: 150px; } .nav-search-btn kbd { display: none; } }

.search-modal .modal-dialog { max-width: 640px; margin-top: 8vh; }
.search-modal .modal-content { border-radius: 20px; overflow: hidden; border: 1px solid var(--es-border); box-shadow: 0 40px 80px -30px rgba(15, 18, 34, .45); }
.sm-bar { position: relative; display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; border-bottom: 1px solid var(--es-border); }
.sm-bar-ico { font-size: 1.4rem; color: var(--es-primary); flex-shrink: 0; }
.sm-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--es-text); font-size: 1.08rem; padding: .35rem .25rem; }
.sm-input::placeholder { color: var(--es-subtle); }
.sm-input::-webkit-search-cancel-button { display: none; }
.sm-spin { color: var(--es-primary); flex-shrink: 0; }
.sm-clear { border: 0; background: var(--es-surface-2); color: var(--es-muted); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.sm-clear:hover { color: var(--es-text); }
.sm-esc { border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-muted); font: 600 .72rem/1 "JetBrains Mono", ui-monospace, monospace; padding: .38rem .5rem; border-radius: 7px; flex-shrink: 0; }
.sm-esc:hover { color: var(--es-text); border-color: var(--es-subtle); }
.sm-body { max-height: min(62vh, 520px); overflow: auto; padding: .5rem; }
.sm-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
.sm-cat { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 12px; color: var(--es-text); font-size: .9rem; }
.sm-cat:hover, .sm-cat.active { background: var(--es-surface-2); color: var(--es-text); }
.sm-cat-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--es-grad); color: #fff; font-size: 1.2rem; }
.sm-cat-ico.is-free { background: linear-gradient(135deg, #16a34a, #22c55e); }
.sm-tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: .2rem .6rem .6rem; }
.sm-tag { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-text); border-radius: 999px; padding: .35rem .75rem; font-size: .84rem; font-weight: 500; }
.sm-tag i { color: var(--es-primary); }
.sm-tag:hover { border-color: var(--es-primary); color: var(--es-primary); }
.sm-empty { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: 2rem 1rem; color: var(--es-muted); font-size: .9rem; }
.sm-empty i { font-size: 2rem; color: var(--es-subtle); }
.sm-empty strong { color: var(--es-text); }
.search-modal .search-item { padding: .6rem; }
.sm-foot { gap: 1.1rem; padding: .6rem 1rem; border-top: 1px solid var(--es-border); background: var(--es-surface-2); font-size: .76rem; color: var(--es-muted); }
.sm-foot kbd { font: 600 .7rem/1 "JetBrains Mono", ui-monospace, monospace; color: var(--es-muted); background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 5px; padding: .15rem .35rem; margin-right: .2rem; box-shadow: none; }
@media (max-width: 575.98px) {
    .search-modal .modal-dialog { margin: .5rem; margin-top: .75rem; }
    .sm-cats { grid-template-columns: 1fr; }
    .sm-body { max-height: calc(100dvh - 120px); }
}

/* ================= Website Builder: template gallery (New website window) ================= */
.wbt-filter { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--es-surface-2); flex-wrap: wrap; }
.wbt-filter button { border: 0; background: transparent; color: var(--es-muted); font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 9px; display: inline-flex; align-items: center; gap: .3rem; }
.wbt-filter button i { color: #f59e0b; }
.wbt-filter button:hover { color: var(--es-text); }
.wbt-filter button.is-on { background: var(--es-surface); color: var(--es-text); box-shadow: 0 1px 3px rgba(15, 18, 34, .12); }
.wbt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wbt-card { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--es-border); border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--es-surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.wbt-card[hidden] { display: none; }
.wbt-card input { position: absolute; opacity: 0; pointer-events: none; }
.wbt-card:hover { border-color: var(--es-border-strong); transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(15, 18, 34, .35); }
.wbt-card:has(input:checked) { border-color: var(--es-primary); box-shadow: 0 0 0 3px var(--es-primary-soft); }
.wbt-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--es-surface-2); border-bottom: 1px solid var(--es-border); }
.wbt-frame { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.wbt-blank { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .4rem; color: var(--es-muted); font-size: .82rem; background-image: radial-gradient(var(--es-border) 1px, transparent 1px); background-size: 14px 14px; }
.wbt-blank i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 2px dashed var(--es-border-strong); font-size: 1.4rem; color: var(--es-primary); background: var(--es-surface); }
.wbt-check { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--es-grad); color: #fff; font-size: 1.1rem; box-shadow: 0 4px 10px -3px rgba(109, 77, 255, .7); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.wbt-card:has(input:checked) .wbt-check { opacity: 1; transform: none; }
.wbt-lock { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .25rem; background: rgba(15, 18, 34, .45); color: #fff; font-size: .78rem; font-weight: 700; opacity: 0; transition: opacity .15s; backdrop-filter: blur(1px); }
.wbt-lock i { font-size: 1.4rem; }
.wbt-card.is-locked { cursor: pointer; }
.wbt-card.is-locked:hover .wbt-lock { opacity: 1; }
.wbt-info { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .9rem .9rem; flex: 1; }
.wbt-name { display: flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--es-text); font-size: .95rem; }
.wbt-name i { color: var(--es-primary); font-size: 1.1rem; }
.wbt-desc { font-size: .8rem; color: var(--es-muted); line-height: 1.45; }
.wbt-tags { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .35rem; flex-wrap: wrap; }
.wbt-free { font-size: .68rem; font-weight: 700; color: var(--es-success); background: rgba(22, 163, 74, .1); padding: .15rem .5rem; border-radius: 999px; }
.wbt-pages { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; color: var(--es-muted); }
.wbt-upsell { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding: .75rem 1rem; border-radius: 14px; background: var(--es-primary-soft); color: var(--es-text); font-size: .85rem; }
.wbt-upsell i { color: #f59e0b; margin-right: .3rem; }
.wbt-upsell.is-pulse { animation: wbt-pulse .9s ease; }
@keyframes wbt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(109, 77, 255, 0); } 40% { box-shadow: 0 0 0 5px rgba(109, 77, 255, .35); } }
@media (max-width: 991.98px) { .wbt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .wbt-grid { grid-template-columns: 1fr; } .wbt-upsell { flex-direction: column; align-items: stretch; text-align: center; } }
/* Soft buttons that turn white in dark mode ("See plans", About "Contact us") */
[data-bs-theme="dark"] .wbl-see-plans, [data-bs-theme="dark"] .btn-white-dark { --bs-btn-bg: #fff; --bs-btn-color: #0f1222; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #e9eaf2; --bs-btn-hover-color: #0f1222; --bs-btn-hover-border-color: #e9eaf2; --bs-btn-active-bg: #dcdee9; --bs-btn-active-color: #0f1222; background: #fff; color: #0f1222; border-color: #fff; }
[data-bs-theme="dark"] .wbl-see-plans:hover, [data-bs-theme="dark"] .btn-white-dark:hover { background: #e9eaf2; color: #0f1222; border-color: #e9eaf2; }
/* Home: category cards sit inside the hero, 5rem under the "Most downloaded" window (same as the space below them) */
.home-cats { margin-top: 3rem; }
.mock + .home-cats, .hero-sale + .home-cats { margin-top: 5rem; }
@media (max-width: 991.98px) { .mock + .home-cats, .hero-sale + .home-cats { margin-top: 3rem; } }

/* ================= Admin: Payment Verification Agent ================= */
.pv-card .card-head h2 { font-size: 1rem; }
.pv-bot { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--es-grad); color: #fff; font-size: 1.05rem; box-shadow: 0 4px 10px -4px rgba(109, 77, 255, .7); }
.pv-mode { font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 999px; background: var(--es-primary-soft); color: var(--es-primary); }
.pv-verdict { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; border: 1px solid transparent; }
.pv-verdict > i { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.pv-verdict > .spinner-border { margin-top: .2rem; flex-shrink: 0; }
.pv-verdict strong { display: block; font-size: 1rem; }
.pv-verdict span { display: block; font-size: .84rem; line-height: 1.45; }
.pv-verdict.tone-success { background: rgba(22, 163, 74, .09); border-color: rgba(22, 163, 74, .25); color: #15803d; }
.pv-verdict.tone-warning { background: rgba(217, 119, 6, .09); border-color: rgba(217, 119, 6, .28); color: #b45309; }
.pv-verdict.tone-danger { background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .28); color: #b91c1c; }
.pv-verdict.tone-neutral { background: var(--es-surface-2); border-color: var(--es-border); color: var(--es-text); }
.pv-verdict.tone-neutral > i { color: var(--es-primary); }
.pv-verdict span { color: var(--es-muted); }
[data-bs-theme="dark"] .pv-verdict.tone-success { color: #4ade80; }
[data-bs-theme="dark"] .pv-verdict.tone-warning { color: #fbbf24; }
[data-bs-theme="dark"] .pv-verdict.tone-danger { color: #f87171; }
.pv-read { margin-top: .9rem; border: 1px solid var(--es-border); border-radius: 14px; padding: .75rem .9rem; }
.pv-read-title { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--es-subtle); margin-bottom: .55rem; }
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; }
.pv-grid > div { min-width: 0; }
.pv-grid span { display: block; font-size: .72rem; color: var(--es-muted); }
.pv-grid strong { display: block; font-size: .88rem; color: var(--es-text); overflow-wrap: anywhere; }
.pv-grid small { display: block; font-size: .72rem; color: var(--es-subtle); overflow-wrap: anywhere; }
.pv-findings { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; }
.pv-findings li { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; line-height: 1.45; color: var(--es-text); }
.pv-findings li i { font-size: 1.1rem; line-height: 1.3; flex-shrink: 0; }
.pv-findings .lv-bad i { color: var(--es-danger, #dc2626); }
.pv-findings .lv-warn i { color: #d97706; }
.pv-findings .lv-info i { color: var(--es-subtle); }
.pv-findings .lv-ok i { color: var(--es-success, #16a34a); }
.pv-findings .lv-info, .pv-findings .lv-ok { color: var(--es-muted); }
.pv-note { display: flex; gap: .35rem; align-items: flex-start; margin: .9rem 0 0; padding-top: .75rem; border-top: 1px dashed var(--es-border); font-size: .75rem; color: var(--es-subtle); }
.pv-badge { display: inline-flex; align-items: center; gap: .25rem; margin-top: .3rem; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }
.pv-badge.tone-success { background: rgba(22, 163, 74, .12); color: #15803d; }
.pv-badge.tone-warning { background: rgba(217, 119, 6, .14); color: #b45309; }
.pv-badge.tone-danger { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.pv-badge.tone-neutral { background: var(--es-surface-2); color: var(--es-muted); }
[data-bs-theme="dark"] .pv-badge.tone-success { color: #4ade80; }
[data-bs-theme="dark"] .pv-badge.tone-warning { color: #fbbf24; }
[data-bs-theme="dark"] .pv-badge.tone-danger { color: #f87171; }
td .status + .pv-badge { display: flex; width: max-content; }
.pv-badge.tone-brand { background: var(--es-primary-soft); color: var(--es-primary); }
.d-flex > .pv-badge { margin-top: 0; }
/* contact message: reply drafted by the AI Office */
.ai-draft { display: flex; align-items: center; gap: .8rem; }
.ai-draft-form { border-top: 3px solid var(--c, var(--es-primary)); }
.ai-draft-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.ai-draft-head .pv-badge { margin-top: 0; }
.ai-draft-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; padding: .6rem .75rem; margin-bottom: .7rem; border-radius: 10px; background: var(--es-surface-2); border: 1px solid var(--es-border); }
.ai-draft-note i { font-size: 1.05rem; color: var(--c, var(--es-primary)); margin-top: .05rem; }
/* Admin → AI Agents → Team */
.team-table td { vertical-align: middle; }
.team-duties { max-width: 320px; }
.team-more { display: inline-block; margin-left: .3rem; font-size: .72rem; font-weight: 700; color: var(--es-primary); }
.team-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: .35rem; }
.team-icon { position: relative; display: grid; place-items: center; height: 38px; border: 1px solid var(--es-border); border-radius: 10px; font-size: 1.15rem; color: var(--es-muted); cursor: pointer; transition: .15s; }
.team-icon input { position: absolute; opacity: 0; pointer-events: none; }
.team-icon:hover { color: var(--es-text); border-color: var(--es-border-strong); }
.team-icon:has(input:checked) { color: #fff; background: var(--es-grad); border-color: transparent; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.dept-card { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--es-border); border-left: 3px solid var(--c); border-radius: 12px; background: var(--es-surface); }
.dept-card .pv-badge { margin-top: 0; }
@media (max-width: 575.98px) { .pv-grid { grid-template-columns: 1fr; } }
.pv-card .card-head { gap: .5rem; }
.pv-card .card-head h2 { line-height: 1.25; }

/* ================= Admin: AI Office HQ ================= */
.ofc-avatar { --c: var(--es-primary); width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); box-shadow: 0 6px 14px -8px var(--c); }
.ofc-avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 1rem; }
.ofc-avatar.xs { width: 26px; height: 26px; border-radius: 8px; font-size: .9rem; }
.ofc-avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; }
.ofc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; margin-right: .3rem; vertical-align: middle; }
.ofc-dot.is-online { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.ofc-dot.is-basic { background: #f59e0b; }
.ofc-dot.is-off { background: #9ca3af; }

/* hero + order box */
.ofc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem; align-items: center; padding: 1.5rem; border-radius: var(--es-radius); border: 1px solid var(--es-border); background: radial-gradient(120% 140% at 0% 0%, var(--es-primary-soft), transparent 60%), var(--es-surface); }
.ofc-eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--es-primary); }
.ofc-hero h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin: .3rem 0 .4rem; }
.ofc-hero p { margin: 0; color: var(--es-muted); font-size: .92rem; }
.ofc-basic-note { display: block; margin-top: .5rem; font-size: .8rem; }
.ofc-order-label { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.ofc-order-box { display: flex; gap: .5rem; align-items: stretch; padding: .4rem; border-radius: 14px; border: 1.5px solid var(--es-border); background: var(--es-surface); transition: border-color .15s, box-shadow .15s; }
.ofc-order-box:focus-within { border-color: var(--es-primary); box-shadow: 0 0 0 3px var(--es-primary-soft); }
.ofc-order-box textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--es-text); font-size: .92rem; padding: .35rem .5rem; }
.ofc-order-box .btn { align-self: flex-end; white-space: nowrap; }
.ofc-order-ideas { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.ofc-order-ideas button { border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-muted); border-radius: 999px; font-size: .74rem; padding: .25rem .65rem; }
.ofc-order-ideas button:hover { color: var(--es-primary); border-color: var(--es-primary); }
.ofc-reply { display: flex; gap: .85rem; padding: 1rem 1.15rem; border-radius: var(--es-radius); border: 1px solid color-mix(in srgb, #3b82f6 35%, transparent); background: color-mix(in srgb, #3b82f6 8%, var(--es-surface)); }
.ofc-reply-who { font-weight: 800; font-size: .88rem; }
.ofc-reply-who span { font-weight: 500; color: var(--es-subtle); font-size: .78rem; margin-left: .3rem; }
.ofc-reply p { font-size: .92rem; }
.ofc-reply-task { --c: var(--es-primary); display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 10px; background: var(--es-surface); border: 1px solid var(--es-border); color: var(--es-text); font-size: .82rem; max-width: 100%; }
.ofc-reply-task i { color: var(--c); }
.ofc-reply-task span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofc-reply-task small { color: var(--es-subtle); white-space: nowrap; }
.ofc-reply-task:hover { border-color: var(--c); color: var(--es-text); }

/* org chart */
.ofc-org-wrap { padding: 1.75rem 1.25rem; }
.ofc-org { display: flex; flex-direction: column; align-items: center; }
.ofc-node { display: grid; justify-items: center; text-align: center; gap: .15rem; padding: 1rem 1.5rem; min-width: 210px; border-radius: 14px; color: #fff; box-shadow: 0 14px 28px -18px rgba(15, 23, 42, .7); transition: transform .15s; }
a.ofc-node:hover { transform: translateY(-2px); color: #fff; }
.ofc-node-ico { font-size: 1.6rem; margin-bottom: .2rem; }
.ofc-node strong { font-size: 1.02rem; letter-spacing: .01em; }
.ofc-node span { font-size: .82rem; opacity: .9; }
.ofc-node-stat { margin-top: .35rem; font-size: .72rem; opacity: .8; }
.ofc-boss { background: linear-gradient(160deg, #283a66, #1f2d52); }
.ofc-ceo { background: linear-gradient(160deg, #2c63ad, #23589e); max-width: 260px; }
.ofc-tag { display: inline-block; margin-top: .3rem; font-style: normal; font-size: .74rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; color: #22c55e; background: rgba(34, 197, 94, .14); }
.ofc-arrow { color: var(--es-subtle); font-size: 1.15rem; line-height: 1; margin: .35rem 0; }
.ofc-heads-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--es-muted); margin-bottom: .75rem; }
.ofc-depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; } /* Product | Customer Service, Marketing | Sales & Finance */
.ofc-dept { --c: var(--es-primary); border: 1px solid var(--es-border); border-radius: 14px; overflow: hidden; background: var(--es-surface); display: flex; flex-direction: column; }
.ofc-dept-head { position: relative; display: grid; justify-items: center; gap: .2rem; text-align: center; padding: 1rem; }
.ofc-dept-head > i { color: var(--c); font-size: 1.3rem; }
.ofc-dept-head strong { font-size: 1.05rem; }
.ofc-dept-head .ofc-tag { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.ofc-member { position: relative; display: grid; justify-items: center; text-align: center; gap: .15rem; padding: .9rem 1rem; color: var(--es-text); }
/* glass divider: a frosted, department-tinted line with a soft glow (under the head and between members) */
.ofc-dept-head::after, .ofc-member + .ofc-member::before { content: ""; position: absolute; left: 10%; right: 10%; height: 2px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 55%, rgba(255, 255, 255, .7)) 50%, transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--c) 45%, transparent), 0 1px 0 rgba(255, 255, 255, .35); opacity: .75; backdrop-filter: blur(4px); }
.ofc-dept-head::after { bottom: 0; }
.ofc-member + .ofc-member::before { top: 0; }
[data-bs-theme="dark"] .ofc-dept-head::after, [data-bs-theme="dark"] .ofc-member + .ofc-member::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 60%, rgba(255, 255, 255, .35)) 50%, transparent); opacity: .9; }
.ofc-member strong { font-size: .92rem; }
.ofc-member span { font-size: .8rem; color: var(--es-muted); }
a.ofc-member:hover { background: var(--es-surface-2); color: var(--es-text); }
.ofc-member-stat { font-size: .72rem; color: var(--es-subtle); margin-top: .15rem; }
.ofc-member.is-planned { opacity: .7; }
.ofc-soon { display: inline-flex; align-items: center; gap: .25rem; margin-top: .2rem; font-size: .7rem; font-weight: 600; color: var(--es-subtle); border: 1px dashed var(--es-border-strong); border-radius: 999px; padding: .1rem .55rem; }
.ofc-dept.is-small .ofc-dept-head strong { font-size: .98rem; }

/* briefing */
.ofc-brief-loading { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border-radius: 12px; background: var(--es-surface-2); }
.ofc-brief-loading strong { display: block; }
.ofc-brief-loading span:not(.spinner-border) { display: block; font-size: .84rem; color: var(--es-muted); }
.ofc-brief-summary { font-size: 1rem; line-height: 1.6; margin-bottom: 1.1rem; }
.ofc-brief-title { display: flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--es-subtle); margin-bottom: .45rem; }
.ofc-brief-list { border-radius: 12px; padding: .85rem 1rem; height: 100%; }
.ofc-brief-list.good { background: rgba(34, 197, 94, .08); }
.ofc-brief-list.good .ofc-brief-title { color: #16a34a; }
.ofc-brief-list.risk { background: rgba(245, 158, 11, .1); }
.ofc-brief-list.risk .ofc-brief-title { color: #d97706; }
.ofc-brief-list ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .88rem; }
.ofc-suggest { display: grid; gap: .5rem; }
.ofc-suggest-item { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--es-border); border-radius: 12px; }
.ofc-suggest-item strong { display: block; font-size: .9rem; }
.ofc-suggest-item span { display: block; font-size: .8rem; color: var(--es-muted); line-height: 1.4; }
.ofc-suggest-item small { font-size: .72rem; color: var(--es-subtle); }
.ofc-suggest-item .ofc-avatar { display: inline-grid; color: #fff; font-size: 1.05rem; line-height: 1; } /* keep the icon white (the line above greys every span) */
.ofc-brief-foot { margin-top: 1rem; font-size: .74rem; color: var(--es-subtle); }

/* KPIs */
.ofc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ofc-kpis > * { display: block; padding: .8rem .9rem; border-radius: 12px; background: var(--es-surface-2); color: var(--es-text); }
.ofc-kpis span { display: block; font-size: .74rem; color: var(--es-muted); }
.ofc-kpis strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.ofc-kpis small { display: block; font-size: .7rem; color: var(--es-subtle); }
.ofc-kpis a:hover { color: var(--es-text); box-shadow: inset 0 0 0 1px var(--es-border-strong); }
.ofc-kpis .is-warn strong { color: #d97706; }
.ofc-kpis .is-bad strong { color: #dc2626; }

/* tasks */
.ofc-section-label { display: flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--es-subtle); margin-bottom: .5rem; }
.ofc-task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.ofc-task { display: flex; flex-direction: column; gap: .4rem; padding: .75rem .85rem; border-radius: 12px; background: var(--es-surface); border: 1px solid var(--es-border); border-left: 3px solid var(--pc, var(--es-border-strong)); color: var(--es-text); box-shadow: var(--es-shadow-sm); transition: transform .12s, box-shadow .12s; }
.ofc-task:hover { color: var(--es-text); transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(15, 18, 34, .4); }
.ofc-task.prio-urgent { --pc: #dc2626; }
.ofc-task.prio-high { --pc: #f59e0b; }
.ofc-task.prio-normal { --pc: #3b82f6; }
.ofc-task.prio-low { --pc: #9ca3af; }
.ofc-task.is-dragging { opacity: .45; }
.ofc-task[draggable] { cursor: grab; }
.ofc-task-top { display: flex; align-items: center; gap: .35rem; }
.ofc-prio { font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--pc); }
.ofc-src { margin-left: auto; color: var(--es-subtle); font-size: .9rem; }
.ofc-src + .ofc-src { margin-left: 0; }
.ofc-task-title { font-weight: 600; font-size: .88rem; line-height: 1.35; }
.ofc-task-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .74rem; color: var(--es-muted); }
.ofc-who { --c: var(--es-primary); display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; }
.ofc-who i { color: var(--c); font-size: .95rem; }
.ofc-due { display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; }
.ofc-task.is-overdue .ofc-due { color: #dc2626; font-weight: 700; }
.ofc-empty { display: grid; justify-items: center; gap: .35rem; padding: 1.5rem 1rem; text-align: center; color: var(--es-muted); font-size: .88rem; }
.ofc-empty > i { font-size: 1.6rem; color: var(--es-subtle); }
.ofc-feed { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; font-size: .84rem; line-height: 1.45; }
.ofc-feed + .ofc-feed { border-top: 1px dashed var(--es-border); }
.ofc-feed small { color: var(--es-subtle); font-size: .74rem; }
.ofc-line { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; color: var(--es-text); }
.ofc-line small { color: var(--es-subtle); font-size: .74rem; }
a.ofc-line:hover { background: var(--es-surface-2); color: var(--es-text); }

/* board */
.ofc-filter { display: flex; flex-wrap: wrap; gap: .3rem; }
.ofc-filter a { --c: var(--es-primary); display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--es-border); color: var(--es-muted); font-size: .8rem; font-weight: 600; background: var(--es-surface); }
.ofc-filter a i { color: var(--c); }
.ofc-filter a.is-on { border-color: var(--es-primary); color: var(--es-primary); background: var(--es-primary-soft); }
.ofc-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.ofc-col { border-radius: 14px; background: var(--es-surface-2); border: 1.5px dashed transparent; padding: .6rem; min-height: 320px; transition: border-color .15s, background .15s; }
.ofc-col.is-over { border-color: var(--es-primary); background: var(--es-primary-soft); }
.ofc-col header { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .86rem; padding: .3rem .35rem .65rem; }
.ofc-col header span { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: var(--es-surface); color: var(--es-muted); }
.ofc-col.st-review header { color: #7c3aed; }
.ofc-col.st-done header { color: #16a34a; }
.ofc-col.st-doing header { color: #2563eb; }
.ofc-col-list { display: grid; gap: .55rem; }
.ofc-col-empty { font-size: .8rem; color: var(--es-subtle); text-align: center; padding: 1.5rem .5rem; }

/* task page */
.ofc-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--es-surface-2); color: var(--es-muted); }
.ofc-chip.prio-urgent, .ofc-chip.is-bad { background: rgba(220, 38, 38, .12); color: #dc2626; }
.ofc-chip.prio-high { background: rgba(245, 158, 11, .14); color: #d97706; }
.ofc-chip.st-review { background: rgba(124, 58, 237, .12); color: #7c3aed; }
.ofc-chip.st-done { background: rgba(22, 163, 74, .12); color: #16a34a; }
.ofc-chip.st-doing { background: rgba(37, 99, 235, .12); color: #2563eb; }
.ofc-desc { color: var(--es-muted); font-size: .92rem; line-height: 1.6; }
.ofc-md { font-size: .93rem; line-height: 1.65; overflow-wrap: anywhere; }
.ofc-md h1, .ofc-md h2, .ofc-md h3 { font-size: 1.05rem; font-weight: 800; margin: 1.1rem 0 .5rem; }
.ofc-md > :first-child { margin-top: 0; }
.ofc-md table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .85rem; display: block; overflow-x: auto; }
.ofc-md th, .ofc-md td { border: 1px solid var(--es-border); padding: .4rem .6rem; text-align: left; }
.ofc-md th { background: var(--es-surface-2); }
.ofc-md ul, .ofc-md ol { padding-left: 1.2rem; }
.ofc-md em { color: var(--es-muted); }

/* new task window */
.ofc-assign { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.ofc-assign-opt { --c: var(--es-primary); position: relative; display: flex; align-items: center; gap: .5rem; padding: .6rem; border: 1.5px solid var(--es-border); border-radius: 12px; cursor: pointer; }
.ofc-assign-opt input { position: absolute; opacity: 0; }
.ofc-assign-opt strong { display: block; font-size: .84rem; }
.ofc-assign-opt small { display: block; font-size: .7rem; color: var(--es-subtle); }
.ofc-assign-opt:has(input:checked) { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }

/* staff profile */
.ofc-profile { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; border-top: 4px solid var(--c); }
.ofc-duties { background: var(--es-surface-2); border: 1px solid var(--es-border); border-radius: 12px; padding: .7rem .9rem; }
.ofc-duties ul { padding-left: 1.1rem; columns: 2 18rem; column-gap: 1.6rem; }
.ofc-duties li { break-inside: avoid; margin-bottom: .15rem; }
.ofc-status { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--es-surface-2); color: var(--es-muted); }
.ofc-status.is-online { color: #16a34a; background: rgba(34, 197, 94, .12); }
.ofc-status.is-basic { color: #d97706; background: rgba(245, 158, 11, .12); }

@media (max-width: 1199.98px) { .ofc-hero { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) { .ofc-depts { grid-template-columns: 1fr 1fr; } .ofc-assign { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) {
    .ofc-depts { grid-template-columns: 1fr; }
    .ofc-kpis { grid-template-columns: 1fr 1fr; }
    .ofc-order-box { flex-direction: column; }
    .ofc-order-box .btn { align-self: stretch; }
    .ofc-board { grid-template-columns: repeat(4, 82vw); }
    .ofc-profile { flex-direction: column; }
    .ofc-node { min-width: 0; width: 100%; max-width: 320px; }
}

/* ================= AI Office: 3D virtual office ================= */
.o3d-wrap { overflow: hidden; }
.o3d-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--es-surface-2); }
.o3d-tabs button { border: 0; background: transparent; color: var(--es-muted); font-size: .8rem; font-weight: 600; padding: .35rem .75rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .3rem; }
.o3d-tabs button.is-on { background: var(--es-surface); color: var(--es-text); box-shadow: 0 1px 3px rgba(15, 18, 34, .15); }
.o3d { position: relative; height: clamp(420px, 62vh, 640px); background: radial-gradient(120% 90% at 50% 100%, #3a3b44 0%, #1b1c22 55%, #121318 100%); overflow: hidden; }
.o3d-canvas, .o3d-canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.o3d-canvas canvas { cursor: grab; touch-action: pan-y; }
.o3d-canvas canvas:active { cursor: grabbing; }
.o3d-overlay { position: absolute; inset: 0; pointer-events: none; }
.o3d-bubble { --c: #6d4dff; position: absolute; left: 0; top: 0; max-width: 220px; padding: .4rem .65rem; border-radius: 12px; background: rgba(255, 255, 255, .96); color: #111827; font-size: .74rem; font-weight: 600; line-height: 1.3; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); border-bottom: 3px solid var(--c); opacity: 0; transition: opacity .25s; white-space: normal; }
.o3d-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--c); }
.o3d-bubble.is-on { opacity: 1; }
.o3d-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem; color: #cbd5e1; font-size: .9rem; }
.o3d.is-ready .o3d-loading { display: none; }
.o3d-hint { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; color: #cbd5e1; background: rgba(15, 17, 26, .6); padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.o3d-zoom { position: absolute; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.o3d-zoom button { width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(15, 17, 26, .65); color: #e5e7eb; display: grid; place-items: center; font-size: 1.05rem; backdrop-filter: blur(4px); }
.o3d-zoom button:hover { background: rgba(15, 17, 26, .85); }
.o3d-legend { position: absolute; left: 14px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 300px); }
.o3d-legend button { --c: #6d4dff; display: inline-flex; align-items: center; gap: .2rem; border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid var(--c); background: rgba(15, 17, 26, .6); color: #e5e7eb; font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 8px; backdrop-filter: blur(4px); }
.o3d-legend button:hover { background: rgba(15, 17, 26, .85); }
.o3d-card { position: absolute; right: 14px; top: 12px; width: 260px; padding: 1rem; border-radius: 14px; background: var(--es-surface); color: var(--es-text); border: 1px solid var(--es-border); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.o3d-card .btn-close { position: absolute; top: 10px; right: 10px; font-size: .7rem; }
.o3d-card .ofc-dot { margin-right: .25rem; }
.o3d-wrap .ofc-org-wrap { border-top: 1px solid var(--es-border); }
@media (max-width: 767.98px) {
    .o3d { height: 460px; }
    .o3d-legend { max-width: calc(100% - 28px); }
    .o3d-card { left: 14px; right: 14px; top: auto; bottom: 56px; width: auto; }
    .o3d-hint { display: none; }
    .o3d-bubble { max-width: 140px; font-size: .62rem; padding: .25rem .45rem; border-radius: 9px; }
    .o3d-legend button { font-size: .66rem; padding: .18rem .45rem; }
}
/* 3D office: taller, and full screen */
.o3d { height: clamp(560px, 88vh, 1000px); }
.o3d:fullscreen, .o3d.is-full { height: 100vh !important; width: 100vw; border-radius: 0; }
.o3d.is-full { position: fixed; inset: 0; z-index: 2000; }
body.o3d-lock { overflow: hidden; }
.o3d:fullscreen .o3d-card, .o3d.is-full .o3d-card { top: 16px; right: 16px; }
@media (max-width: 767.98px) { .o3d { height: 600px; } }

/* ---------- Development Agent: package quality check ---------- */
.qc-bot { background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%); box-shadow: 0 4px 10px -4px rgba(79, 70, 229, .7); }
.qc-top { display: flex; gap: .75rem; align-items: stretch; }
.qc-score { --p: 0; --tone: var(--es-primary); position: relative; flex-shrink: 0; width: 84px; border-radius: 14px; display: grid; place-content: center; text-align: center; border: 1px solid var(--es-border); background: var(--es-surface); }
.qc-score::before { content: ""; position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; transform: translate(-50%, -50%); border-radius: 50%;
    background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--es-border) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.qc-score > * { position: relative; }
.qc-score strong { font-size: 1.35rem; line-height: 1; font-weight: 800; color: var(--es-text); }
.qc-score span { font-size: .62rem; color: var(--es-subtle); }
.qc-score.tone-success { --tone: #16a34a; } .qc-score.tone-warning { --tone: #d97706; } .qc-score.tone-danger { --tone: #dc2626; }
.qc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; }
.qc-stats > div { border: 1px solid var(--es-border); border-radius: 12px; padding: .5rem .7rem; }
.qc-stats span { display: block; font-size: .68rem; color: var(--es-muted); }
.qc-stats strong { font-size: .88rem; }
.qc-findings li > div > span { display: block; }
.qc-files { margin-top: .3rem; }
.qc-files summary { font-size: .74rem; font-weight: 600; color: var(--es-primary); cursor: pointer; width: max-content; }
.qc-files ul { list-style: none; margin: .35rem 0 0; padding: .45rem .6rem; border-radius: 10px; background: var(--es-surface-2); max-height: 220px; overflow: auto; display: grid; gap: .2rem; }
.qc-files li { font-size: .74rem; color: var(--es-muted); overflow-wrap: anywhere; }
.qc-review { margin-top: .9rem; border: 1px solid var(--es-border); border-radius: 14px; padding: .6rem .9rem; }
.qc-review > summary { font-weight: 700; font-size: .86rem; cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.qc-review > summary i { color: #6366f1; font-size: 1.05rem; }
.qc-review[open] > summary { margin-bottom: .55rem; }
.qc-review .ofc-md { font-size: .86rem; }
.qc-tree { display: flex; flex-wrap: wrap; gap: .35rem; }
.qc-tree span { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; padding: .2rem .5rem; border-radius: 8px; background: var(--es-surface-2); }
.qc-tree i { color: var(--es-subtle); }
.qc-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--es-border); }
.qc-bar span { display: block; height: 100%; }
.qc-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; color: var(--es-muted); margin-top: .5rem; }
.qc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: .3rem; }
.qc-table td { vertical-align: middle; }
.ofc-issue { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem .25rem; border-bottom: 1px dashed var(--es-border); font-size: .86rem; }
.ofc-issue:last-child { border-bottom: 0; }
.ofc-issue b { font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) { .qc-stats { grid-template-columns: 1fr 1fr; } .qc-top { flex-direction: column; } .qc-score { width: 100%; height: 84px; } }

/* ---------- AI Office: collaboration (meetings, team chat, knowledge base) ---------- */
.ofc-meet-room { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.ofc-meet-seat { --c: var(--es-primary); display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem .2rem .25rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--es-border)); font-size: .78rem; font-weight: 600; }
.ofc-meet-seat .ofc-avatar.sm { width: 24px; height: 24px; font-size: .8rem; border-radius: 50%; }
.ofc-meet-faces { display: inline-flex; flex-shrink: 0; }
.ofc-meet-faces .ofc-avatar { margin-left: -6px; border: 2px solid var(--es-surface); }
.ofc-meet-log { display: grid; gap: .85rem; max-height: 70vh; overflow-y: auto; }
.ofc-meet-line { --c: var(--es-primary); display: flex; gap: .6rem; align-items: flex-start; }
.ofc-meet-bubble { min-width: 0; flex: 1; padding: .65rem .85rem; border-radius: 4px 14px 14px 14px; background: var(--es-surface-2); border: 1px solid var(--es-border); border-left: 3px solid var(--c); font-size: .9rem; line-height: 1.55; }
.ofc-meet-line.is-chair .ofc-meet-bubble { background: color-mix(in srgb, var(--c) 9%, var(--es-surface)); }
.ofc-meet-who { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .15rem; }
.ofc-meet-who strong { color: var(--c); font-size: .82rem; }
.ofc-meet-who small { color: var(--es-subtle); font-size: .7rem; }
.ofc-dots { display: inline-flex; gap: .25rem; padding: .3rem 0; }
.ofc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .35; animation: ofcDot 1.2s infinite; }
.ofc-dots i:nth-child(2) { animation-delay: .2s; } .ofc-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ofcDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ofc-dots i { animation: none; } }
.ofc-chat-line { --c: var(--es-primary); display: flex; gap: .6rem; align-items: flex-start; padding: .65rem 0; }
.ofc-chat-line + .ofc-chat-line { border-top: 1px dashed var(--es-border); }
.ofc-chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .82rem; }
.ofc-chat-head strong { color: var(--c); }
.ofc-chat-head > i { color: var(--es-subtle); }
.ofc-chat-head small { color: var(--es-subtle); font-size: .72rem; margin-left: auto; }
.ofc-chat-kind { display: inline-flex; align-items: center; gap: .2rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 999px; background: var(--es-surface-2); color: var(--es-muted); }
.ofc-chat-body { font-size: .88rem; line-height: 1.5; margin: .15rem 0; overflow-wrap: anywhere; }
.ofc-kb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ofc-kb-item { padding: 1rem 1.1rem; }
.ofc-kb-item.is-pinned { border-color: color-mix(in srgb, var(--es-primary) 45%, var(--es-border)); box-shadow: 0 0 0 3px var(--es-primary-soft); }
.ofc-kb-body { color: var(--es-text); line-height: 1.55; overflow-wrap: anywhere; }
.ofc-collab { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.ofc-collab a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--es-border); color: var(--es-text); background: var(--es-surface); }
.ofc-collab a:hover { border-color: var(--es-border-strong); }
.ofc-collab i { font-size: 1.25rem; color: var(--es-primary); }
.ofc-collab strong { font-size: 1.15rem; line-height: 1.2; }
.ofc-collab span { font-size: .74rem; color: var(--es-muted); }
.ofc-chain { display: grid; gap: .35rem; font-size: .84rem; }
@media (max-width: 767.98px) { .ofc-kb { grid-template-columns: 1fr; } .ofc-collab { grid-template-columns: 1fr 1fr; } }

.ofc-code-copy { position: absolute; top: .5rem; right: .5rem; z-index: 1; font-size: .75rem; padding: .2rem .55rem; }
.ofc-md pre { max-height: 520px; overflow: auto; }
@media (max-width: 575.98px) {
    .o3d-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; right: .6rem; padding-bottom: 2px; }
    .o3d-legend::-webkit-scrollbar { display: none; }
    .o3d-legend button { flex-shrink: 0; }
}

/* Collapsible sidebar (AI Office HQ opens with the menu hidden on desktop) */
@media (min-width: 992px) {
    .sidebar-collapsible .admin-main { transition: margin-left .25s ease; }
    .sidebar-collapsed .admin-sidebar { transform: translateX(-100%); box-shadow: none; }
    .sidebar-collapsed .admin-main { margin-left: 0; }
}
.sidebar-toggle { flex-shrink: 0; }

/* ---------- Site logo (Admin → Site settings → Logo) ---------- */
/* the header keeps its height whatever the logo size: the logo area is fixed and a bigger logo extends over it */
.es-nav .navbar-brand { height: 44px; padding-block: 0; position: relative; z-index: 2; overflow: visible; align-items: safe center; }
.es-nav .navbar-brand > * { flex-shrink: 0; }
.brand-logo { display: block; width: auto; max-width: 360px; object-fit: contain; flex-shrink: 0; }
.admin-sidebar .brand { flex-wrap: wrap; row-gap: .4rem; }
.admin-sidebar .brand-logo { max-width: 100%; }
[data-bs-theme="dark"] .brand-logo-light, :root:not([data-bs-theme="dark"]) .brand-logo-dark { display: none; }
.brand-name { white-space: nowrap; }
@media (max-width: 575.98px) { .es-nav .brand-logo { max-width: 150px; max-height: 44px; } .es-nav .brand-mark { max-width: 40px; max-height: 40px; font-size: 1.25rem !important; } .es-nav .brand-name { font-size: min(1.15rem, var(--logo-text, 1.15rem)) !important; }  }
/* settings: logo cards */
.logo-card { border: 1px solid var(--es-border); border-radius: 14px; padding: 1rem; height: 100%; }
.logo-stage { display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; overflow: hidden; border: 1px solid var(--es-border); margin-bottom: 1rem; }
.logo-stage > div { display: flex; align-items: center; gap: .55rem; padding: .9rem .8rem; min-height: 76px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; overflow: hidden; }
.logo-stage .ls-light { background: #fff; color: #101322; }
.logo-stage .ls-dark { background: #0d0e18; color: #fff; }
.logo-stage > div { flex-wrap: wrap; row-gap: .35rem; }
.logo-stage img { display: block; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.logo-stage .brand-mark { flex-shrink: 0; }
.tab-preview { display: flex; align-items: center; gap: .5rem; max-width: 240px; padding: .55rem .75rem; border: 1px solid var(--es-border); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--es-surface, #fff); font-size: .82rem; box-shadow: 0 -2px 8px -4px rgba(0,0,0,.12); }
.tab-preview img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.tab-preview span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-logo-preview { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; max-width: 280px; padding: .9rem 1rem; border: 1px solid var(--es-border); border-radius: 12px; background: var(--es-surface, #fff); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--es-text); }
.admin-logo-preview img { display: block; width: auto; max-width: 100%; object-fit: contain; }
.admin-logo-preview small { font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; background: var(--es-primary-soft); color: var(--es-primary); letter-spacing: .04em; }
/* Visitors: countries */
.country-flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; flex-shrink: 0; vertical-align: -2px; }
.country-rank { width: 1.3rem; text-align: center; color: var(--es-subtle); font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.top-country { display: flex; align-items: center; gap: .65rem; padding: .45rem .8rem; border-radius: 12px; background: var(--es-primary-soft); }
.top-country img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.country-list { --bs-gutter-x: 2.5rem; }

/* Admin → AI Office → Social posts */
.social-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.social-acc { padding: .8rem .9rem; border: 1px solid var(--es-border); border-top: 3px solid var(--c); border-radius: 14px; background: var(--es-surface); }
.social-acc.is-off, .social-post.is-off { opacity: .55; }
.social-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--c); font-size: 1.2rem; flex-shrink: 0; }
.social-ico.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .95rem; vertical-align: middle; }
.social-steps { padding-left: 1.1rem; margin-bottom: .8rem; }
.social-steps li { margin-bottom: .35rem; }
.social-steps code { font-size: .78rem; word-break: break-all; }
.social-thumb { width: 52px; height: 38px; object-fit: cover; border-radius: 8px; border: 1px solid var(--es-border); flex-shrink: 0; }
.social-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.social-post { padding: .75rem; border: 1px solid var(--es-border); border-left: 3px solid var(--c); border-radius: 12px; background: var(--es-surface-2); }
.social-post .pv-badge { margin-top: 0; }
.social-when { width: auto; min-width: 0; flex: 1 1 150px; }

/* Admin → AI Office → Team chat (one-to-one with a team member) */
.dm-wrap { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 150px); min-height: 520px; overflow: hidden; padding: 0; }
.dm-people { border-right: 1px solid var(--es-border); display: flex; flex-direction: column; min-height: 0; }
.dm-people-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--es-border); color: var(--es-muted); }
.dm-people-head input { border: 0; background: transparent; outline: 0; width: 100%; color: var(--es-text); font-size: .9rem; }
.dm-people-list { overflow-y: auto; flex: 1; padding: .35rem; }
.dm-person { display: flex; gap: .65rem; align-items: center; padding: .6rem .65rem; border-radius: 12px; color: inherit; text-decoration: none; }
.dm-person:hover { background: var(--es-surface-2); color: inherit; }
.dm-person.is-on { background: var(--es-primary-soft); }
.dm-person strong { font-size: .9rem; }
.dm-person small { font-size: .76rem; }
.dm-person .ofc-avatar { position: relative; }
.dm-presence { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border: 2px solid var(--es-surface); margin: 0; }
.dm-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--es-primary); color: #fff; font-size: .68rem; font-weight: 700; display: inline-grid; place-items: center; }
.dm-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dm-chat-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid var(--es-border); }
.dm-log { flex: 1; overflow-y: auto; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--es-surface-2); }
.dm-hello { margin: auto; text-align: center; max-width: 380px; padding: 1rem; }
.dm-line { display: flex; gap: .55rem; align-items: flex-end; max-width: 78%; }
.dm-line.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.dm-bubble { padding: .6rem .85rem; border-radius: 16px 16px 16px 4px; background: var(--es-surface); border: 1px solid var(--es-border); min-width: 0; box-shadow: var(--es-shadow-sm); }
.dm-line.is-mine .dm-bubble { border-radius: 16px 16px 4px 16px; background: var(--es-grad); color: #fff; border-color: transparent; }
.dm-line.is-pending { opacity: .7; }
.dm-line.is-failed .dm-bubble { background: #e11d48; }
.dm-text { font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.dm-text.ofc-md { white-space: normal; }
.dm-text.ofc-md > :last-child { margin-bottom: 0; }
.dm-text.ofc-md p { margin-bottom: .5rem; }
.dm-text.ofc-md ul, .dm-text.ofc-md ol { padding-left: 1.1rem; margin-bottom: .5rem; }
.dm-text.ofc-md pre { font-size: .8rem; max-height: 320px; overflow: auto; }
.dm-time { font-size: .68rem; opacity: .65; margin-top: .25rem; }
.dm-line.is-mine .dm-time { text-align: right; }
.dm-task { display: inline-flex; align-items: center; gap: .3rem; margin-top: .45rem; font-size: .78rem; font-weight: 600; padding: .25rem .55rem; border-radius: 8px; background: var(--es-primary-soft); color: var(--es-primary); text-decoration: none; }
.dm-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--es-subtle); animation: dmDot 1.2s infinite; }
.dm-dots i:nth-child(2) { animation-delay: .15s; } .dm-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dmDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.dm-ideas { display: flex; gap: .4rem; padding: .55rem 1rem 0; overflow-x: auto; scrollbar-width: none; }
.dm-ideas button { flex-shrink: 0; border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-muted); border-radius: 999px; font-size: .78rem; padding: .3rem .7rem; }
.dm-ideas button:hover { color: var(--es-primary); border-color: var(--es-primary); }
.dm-compose { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem 1rem 1rem; }
.dm-compose textarea { flex: 1; resize: none; border: 1px solid var(--es-border); border-radius: 14px; padding: .6rem .85rem; background: var(--es-surface); color: var(--es-text); outline: 0; font-size: .93rem; max-height: 160px; }
.dm-compose textarea:focus { border-color: var(--es-primary); box-shadow: 0 0 0 3px var(--es-primary-soft); }
.dm-compose .btn { width: 42px; height: 42px; border-radius: 12px; }
@media (max-width: 767.98px) {
    .dm-wrap { grid-template-columns: 1fr; height: calc(100vh - 130px); }
    .dm-wrap .dm-chat { display: none; }
    .dm-wrap.show-chat .dm-people { display: none; }
    .dm-wrap.show-chat .dm-chat { display: flex; }
    .dm-line { max-width: 90%; }
}

/* Voice assistant (the CEO, like JARVIS) */
.jv-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1040; width: 58px; height: 58px; border: 0; border-radius: 50%; padding: 0; background: radial-gradient(circle at 35% 30%, #7dd3fc, #3b82f6 45%, #1e3a8a); box-shadow: 0 0 0 4px rgba(59,130,246,.18), 0 10px 30px rgba(37,99,235,.45); color: #fff; cursor: pointer; transition: transform .2s; }
.jv-fab:hover { transform: scale(1.07); }
.jv-fab-core { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font-size: 1.5rem; }
.jv-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(96,165,250,.5); animation: jvPulse 2.4s infinite; }
.jv-fab.is-wake::after { border-color: #22c55e; }
@keyframes jvPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
body.jv-open .jv-fab { display: none; }
.jv { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; color: #dbeafe; background: radial-gradient(ellipse at center, #0b1b3a 0%, #050b18 60%, #02050c 100%); font-family: inherit; }
.jv[hidden] { display: none; }
.jv::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); }
.jv-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; position: relative; }
.jv-name { font-family: 'JetBrains Mono', monospace; letter-spacing: .18em; font-weight: 700; font-size: .9rem; color: #93c5fd; display: flex; align-items: center; gap: .55rem; }
.jv-name small { letter-spacing: .04em; font-weight: 400; color: #64748b; font-family: inherit; }
.jv-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.jv-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(147,197,253,.25); background: rgba(15,23,42,.6); color: #bfdbfe; display: inline-grid; place-items: center; font-size: 1.2rem; cursor: pointer; }
.jv-btn:hover { border-color: #60a5fa; color: #fff; }
.jv-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 0 1rem; position: relative; min-height: 0; overflow-y: auto; }
.jv-orb { position: relative; width: min(64vw, 360px); aspect-ratio: 1; }
.jv-orb canvas { width: 100%; height: 100%; }
.jv-core { position: absolute; inset: 37%; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 2rem; color: #fff; cursor: pointer; background: radial-gradient(circle at 35% 30%, #bfdbfe, #3b82f6 45%, #1e40af); box-shadow: 0 0 40px rgba(59,130,246,.7), inset 0 0 20px rgba(255,255,255,.3); transition: transform .2s, box-shadow .2s; }
.jv-orb[data-state="listening"] .jv-core { box-shadow: 0 0 60px rgba(34,197,94,.75), inset 0 0 20px rgba(255,255,255,.3); background: radial-gradient(circle at 35% 30%, #bbf7d0, #22c55e 45%, #166534); }
.jv-orb[data-state="speaking"] .jv-core { transform: scale(1.06); }
.jv-status { font-family: 'JetBrains Mono', monospace; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #60a5fa; text-align: center; }
.jv-heard { min-height: 1.4em; font-size: 1rem; color: #94a3b8; text-align: center; max-width: 720px; font-style: italic; }
.jv-said { font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.5; color: #e0f2fe; text-align: center; max-width: 760px; text-shadow: 0 0 18px rgba(59,130,246,.35); }
.jv-tasks { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; max-width: 760px; }
.jv-tasks a { font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; color: #e0f2fe; border: 1px solid var(--c); background: rgba(15,23,42,.7); text-decoration: none; }
.jv-type { display: flex; gap: .5rem; padding: 1rem 1.25rem 1.4rem; max-width: 760px; width: 100%; margin: 0 auto; position: relative; }
.jv-type input { flex: 1; border-radius: 12px; border: 1px solid rgba(147,197,253,.25); background: rgba(15,23,42,.7); color: #e0f2fe; padding: .6rem .9rem; outline: 0; }
.jv-type input:focus { border-color: #60a5fa; }
.jv-panel { position: absolute; top: 64px; right: 1.25rem; width: min(330px, calc(100vw - 2.5rem)); padding: 1rem; border-radius: 16px; background: rgba(15,23,42,.96); border: 1px solid rgba(147,197,253,.25); box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 2; }
.jv-panel[hidden] { display: none; }
.jv-label { font-size: .75rem; color: #94a3b8; display: block; margin-bottom: .2rem; }
.jv-panel .form-select { background-color: #0f172a; color: #e2e8f0; border-color: #334155; }
.jv-panel .form-check-label { color: #cbd5e1; }
@media (max-width: 575.98px) { .jv-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* AI Office task: attached files */
.task-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .6rem; }
.task-file { display: flex; align-items: center; gap: .6rem; padding: .5rem; border: 1px solid var(--es-border); border-radius: 12px; background: var(--es-surface-2); }
.task-file-thumb { width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; overflow: hidden; font-size: 1.5rem; color: var(--es-primary); background: repeating-conic-gradient(var(--es-surface) 0 25%, var(--es-surface-2) 0 50%) 0 0 / 12px 12px; border: 1px solid var(--es-border); }
.task-file-thumb img { width: 100%; height: 100%; object-fit: contain; }
.task-drop-zone { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; padding: 1.1rem; border: 2px dashed var(--es-border-strong, var(--es-border)); border-radius: 14px; cursor: pointer; transition: .15s; margin: 0; }
.task-drop-zone i { font-size: 1.8rem; color: var(--es-primary); }
.task-drop-zone:hover, .task-drop-zone.is-over { border-color: var(--es-primary); background: var(--es-primary-soft); }
.task-drop-zone.is-busy { opacity: .7; pointer-events: none; }
.task-handback { padding: .8rem; border-radius: 12px; border: 1px solid var(--es-border); border-left: 3px solid var(--c); background: var(--es-surface-2); }

/* AI Office → Product studio */
.studio-row { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-top: 1px solid var(--es-border); color: inherit; text-decoration: none; }
.studio-row:hover { background: var(--es-surface-2); color: inherit; }
.studio-row .pv-badge { margin-top: 0; white-space: nowrap; }
.studio-thumb { width: 64px; height: 40px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--es-surface-2); border: 1px solid var(--es-border); color: var(--es-primary); font-size: 1.3rem; }
.studio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.studio-step { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1px solid var(--es-border); border-radius: 12px; background: var(--es-surface); }
.studio-step.is-done { border-color: color-mix(in srgb, var(--es-success, #16a34a) 45%, var(--es-border)); }
.studio-step.is-done .small.text-muted::before { content: '✓ '; color: var(--es-success, #16a34a); font-weight: 700; }
.studio-step.is-working { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); }
.studio-step.is-failed { border-color: #e11d48; }
.studio-browser { display: grid; grid-template-columns: 250px 1fr; min-height: 560px; border-top: 1px solid var(--es-border); }
.studio-tree { border-right: 1px solid var(--es-border); overflow-y: auto; max-height: 640px; padding: .4rem 0; background: var(--es-surface-2); }
.studio-tree-top { padding: .35rem .8rem; font-weight: 700; font-size: .82rem; display: flex; gap: .35rem; align-items: center; color: var(--es-primary); }
.studio-file { display: flex; align-items: center; gap: .4rem; width: 100%; border: 0; background: none; padding: .32rem .8rem; font-size: .8rem; color: var(--es-text); text-align: left; }
.studio-file i { color: var(--es-primary); flex-shrink: 0; }
.studio-file small { margin-left: auto; color: var(--es-subtle); flex-shrink: 0; font-size: .68rem; }
.studio-file:hover { background: var(--es-surface); }
.studio-file.is-on { background: var(--es-primary-soft); font-weight: 600; }
.studio-view { display: flex; flex-direction: column; min-width: 0; }
.studio-view-head { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-bottom: 1px solid var(--es-border); }
.studio-code { flex: 1; margin: 0; padding: .8rem 1rem; font-size: .76rem; line-height: 1.55; overflow: auto; max-height: 600px; background: #0f1222; color: #dbe1ff; border-radius: 0 0 var(--es-radius, 14px) 0; tab-size: 4; }
.studio-frame-wrap { flex: 1; display: flex; justify-content: center; background: repeating-conic-gradient(var(--es-surface) 0 25%, var(--es-surface-2) 0 50%) 0 0 / 16px 16px; }
.studio-frame-wrap iframe { width: 100%; height: 600px; border: 0; background: #fff; transition: width .25s; }
.studio-frame-wrap.is-phone iframe { width: 390px; border-left: 1px solid var(--es-border); border-right: 1px solid var(--es-border); }
.studio-pages { padding: .6rem .9rem; border-top: 1px solid var(--es-border); font-size: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.studio-pages .chip { cursor: pointer; border: 0; }
.studio-cover { width: 100%; border-radius: 10px; border: 1px solid var(--es-border); }
.studio-md { font-size: .84rem; }
.studio-md h2 { font-size: 1rem; margin-top: .8rem; }
.studio-md pre { font-size: .76rem; }
.studio-md table { font-size: .78rem; }
@media (max-width: 767.98px) { .studio-browser { grid-template-columns: 1fr; } .studio-tree { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--es-border); } }

/* Site settings → AI: model tip */
.ai-model-tip { padding: .7rem .85rem; border-radius: .75rem; background: color-mix(in srgb, var(--es-primary) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--es-primary) 35%, transparent); }
.ai-model-tip .bx { color: var(--es-primary); }

/* Product studio: why a build stopped / what the builder is doing now */
.studio-why p { margin-bottom: .5rem; }
.studio-why p:last-child { margin-bottom: 0; }
.studio-now { display: inline-flex; align-items: center; gap: .4rem; margin: .4rem 0 .6rem; padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--es-primary); background: var(--es-primary-soft); max-width: 100%; overflow-wrap: anywhere; }
