/* ClientAudit PRO V3 - Premium Stylesheet */
:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent-blue: #0284C7;
  --accent-blue-hover: #0369A1;
  --teal: #0F4C5C;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --radius-lg: 16px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
}

/* Header */
.app-header {
  background: #0B132B;
  border-bottom: 1px solid #1E293B;
  padding: 16px 0;
}
.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  font-size: 26px;
}
.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}
.pro-tag {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.brand-subtitle {
  display: block;
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 2px;
}
.header-badges {
  display: flex;
  gap: 8px;
}
.badge-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Main Container */
.app-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* Audit Hero Card */
.audit-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  text-align: center;
  margin-bottom: 32px;
}
.audit-hero-card h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.audit-hero-card p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 28px;
}
.audit-input-group {
  display: flex;
  max-width: 720px;
  margin: 0 auto 16px;
  gap: 12px;
}
.url-input-wrapper {
  position: relative;
  flex: 1;
}
.url-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}
.url-input-wrapper input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.url-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}
.btn-audit {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-audit:hover {
  background: var(--accent-blue-hover);
}

.sample-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.sample-label {
  color: var(--text-muted);
  font-weight: 600;
}
.sample-btn {
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.sample-btn:hover {
  background: #E2E8F0;
}

/* Scanning Progress */
.scanning-state {
  max-width: 680px;
  margin: 28px auto 0;
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: left;
}
.scanning-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.progress-bar-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  width: 15%;
  height: 100%;
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.scan-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

/* Results Section */
.results-wrapper {
  margin-top: 24px;
}

/* Client Summary Card */
.client-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}
.summary-tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 4px;
}
.client-summary-card h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.client-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.meta-item {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.badge-platform {
  background: #FEF3C7;
  color: #92400E;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.summary-right {
  display: flex;
  align-items: center;
}
.overall-score-pill {
  display: flex;
  align-items: center;
  gap: 16px;
}
.score-circle-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 5px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-big {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.score-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.score-text-summary strong {
  display: block;
  font-size: 15px;
  color: var(--primary);
}
.score-text-summary span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Results Tab Bar */
.results-tab-bar {
  display: flex;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  background: #F1F5F9;
  color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Tab Panes */
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* 5 Pillar Score Circles Grid */
.pillars-score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.pillar-score-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.pillar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  font-weight: 800;
}
.pillar-score-card strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
}
.pillar-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Audit Columns Grid */
.audit-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.audit-col-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.audit-col-card.span-2 {
  grid-column: span 2;
}
.col-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.col-icon {
  font-size: 20px;
}
.col-card-header h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

/* Issue Items */
.issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.issue-card-item {
  background: #FEF2F2;
  border-left: 3px solid #EF4444;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}
.issue-card-item strong {
  display: block;
  font-size: 13px;
  color: #991B1B;
}
.issue-card-item span {
  font-size: 12px;
  color: #7F1D1D;
  display: block;
  margin-top: 2px;
}

/* Passed Items */
.passed-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.passed-item {
  font-size: 12px;
  color: #166534;
  background: #F0FDF4;
  padding: 6px 10px;
  border-radius: 4px;
}

/* Social Footprint Grid */
.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.social-channel-item {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-channel-item.active {
  background: #F0FDF4;
  border-color: #86EFAC;
}
.social-channel-item.missing {
  background: #F8FAFC;
  opacity: 0.6;
}

/* Proposal Tab */
.proposal-studio-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.proposal-toolbar {
  background: #0F172A;
  color: #FFFFFF;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toolbar-title {
  display: block;
  font-weight: 800;
  font-size: 16px;
  color: #38BDF8;
}
.toolbar-sub {
  display: block;
  font-size: 12px;
  color: #94A3B8;
}
.proposal-toolbar-right {
  display: flex;
  gap: 10px;
}
.btn-action-primary {
  background: var(--accent-blue);
  color: #FFFFFF;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn-action-secondary {
  background: #334155;
  color: #FFFFFF;
  border: none;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.btn-action-ghost {
  background: transparent;
  color: #CBD5E1;
  border: 1px solid #475569;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.proposal-settings-drawer {
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.proposal-settings-drawer h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}
.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.s-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.s-field input, .s-field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #FFFFFF;
}
.btn-save-settings {
  background: var(--primary);
  color: #FFFFFF;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.proposal-iframe-container {
  height: 850px;
  width: 100%;
  background: #E2E8F0;
}
.proposal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Redesign Studio Tab */
.redesign-studio-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.template-selector-header {
  margin-bottom: 20px;
}
.template-tabs-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tpl-btn {
  background: #F8FAFC;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tpl-btn:hover {
  border-color: #94A3B8;
}
.tpl-btn.active {
  border-color: var(--accent-blue);
  background: #F0F9FF;
}
.tpl-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  color: var(--accent-blue);
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.tpl-btn strong {
  display: block;
  font-size: 13.5px;
  color: var(--primary);
  margin-bottom: 2px;
}
.tpl-btn small {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.redesign-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 20px;
}
.theme-palette-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.control-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
}
.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.theme-btn.active {
  border-color: #0284C7;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #0284C7;
}
.redesign-download-actions {
  display: flex;
  gap: 10px;
}

.mockup-browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.browser-topbar {
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }
.browser-url-bar {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.prototype-iframe {
  width: 100%;
  height: 720px;
  border: none;
}

/* Outreach Studio Tab */
.outreach-studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}
.outreach-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.outreach-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.outreach-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-blue);
  background: #E0F2FE;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.outreach-badge.green {
  color: #15803D;
  background: #DCFCE7;
}
.outreach-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.outreach-header p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-copy-cta {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.email-preview-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 20px;
}
.email-field {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.email-lbl {
  color: var(--text-muted);
  font-size: 12px;
  margin-right: 6px;
}
.email-body-content {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
  max-height: 380px;
  overflow-y: auto;
}

.followup-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 14px;
  border-radius: 8px;
}
.followup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.btn-copy-mini {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.followup-body {
  font-size: 12px;
  color: #78350F;
  white-space: pre-wrap;
}

/* WhatsApp Card */
.whatsapp-theme-card {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.btn-whatsapp-cta {
  background: #16A34A;
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.btn-whatsapp-cta:hover {
  background: #15803D;
}
.whatsapp-chat-bubble {
  background: #FFFFFF;
  border: 1px solid #DCFCE7;
  border-radius: 12px;
  padding: 18px;
  position: relative;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.08);
  margin-bottom: 16px;
}
.bubble-content {
  white-space: pre-wrap;
  font-size: 12.5px;
  line-height: 1.6;
  color: #1E293B;
  max-height: 400px;
  overflow-y: auto;
}
.chat-timestamp {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #16A34A;
  margin-top: 8px;
  font-weight: 600;
}
.whatsapp-actions-row {
  display: flex;
  justify-content: flex-end;
}
.btn-copy-ghost {
  background: #FFFFFF;
  border: 1px solid #86EFAC;
  color: #15803D;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 992px) {
  .pillars-score-grid, .template-tabs-group, .settings-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audit-columns-grid, .outreach-studio-grid {
    grid-template-columns: 1fr;
  }
  .audit-col-card.span-2 {
    grid-column: span 1;
  }
  .client-summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .redesign-controls-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}



/* ========================================================
   ADVANCED REAL-TIME SEO INTELLIGENCE EXTENSIONS
   ======================================================== */

.engine-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-badge {
  display: inline-block;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.theme-select-wrapper select {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  outline: none;
  cursor: pointer;
  height: 52px;
}

.fresh-audit-opt {
  margin-top: 14px;
  font-size: 13px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fresh-audit-opt input[type="checkbox"] {
  cursor: pointer;
  accent-color: #2563EB;
}

.recent-audits-bar {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.recent-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
}
.recent-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recent-pill-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.recent-pill-btn:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

/* Session Ribbon */
.session-ribbon {
  background: #0B132B;
  color: #F8FAFC;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid #1E293B;
}
.session-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.session-id-line {
  font-size: 12.5px;
  color: #CBD5E1;
}
.session-sources-line {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
}
.source-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  color: #34D399;
  margin-right: 4px;
}
.session-actions {
  display: flex;
  gap: 8px;
}
.btn-action-sm {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-action-sm:hover {
  background: #334155;
}
.btn-action-sm.primary {
  background: #2563EB;
  border-color: #1D4ED8;
  color: #FFF;
}
.btn-action-sm.primary:hover {
  background: #1D4ED8;
}

/* 5 Pillar Cards Grid */
.pillar-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
}
.pillar-val {
  font-size: 18px;
  font-weight: 900;
  color: #0F172A;
}
.pillar-bar {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 4px;
  margin: 10px 0 8px;
  overflow: hidden;
}
.pillar-bar-fill {
  height: 100%;
  width: 0%;
  background: #2563EB;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.pillar-desc {
  font-size: 11px;
  color: #64748B;
  display: block;
}

/* Issues Counters Ribbon */
.issues-counters-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.cnt-item {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cnt-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.cnt-item strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 2px;
}
.cnt-item span {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
}
.cnt-item.crit strong { color: #EF4444; }
.cnt-item.crit { border-color: rgba(239, 68, 68, 0.3); }
.cnt-item.high strong { color: #F97316; }
.cnt-item.high { border-color: rgba(249, 115, 22, 0.3); }
.cnt-item.med strong { color: #F59E0B; }
.cnt-item.med { border-color: rgba(245, 158, 11, 0.3); }
.cnt-item.low strong { color: #3B82F6; }
.cnt-item.low { border-color: rgba(59, 130, 246, 0.3); }
.cnt-item.passed strong { color: #10B981; }
.cnt-item.passed { border-color: rgba(16, 185, 129, 0.3); }

/* Filter Buttons */
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  background: #E2E8F0;
}
.filter-btn.active {
  background: #0F172A;
  color: #FFF;
  border-color: #0F172A;
}

/* Issues Cards */
.issue-item-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #CBD5E1;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.issue-item-card.sev-critical { border-left-color: #EF4444; }
.issue-item-card.sev-high { border-left-color: #F97316; }
.issue-item-card.sev-medium { border-left-color: #F59E0B; }
.issue-item-card.sev-low { border-left-color: #3B82F6; }

.issue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.issue-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sev-badge {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.sev-badge.CRITICAL { background: #FEF2F2; color: #EF4444; border: 1px solid #FCA5A5; }
.sev-badge.HIGH { background: #FFF7ED; color: #EA580C; border: 1px solid #FDBA74; }
.sev-badge.MEDIUM { background: #FFFBEB; color: #D97706; border: 1px solid #FCD34D; }
.sev-badge.LOW { background: #EFF6FF; color: #2563EB; border: 1px solid #93C5FD; }

.cat-badge {
  background: #F1F5F9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.priority-badge {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.issue-item-card h4 {
  margin: 0;
  font-size: 15px;
  color: #0F172A;
}
.issue-body p {
  margin: 4px 0;
  font-size: 13px;
  color: #475569;
}
.affected-urls-box {
  margin-top: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
}
.affected-urls-box ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.affected-urls-box li {
  margin-bottom: 4px;
}
.affected-urls-box a {
  color: #2563EB;
  text-decoration: none;
  word-break: break-all;
}

/* Passed Card */
.passed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.passed-icon {
  background: #10B981;
  color: #FFF;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}
.passed-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #166534;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
  background: #FFF;
}
.data-table th {
  background: #F8FAFC;
  padding: 12px 14px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
}
.data-table tr:hover td {
  background: #F8FAFC;
}
.table-link {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}
.badge-ok {
  background: #DEF7EC;
  color: #03543F;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.badge-warn {
  background: #FEF08A;
  color: #854D0E;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.badge-err {
  background: #FDE8E8;
  color: #9B1C1C;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.badge-intent {
  background: #EFF6FF;
  color: #1E40AF;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.api-req {
  color: #94A3B8;
  font-size: 11px;
  font-style: italic;
}

/* Cards & Info Grids */
.tech-grid, .onpage-summary-grid, .schema-grid, .transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.info-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px;
}
.info-card h4 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 15px;
  color: #0F172A;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 8px;
}
.data-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid #F8FAFC;
}
.data-row span {
  color: #64748B;
}
.data-row strong {
  color: #0F172A;
}
.api-status-notice {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
}

/* CWV Cards */
.cwv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.cwv-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.cwv-card span {
  display: block;
  font-size: 11px;
  color: #64748B;
  font-weight: 700;
  margin-bottom: 4px;
}
.cwv-card strong {
  font-size: 18px;
  color: #0F172A;
  font-weight: 800;
}

/* Competitor Box */
.competitor-input-box {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.competitor-input-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14px;
}
.competitor-results {
  margin-top: 20px;
}
.comp-table-wrap {
  margin-top: 12px;
}

/* Warning blocks */
.warn-block {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
}
.warn-block h4 {
  color: #B45309;
  border: none;
  padding: 0;
  margin-bottom: 8px;
}
.warn-block ul {
  padding-left: 20px;
  font-size: 12.5px;
  color: #78350F;
}

.empty-msg {
  padding: 30px;
  text-align: center;
  color: #64748B;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px dashed #CBD5E1;
}
