:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #00ff88;
  --error-color: #ff4444;
  --warning-color: #ffaa00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
}

@keyframes alertFlashRed {
  0% {
    background-color: var(--bg-color);
  }
  25% {
    background-color: rgba(255, 68, 68, 0.22);
  }
  100% {
    background-color: var(--bg-color);
  }
}

body.alert-flash--red {
  animation: alertFlashRed 1.1s ease-out;
}

#app {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.app-header h1 {
  font-size: 1.5rem;
  color: var(--accent-color);
  white-space: nowrap;
}
.open-source-link {
  margin-left: auto;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.open-source-link:hover,
.open-source-link:focus-visible {
  color: var(--accent-color);
  outline: 1px solid rgba(0, 255, 136, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 0.5rem;
  cursor: pointer;
  margin: 0.5rem;
  transition: opacity 0.2s;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  opacity: 0.8;
}

button:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.main-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: justify-content 0.3s ease;
}

/* Center main content when sponsor sidebar is hidden */
body.sponsor-sidebar-hidden .main-layout {
  justify-content: center;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  margin: 0 1rem;
  max-width: calc(100vw - 2rem);
}

.app-footer__note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.app-footer__note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.video-container {
  flex: 1 1 0;
  min-width: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--accent-color);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #000;
}

#video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#detection-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.status-chip {
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-chip__main {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-chip__icons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
}

