/* ---- Competitors tab ---- */
.comp-hint { font-size:12px; color:#8A8478; line-height:1.5; max-width:640px; }
.comp-btn { background:#181714; border:1px solid #2f2d29; color:#F5EFE6; padding:7px 14px; border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; transition:background 0.15s; }
.comp-btn:hover { background:#201e1a; }
.comp-btn.primary { background:#E04E24; border-color:#E04E24; color:#fff; }
.comp-btn.primary:hover { background:#c23d17; }

/* ---- Filter bar ---- */
.comp-filter-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.comp-input { background:#181714; border:1px solid #2f2d29; color:#F5EFE6; padding:7px 10px; border-radius:8px; font-size:13px; font-family:inherit; }
.comp-input[type=search] { min-width:220px; }
.comp-count { margin-left:auto; font-size:12px; color:#8A8478; }

/* ---- Table ---- */
.comp-table-wrap { overflow-x:auto; border-radius:12px; border:1px solid #292724; }
.comp-table { width:100%; border-collapse:collapse; font-size:13px; }
.comp-table thead { background:#181714; }
.comp-table th { text-align:left; padding:10px 12px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:#8A8478; white-space:nowrap; border-bottom:1px solid #292724; }
.comp-table tbody tr { border-bottom:1px solid #221f1c; }
.comp-table tbody tr:last-child { border-bottom:none; }
.comp-table tbody tr:hover { background:rgba(245,239,230,0.02); }
.comp-table tbody tr.comp-row-archived { opacity:0.55; }
/* shell.css defaults tbody td to text-align:right (numeric tables); this
   table is entity rows - everything reads left */
.comp-table td { padding:9px 12px; vertical-align:middle; color:#B7B0A4; text-align:left; }

.comp-td-avatar { width:1%; }
.comp-avatar { width:32px; height:32px; border-radius:50%; object-fit:cover; display:block; }
.comp-avatar-placeholder { display:flex; align-items:center; justify-content:center; background:#201e1a; color:#6E695F; font-size:12px; font-weight:700; }

.comp-name { font-weight:700; font-size:13px; color:#F5EFE6; white-space:nowrap; }
.comp-badges { display:flex; gap:6px; flex-wrap:wrap; margin-top:3px; }
.comp-badge { font-size:10px; text-transform:uppercase; letter-spacing:.04em; padding:2px 7px; border-radius:6px; background:#201e1a; color:#8A8478; white-space:nowrap; }
.comp-badge.warn { background:#33240f; color:#C99A4B; }

.comp-tier-pill { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; padding:3px 8px; border-radius:20px; white-space:nowrap; background:#181714; color:#8A8478; }
.comp-tier-pill.comp-tier-direct { color:#F5EFE6; background:#2a160f; }

.comp-td-links { white-space:nowrap; }
.comp-links, .comp-td-links { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.comp-td-links a, .comp-links a { color:#8A8478; font-size:11px; font-weight:600; text-decoration:none; padding:2px 8px; border-radius:6px; background:#181714; border:1px solid #2f2d29; transition:color 0.15s, border-color 0.15s; }
.comp-td-links a:hover, .comp-links a:hover { color:#E04E24; border-color:#E04E24; }
.comp-dash { color:#403d39; }

.comp-td-markets, .comp-markets { display:flex; gap:4px; flex-wrap:wrap; }
.comp-market-chip { font-size:9px; font-weight:700; letter-spacing:.03em; padding:2px 6px; border-radius:4px; background:#181714; color:#6E695F; }
.comp-market-chip.on { color:#B7B0A4; background:#201e1a; }

.comp-toggle { font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px; background:#181714; border:1px solid #2f2d29; color:#8A8478; cursor:pointer; font-family:inherit; transition:background 0.15s, color 0.15s, border-color 0.15s; white-space:nowrap; }
.comp-toggle:hover { border-color:#403d39; }
.comp-toggle.on { background:#E04E24; border-color:#E04E24; color:#fff; }

.comp-td-notes { max-width:220px; font-size:12px; color:#8A8478; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.comp-td-actions { white-space:nowrap; text-align:right; }
.comp-icon-btn { background:none; border:none; color:#8A8478; cursor:pointer; font-size:12px; padding:2px 6px; border-radius:4px; font-family:inherit; }
.comp-icon-btn:hover { color:#F5EFE6; background:rgba(245,239,230,0.05); }
.comp-icon-btn.danger:hover { color:#C2694F; }

.comp-toast { position:fixed; bottom:24px; right:24px; background:#79B08F; color:#fff; padding:10px 18px; border-radius:8px; font-size:13px; font-weight:600; box-shadow:0 4px 12px rgba(0,0,0,0.4); z-index:1000; opacity:0; transform:translateY(10px); transition:opacity 0.2s, transform 0.2s; }
.comp-toast.show { opacity:1; transform:translateY(0); }
.comp-toast.error { background:#C2694F; }

/* Add/Edit modal - own namespace, own overlay (different feature than adspy-modal or peek classes) */
.comp-modal-overlay { display:none; position:fixed; inset:0; z-index:130; background:rgba(10,9,7,0.75); backdrop-filter:blur(2px); align-items:center; justify-content:center; padding:24px; }
.comp-modal-overlay.show { display:flex; }
.comp-modal { position:relative; width:100%; max-width:480px; max-height:88vh; background:#15130f; border:1px solid #2f2d29; border-radius:14px; display:flex; flex-direction:column; overflow:hidden; }
.comp-modal-head { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid #2f2d29; flex-shrink:0; }
.comp-modal-head h3 { margin:0; font-size:14px; color:#B7B0A4; }
.comp-modal-close { background:none; border:none; color:#8A8478; font-size:22px; line-height:1; cursor:pointer; padding:2px 6px; }
.comp-modal-close:hover { color:#F5EFE6; }
.comp-modal-body { padding:18px 20px; overflow-y:auto; display:flex; flex-direction:column; gap:12px; }
.comp-field { display:flex; flex-direction:column; gap:5px; }
.comp-field label { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:#8A8478; }
.comp-field input[type=text], .comp-field select, .comp-field textarea { background:#181714; border:1px solid #2f2d29; color:#F5EFE6; padding:8px 10px; border-radius:6px; font-size:13px; font-family:inherit; }
.comp-field input[type=text]:focus, .comp-field select:focus, .comp-field textarea:focus { outline:none; border-color:#E04E24; }
.comp-field textarea { resize:vertical; min-height:60px; }
.comp-field-markets { display:flex; gap:12px; flex-wrap:wrap; }
.comp-field-markets label { display:flex; align-items:center; gap:5px; font-size:12px; color:#B7B0A4; text-transform:none; letter-spacing:0; font-weight:400; }
.comp-field-toggles { display:flex; gap:16px; }
.comp-field-toggles label { display:flex; align-items:center; gap:6px; font-size:12px; color:#B7B0A4; text-transform:none; letter-spacing:0; font-weight:400; }
.comp-modal-foot { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:14px 20px; border-top:1px solid #2f2d29; flex-shrink:0; }
.comp-modal-status { flex:1; font-size:11px; color:#8A8478; }
.comp-modal-status.ok { color:#79B08F; }
.comp-modal-status.err { color:#C2694F; }
