/* ============================================================
   Redwood Privacy — Action Center & Opt-Out Strategies Styles
   ============================================================ */

.container-inner {
  max-width: 920px;
  margin: 0 auto;
}

/* ── Notification ────────────────────────────────────────────── */
.boost-notification {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  animation: fadeInDown var(--transition-base) ease;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.boost-icon {
  font-size: var(--text-xl);
  line-height: 1;
}

.boost-text {
  color: #15803d;
  font-weight: 700;
  font-size: var(--text-sm);
}

/* ── Top Privacy Opt-Out Guide & Terminology Banner ──────────── */
.optout-guide-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.optout-guide-banner:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.guide-banner-header {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.guide-banner-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.guide-banner-info {
  flex: 1;
}

.guide-banner-title {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.guide-banner-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.guide-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.guide-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.guide-toggle-btn .chevron-icon {
  transition: transform var(--transition-fast) ease;
}

.guide-definitions-list {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: var(--space-4) var(--space-5);
}

.guide-defs-intro {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.guide-defs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-3);
}

.glossary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.glossary-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.glossary-icon {
  font-size: 20px;
  line-height: 1;
}

.glossary-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
}

.glossary-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.glossary-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 var(--space-2) 0;
}

.glossary-detail-block {
  margin-top: auto;
  border-top: 1px dashed var(--border-subtle);
  padding-top: var(--space-2);
}

.glossary-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.glossary-txt {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 var(--space-2) 0;
}

.glossary-txt.why-txt {
  color: #92400e;
  background: rgba(245, 158, 11, 0.08);
  padding: 4px 6px;
  border-radius: 4px;
  border-left: 2px solid #f59e0b;
  margin-bottom: 0;
}

/* ── Platform Dropdown Selector Bar ──────────────────────────── */
.company-selector-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.company-selector-bar:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.selector-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.selector-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selector-label {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.selector-icon {
  font-size: 16px;
  line-height: 1;
}

.selector-hint {
  font-size: 11px;
  color: var(--text-secondary);
}

.selector-actions-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.selector-dropdown-wrap {
  position: relative;
  min-width: 290px;
}

.company-dropdown-select {
  width: 100%;
  padding: 8px 36px 8px 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='%23475569'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all var(--transition-fast);
}

.company-dropdown-select:hover {
  border-color: var(--blue-600);
}

.company-dropdown-select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.selector-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-prev, .btn-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-nav-prev:hover, .btn-nav-next:hover {
  background: var(--bg-hover);
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.platform-counter {
  font-size: 11px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  padding: 0 4px;
  white-space: nowrap;
}

/* Quick Platform Chips Switcher */
.platform-chips-scroll {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 4px 0 10px 0;
  margin-bottom: var(--space-3);
  scrollbar-width: thin;
}

.platform-chips-scroll::-webkit-scrollbar {
  height: 4px;
}

.platform-chips-scroll::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.platform-chip:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
  transform: translateY(-1px);
}

.platform-chip.active-chip {
  background: #eff6ff;
  border-color: var(--blue-600);
  color: var(--blue-600);
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15);
}

.chip-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
}

.chip-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-grade {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

.chip-check {
  color: #15803d;
  font-weight: 800;
  font-size: 11px;
  margin-left: 2px;
}

/* Overall Watchlist Progress */
.watchlist-progress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.progress-info-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-text-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.progress-boost-badge {
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.progress-track-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.progress-track-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  transition: width 0.5s ease-out;
  border-radius: var(--radius-full);
}

/* ── Alert Cards ─────────────────────────────────────────────── */
.alerts-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-bottom: var(--space-12);
}

.alert-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.alert-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}

.alert-header {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.alert-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.alert-title-wrap {
  flex: 1;
}

.alert-company {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.company-parent-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
}

.grade-badge-lg {
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.alert-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Score Ring */
.grade-ring-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-left: auto;
}

.ring-track-sm {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 6;
}

.ring-fill-sm {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.ring-center-sm {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ring-center-sm .score-num {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}

.ring-center-sm .score-denom {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Card Sections ───────────────────────────────────────────── */
.card-section {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.card-section:first-of-type {
  border-top: none;
}

.card-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.card-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-section-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.action-boost-hint {
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
}

.action-progress-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.action-progress-pill.progress-all-done {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.3);
}

/* ── Action Items (Checkboxes) ───────────────────────────────── */
.action-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.action-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.action-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-default);
}

.action-item.resolved {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.25);
}

.action-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  background: #ffffff;
}

.action-checkbox:hover {
  border-color: var(--blue-600);
}

.action-checkbox:checked {
  background: #22c55e;
  border-color: #22c55e;
}

.action-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.action-content {
  flex: 1;
  min-width: 0;
}

.action-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.action-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  flex: 1;
}

.action-item.resolved .action-title {
  color: var(--text-muted);
  text-decoration: line-through;
}

.action-badges-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Action Category Tags */
.action-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.action-cat-icon {
  font-size: 11px;
  line-height: 1;
}

/* Importance Badges */
.importance-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.imp-high {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.imp-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.imp-low {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ── What You Can Opt Out Of (Definitions & Scope) ───────────── */
.card-scope-section {
  background: #fbfcfe;
}

.scope-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
}

.scope-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.scope-count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-toggle-defs {
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toggle-defs:hover {
  background: var(--bg-hover);
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.scope-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.scope-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.scope-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.scope-pill-icon {
  font-size: 13px;
  line-height: 1;
}

.scope-defs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.scope-def-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.scope-def-card.pulse-highlight {
  animation: pulseGlow 1.5s ease-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); border-color: var(--blue-600); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); border-color: var(--blue-600); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.def-header {
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-2);
}

.def-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 2px;
}

