:root {
  --bg: #050914;
  --bg-elevated: #0b1224;
  --surface: #0f172a;
  --surface-2: #152038;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(96, 165, 250, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --indigo: #6366f1;
  --accent: #10b981;
  --danger: #ef4444;
  --warn: #f59e0b;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(59, 130, 246, 0.22), transparent 65%),
    radial-gradient(600px 380px at 85% 15%, rgba(16, 185, 129, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 9, 20, 0.84);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.logo span.brand-accent {
  color: #60a5fa;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a:not(.btn),
.nav-links button.link-btn {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover,
.nav-links button.link-btn:hover {
  color: var(--text);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.44);
}

.btn-accent {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022c22 !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.28);
}

.btn-accent:hover {
  filter: brightness(1.06);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text) !important;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
}

/* Hero */
.hero {
  padding: 72px 0 46px;
  text-align: center;
  scroll-margin-top: 84px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.34);
  margin-bottom: 20px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  margin: 0 auto 18px;
  max-width: 860px;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(95deg, #ffffff 10%, #93c5fd 60%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 720px;
  margin: 0 auto 30px;
}

/* Scanner Bar */
.scan-bar {
  display: flex;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto 14px;
  background: rgba(15, 23, 42, 0.92);
  padding: 8px;
  border-radius: 15px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.scan-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
}

.scan-bar input::placeholder {
  color: #64748b;
}

.scan-hints {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}

.scan-hints button {
  background: none;
  border: none;
  color: #93c5fd;
  cursor: pointer;
  font-size: 13px;
  padding: 0 5px;
  text-decoration: underline;
}

/* Trust & Standards Strip */
.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 24px auto 0;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
}

.trust-chip b {
  color: var(--accent);
}

/* Scan Loader Steps */
.scan-loader {
  display: grid;
  gap: 10px;
  padding: 6px 0;
}

.loader-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.loader-step.active {
  color: #93c5fd;
  font-weight: 600;
}

