/* ==========================================================================
   V2F SOLUTIONS - WEBSITE AUDIT ENGINE STYLESHEET
   Proprietary 6-Pillar Digital Legitimacy & Technical Audit Tool
   Design System: Dark Space Theme, Glowing Accents, Clean Glass Cards
   ========================================================================== */

/* --- Standalone Minimal Header & Footer --- */
.audit-standalone-header {
  width: 100%;
  background: rgba(8, 7, 28, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.audit-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visit-v2f-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.visit-v2f-btn:hover {
  background: rgba(91, 216, 255, 0.1);
  border-color: var(--v2f-cyan-glow);
  color: var(--v2f-cyan-glow);
  transform: translateY(-1px);
}

.audit-standalone-footer {
  width: 100%;
  background: #08071c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.audit-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.audit-footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.audit-footer-right {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
}

/* --- Audit Layout & Containers --- */
.audit-page-wrap {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 60px 0 100px;
  background: radial-gradient(circle at 50% 0%, rgba(28, 100, 242, 0.12) 0%, rgba(8, 7, 28, 0) 70%),
              radial-gradient(circle at 85% 30%, rgba(91, 216, 255, 0.08) 0%, rgba(8, 7, 28, 0) 50%);
}

.audit-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91, 216, 255, 0.1);
  border: 1px solid rgba(91, 216, 255, 0.25);
  color: var(--v2f-cyan-glow);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.audit-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.audit-hero h1 .highlight-cyan {
  color: var(--v2f-cyan-glow);
  background: linear-gradient(135deg, #5bd8ff 0%, #4d61d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.audit-hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 760px;
  margin: 0 auto 32px;
}

.audit-trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 36px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.audit-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audit-trust-item svg {
  color: var(--v2f-cyan-glow);
  flex-shrink: 0;
}

/* --- Mode Switcher Tabs --- */
.audit-mode-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 40px;
  gap: 8px;
}

.audit-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audit-tab-btn:hover {
  color: #fff;
}

.audit-tab-btn.active {
  background: var(--v2f-blue-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(77, 97, 214, 0.35);
}

.audit-tab-btn .badge-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

/* --- Card Shell --- */
.audit-card-shell {
  max-width: 860px;
  margin: 0 auto;
  background: #0f0d2b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(91, 216, 255, 0.08);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.audit-card-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4d61d6, #5bd8ff, #ee7811);
}

/* --- Quick Scan Bar --- */
.quick-scan-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-scan-input-group {
  display: flex;
  gap: 12px;
}

.audit-url-input-wrap {
  position: relative;
  flex: 1;
}

.audit-url-input-wrap svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
}

.audit-url-input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.25s ease;
}

.audit-url-input:focus {
  outline: none;
  border-color: var(--v2f-cyan-glow);
  box-shadow: 0 0 0 4px rgba(91, 216, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.audit-url-input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  animation: inputShake 0.35s ease-in-out;
}

.audit-url-input.is-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* Live DNS Verification Feedback */
.url-validation-feedback {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 10px;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  transition: all 0.2s ease;
}

.url-validation-feedback.show {
  display: flex;
}

.url-validation-feedback.checking {
  color: #94a3b8;
}

.url-validation-feedback.valid {
  color: #34d399;
  font-weight: 500;
}

.url-validation-feedback.invalid {
  color: #f87171;
  font-weight: 500;
}

.url-validation-feedback .feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.dns-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #5bd8ff;
  border-radius: 50%;
  animation: dnsSpin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

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

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.audit-submit-btn {
  height: 56px;
  padding: 0 32px;
  background: linear-gradient(135deg, #ee7811 0%, #ff9330 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(238, 120, 17, 0.35);
}

.audit-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(238, 120, 17, 0.45);
}

.quick-scan-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qs-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.qs-feat-icon {
  color: var(--v2f-cyan-glow);
  font-size: 16px;
  margin-top: 1px;
}

/* --- Multi-Step Wizard Progress Bar --- */
.wizard-progress-header {
  margin-bottom: 36px;
}

.wizard-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 16px;
}

.wizard-progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}

.wizard-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--v2f-blue-primary), var(--v2f-cyan-glow));
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 14%;
}