.def-icon {
  font-size: 16px;
  line-height: 1;
}

.def-name {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.def-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: auto;
}

.def-short {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.def-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.def-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.def-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.def-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.def-row.highlight-why {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  padding: 6px 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.def-row.highlight-why .def-label {
  color: #b45309;
}

.def-row.highlight-why .def-text {
  color: #78350f;
  font-weight: 500;
}

/* ── Opt-Out Strategy & Execution Walkthrough ────────────────── */
.card-strategy-section {
  background: var(--bg-surface);
}

.btn-copy-steps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-steps:hover {
  background: var(--bg-hover);
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.optout-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.optout-step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.optout-step-item:hover {
  background: #f1f5f9;
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-text {
  font-size: var(--text-xs);
  color: var(--text-primary);
  line-height: 1.5;
}

.step-arrow {
  color: var(--blue-600);
  font-weight: 800;
  margin: 0 4px;
}

.step-token {
  font-family: inherit;
  font-weight: 700;
  color: #1e293b;
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.step-link {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.step-link:hover {
  color: #1d4ed8;
}

/* ── Card Footer Metadata ────────────────────────────────────── */
.card-footer-meta {
  padding: var(--space-3) var(--space-5);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.meta-left, .meta-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.card-meta-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-meta-link:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

.card-meta-link.primary-meta-link {
  color: var(--blue-600);
  font-weight: 700;
}

/* ── Category Color Palettes ─────────────────────────────────── */
/* AI Model Training */
.cat-ai {
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.25);
  background: rgba(109, 40, 217, 0.06);
}
.cat-ai.scope-pill-btn:hover {
  background: rgba(109, 40, 217, 0.12);
  border-color: #6d28d9;
}

/* Off-Platform Tracking */
.cat-offplatform {
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
  background: rgba(2, 132, 199, 0.06);
}
.cat-offplatform.scope-pill-btn:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284c7;
}

/* Location Tracking */
.cat-location {
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.25);
  background: rgba(234, 88, 12, 0.06);
}
.cat-location.scope-pill-btn:hover {
  background: rgba(234, 88, 12, 0.12);
  border-color: #ea580c;
}

/* Personalized Ads & Profiling */
.cat-ads {
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(217, 119, 6, 0.06);
}
.cat-ads.scope-pill-btn:hover {
  background: rgba(217, 119, 6, 0.12);
  border-color: #d97706;
}

/* Data Broker Sharing & Sale */
.cat-datasharing {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
}
.cat-datasharing.scope-pill-btn:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: #dc2626;
}

/* Biometrics & Media Analysis */
.cat-biometrics {
  color: #db2777;
  border-color: rgba(219, 39, 119, 0.25);
  background: rgba(219, 39, 119, 0.06);
}
.cat-biometrics.scope-pill-btn:hover {
  background: rgba(219, 39, 119, 0.12);
  border-color: #db2777;
}

/* Data Retention & Purge */
.cat-retention {
  color: #4b5563;
  border-color: rgba(75, 85, 99, 0.25);
  background: rgba(75, 85, 99, 0.06);
}
.cat-retention.scope-pill-btn:hover {
  background: rgba(75, 85, 99, 0.12);
  border-color: #4b5563;
}

/* ── Empty State ─────────────────────────────────────────────── */
.all-good-card {
  text-align: center;
  padding: var(--space-10) var(--space-5);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.all-good-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  line-height: 1;
}

.all-good-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.all-good-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Mobile Responsive Overrides ─────────────────────────────── */
@media (max-width: 768px) {
  .scope-defs-container {
    grid-template-columns: 1fr;
  }
  
  .guide-defs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .alert-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .grade-ring-wrap {
    margin-left: 0;
  }

  .guide-banner-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .guide-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .action-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .action-badges-group {
    width: 100%;
    justify-content: space-between;
  }

  .card-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .selector-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .selector-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .selector-dropdown-wrap {
    min-width: 100%;
  }

  .selector-nav-btns {
    justify-content: space-between;
    width: 100%;
  }
}

/* ============================================================
   Phase 2 Behavioral UX Enhancements (Action Center)
   - Estimated Time Pills (~1 min) & +5 pts Reward Pills
   - Direct Privacy Controls Deep-Link Button
   - Floating +5 pts Micro-Animation on Check
   - Platform Hardened Completion Banner & Next Platform Jump
   ============================================================ */

.action-time-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.action-pts-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.24);
  white-space: nowrap;
}

.strategy-header-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-open-settings {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  background: var(--blue-600);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--blue-600);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-open-settings:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.company-hardened-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-left: 4px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hardened-banner-title {
  font-size: var(--text-xs);
  font-weight: 800;
  color: #15803d;
  margin-bottom: 2px;
}

.hardened-banner-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-next-pending {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  background: #16a34a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-next-pending:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.floating-pts-pop {
  position: fixed;
  transform: translate(-50%, 0);
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
  pointer-events: none;
  z-index: 9999;
  animation: floatPtsUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatPtsUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.85);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -34px) scale(0.96);
  }
}