.loader-step.done {
  color: #34d399;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(147, 197, 253, 0.3);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Cards & Results */
.results-shell {
  text-align: left;
  margin-top: 28px;
}

.card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.error-card {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.score-big {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  min-width: 112px;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 2px solid var(--primary);
}

.score-big span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}

.score-good { border-color: var(--accent); color: #34d399; }
.score-warn { border-color: var(--warn); color: #fbbf24; }
.score-bad { border-color: var(--danger); color: #f87171; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.pillar-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 15px;
}

.pillar-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pillar-val {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.meter {
  height: 7px;
  background: #070d1b;
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Issues */
.issue-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px;
  margin-bottom: 12px;
}

.issue-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sev {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
}

.sev-critical { background: #dc2626; }
.sev-high { background: #ea580c; }
.sev-medium { background: #d97706; }
.sev-low { background: #2563eb; }

.std-tag {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

.risk-line {
  font-size: 13px;
  color: #cbd5e1;
  margin: 6px 0 0;
}

.code-wrap {
  position: relative;
  margin-top: 10px;
}

pre.code-snippet {
  background: #050811;
  border: 1px solid #1e293b;
  color: #bfdbfe;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
}

.copy-mini {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(30, 41, 59, 0.92);
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.copy-mini:hover {
  border-color: var(--primary);
  color: #fff;
}

.ai-fix-box {
  margin-top: 10px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}

.ai-fix-box p {
  margin: 6px 0;
  color: #e2e8f0;
}

.locked-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 14px;
  padding: 24px;
  margin-top: 16px;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Sections */
.section {
  padding: 64px 0;
  scroll-margin-top: 84px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(5, 9, 20, 0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-kicker {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 8px;
}

.section-title {
  text-align: center;
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 38px;
  max-width: 680px;
  font-size: 16px;
}

/* 3-Step Workflow Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Comparison Table */
.compare-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(21, 32, 56, 0.7);
}

.compare-table th.col-us,
.compare-table td.col-us {
  background: rgba(37, 99, 235, 0.12);
  color: #fff;
  font-weight: 600;
}

.compare-table th.col-us {
  color: #93c5fd;
}

.chk-yes { color: #34d399; font-weight: 700; }
.chk-no { color: #f87171; }
.chk-warn { color: #fbbf24; }

/* ROI Banner */
.roi-banner {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.32);
  text-align: center;
  font-size: 14px;
  color: #d1fae5;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), var(--surface) 45%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 24px 54px rgba(37, 99, 235, 0.18);
}

.price-tag {
  font-size: 40px;
  font-weight: 800;
  margin: 10px 0 4px;
  letter-spacing: -0.03em;
}

.price-tag span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.price-note {
  font-size: 12.5px;
  color: #34d399;
  font-weight: 600;
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  flex: 1;
}

.features-list li {
  padding: 6px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.features-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.guarantee-strip {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details.faq-acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

details.faq-acc[open] {
  border-color: var(--border-strong);
}

details.faq-acc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq-acc summary::-webkit-details-marker {
  display: none;
}

details.faq-acc summary::after {
  content: "+";
  color: #60a5fa;
  font-size: 20px;
  font-weight: 500;
}

details.faq-acc[open] summary::after {
  content: "−";
}

details.faq-acc p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Forms & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid #334155;
  color: var(--text);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.report-summary {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  text-align: left;
}

.faq-section {
  text-align: left;
  margin-top: 44px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.seo-crosslinks {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .scan-bar {
    flex-direction: column;
  }
  .hero {
    padding-top: 46px;
  }
}

/* Floating Gemini Support Chat Widget */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
}

.chat-fab {
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.48);
  transition: transform 0.15s ease;
}

.chat-fab:hover {
  transform: translateY(-2px);
}

.chat-panel {
  width: min(370px, calc(100vw - 32px));
  height: 490px;
  background: var(--surface);
  border: 1px solid #334155;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.chat-sub {
  font-size: 12px;
  color: var(--muted);
}

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.chat-close:hover {
  color: var(--text);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
}

.chat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 12px 8px;
}

.chat-chips button {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.chat-chips button:hover {
  background: rgba(59, 130, 246, 0.28);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.chat-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid #334155;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
  outline: none;
}

/* Public Report Posture Chips & Locked Rows */
.posture-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}

.locked-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  font-size: 13px;
}

/* Daily Web CTI & Critical CVE Radar */
.cti-meta-line {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.cti-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cti-tab {
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.cti-tab:hover {
  border-color: #60a5fa;
  color: #fff;
}

.cti-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #fff;
}

.cti-cnt {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.cti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.cti-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border);
  border-top: 3px solid #ef4444;
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cti-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.45);
}

.cti-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cti-cve-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 800;
  color: #93c5fd;
  text-decoration: none;
}

.cti-cve-id:hover {
  text-decoration: underline;
}

.cti-stack-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  color: #c7d2fe;
}

.cti-stack-pill.stack-php { background: rgba(129, 140, 248, 0.2); color: #c7d2fe; }
.cti-stack-pill.stack-java { background: rgba(249, 115, 22, 0.2); color: #fdba74; }
.cti-stack-pill.stack-js { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.cti-stack-pill.stack-dotnet { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.cti-stack-pill.stack-cms { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.cti-stack-pill.stack-infra { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.cti-kev-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.cti-cvss {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  margin-left: auto;
}

.cti-title {
  margin: 2px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.cti-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cti-action {
  margin: 0;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  border-left: 2px solid #10b981;
  padding: 6px 9px;
  border-radius: 6px;
}

.cti-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94a3b8;
  gap: 8px;
}

.cti-foot a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cti-foot a:hover {
  text-decoration: underline;
}

/* Top-Right Navbar Auth & Account Dropdown */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav-guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-menu {
  position: relative;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--text);
  padding: 5px 11px 5px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-user-pill:hover {
  border-color: #60a5fa;
  background: rgba(30, 41, 59, 0.95);
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-user-email {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-plan-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  text-transform: uppercase;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown a,
.nav-dropdown button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(59, 130, 246, 0.14);
  color: #ffffff;
}

.nav-dropdown-logout {
  color: #fca5a5 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
  margin-top: 4px;
  padding-top: 10px !important;
}

/* Auth Modal */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.auth-modal-card {
  width: 100%;
  max-width: 430px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 24px 26px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.auth-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-modal-close {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}

.auth-mode-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.auth-mode-tab.active {
  background: #2563eb;
  color: #ffffff;
}

@media (max-width: 900px) {
  .nav-user-email {
    display: none;
  }
}
