/* ═══════════════════════════════════════════
   BeeClicked Web Auditor v3.2.1 — Styles
   Brand: #f5c518 yellow · #0a0a0a black · #fff white
═══════════════════════════════════════════ */

:root {
    --bc-yellow:   #f5c518;
    --bc-yellow-d: #d4a800;
    --bc-yellow-bg:#2d1f00;
    --bc-black:    #0a0a0a;
    --bc-card:     #111111;
    --bc-card2:    #161616;
    --bc-border:   #1f1f1f;
    --bc-border2:  #2a2a2a;
    --bc-text:     #e8e8e8;
    --bc-muted:    #666666;
    --bc-muted2:   #444444;
    --bc-green:    #22c55e;
    --bc-green-bg: #0d2d1a;
    --bc-red:      #ef4444;
    --bc-red-bg:   #2d0d0d;
    --bc-radius:   10px;
    --bc-radius-lg:14px;
}

.bca-wrap *       { box-sizing: border-box; }
.bca-wrap          { font-family: 'DM Sans', 'Inter', -apple-system, sans-serif; background: var(--bc-black); border-radius: 18px; overflow: hidden; color: var(--bc-text); }

/* ── Hero / Input area ── */
.bca-hero          { padding: 1.75rem 1.75rem 1.5rem; border-bottom: 1px solid var(--bc-border); }
.bca-topbar        { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 1.25rem; }