.wizard-step-node {
  position: relative;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f0d2b;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wizard-step-node.active {
  border-color: var(--v2f-cyan-glow);
  color: #fff;
  background: #17153a;
  box-shadow: 0 0 16px rgba(91, 216, 255, 0.4);
}

.wizard-step-node.completed {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.wizard-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.wizard-pillar-badge {
  color: var(--v2f-cyan-glow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Wizard Questions & Step Views --- */
.wizard-step {
  display: none;
  animation: fadeInStep 0.35s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-question-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.step-question-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Form Fields for Step 1 */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: space-between;
}

.field-label span.req {
  color: var(--v2f-orange-accent);
}

.field-input, .field-select {
  height: 50px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
}

.field-input:focus, .field-select:focus {
  outline: none;
  border-color: var(--v2f-cyan-glow);
  box-shadow: 0 0 0 3px rgba(91, 216, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.field-select option {
  background: #12102e;
  color: #fff;
}

/* Radio Card Options for Rubric Questions */
.rubric-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.rubric-option-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.rubric-option-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(91, 216, 255, 0.3);
  transform: translateY(-1px);
}

.rubric-option-card.selected {
  background: rgba(77, 97, 214, 0.12);
  border-color: var(--v2f-cyan-glow);
  box-shadow: 0 0 0 1px var(--v2f-cyan-glow),
              0 8px 24px rgba(77, 97, 214, 0.2);
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.rubric-option-card.selected .option-badge {
  background: var(--v2f-cyan-glow);
  color: #08071c;
  border-color: var(--v2f-cyan-glow);
}

.option-content {
  flex: 1;
}

.option-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}

.option-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.rubric-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Wizard Button Nav */
.wizard-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wizard-back-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.wizard-next-btn {
  background: linear-gradient(135deg, var(--v2f-blue-primary), #6878d6);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(77, 97, 214, 0.3);
}

.wizard-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 97, 214, 0.45);
}

.wizard-next-btn.finish {
  background: linear-gradient(135deg, #ee7811 0%, #ff9330 100%);
  box-shadow: 0 4px 16px rgba(238, 120, 17, 0.35);
}

.wizard-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --- Scanning / Analyzing State --- */
.audit-scanner-modal {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.scanner-circle-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}

.scanner-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.scanner-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.scanner-progress-circle {
  fill: none;
  stroke: url(#cyanBlueGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.2s ease;
}

.scanner-percent-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.scanner-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.scanner-subline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

/* Terminal Console */
.audit-terminal {
  background: #08071c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #9adbff;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 160px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-line {
  opacity: 0;
  animation: fadeInLine 0.25s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes fadeInLine {
  to { opacity: 1; }
}

.terminal-line .status-tag {
  color: #10b981;
  font-weight: 600;
}

/* ==========================================================================
   REPORT VIEW
   ========================================================================== */
.audit-report-container {
  display: none;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  animation: fadeInReport 0.5s ease;
}

@keyframes fadeInReport {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Report Action Bar */
.report-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.report-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
}

.report-back-link:hover {
  color: var(--v2f-cyan-glow);
}

.report-button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-report-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-report-tool.print {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-report-tool.print:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-report-tool.share {
  background: rgba(91, 216, 255, 0.1);
  border: 1px solid rgba(91, 216, 255, 0.25);
  color: var(--v2f-cyan-glow);
}

.btn-report-tool.share:hover {
  background: rgba(91, 216, 255, 0.2);
}

.btn-report-tool.primary-cta {
  background: linear-gradient(135deg, #ee7811, #ff9330);
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(238, 120, 17, 0.35);
}

/* Report Header Card */
.report-header-card {
  background: linear-gradient(135deg, #12102e 0%, #0d0b26 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.report-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4d61d6, #5bd8ff, #ee7811);
}

.report-brand-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.report-brand-meta .badge-secp {
  background: rgba(91, 216, 255, 0.1);
  color: var(--v2f-cyan-glow);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
}

.report-target-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.report-target-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--v2f-cyan-glow);
  text-decoration: underline;
  margin-bottom: 16px;
}

.report-verdict-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
}

/* Score Circle Gauge */
.report-score-gauge-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-svg-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 12px;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-number {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.gauge-out-of {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.grade-badge-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grade-a { background: rgba(16, 185, 129, 0.18); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.grade-b { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.grade-c { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.grade-d { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* --- 6 Pillars Performance Grid --- */
.report-section-head {
  margin-bottom: 20px;
}

.report-section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.report-section-head p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.pillars-score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.pillar-card {
  background: #12102e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
}

.pillar-card:hover {
  border-color: rgba(91, 216, 255, 0.3);
  transform: translateY(-2px);
}

.pillar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.pillar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-icon {
  font-size: 20px;
}

.pillar-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.pillar-score-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.pillar-meter-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-bottom: 14px;
  overflow: hidden;
}

.pillar-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

.pillar-desc-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.pillar-rec-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--v2f-cyan-glow);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* --- Critical Red Flags Alert Box --- */
.red-flags-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 36px;
}

.red-flags-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.red-flags-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f87171;
}

.red-flags-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.red-flag-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(239, 68, 68, 0.05);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.red-flag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-top: 6px;
  flex-shrink: 0;
}

/* --- 30-Day Remediation Roadmap --- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.roadmap-card {
  background: #12102e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}

.roadmap-week-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--v2f-cyan-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.roadmap-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.roadmap-bullet-list {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  padding-left: 18px;
}

.roadmap-bullet-list li {
  margin-bottom: 6px;
}

/* --- V2F Solutions Remediation CTA Banner --- */
.remediation-cta-banner {
  background: radial-gradient(circle at 10% 50%, rgba(91, 216, 255, 0.15) 0%, rgba(8, 7, 28, 0) 60%),
              linear-gradient(135deg, #17153a 0%, #0d0b26 100%);
  border: 1px solid rgba(91, 216, 255, 0.25);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.remediation-cta-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.remediation-cta-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.6;
}

.remediation-cta-action {
  flex-shrink: 0;
}

/* --- Embed Mode & Instructions --- */
.audit-embed-info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  margin-top: 48px;
  text-align: center;
}

.audit-embed-code-snippet {
  background: #08071c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  color: #9adbff;
  display: inline-block;
  margin-top: 12px;
  user-select: all;
}

/* --- Modal Booking Popup --- */
.strategy-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 7, 28, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.strategy-modal-backdrop.open {
  display: flex;
}

.strategy-modal-content {
  background: #12102e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Toast Message */
.audit-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.audit-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PRINT / PDF EXPORT STYLES (EXACT DARK WEBSITE THEME + WATERMARK)
   ========================================================================== */
.pdf-watermark-layer {
  display: none;
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html,
  body {
    background: #08071c !important;
    background-color: #08071c !important;
    color: #e2e8f0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .top-notice-wrap,
  .navbar,
  .footer,
  .audit-trust-strip,
  .audit-mode-tabs,
  .report-action-bar,
  .remediation-cta-banner,
  .audit-embed-info-box,
  .strategy-modal-backdrop,
  .audit-toast,
  .visit-v2f-btn,
  .audit-standalone-footer {
    display: none !important;
  }

  .audit-standalone-header {
    background: #08071c !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 28px !important;
    position: relative !important;
  }

  .audit-page-wrap {
    padding: 18px 28px 44px !important;
    background: #08071c !important;
    background-color: #08071c !important;
  }

  .container,
  .audit-report-container {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Keep exact card aesthetics & prevent mid-card page splits */
  .report-header-card,
  .telemetry-card,
  .pillar-card,
  .red-flags-card,
  .roadmap-card {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    box-shadow: none !important;
  }

  .report-header-card {
    padding: 24px !important;
    margin-bottom: 20px !important;
  }

  .telemetry-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }

  .pillars-score-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  /* Full-page repeating watermark on every PDF page */
  .pdf-watermark-layer {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    overflow: hidden !important;
  }

  .pdf-watermark-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transform: rotate(-32deg);
    opacity: 0.085;
    user-select: none;
  }

  .pdf-watermark-logo {
    width: 260px !important;
    height: auto !important;
    filter: brightness(1.4) contrast(1.1);
  }

  .pdf-watermark-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #5bd8ff !important;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .pdf-watermark-footer {
    position: fixed;
    bottom: 10px;
    left: 28px;
    right: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
  }
}

/* ==========================================================================
   LIVE TECHNICAL TELEMETRY GRID STYLES
   ========================================================================== */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.telemetry-card {
  background: #12102e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.telemetry-card:hover {
  background: #17153d;
  border-color: rgba(91, 216, 255, 0.3);
  transform: translateY(-2px);
}

.telemetry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.telemetry-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pass { background: rgba(16, 185, 129, 0.18); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warn { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-fail { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.telemetry-main-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.telemetry-main-val span.sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.telemetry-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.telemetry-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.telemetry-detail-row span.label {
  color: rgba(255, 255, 255, 0.55);
}

.telemetry-detail-row span.val {
  color: #9adbff;
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .report-header-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .report-verdict-text {
    margin: 0 auto;
  }

  .pillars-score-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .remediation-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .quick-scan-input-group {
    flex-direction: column;
  }

  .quick-scan-features {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .audit-card-shell {
    padding: 24px 16px;
  }
}
