/* ───── Firebase settings tab ───── */
.fb-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.fb-ok { border-left: 4px solid #16a34a; background: linear-gradient(90deg, #f0fdf4, #fff); }
.fb-err { border-left: 4px solid #ef4444; background: linear-gradient(90deg, #fef2f2, #fff); }
.fb-status-icon { font-size: 32px; flex-shrink: 0; }
.fb-status-body { flex: 1; min-width: 0; }
.fb-status-title { font-size: 16px; font-weight: 700; color: #111827; }
.fb-status-sub { font-size: 13px; color: #6b7280; margin-top: 3px; }
.fb-status-sub code {
  background: rgba(0,0,0,0.05); padding: 1px 6px; border-radius: 4px;
  font-size: 12px;
}
.fb-badge {
  display: inline-block; margin-left: 8px;
  background: rgba(255,193,7,0.15); color: #B8860B;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 5px; letter-spacing: 0.3px;
}

.fb-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.fb-section h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.fb-section-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.fb-tag {
  display: inline-block;
  background: #dcfce7; color: #15803d;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 4px;
}
.fb-hint { color: #6b7280; font-size: 13px; line-height: 1.5; margin: 0 0 14px; }

.fb-divider {
  text-align: center; position: relative;
  margin: 14px 0;
  color: #9ca3af; font-size: 12px;
  text-transform: uppercase; font-weight: 600;
}
.fb-divider::before, .fb-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 30px); height: 1px;
  background: #e5e7eb;
}
.fb-divider::before { left: 0; } .fb-divider::after { right: 0; }
.fb-divider span { background: transparent; padding: 0 6px; position: relative; z-index: 1; }

.fb-help {
  margin: 12px 0;
  background: #f9fafb;
  border-radius: 8px;
  padding: 10px 12px;
}
.fb-help summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 600;
  font-size: 13px;
  user-select: none;
}
.fb-help summary:hover { color: #1d4ed8; }
.fb-steps {
  margin: 10px 0 0 20px; padding: 0;
  font-size: 13px; color: #374151; line-height: 1.7;
}
.fb-steps a { color: #2563eb; text-decoration: underline; }

.fb-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: #FFC107; color: #000;
  border-radius: 9px; cursor: pointer;
  font-weight: 700; font-size: 13.5px;
  transition: all 0.15s;
  margin-top: 4px;
}
.fb-upload-btn:hover { background: #B8860B; color: #fff; box-shadow: 0 4px 12px rgba(255,193,7,0.4); }
.fb-upload-btn i { font-size: 18px !important; }

/* Form fields */
.fb-field { margin-bottom: 14px; }
.fb-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #374151;
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 5px;
}
.fb-req { color: #ef4444; font-size: 14px; }
.fb-tt-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: #e5e7eb; color: #6b7280;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  cursor: help;
  transition: all 0.15s;
}
.fb-tt-icon:hover { background: #FFC107; color: #000; }

.fb-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  transition: border 0.15s, box-shadow 0.15s;
}
.fb-input:focus {
  outline: none;
  border-color: #FFC107;
  box-shadow: 0 0 0 3px rgba(255,193,7,0.15);
}
.fb-textarea {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11.5px;
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.fb-tip {
  display: block;
  color: #9ca3af; font-size: 11.5px;
  margin-top: 4px; line-height: 1.4;
}
.fb-tip code { background: #f3f4f6; padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* Buttons */
.fb-btn-yellow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: #FFC107; color: #000;
  border: 0; border-radius: 8px;
  font-family: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
}
.fb-btn-yellow:hover { background: #B8860B; color: #fff; box-shadow: 0 4px 12px rgba(255,193,7,0.4); }
.fb-btn-yellow i { font-size: 18px !important; }
.fb-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit; font-weight: 600; font-size: 13.5px;
  cursor: pointer; color: #6b7280;
}
.fb-btn-ghost:hover { background: #f3f4f6; color: #111827; }

/* Info section */
.fb-info { background: #fffbeb; border-color: rgba(255,193,7,0.3); }
.fb-info h3 { color: #92400e; font-size: 14px; }
.fb-info-list {
  margin: 6px 0 0 18px; padding: 0;
  font-size: 13px; color: #78350f; line-height: 1.7;
}
.fb-info-list code { background: rgba(0,0,0,0.05); padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* Tooltip popover (для ⓘ) */
.fb-tooltip {
  position: fixed;
  background: #0f1419;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 320px;
  font-size: 12.5px; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10003;
  pointer-events: none;
  animation: fbTooltipIn 0.15s ease;
}
@keyframes fbTooltipIn { from { transform: translateY(-4px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fb-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,193,7,0.2);
  border-top-color: #FFC107;
  border-radius: 50%;
  animation: fbSpin 0.8s linear infinite;
}
@keyframes fbSpin { to { transform: rotate(360deg); } }