.bca-logo          { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.bca-logo-svg      { width: 30px; height: 30px; flex-shrink: 0; }
.bca-logo-name     { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.2px; }
.bca-logo-name span{ color: var(--bc-yellow); }

/* Language selector */
.bca-lang-wrap     { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bca-lang-auto     { font-size: 10px; color: var(--bc-muted2); display: flex; align-items: center; gap: 5px; }
.bca-lang-auto-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bc-green); flex-shrink: 0; }
.bca-lang-pills    { display: flex; gap: 4px; }
.bca-lang-btn      { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--bc-border2); background: transparent; color: var(--bc-muted); cursor: pointer; transition: all .15s; letter-spacing: .02em; }
.bca-lang-btn:hover{ border-color: #555; color: #ccc; }
.bca-lang-btn.active{ border-color: var(--bc-yellow); color: var(--bc-yellow); background: var(--bc-yellow-bg); }

/* Headline */
.bca-headline      { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2; margin: 0 0 .3rem; letter-spacing: -.3px; }
.bca-sub           { font-size: 13px; color: var(--bc-muted); margin: 0 0 1.25rem; }

/* Input row */
.bca-input-row     { display: flex; gap: 8px; }
.bca-url-input     { flex: 1; min-width: 0; background: #111; border: 1px solid var(--bc-border2); border-radius: var(--bc-radius); padding: 11px 14px; font-size: 14px; color: #fff; outline: none; transition: border-color .2s; font-family: inherit; }
.bca-url-input::placeholder { color: var(--bc-muted2); }
.bca-url-input:focus{ border-color: var(--bc-yellow); }
.bca-audit-btn     { background: var(--bc-yellow); color: var(--bc-black); border: none; border-radius: var(--bc-radius); padding: 11px 22px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; font-family: inherit; letter-spacing: .1px; display: flex; align-items: center; gap: 8px; }
.bca-audit-btn:hover   { background: #ffd93d; }
.bca-audit-btn:active  { transform: scale(0.98); }
.bca-audit-btn:disabled{ background: #7a6200; color: #444; cursor: not-allowed; }

.bca-spinner       { width: 15px; height: 15px; border: 2px solid rgba(0,0,0,.3); border-top-color: var(--bc-black); border-radius: 50%; animation: bca-spin .65s linear infinite; flex-shrink: 0; }
@keyframes bca-spin{ to { transform: rotate(360deg); } }

.bca-error         { font-size: 13px; color: var(--bc-red); background: var(--bc-red-bg); border: 1px solid #5a1a1a; border-radius: var(--bc-radius); padding: 10px 14px; margin-top: 8px; display: none; }

/* ── Results body ── */
.bca-body          { padding: 1.5rem 1.75rem; display: none; }

/* Overall score */
.bca-overall-row   { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bca-ring          { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.bca-ring svg      { display: block; }
.bca-ring-num      { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; color: #fff; }
.bca-overall-meta strong { font-size: 17px; font-weight: 700; color: #fff; display: block; margin-bottom: 3px; }
.bca-overall-meta span   { font-size: 12px; color: var(--bc-muted); }

/* Summary box */
.bca-summary       { background: var(--bc-card); border: 1px solid var(--bc-border); border-left: 3px solid var(--bc-yellow); border-radius: var(--bc-radius); padding: 12px 14px; margin-bottom: 1.25rem; font-size: 13px; color: #bbb; line-height: 1.6; }

/* Category grid */
.bca-cat-grid      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 1.25rem; }
@media (max-width: 480px) { .bca-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.bca-cat           { background: var(--bc-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 11px 12px; cursor: pointer; transition: border-color .15s; }
.bca-cat:hover     { border-color: #333; }
.bca-cat.active    { border-color: var(--bc-yellow); background: #0f0d00; }
.bca-cat-label     { font-size: 10px; color: var(--bc-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.bca-cat-score     { font-size: 20px; font-weight: 700; margin-bottom: 3px; line-height: 1; }
.bca-cat-badge     { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; display: inline-block; }
.badge-good        { background: var(--bc-green-bg); color: var(--bc-green); }
.badge-warn        { background: var(--bc-yellow-bg); color: var(--bc-yellow); }
.badge-bad         { background: var(--bc-red-bg); color: var(--bc-red); }
.bca-bar-wrap      { height: 3px; background: var(--bc-border); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.bca-bar           { height: 3px; border-radius: 2px; transition: width .7s ease; }

/* Detail panel */
.bca-detail        { background: var(--bc-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); padding: 1rem 1.25rem; margin-bottom: .875rem; }
.bca-panel-title   { font-size: 10px; font-weight: 600; color: var(--bc-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.bca-findings      { list-style: none; padding: 0; margin: 0; }
.bca-finding       { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bc-border); align-items: flex-start; }
.bca-finding:last-child { border-bottom: none; }
.bca-finding-dot   { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.dot-good          { background: var(--bc-green); }
.dot-warn          { background: var(--bc-yellow); }
.dot-bad           { background: var(--bc-red); }
.bca-finding-title { font-size: 13px; color: #ddd; font-weight: 500; line-height: 1.4; margin-bottom: 2px; }
.bca-finding-detail{ font-size: 12px; color: var(--bc-muted); line-height: 1.5; }

/* Compliance box */
.bca-compliance    { background: var(--bc-card); border: 1px solid var(--bc-yellow); border-radius: var(--bc-radius-lg); padding: 1rem 1.25rem; margin-bottom: .875rem; }
.bca-comp-header   { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.bca-comp-label    { font-size: 10px; color: var(--bc-yellow); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bca-comp-law      { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bc-yellow-bg); color: var(--bc-yellow); border: 1px solid var(--bc-yellow-d); }
.bca-comp-market   { font-size: 12px; color: var(--bc-muted); margin-bottom: 10px; }

/* Action plan */
.bca-plan          { background: var(--bc-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius-lg); padding: 1rem 1.25rem; margin-bottom: .875rem; }
.bca-plan-item     { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bc-border); }
.bca-plan-item:last-child { border-bottom: none; }
.bca-plan-num      { width: 22px; height: 22px; border-radius: 50%; background: var(--bc-yellow); color: var(--bc-black); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.bca-plan-title    { font-size: 13px; color: #ddd; font-weight: 500; margin-bottom: 2px; line-height: 1.4; }
.bca-plan-detail   { font-size: 12px; color: var(--bc-muted); margin-bottom: 5px; line-height: 1.45; }
.bca-plan-tags     { display: flex; gap: 5px; flex-wrap: wrap; }
.bca-tag           { font-size: 10px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--bc-border2); color: var(--bc-muted); }
.bca-tag-high      { border-color: var(--bc-yellow); color: var(--bc-yellow); }
.bca-tag-easy      { border-color: var(--bc-green); color: var(--bc-green); }
.bca-tag-hard      { border-color: var(--bc-red); color: var(--bc-red); }

/* Footer */
.bca-footer        { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.75rem; border-top: 1px solid var(--bc-border); flex-wrap: wrap; gap: 8px; }
.bca-branding      { font-size: 11px; color: var(--bc-muted2); }
.bca-branding a    { color: var(--bc-yellow); text-decoration: none; }
.bca-branding a:hover{ text-decoration: underline; }
.bca-download-btn  { font-size: 12px; padding: 6px 14px; background: transparent; border: 1px solid var(--bc-border2); border-radius: 7px; color: var(--bc-muted); cursor: pointer; transition: all .15s; font-family: inherit; }
.bca-download-btn:hover{ border-color: #555; color: #ccc; }

/* Print handled by bcaPrintReport() — opens a clean isolated popup window */

/* ═══════════════════════════════════════════
   v3 ADDITIONS
═══════════════════════════════════════════ */

/* CMS badge */
.bca-cms-badge      { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bc-yellow-bg); color: var(--bc-yellow); border: 1px solid var(--bc-yellow-d); margin-bottom: 1rem; }
.bca-sitemap-note   { font-size: 11px; color: var(--bc-muted); margin-bottom: 1rem; }

/* Mode toggle */
.bca-mode-toggle    { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; background: var(--bc-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 10px 14px; }
.bca-mode-label     { font-size: 12px; color: var(--bc-muted); flex: 1; }
.bca-toggle-pills   { display: flex; border: 1px solid var(--bc-border2); border-radius: 999px; overflow: hidden; }
.bca-toggle-pill    { font-size: 11px; font-weight: 600; padding: 4px 12px; background: transparent; border: none; color: var(--bc-muted); cursor: pointer; transition: all .15s; }
.bca-toggle-pill.active { background: var(--bc-yellow); color: var(--bc-black); }

/* Contact modal */
.bca-modal-overlay  { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.bca-modal-overlay.open { display: flex; animation: bcaFadeIn .18s ease; }
@keyframes bcaFadeIn { from { opacity: 0; } to { opacity: 1; } }

.bca-modal {
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 20px;
    width: 100%;
    max-width: 820px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
    animation: bcaSlideUp .22s cubic-bezier(.4,0,.2,1);
}
@keyframes bcaSlideUp { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 600px) { .bca-modal { grid-template-columns: 1fr; } .bca-modal-left { display: none; } }

/* ── Left panel ── */
.bca-modal-left {
    background: linear-gradient(145deg, #1a1400 0%, #0f0d00 60%, #0a0a0a 100%);
    border-right: 1px solid #2a2200;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.bca-modal-left::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245,197,24,.12) 0%, transparent 70%);
    pointer-events: none;
}
.bca-modal-left-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--bc-yellow); letter-spacing: .02em;
}
.bca-modal-left-logo svg { width: 22px; height: 22px; }
.bca-modal-left-headline {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 2rem 0;
}
.bca-modal-left-headline h2 {
    font-size: 22px; font-weight: 800; color: #fff; line-height: 1.25;
    margin: 0 0 10px;
}
.bca-modal-left-headline h2 em { color: var(--bc-yellow); font-style: normal; }
.bca-modal-left-headline p {
    font-size: 13px; color: #888; line-height: 1.65; margin: 0;
}
.bca-modal-score-card {
    background: rgba(245,197,24,.07);
    border: 1px solid rgba(245,197,24,.2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 14px;
}
.bca-modal-score-ring {
    width: 52px; height: 52px; flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid var(--bc-yellow);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: var(--bc-yellow);
    background: rgba(245,197,24,.08);
}
.bca-modal-score-info { flex: 1; }
.bca-modal-score-info strong { display: block; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.bca-modal-score-info span { font-size: 11px; color: #777; line-height: 1.4; display: block; }
.bca-modal-bullets { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: 8px; }
.bca-modal-bullets li { font-size: 12px; color: #999; display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.bca-modal-bullets li::before { content: '✓'; color: var(--bc-yellow); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Right panel (form) ── */
.bca-modal-right { padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.bca-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: rgba(255,255,255,.06); border: 1px solid #2a2a2a;
    color: #888; font-size: 16px; cursor: pointer; line-height: 1;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all .15s; z-index: 2;
}
.bca-modal-close:hover { color: #fff; background: #222; border-color: #444; }
.bca-modal-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
    color: var(--bc-yellow); background: rgba(245,197,24,.1);
    border: 1px solid rgba(245,197,24,.25); border-radius: 999px;
    padding: 4px 11px; margin-bottom: 14px; width: fit-content;
}
.bca-modal h3 { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.bca-modal-sub { font-size: 13px; color: #777; margin: 0 0 1.5rem; line-height: 1.6; }

.bca-field-group { margin-bottom: 14px; }
.bca-field-label {
    display: block; font-size: 11px; font-weight: 600; color: #666;
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.bca-required { color: var(--bc-yellow); }
.bca-field {
    width: 100%; background: #161616; border: 1px solid #252525;
    border-radius: 10px; padding: 11px 14px;
    font-size: 14px; color: #fff; font-family: inherit;
    outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
    display: block; box-sizing: border-box;
}
.bca-field:focus { border-color: var(--bc-yellow); background: #141000; box-shadow: 0 0 0 3px rgba(245,197,24,.08); }
.bca-field::placeholder { color: #3a3a3a; }
textarea.bca-field { height: 90px; resize: vertical; }

.bca-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 400px) { .bca-fields-row { grid-template-columns: 1fr; } }

.bca-modal-btn {
    width: 100%; padding: 14px;
    background: var(--bc-yellow); color: #0a0a0a;
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 800; cursor: pointer;
    font-family: inherit; margin-top: 6px;
    transition: background .15s, transform .1s;
    letter-spacing: .01em; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.bca-modal-btn:hover { background: #ffd93d; transform: translateY(-1px); }
.bca-modal-btn:active { transform: translateY(0); }
.bca-modal-btn:disabled { background: #4a3c00; color: #8a7200; cursor: not-allowed; transform: none; }
.bca-modal-note { font-size: 11px; color: #444; text-align: center; margin-top: 10px; line-height: 1.5; }
.bca-modal-note .bca-required { opacity: .8; }

.bca-modal-success {
    text-align: center; padding: 3rem 1rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1;
}
.bca-modal-success-icon { font-size: 40px; margin-bottom: 14px; }
.bca-modal-success p { font-size: 20px; color: var(--bc-green); font-weight: 800; margin: 0 0 8px; }
.bca-modal-success span { font-size: 13px; color: #777; }
.bca-modal-error {
    font-size: 12px; color: #fca5a5; background: rgba(239,68,68,.08);
    border-radius: 8px; padding: 9px 12px; margin-bottom: 12px;
    display: none; border: 1px solid rgba(239,68,68,.2);
}

/* Help button */
.bca-help-btn       { display: inline-flex; align-items: center; gap: 7px; margin-top: 1rem; padding: 9px 18px; background: var(--bc-yellow); color: #0a0a0a; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s; }
.bca-help-btn:hover { background: #ffd93d; }



/* ── Tech stack section (v3.1) ── */
.bca-tech-rows      { display: flex; flex-direction: column; gap: 0; }
.bca-tech-row       { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--bc-border); }
.bca-tech-row:last-child { border-bottom: none; }
.bca-tech-label     { font-size: 11px; font-weight: 500; color: var(--bc-muted); min-width: 110px; flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em; }
.bca-tech-value     { font-size: 12px; color: var(--bc-text); line-height: 1.5; }
.bca-tech-version   { font-size: 11px; color: var(--bc-yellow); background: var(--bc-yellow-bg); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
