/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fafbff;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #64748b;
  transition: color 0.2s;
}
.nav-links a:hover { color: #6366f1; }
.nav-cta {
  background: #6366f1; color: #fff !important; padding: 0.5rem 1.2rem;
  border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: #4f46e5; }

/* ===== Hero ===== */
.hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #eef2ff 0%, #fafbff 100%);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 span {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.15rem; color: #64748b; max-width: 580px; margin: 0 auto 2rem;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-primary { background: #6366f1; color: #fff; }
.btn-primary:hover { background: #4f46e5; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.btn-secondary { background: #fff; color: #1a1a2e; border: 1.5px solid #e2e8f0; }
.btn-secondary:hover { border-color: #6366f1; color: #6366f1; }

/* ===== Sections ===== */
.section { padding: 5rem 2rem; }
.section-title {
  text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center; color: #64748b; font-size: 1.05rem; margin-bottom: 3rem; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ===== PDF Editor Promo ===== */
.pdf-promo {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border-radius: 20px; padding: 3rem;
  max-width: 1000px; margin: 0 auto 2rem;
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.pdf-promo-text { flex: 1; min-width: 280px; }
.pdf-promo-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.pdf-promo-text p { opacity: 0.9; margin-bottom: 1.5rem; }
.pdf-promo .btn { background: #fff; color: #6366f1; }
.pdf-promo .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.pdf-features-grid {
  flex: 1; min-width: 280px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.pdf-feat {
  background: rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem;
  text-align: center; font-weight: 600; font-size: 0.9rem;
}
.pdf-feat .icon { font-size: 1.8rem; margin-bottom: 0.3rem; }

/* ===== Plugin Cards ===== */
.plugins-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.plugin-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  border: 1px solid #e8ecf4;
  transition: all 0.25s;
  display: flex; flex-direction: column;
}
.plugin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.1);
  border-color: #c7d2fe;
}
.plugin-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1rem;
}
.plugin-icon.purple { background: #eef2ff; }
.plugin-icon.blue { background: #e0f2fe; }
.plugin-icon.green { background: #ecfdf5; }
.plugin-icon.orange { background: #fff7ed; }
.plugin-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.plugin-card p { color: #64748b; font-size: 0.92rem; flex: 1; margin-bottom: 1.2rem; }
.plugin-price {
  font-size: 1.6rem; font-weight: 800; color: #6366f1; margin-bottom: 1rem;
}
.plugin-price span { font-size: 0.85rem; font-weight: 500; color: #94a3b8; }
.plugin-card .btn { width: 100%; justify-content: center; }

/* ===== Footer ===== */
.footer {
  background: #1a1a2e; color: #94a3b8; padding: 3rem 2rem; text-align: center;
  font-size: 0.9rem;
}
.footer a { color: #a5b4fc; }
.footer a:hover { color: #fff; }

/* ===== PDF Editor Page ===== */
.editor-wrap {
  max-width: 1000px; margin: 0 auto; padding: 6rem 2rem 3rem;
}
.editor-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.editor-tab {
  padding: 0.6rem 1.2rem; border-radius: 8px; border: 1.5px solid #e2e8f0;
  background: #fff; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.editor-tab:hover, .editor-tab.active {
  background: #6366f1; color: #fff; border-color: #6366f1;
}
.editor-panel {
  background: #fff; border-radius: 16px; border: 2px dashed #c7d2fe;
  min-height: 400px; padding: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.drop-zone {
  text-align: center; color: #94a3b8; padding: 3rem;
  cursor: pointer; width: 100%;
}
.drop-zone .icon { font-size: 3rem; margin-bottom: 1rem; }
.drop-zone p { margin-bottom: 0.5rem; }
.drop-zone input[type="file"] { display: none; }
.drop-zone.dragover { background: #eef2ff; border-color: #6366f1; }

.pdf-toolbar {
  display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; width: 100%;
}
.pdf-toolbar .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }

#pdf-canvas-container {
  width: 100%; overflow: auto; background: #f1f5f9; border-radius: 8px;
  min-height: 300px; position: relative;
}
#pdf-canvas-container canvas { display: block; margin: 1rem auto; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }

.text-overlay {
  position: absolute; cursor: move;
  padding: 4px 8px; background: rgba(255,255,200,0.8);
  border: 1px dashed #6366f1; font-size: 14px;
  min-width: 50px; outline: none;
}

/* ===== Mobile ===== */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 1rem 2rem; gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .pdf-promo { flex-direction: column; text-align: center; }
  .ports-grid { grid-template-columns: 1fr !important; }
  .dataflow-canvas-wrap { overflow-x: auto; }
}

/* ===== Network Explorer ===== */
.net-wrap { max-width: 1000px; margin: 0 auto; padding: 6rem 2rem 3rem; }
.net-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.net-subtitle { color: #64748b; margin-bottom: 2rem; }
.net-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.net-tab {
  padding: 0.6rem 1.2rem; border-radius: 8px; border: 1.5px solid #e2e8f0;
  background: #fff; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.net-tab:hover, .net-tab.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.net-section { display: none; }
.net-section.active { display: block; }
.net-search-bar { margin-bottom: 1.5rem; }
.net-search-bar input {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; outline: none; transition: border 0.2s;
}
.net-search-bar input:focus { border-color: #6366f1; }

/* Ports */
.ports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.port-card {
  background: #fff; border-radius: 12px; padding: 1.2rem; border: 1px solid #e8ecf4;
  transition: all 0.2s;
}
.port-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.port-card.risk-high { border-left: 4px solid #ef4444; }
.port-card.risk-medium { border-left: 4px solid #f59e0b; }
.port-card.risk-low { border-left: 4px solid #10b981; }
.port-number { font-size: 1.5rem; font-weight: 800; color: #6366f1; }
.port-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.port-cat { font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.5rem; }
.port-desc { font-size: 0.88rem; color: #64748b; margin-bottom: 0.6rem; }
.port-risk {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px;
}
.port-risk.risk-low { background: #ecfdf5; color: #10b981; }
.port-risk.risk-medium { background: #fffbeb; color: #f59e0b; }
.port-risk.risk-high { background: #fef2f2; color: #ef4444; }

/* Protocols */
.proto-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.proto-btn {
  padding: 0.6rem 1rem; border-radius: 8px; border: 1.5px solid #e2e8f0;
  background: #fff; cursor: pointer; text-align: left; transition: all 0.2s;
}
.proto-btn strong { display: block; font-size: 0.95rem; }
.proto-btn span { font-size: 0.75rem; color: #94a3b8; }
.proto-btn:hover, .proto-btn.active { border-color: #6366f1; background: #eef2ff; }
.proto-detail {
  background: #fff; border-radius: 14px; padding: 2rem; border: 1px solid #e8ecf4;
}
.proto-detail h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.proto-layer {
  display: inline-block; background: #eef2ff; color: #6366f1; padding: 0.2rem 0.7rem;
  border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem;
}
.proto-block { margin-bottom: 1rem; }
.proto-block h4 { font-size: 0.9rem; color: #6366f1; margin-bottom: 0.3rem; }
.proto-block p { font-size: 0.92rem; color: #475569; }
.proto-analogy { background: #fffbeb; padding: 1rem; border-radius: 10px; }
.proto-analogy h4 { color: #f59e0b; }
.proto-placeholder { color: #94a3b8; text-align: center; padding: 2rem; }

/* Processes */
.proc-list { display: flex; flex-direction: column; gap: 0.75rem; }
.proc-card {
  background: #fff; border-radius: 12px; padding: 1.2rem; border: 1px solid #e8ecf4;
}
.proc-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.proc-name { font-size: 0.95rem; font-weight: 700; background: #f1f5f9; padding: 0.2rem 0.6rem; border-radius: 6px; }
.proc-os { font-size: 0.75rem; color: #94a3b8; background: #f8fafc; padding: 0.15rem 0.5rem; border-radius: 4px; }
.proc-safe { font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }
.proc-safe.safe-true { background: #ecfdf5; color: #10b981; }
.proc-safe.safe-false { background: #fef2f2; color: #ef4444; }
.proc-card p { font-size: 0.9rem; color: #64748b; }

/* Data Flow */
.dataflow-controls { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.dataflow-canvas-wrap { text-align: center; margin-bottom: 1.5rem; }
#dataflow-canvas { max-width: 100%; border-radius: 12px; background: #fff; border: 1px solid #e8ecf4; }
.flow-explanation { max-width: 600px; margin: 0 auto; }
.flow-step {
  background: #fff; padding: 1.2rem; border-radius: 12px; border: 1px solid #e8ecf4;
  animation: fadeIn 0.3s ease;
}
.flow-step strong { color: #6366f1; }
.flow-step p { color: #64748b; margin-top: 0.3rem; font-size: 0.92rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Quiz */
.quiz-box { background: #fff; border-radius: 14px; padding: 2rem; border: 1px solid #e8ecf4; max-width: 600px; margin: 0 auto; }
.quiz-question { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2rem; }
.quiz-num { color: #94a3b8; font-weight: 500; margin-right: 0.5rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.quiz-opt {
  padding: 0.75rem 1rem; border-radius: 10px; border: 1.5px solid #e2e8f0;
  background: #fff; cursor: pointer; font-size: 0.95rem; text-align: left;
  font-family: inherit; transition: all 0.2s;
}
.quiz-opt:hover { border-color: #6366f1; background: #eef2ff; }
.quiz-opt.correct { border-color: #10b981; background: #ecfdf5; color: #10b981; font-weight: 600; }
.quiz-opt.wrong { border-color: #ef4444; background: #fef2f2; color: #ef4444; font-weight: 600; }
.quiz-feedback { min-height: 1.5rem; margin-bottom: 0.5rem; }
.quiz-score { text-align: center; margin-top: 1rem; }

/* My Network Tab */
.mynet-tab { border-color: #10b981 !important; color: #10b981; }
.mynet-tab:hover, .mynet-tab.active { background: #10b981 !important; color: #fff !important; border-color: #10b981 !important; }
.mynet-intro { margin-bottom: 1.5rem; }
.mynet-intro h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.mynet-intro p { color: #64748b; font-size: 0.95rem; }

.scan-summary {
  background: #fff; border-radius: 14px; padding: 1.5rem; border: 1px solid #e8ecf4; margin-bottom: 1.5rem;
}
.scan-summary h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.scan-stats { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.scan-stat {
  flex: 1; min-width: 120px; background: #f8faff; border-radius: 10px; padding: 1rem;
  text-align: center; font-size: 0.85rem; color: #64748b; font-weight: 600;
}
.scan-stat-num { font-size: 1.8rem; font-weight: 800; color: #6366f1; }

.scan-section-title { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }

.scan-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.scan-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #fff;
  border-radius: 10px; overflow: hidden; border: 1px solid #e8ecf4;
}
.scan-table th {
  background: #f8faff; padding: 0.6rem 0.75rem; text-align: left;
  font-weight: 700; color: #475569; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.03em; border-bottom: 1px solid #e8ecf4;
}
.scan-table td {
  padding: 0.5rem 0.75rem; border-bottom: 1px solid #f1f5f9; color: #475569;
}
.scan-table tr:hover td { background: #fafbff; }
.scan-table code { background: #f1f5f9; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.82rem; }

.scan-state {
  display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px;
}
.state-established { background: #ecfdf5; color: #10b981; }
.state-listen { background: #eef2ff; color: #6366f1; }
.state-other { background: #f1f5f9; color: #94a3b8; }

/* ===== Username Search ===== */
.usearch-wrap { max-width: 1000px; margin: 0 auto; padding: 6rem 2rem 3rem; }
.usearch-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.usearch-subtitle { color: #64748b; margin-bottom: 2rem; }

.usearch-bar {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
}
.usearch-bar input {
  flex: 1; padding: 0.85rem 1.2rem; border: 2px solid #e2e8f0; border-radius: 12px;
  font-size: 1.1rem; font-family: inherit; font-weight: 600; outline: none;
  transition: border 0.2s;
}
.usearch-bar input:focus { border-color: #6366f1; }
.usearch-bar .btn { font-size: 1.05rem; padding: 0.85rem 2rem; border-radius: 12px; }

.usearch-filters {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem; align-items: center; flex-wrap: wrap;
}
.filter-btn {
  padding: 0.45rem 1rem; border-radius: 8px; border: 1.5px solid #e2e8f0;
  background: #fff; cursor: pointer; font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: #6366f1; }
.filter-btn.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.usearch-progress { margin-left: auto; font-size: 0.85rem; color: #94a3b8; font-weight: 600; }

.usearch-cat {
  font-size: 1rem; color: #64748b; margin: 1.5rem 0 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
}
.usearch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem;
}
.usearch-card {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 1rem; border-radius: 10px; border: 1.5px solid #e8ecf4;
  background: #fff; text-decoration: none; color: inherit; transition: all 0.2s;
}
.usearch-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.usearch-icon { font-size: 1.4rem; flex-shrink: 0; }
.usearch-info { flex: 1; min-width: 0; }
.usearch-info strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usearch-status { font-size: 0.75rem; font-weight: 700; }
.usearch-arrow { color: #c7d2fe; font-size: 1rem; flex-shrink: 0; }

.us-found { border-color: #a7f3d0; background: #f0fdf9; }
.us-found .usearch-status { color: #10b981; }
.us-found .usearch-arrow { color: #10b981; }

.us-notfound { border-color: #fecaca; background: #fef7f7; }
.us-notfound .usearch-status { color: #ef4444; }

.us-checking { border-color: #e2e8f0; }
.us-checking .usearch-status { color: #94a3b8; }

.us-error { border-color: #fde68a; background: #fffdf5; }
.us-error .usearch-status { color: #f59e0b; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.us-checking { animation: pulse 1.2s infinite; }

/* ===== Business Profile Tool ===== */
.bp-wrap { max-width: 1000px; margin: 0 auto; padding: 6rem 2rem 3rem; }
.bp-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.bp-subtitle { color: #64748b; margin-bottom: 2rem; }

.bp-form {
  background: #fff; border-radius: 16px; padding: 2rem; border: 1px solid #e8ecf4; margin-bottom: 2rem;
}
.bp-form h3 { margin-bottom: 1rem; }
.bp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bp-field label { display: block; font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 0.3rem; }
.bp-field input, .bp-field textarea {
  width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 0.92rem; font-family: inherit; outline: none; transition: border 0.2s; resize: vertical;
}
.bp-field input:focus, .bp-field textarea:focus { border-color: #6366f1; }
.bp-field-full { grid-column: 1 / -1; }

.bp-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.bp-tab {
  padding: 0.6rem 1.4rem; border-radius: 8px; border: 1.5px solid #e2e8f0;
  background: #fff; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; font-family: inherit;
}
.bp-tab:hover, .bp-tab.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.bp-section { display: none; }
.bp-section.active { display: block; }

.bp-summary-box {
  background: #f8faff; border-radius: 12px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; border: 1px solid #e8ecf4;
}
.bp-summary-box h3 { margin-bottom: 0.3rem; }
.bp-summary-box p { color: #64748b; font-size: 0.9rem; }
.bp-score-bar { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; }
.bp-score-bar span:nth-child(1) { color: #10b981; }
.bp-score-bar span:nth-child(2) { color: #ef4444; }
.bp-score-bar span:nth-child(3) { color: #94a3b8; }

.bp-progress-bar {
  width: 100%; height: 8px; background: #e2e8f0; border-radius: 8px; margin-top: 0.75rem; overflow: hidden;
}
.bp-progress-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 8px; transition: width 0.3s ease;
}
.bp-progress-text { font-size: 0.82rem; color: #94a3b8; margin-top: 0.3rem; font-weight: 600; }

.bp-status-checking { animation: pulse 1.2s infinite; }
.bp-status-checking .bp-check-status { color: #94a3b8; }

.bp-cat-title { font-size: 1rem; color: #64748b; margin: 1.5rem 0 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

/* Checker Cards */
.bp-checker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.bp-check-card {
  background: #fff; border-radius: 12px; padding: 1rem; border: 1.5px solid #e8ecf4; transition: all 0.2s;
}
.bp-check-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.bp-check-icon { font-size: 1.3rem; }
.bp-search-link { font-size: 0.8rem; padding: 0.35rem 0.8rem; width: 100%; justify-content: center; margin-bottom: 0.5rem; }
.bp-check-actions { display: flex; gap: 0.3rem; }
.bp-mark-btn {
  flex: 1; padding: 0.35rem; border-radius: 6px; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; font-size: 0.72rem; font-weight: 600; font-family: inherit; transition: all 0.15s;
}
.bp-mark-btn.found:hover { background: #ecfdf5; border-color: #10b981; color: #10b981; }
.bp-mark-btn.missing:hover { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.bp-mark-btn.update:hover { background: #fffbeb; border-color: #f59e0b; color: #f59e0b; }
.bp-check-status { font-size: 0.8rem; font-weight: 700; margin-top: 0.4rem; text-align: center; min-height: 1.2rem; }

.bp-status-found { border-color: #a7f3d0; background: #f0fdf9; }
.bp-status-found .bp-check-status { color: #10b981; }
.bp-status-missing { border-color: #fecaca; background: #fef7f7; }
.bp-status-missing .bp-check-status { color: #ef4444; }
.bp-status-update { border-color: #fde68a; background: #fffdf5; }
.bp-status-update .bp-check-status { color: #f59e0b; }

/* Creator Cards */
.bp-creator-card {
  background: #fff; border-radius: 12px; padding: 1.2rem; border: 1px solid #e8ecf4; margin-bottom: 0.75rem;
}
.bp-creator-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.bp-creator-header strong { flex: 1; }
.bp-create-link { font-size: 0.8rem; padding: 0.35rem 1rem; }
.bp-creator-tip { font-size: 0.82rem; color: #64748b; background: #f8faff; padding: 0.5rem 0.75rem; border-radius: 6px; margin-bottom: 0.75rem; }
.bp-creator-copy-wrap { position: relative; }
.bp-creator-text {
  background: #f1f5f9; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.85rem;
  white-space: pre-wrap; word-break: break-word; font-family: 'Inter', sans-serif;
  margin: 0; color: #334155; line-height: 1.6;
}
.bp-copy-btn {
  position: absolute; top: 0.5rem; right: 0.5rem;
  padding: 0.3rem 0.7rem; border-radius: 6px; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; font-size: 0.8rem; font-weight: 600; font-family: inherit;
  transition: all 0.15s;
}
.bp-copy-btn:hover { background: #6366f1; color: #fff; border-color: #6366f1; }

@media (max-width: 768px) {
  .bp-form-grid { grid-template-columns: 1fr; }
  .bp-checker-grid { grid-template-columns: 1fr; }
}

/* ===== Visitor Analytics ===== */
.va-wrap { max-width: 1000px; margin: 0 auto; padding: 6rem 2rem 3rem; }
.va-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.va-subtitle { color: #64748b; margin-bottom: 2rem; }

/* Score Card */
.va-score-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  border: 1px solid #e8ecf4; margin-bottom: 2rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.va-score-ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; overflow: hidden; }
.va-score-ring { width: 120px; height: 120px; transform: rotate(-90deg); display: block; }
.va-score-number {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 1.6rem; font-weight: 800; color: #1a1a2e;
}
.va-score-info { flex: 1; min-width: 200px; }
.va-score-info h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.va-score-info p { font-size: 0.92rem; color: #64748b; margin-bottom: 0.75rem; }
.va-score-breakdown { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.va-bd { font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; }
.va-bd-high { background: #fef2f2; color: #ef4444; }
.va-bd-med { background: #fffbeb; color: #f59e0b; }
.va-bd-low { background: #ecfdf5; color: #10b981; }
.va-score-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Category */
.va-category { margin-bottom: 2rem; }
.va-cat-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.va-cat-icon { font-size: 1.5rem; }
.va-cat-header h2 { font-size: 1.2rem; font-weight: 700; }

/* Items Grid */
.va-items-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem;
}
.va-item {
  background: #fff; border-radius: 12px; padding: 1rem 1.2rem;
  border: 1.5px solid #e8ecf4; display: flex; flex-direction: column;
  gap: 0.3rem; position: relative; transition: all 0.2s;
}
.va-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.va-label { font-size: 0.78rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.03em; }
.va-value { font-size: 0.92rem; font-weight: 600; color: #1a1a2e; word-break: break-all; }

/* Risk colours on cards */
.va-risk-low { border-left: 4px solid #10b981; }
.va-risk-medium { border-left: 4px solid #f59e0b; }
.va-risk-high { border-left: 4px solid #ef4444; }

/* Risk dot */
.va-risk-dot {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 8px; height: 8px; border-radius: 50%;
}
.va-dot-low { background: #10b981; }
.va-dot-medium { background: #f59e0b; }
.va-dot-high { background: #ef4444; }

/* Loading pulse */
.va-loading { animation: pulse 1.2s infinite; }
.va-loading .va-value { color: #94a3b8; }

@media (max-width: 768px) {
  .va-items-grid { grid-template-columns: 1fr; }
  .va-score-card { flex-direction: column; text-align: center; }
  .va-score-actions { justify-content: center; }
  .va-score-breakdown { justify-content: center; }
}
