.theme-banner-option {
  padding: 14px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.06));
}

.theme-banner-option__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theme-banner-option__copy strong {
  display: block;
  color: #fff;
  font-size: 0.86rem;
  margin-bottom: 3px;
}

.theme-banner-option__copy small {
  display: block;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.35;
}

.theme-banner-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.theme-banner-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-banner-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #30303a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: 180ms ease;
}

.theme-banner-switch span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: 180ms ease;
}

.theme-banner-switch input:checked + span {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-color: rgba(255, 255, 255, 0.24);
}

.theme-banner-switch input:checked + span::after {
  transform: translateX(20px);
}

.theme-banner-warning {
  display: none;
  margin-top: 10px;
  color: #fda4af;
  font-size: 0.72rem;
}

.theme-banner-warning.visible {
  display: block;
}

.theme-banner-asset {
  margin-top: 12px;
}

.theme-banner-asset label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
}

.theme-banner-asset label span {
  color: #a78bfa;
  font-size: 0.64rem;
  font-weight: 600;
}

.theme-banner-asset__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-banner-asset__url {
  min-width: 0;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  background: rgba(7, 7, 12, 0.54);
}

.theme-banner-asset__upload {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.theme-banner-asset__upload.loading {
  opacity: 0.58;
  pointer-events: none;
}

.theme-banner-asset__upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.theme-banner-preview {
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121216;
  isolation: isolate;
}

.theme-banner-preview.visible {
  display: block;
}

.theme-banner-preview__blur,
.theme-banner-preview__subject,
.theme-banner-preview__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.theme-banner-preview__blur {
  object-fit: cover;
  filter: blur(16px) brightness(0.62);
  transform: scale(1.15);
}

.theme-banner-preview__subject {
  object-fit: contain;
}

.theme-banner-preview__shade {
  background: linear-gradient(180deg, transparent 28%, rgba(3, 3, 7, 0.92) 100%);
}

.theme-banner-preview__copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 2;
}

.theme-banner-preview__eyebrow {
  color: #fff569;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.theme-banner-preview__title {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  margin-top: 3px;
}

.theme-banner-preview__action {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  margin-top: 2px;
}

.theme-banner-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.94), rgba(236, 72, 153, 0.94));
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.34);
}

.theme-banner-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(18, 18, 24, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
}

/* ApiHub Settings Extension */
.btn-apihub-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  margin: 10px 0 6px 0;
  transition: all 0.2s ease;
}
.btn-apihub-settings:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.apihub-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.apihub-modal {
  width: 100%;
  max-width: 580px;
  background: #111322;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
  animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.apihub-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.apihub-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.apihub-modal-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
.apihub-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.apihub-field {
  margin-bottom: 16px;
}
.apihub-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}
.apihub-input-wrap {
  display: flex;
  gap: 8px;
}
.apihub-input {
  flex: 1;
  height: 42px;
  background: #090a14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.apihub-input:focus { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2); }
.btn-apihub-tool {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.btn-apihub-tool:hover { background: #334155; color: #fff; }
.apihub-status-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.apihub-status-alert.info { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); color: #7dd3fc; }
.apihub-status-alert.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.apihub-status-alert.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }
.apihub-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dev-role-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