.controls-panel {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.subtle-note {
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

#reference-status {
  white-space: pre-line;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.button-group button {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.settings-btn {
  width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.privacy-notice {
  margin-top: 0.25rem;
}

.clear-data-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.clear-data-link:hover,
.clear-data-link:focus-visible {
  color: rgba(255, 255, 255, 0.7);
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}

.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
  max-width: 400px;
  z-index: 1000;
}

.toast.show {
  display: block;
}

.toast--error {
  background-color: var(--error-color);
  color: white;
}

.toast--success {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.toast--warning {
  background-color: var(--warning-color);
  color: #000;
}

.update-toast {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.update-toast__text {
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.update-toast__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.update-toast__btn {
  margin: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
}

.update-toast__btn--secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.modal {
  position: fixed;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1100;
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  width: min(520px, 100%);
  max-height: min(80vh, 680px);
  overflow: auto;
  background-color: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.6);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal__title {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.modal__close {
  margin: 0;
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
}

.modal__body {
  padding: 1rem;
}

.settings-section__title {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.settings-group {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.settings-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.settings-select,
.settings-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
}
.settings-select:focus-visible,
.settings-input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.settings-row__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.settings-help {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

.model-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.model-switch__label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

.model-switch__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.model-switch__control input {
  width: 44px;
  height: 24px;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.model-switch__control input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.model-switch__control input:checked {
  background-color: rgba(0, 255, 136, 0.35);
  border-color: rgba(0, 255, 136, 0.5);
}

.model-switch__slider {
  position: absolute;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.model-switch__control input:checked + .model-switch__slider {
  transform: translateX(20px);
}

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

/* Sponsorship footer link */
.app-footer__sponsorship {
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-footer__sponsorship a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.app-footer__sponsorship a:hover,
.app-footer__sponsorship a:focus-visible {
  color: var(--accent-color);
  outline: none;
}

.app-footer__sponsorship a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.app-footer__sponsorship a span {
  text-decoration: none;
  margin-right: 0.25rem;
}

.app-footer__sponsorship a:hover,
.app-footer__sponsorship a:focus-visible {
  color: var(--accent-color);
  outline: none;
}

/* Support section in settings */
.support-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.support-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.support-links {
  display: flex;
  gap: 1rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.support-link:hover,
.support-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--accent-color);
  outline: none;
  transform: translateY(-1px);
}

.support-link--small {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.support-link--email {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
}

.support-link--email:hover,
.support-link--email:focus-visible {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--accent-color);
}

.support-link__emoji {
  font-size: 1.1rem;
}

.support-link__text {
  flex: 1;
}

#ghost-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Sponsor sidebar and cards */
.sponsor-sidebar {
  position: fixed;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  max-height: 80vh;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.sponsor-sidebar.sponsor-container--visible,
.sponsor-footer.sponsor-container--visible {
  opacity: 1;
  pointer-events: auto;
}

.sponsor-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 5.5rem;
  z-index: 800;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  pointer-events: none;
}

.sponsor-footer.sponsor-container--visible {
  opacity: 1;
  pointer-events: auto;
}

.sponsor-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.sponsor-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.sponsor-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.sponsor-card__logo-container {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.sponsor-card__logo {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.sponsor-card__company-info {
  width: 100%;
}

.sponsor-card__company-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.125rem 0;
  line-height: 1.1;
  word-break: break-word;
}

.sponsor-card__promo-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.65rem;
  margin-top: 0.25rem;
}

.sponsor-card__promo-label {
  color: rgba(255, 255, 255, 0.6);
}

.sponsor-card__promo-value {
  color: var(--accent-color);
  font-weight: 500;
  background: rgba(0, 255, 136, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
  word-break: break-all;
}

.sponsor-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sponsor-card__headline {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}

.sponsor-card__description {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
  display: none; /* Hide description on narrow layout */
}

.sponsor-card__footer {
  margin-top: 0.125rem;
}

.sponsor-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 0.375rem;
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.sponsor-card__cta:hover,
.sponsor-card__cta:focus-visible {
  background: rgba(0, 255, 136, 0.25);
  border-color: var(--accent-color);
  outline: none;
  transform: translateY(-1px);
}

.sponsor-card__cta-icon {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Empty state */
.sponsor-empty-state {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.sponsor-empty-state__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

.sponsor-empty-state__description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

.sponsor-empty-state__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 0.5rem;
  color: var(--accent-color);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sponsor-empty-state__cta:hover,
.sponsor-empty-state__cta:focus-visible {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--accent-color);
  outline: none;
}

.sponsor-empty-state__cta-icon {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Sponsorship section (support links) */
.sponsorship-section {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sponsorship-section__header {
  text-align: center;
}

.sponsorship-section__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.1;
  word-break: break-word;
}

.sponsorship-section__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sponsorship-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sponsorship-link:hover,
.sponsorship-link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--accent-color);
  outline: none;
}

.sponsorship-link--email {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.2);
}

.sponsorship-link--email:hover,
.sponsorship-link--email:focus-visible {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--accent-color);
}

.sponsorship-link--small {
  padding: 0.25rem 0.375rem;
  font-size: 0.65rem;
  justify-content: center;
  text-align: center;
}

.sponsorship-link__emoji {
  font-size: 0.8rem;
}

.sponsorship-link__text {
  flex: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.sponsorship-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sponsorship-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  margin: 0;
  line-height: 1.1;
  word-break: break-word;
}

.sponsorship-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Contextual Card Styling */
.contextual-card-container {
  position: fixed;
  top: 50%;
  right: 1rem;
  width: 300px;
  max-width: calc(100vw - 2rem);
  z-index: 1000;
  opacity: 0;
  transform: translateY(calc(-50% + 1rem));
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.contextual-card-container--visible {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.contextual-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #333;
}

.contextual-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.contextual-card__headline {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin: 0;
  line-height: 1.2;
  flex: 1;
}

.contextual-card__dismiss {
  background: none;
  border: none;
  color: #666;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.contextual-card__dismiss:hover,
.contextual-card__dismiss:focus-visible {
  background: rgba(0, 0, 0, 0.1);
  color: #111;
  outline: none;
}

.contextual-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contextual-card__text {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #444;
  margin: 0;
}

.contextual-card__promo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.contextual-card__promo strong {
  font-weight: 600;
  color: #111;
}

.contextual-card__promo-code {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 0.875rem;
  color: #00a85d;
  font-weight: 600;
  background: rgba(0, 255, 136, 0.15);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.contextual-card__transparency {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #666;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contextual-card__footer {
  display: flex;
  justify-content: flex-end;
}

.contextual-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #00ff88;
  color: #000;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.contextual-card__cta:hover,
.contextual-card__cta:focus-visible {
  background: #00e67a;
  transform: translateY(-1px);
  outline: none;
}

.contextual-card__cta-icon {
  font-size: 0.8rem;
  opacity: 0.8;
}

.contextual-card--fallback {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sponsor-sidebar {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
    margin: 1rem auto 0;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .sponsor-sidebar {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 150px;
    margin: 0.5rem auto 0;
  }
}
